/*
 * Visa Viajes — Estilos de la aplicación
 * Etapa 1: diseño temporal y mínimo.
 * El diseño definitivo se desarrollará en una etapa posterior.
 */

/* Variables de color provisional */
:root {
    --color-primario: #1a5276;
    --color-secundario: #2e86c1;
    --color-acento: #f39c12;
    --color-texto: #212529;
    --color-fondo: #f8f9fa;
}

/* Base */
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--color-fondo);
    color: var(--color-texto);
}

/* Página de construcción */
.construccion-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.construccion-card {
    background: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    padding: 2.5rem;
    max-width: 540px;
    width: 100%;
    text-align: center;
}

.construccion-card .logo-texto {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-primario);
    margin-bottom: 0.25rem;
}

.construccion-card .subtitulo {
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.construccion-card .badge-construccion {
    display: inline-block;
    background-color: var(--color-acento);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: 2rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.construccion-card .contacto-lista {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
    text-align: left;
}

.construccion-card .contacto-lista li {
    padding: 0.4rem 0;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.9rem;
}

.construccion-card .contacto-lista li:last-child {
    border-bottom: none;
}

/* Página 404 */
.error-404 {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

.error-404 .codigo {
    font-size: 5rem;
    font-weight: 700;
    color: var(--color-secundario);
    line-height: 1;
}

.error-404 .mensaje {
    font-size: 1.1rem;
    color: #6c757d;
    margin: 0.5rem 0 1.5rem;
}

/* ============================================================
   Panel administrativo — Etapa 3 (estilos provisionales)
   ============================================================ */

/* Login */
.admin-auth-body {
    background-color: #eef1f6;
    min-height: 100vh;
}

.admin-auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.admin-login-card {
    background: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    padding: 2.5rem;
    max-width: 420px;
    width: 100%;
}

.admin-login-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primario);
    text-align: center;
    margin-bottom: 0.2rem;
}

.admin-login-sub {
    font-size: 0.85rem;
    color: #6c757d;
    text-align: center;
    margin-bottom: 1.75rem;
}

/* Dashboard y layout autenticado */
.admin-body {
    background-color: #f4f6f9;
    min-height: 100vh;
}

.admin-header {
    background-color: var(--color-primario);
    color: #ffffff;
    padding: 0.75rem 1.5rem;
}

.admin-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.admin-header-brand {
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.02em;
}

.admin-header-user {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
}

.admin-header-name {
    color: rgba(255, 255, 255, 0.85);
}

.admin-header-role {
    opacity: 0.65;
    margin-left: 0.25rem;
}

.admin-main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.admin-dashboard {
    background: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    padding: 2rem;
}

.admin-dashboard-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primario);
    margin-bottom: 1.25rem;
}

.admin-dashboard-info p {
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}

.admin-dashboard-modulos {
    margin-top: 1.5rem;
    border-top: 1px solid #e9ecef;
    padding-top: 1rem;
}

.admin-dashboard-modulos-titulo {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-primario);
    margin-bottom: 0.75rem;
}

.admin-dashboard-modulos-lista {
    list-style: none;
    padding: 0;
    margin: 0;
}

.admin-dashboard-modulos-lista li {
    padding: 0.35rem 0;
    font-size: 0.9rem;
    border-bottom: 1px solid #f0f0f0;
}

.admin-dashboard-modulos-lista li:last-child {
    border-bottom: none;
}

/* ── Navegación en header autenticado ──────────────────────────────────── */

.admin-header-nav {
    display: flex;
    gap: 1rem;
}

.admin-nav-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.15s;
}

.admin-nav-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* ── Módulo Tipo de cambio — Etapa 4 ──────────────────────────────────── */

.admin-tc {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.admin-tc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.admin-tc-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-primario);
    margin: 0;
}

.admin-tc-card {
    background: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    padding: 1.5rem;
}

.admin-tc-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-primario);
    margin-bottom: 1rem;
}

.admin-tc-table {
    width: 100%;
}

.admin-tc-table th {
    width: 35%;
    color: #495057;
    font-weight: 500;
}

.admin-tc-form .form-label {
    font-weight: 500;
}

/* Historial */
.admin-tc-historial-table {
    font-size: 0.875rem;
}

.admin-tc-vigente-row {
    background-color: #f0f7ff;
    font-weight: 500;
}

.admin-tc-vigente-row td {
    border-left-color: var(--color-secundario);
}

/* ── Módulo Conversor CR Millas — Etapa 5 ─────────────────────────────── */

.admin-conversor {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.admin-conversor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.admin-conversor-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-primario);
    margin: 0;
}

.admin-conversor-card {
    background: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    padding: 1.5rem;
}

.admin-conversor-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-primario);
    margin-bottom: 1rem;
}

.admin-conversor-form .form-label {
    font-weight: 500;
}

.admin-conversor-resultado {
    border-left: 4px solid var(--color-secundario);
}

.admin-conversor-tabla {
    width: 100%;
}

.admin-conversor-tabla th {
    width: 35%;
    color: #495057;
    font-weight: 500;
    vertical-align: middle;
}

.admin-conversor-valor-destacado {
    font-size: 1.1rem;
    font-weight: 600;
}

.admin-conversor-millas {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-primario);
}

.admin-conversor-leyenda {
    font-style: italic;
    border-top: 1px solid #e9ecef;
    padding-top: 0.75rem;
}

/* ── Símbolo gráfico CR Millas — Etapa 6 ─────────────────────────────── */

/*
 * Contenedor del precio en CR Millas.
 * Alinea el símbolo SVG, la cifra y la etiqueta en una sola línea.
 */
.millas-price {
    display: inline-flex;
    align-items: center;
    gap: 0.25em;
    line-height: 1;
    vertical-align: middle;
}

/*
 * El símbolo SVG. Escala con el texto mediante unidades em.
 * No tiene dimensiones fijas para no deformarse.
 */
.millas-symbol {
    display: inline-block;
    height: 1.1em;
    width: auto;
    vertical-align: middle;
    flex-shrink: 0;
}

/* Tamaños predefinidos */
.millas-symbol--small  { height: 1em;    }
.millas-symbol--medium { height: 1.25em; }
.millas-symbol--large  { height: 1.5em;  }
.millas-symbol--xl     { height: 2.5em;  }

/*
 * Cifra de millas.
 */
.millas-value {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
}

/*
 * Etiqueta "CR Millas".
 */
.millas-label {
    font-size: 0.8em;
    opacity: 0.75;
    white-space: nowrap;
}

/*
 * Variantes de color para el símbolo.
 * Funcionan con filter sobre el img porque el SVG es cargado externamente
 * y no hereda currentColor del HTML padre en ese contexto.
 *
 * Los filtros convierten el negro del SVG al color objetivo.
 * Azul  #1a5276 — color primario corporativo.
 * Dorado #f39c12 — color de acento corporativo.
 * Blanco #ffffff — sobre fondos oscuros.
 */
.millas-azul .millas-symbol {
    /* Convierte negro → azul #1a5276 */
    filter: brightness(0) saturate(100%)
            invert(20%) sepia(60%) saturate(600%)
            hue-rotate(176deg) brightness(90%) contrast(92%);
}

.millas-dorado .millas-symbol {
    /* Convierte negro → dorado #f39c12 */
    filter: brightness(0) saturate(100%)
            invert(66%) sepia(80%) saturate(500%)
            hue-rotate(5deg) brightness(103%) contrast(96%);
}

.millas-blanco .millas-symbol {
    /* Convierte negro → blanco #ffffff */
    filter: brightness(0) invert(1);
}

/* ── Página de demostración del símbolo — Etapa 6 ─────────────────────── */

.admin-simbolo {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.admin-simbolo-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.admin-simbolo-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-primario);
    margin: 0;
}

.admin-simbolo-card {
    background: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    padding: 1.5rem;
}

.admin-simbolo-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-primario);
    margin-bottom: 0.75rem;
}

/* Tamanos */
.admin-simbolo-tamanos {
    display: flex;
    align-items: flex-end;
    gap: 2rem;
    flex-wrap: wrap;
}

.admin-simbolo-tamano-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.admin-simbolo-etiqueta {
    font-size: 0.75rem;
    color: #6c757d;
    text-align: center;
}

/* Colores */
.admin-simbolo-colores {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.admin-simbolo-color-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.admin-simbolo-fondo-oscuro {
    background-color: var(--color-primario);
    border-radius: 0.5rem;
    padding: 1rem 1.5rem;
}

.admin-simbolo-etiqueta-blanca {
    color: rgba(255, 255, 255, 0.75);
}

/* Cantidades */
.admin-simbolo-cantidades {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.admin-simbolo-cantidad-item {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-primario);
}

/* Tarjeta demo */
.admin-simbolo-tarjeta-demo {
    display: flex;
    justify-content: flex-start;
}

.admin-simbolo-tarjeta {
    border: 1px solid #dee2e6;
    border-radius: 0.75rem;
    overflow: hidden;
    max-width: 320px;
    width: 100%;
}

.admin-simbolo-tarjeta-cuerpo {
    padding: 1.25rem;
}

.admin-simbolo-tarjeta-titulo {
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-primario);
    margin-bottom: 0.25rem;
}

.admin-simbolo-tarjeta-precio {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-texto);
    margin-bottom: 0.5rem;
}

.admin-simbolo-tarjeta-millas {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.admin-simbolo-tarjeta-millas-label {
    font-size: 0.85rem;
    color: #6c757d;
}

.admin-simbolo-tarjeta-nota {
    font-size: 0.75rem;
    color: #6c757d;
    margin: 0;
}

/* Formato movil */
.admin-simbolo-movil-demo {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-primario);
}

/* Referencia tecnica */
.admin-simbolo-referencia {
    border-top: 3px solid var(--color-primario);
}

/* ══════════════════════════════════════════════════════════════
   Módulo Destinos — CRUD administrativo — Etapa 7A
   ══════════════════════════════════════════════════════════════ */

/* ── Layout general ──────────────────────────────────────────── */
.destino-index,
.destino-show,
.destino-form-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.destino-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.destino-titulo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primario);
    margin: 0;
}

/* ── Secciones del formulario y show ─────────────────────────── */
.destino-seccion {
    background: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
    padding: 1.25rem 1.5rem;
}

.destino-seccion-titulo {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-primario);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

/* ── Tabla de detalle (show) ─────────────────────────────────── */
.destino-show-table {
    font-size: 0.875rem;
}

.destino-show-table .destino-show-th,
.destino-show-table th {
    width: 38%;
    color: #495057;
    font-weight: 500;
    vertical-align: top;
}

.destino-show-table td {
    vertical-align: top;
    word-break: break-word;
}

/* ── Estimación de CR Millas en show ─────────────────────────── */
.destino-millas-estimacion {
    background: #f0f7ff;
    border: 1px solid #b8d9f5;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-top: 0.75rem;
}

.destino-millas-estimacion h6 {
    color: var(--color-primario);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

/* ── Tabla del listado ───────────────────────────────────────── */
.destino-tabla {
    font-size: 0.82rem;
}

.destino-tabla th {
    font-weight: 600;
    color: #495057;
    white-space: nowrap;
}

.destino-tabla td {
    vertical-align: middle;
}

/* ── Acciones en tabla ───────────────────────────────────────── */
.destino-tabla-acciones {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.btn-xs {
    padding: 0.15rem 0.4rem;
    font-size: 0.75rem;
    border-radius: 0.25rem;
    line-height: 1.4;
}

/* ── Filtros ─────────────────────────────────────────────────── */
.destino-filtros-panel {
    background: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    padding: 1rem 1.25rem;
}

.destino-resumen {
    padding: 0.25rem 0;
}

/* ── Badges de indicadores en la tabla ───────────────────────── */
.badge-indicador {
    font-size: 0.65rem;
    padding: 0.2em 0.4em;
}

/* Colores adicionales para indicadores */
.bg-orange {
    background-color: #fd7e14 !important;
}
.bg-teal {
    background-color: #20c997 !important;
}
.bg-indigo {
    background-color: #6610f2 !important;
}

/* ── Acciones de estado en show ──────────────────────────────── */
.destino-estado-acciones {
    background: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    padding: 0.875rem 1.25rem;
}

/* ── Botones del formulario ──────────────────────────────────── */
.destino-acciones-form {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    padding: 1rem 0 0.5rem;
}

/* ── Acciones superiores en show ─────────────────────────────── */
.destino-show-acciones-top {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

/* ── Formulario largo ────────────────────────────────────────── */
.destino-form .form-label {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.destino-form .form-control,
.destino-form .form-select {
    font-size: 0.875rem;
}

.destino-form .form-text {
    font-size: 0.78rem;
}

.destino-form .invalid-feedback {
    font-size: 0.8rem;
}

/* ── Formulario: alertas de error y advertencia ──────────────── */
.destino-form .alert {
    font-size: 0.875rem;
}

/* ══════════════════════════════════════════════════════════════
   Sitio público — Etapa 8: Catálogo de destinos con CR Millas
   ══════════════════════════════════════════════════════════════ */

/* ── Layout general ─────────────────────────────────────────── */
.public-body {
    background-color: var(--color-fondo);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── Header público — estilos base (ver bloque definitivo más adelante) ─── */
/* Las reglas activas están consolidadas en "Encabezado / Nav" (~línea 1908) */

/* ── Main ───────────────────────────────────────────────────── */
.public-main {
    flex: 1;
}

/* ── Footer ─────────────────────────────────────────────────── */
.public-footer {
    background-color: var(--color-primario);
    color: rgba(255,255,255,0.75);
    padding: 1.25rem 1.5rem;
    margin-top: auto;
}

.public-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.public-footer p {
    margin: 0.25rem 0;
    font-size: 0.82rem;
}

.public-footer a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
}

.public-footer a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* ── Hero de destinos ────────────────────────────────────────── */
.public-destinos-hero {
    background: linear-gradient(135deg, var(--color-primario) 0%, var(--color-secundario) 100%);
    color: #ffffff;
    padding: 3.5rem 1.5rem 3rem;
    text-align: center;
}

.public-destinos-hero-inner {
    max-width: 720px;
    margin: 0 auto;
}

.public-destinos-titulo {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.public-destinos-subtitulo {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.85);
    margin: 0;
    line-height: 1.6;
}

/* ── Contenido ───────────────────────────────────────────────── */
.public-destinos-contenido {
    padding: 2.5rem 1.5rem;
}

.public-destinos-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

/* ── Grid de tarjetas ────────────────────────────────────────── */
.public-destinos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* ── Tarjeta de destino ──────────────────────────────────────── */
.public-destino-card {
    background: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: box-shadow 0.2s, transform 0.2s;
}

.public-destino-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

/* ── Badges sobre la tarjeta ─────────────────────────────────── */
.public-destino-badges {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
    padding: 0.75rem 1rem 0;
}

.public-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.2rem 0.55rem;
    border-radius: 2rem;
    color: #ffffff;
}

.badge-nuevo    { background-color: #0d6efd; }
.badge-popular  { background-color: #6f42c1; }
.badge-promo    { background-color: #dc3545; }
.badge-cupos    { background-color: #fd7e14; }
.badge-oferta   { background-color: #198754; }

/* ── Cuerpo de la tarjeta ────────────────────────────────────── */
.public-destino-body {
    padding: 1rem 1.25rem 0.75rem;
    flex: 1;
}

.public-destino-nombre {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-primario);
    margin-bottom: 0.2rem;
    line-height: 1.3;
}

.public-destino-subtitulo {
    font-size: 0.875rem;
    color: #495057;
    margin-bottom: 0.6rem;
}

/* ── Meta: ubicación, ámbito, duración ───────────────────────── */
.public-destino-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
}

.public-destino-meta-item {
    font-size: 0.775rem;
    color: #6c757d;
    background: #f1f3f5;
    border-radius: 0.3rem;
    padding: 0.15rem 0.5rem;
}

.public-destino-ambito {
    background-color: #e7f5ff;
    color: var(--color-secundario);
}

.public-destino-descripcion {
    font-size: 0.875rem;
    color: #495057;
    line-height: 1.55;
    margin-bottom: 0;
    /* Limitar a 3 líneas */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.public-destino-promo-texto {
    font-size: 0.8rem;
    font-weight: 600;
    color: #dc3545;
    margin-top: 0.4rem;
    margin-bottom: 0;
}

/* ── Área de precio + millas + botón ─────────────────────────── */
.public-destino-precio-area {
    border-top: 1px solid #e9ecef;
    padding: 1rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.public-destino-precio-bloque {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.public-destino-precio-original {
    font-size: 0.85rem;
    color: #adb5bd;
    text-decoration: line-through;
}

.public-destino-precio-principal {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-texto);
    line-height: 1.2;
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.public-destino-precio-por {
    font-size: 0.8rem;
    font-weight: 400;
    color: #6c757d;
}

/* ── Bloque de CR Millas en la tarjeta ───────────────────────── */
.public-destino-millas {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.public-destino-millas-label {
    font-size: 0.8rem;
    color: #6c757d;
    flex-shrink: 0;
}

.public-destino-millas-cifra {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-primario);
}

/* ── Botón de consulta ───────────────────────────────────────── */
.public-destino-btn-consulta {
    background-color: #25d366;
    color: #ffffff;
    border: none;
    border-radius: 0.5rem;
    padding: 0.55rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s;
    width: 100%;
}

.public-destino-btn-consulta:hover {
    background-color: #1ebe58;
    color: #ffffff;
}

/* ── Estado vacío ────────────────────────────────────────────── */
.public-destinos-vacio {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
    font-size: 1.05rem;
}

/* ── Leyenda de tipo de cambio ───────────────────────────────── */
.public-destinos-leyenda {
    font-size: 0.78rem;
    color: #6c757d;
    font-style: italic;
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.public-destinos-leyenda a {
    color: var(--color-secundario);
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
    .public-destinos-titulo {
        font-size: 1.75rem;
    }

    .public-destinos-hero {
        padding: 2.5rem 1.25rem 2rem;
    }

    .public-destinos-grid {
        grid-template-columns: 1fr;
    }

    .public-header-sub {
        display: none;
    }
}

@media (max-width: 480px) {
    .public-destino-precio-principal {
        font-size: 1.35rem;
    }
}

/* ── Fin sitio público ───────────────────────────────────────── */

/* Media query: pantallas pequeñas */
@media (max-width: 576px) {
    .destino-header {
        flex-direction: column;
    }

    .destino-tabla-acciones {
        flex-direction: column;
    }

    .destino-acciones-form {
        flex-direction: column;
        align-items: stretch;
    }

    .destino-seccion {
        padding: 1rem;
    }
}

/* Media query: pantallas pequeñas (símbolo millas) */
@media (max-width: 576px) {
    .admin-simbolo-tamanos,
    .admin-simbolo-colores {
        gap: 1.25rem;
    }

    .admin-simbolo-tarjeta {
        max-width: 100%;
    }

    .millas-label {
        display: none;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   Etapa 7B — Gestión de fotografías de destinos (img-grid, img-card)
   ═══════════════════════════════════════════════════════════════════ */

/* ── Contador badge ─────────────────────────────────────────── */
.img-contador-badge {
    font-size: .85rem;
}

/* ── Formulario de subida ───────────────────────────────────── */
.img-upload-form .form-text {
    font-size: .8rem;
    color: #6c757d;
}

/* ── Cuadrícula de imágenes ────────────────────────────────── */
.img-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
}

/* ── Tarjeta individual ────────────────────────────────────── */
.img-card {
    border: 1px solid #dee2e6;
    border-radius: .5rem;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: box-shadow .15s ease;
}
.img-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
}
.img-card--principal {
    border-color: #0d6efd;
    box-shadow: 0 0 0 2px rgba(13,110,253,.25);
}

/* ── Badge "Principal" ─────────────────────────────────────── */
.img-card-badge-principal {
    position: absolute;
    top: .5rem;
    left: .5rem;
    background: #0d6efd;
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .05em;
    padding: .15rem .45rem;
    border-radius: .25rem;
    text-transform: uppercase;
    z-index: 2;
    pointer-events: none;
}

/* ── Zona de la foto ────────────────────────────────────────── */
.img-card-foto {
    width: 100%;
    aspect-ratio: 16 / 10;
    background: #f8f9fa;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.img-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.img-card-sin-archivo {
    color: #adb5bd;
    font-size: .85rem;
}

/* ── Información (MIME, tamaño, orden) ─────────────────────── */
.img-card-info {
    padding: .5rem .75rem .25rem;
    font-size: .75rem;
    color: #6c757d;
}
.img-card-orden {
    font-weight: 600;
    color: #495057;
}
.img-card-mime {
    font-family: monospace;
}

/* ── Texto alternativo ─────────────────────────────────────── */
.img-card-textoalt {
    padding: .25rem .75rem;
}
.img-textoalt-form .input-group {
    gap: .25rem;
}

/* ── Acciones ─────────────────────────────────────────────── */
.img-card-acciones {
    padding: .5rem .75rem .75rem;
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    margin-top: auto;
}

/* ── Estado vacío ─────────────────────────────────────────── */
.img-grid-vacio {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}
.img-grid-vacio-icono {
    font-size: 3rem;
    margin-bottom: .75rem;
    opacity: .5;
}

/* ── Miniaturas en reordenamiento ─────────────────────────── */
.img-reorder-thumb {
    width: 40px;
    height: 28px;
    object-fit: cover;
    border-radius: .2rem;
    border: 1px solid #dee2e6;
    flex-shrink: 0;
}
.img-reorder-thumb-empty {
    background: #f0f0f0;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 576px) {
    .img-grid {
        grid-template-columns: 1fr;
    }
    .img-card-acciones {
        flex-direction: column;
    }
    .img-card-acciones .btn {
        width: 100%;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   Etapa 7C — Gestión de salidas / fechas múltiples de destinos
   ═══════════════════════════════════════════════════════════════════ */

/* ── Contador badge ─────────────────────────────────────────── */
.fecha-contador-badge {
    font-size: .85rem;
}

/* ── Formulario de nueva salida ─────────────────────────────── */
.fecha-form .form-text {
    font-size: .8rem;
    color: #6c757d;
}

/* ── Tarjeta próxima salida ─────────────────────────────────── */
.fecha-proxima-card {
    padding: .75rem 1rem;
    background: #f8f9fa;
    border-radius: .4rem;
    border: 1px solid #dee2e6;
}
.fecha-proxima-fecha {
    font-size: 1.1rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: .25rem;
}
.fecha-proxima-obs {
    font-size: .8rem;
}

/* ── Tabla de salidas ───────────────────────────────────────── */
.fecha-tabla {
    font-size: .9rem;
    vertical-align: middle;
}
.fecha-tabla thead th {
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #6c757d;
    border-bottom: 2px solid #dee2e6;
    white-space: nowrap;
}
.fecha-col-orden {
    width: 60px;
}
.fecha-col-fecha {
    min-width: 160px;
}
.fecha-col-estado {
    width: 120px;
    white-space: nowrap;
}
.fecha-col-obs {
    min-width: 140px;
    max-width: 220px;
}
.fecha-col-acciones {
    min-width: 240px;
}

/* ── Orden badge ────────────────────────────────────────────── */
.fecha-orden-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 50%;
    background: #e9ecef;
    font-size: .8rem;
    font-weight: 600;
    color: #495057;
}

/* ── Texto de fecha ─────────────────────────────────────────── */
.fecha-texto {
    font-variant-numeric: tabular-nums;
}
.fecha-texto--rango {
    color: #0d6efd;
}
.fecha-texto--exacta {
    color: #212529;
}

/* ── Observaciones tooltip ──────────────────────────────────── */
.fecha-obs-texto {
    cursor: help;
    border-bottom: 1px dotted #6c757d;
}

/* ── Grupo de acciones ──────────────────────────────────────── */
.fecha-acciones-grupo {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    align-items: center;
}

/* ── Select de estado inline ────────────────────────────────── */
.fecha-select-estado {
    width: auto;
    min-width: 120px;
    font-size: .8rem;
}

/* ── Formulario de edición inline ───────────────────────────── */
.fecha-edit-inline {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: .4rem;
    padding: .75rem;
    margin-top: .5rem;
}

/* ── Estado vacío ────────────────────────────────────────────── */
.fecha-tabla-vacio {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}
.fecha-tabla-vacio-icono {
    font-size: 3rem;
    margin-bottom: .75rem;
    opacity: .5;
}

/* ── Fila con reordenamiento ────────────────────────────────── */
.fecha-reorder-fecha {
    font-size: .85rem;
    color: #495057;
}

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .fecha-col-obs {
        display: none;
    }
    .fecha-acciones-grupo {
        flex-direction: column;
        align-items: stretch;
    }
    .fecha-acciones-grupo .btn,
    .fecha-acciones-grupo form {
        width: 100%;
    }
    .fecha-acciones-grupo .btn {
        width: 100%;
    }
}
@media (max-width: 576px) {
    .fecha-tabla thead .fecha-col-orden {
        display: none;
    }
    .fecha-tabla .fecha-col-orden {
        display: none;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   Etapa 7D — Vista previa administrativa del destino
   ═══════════════════════════════════════════════════════════════════ */

/* ── Barra de contexto administrativo ─────────────────────────── */
.preview-admin-bar {
    background: #212529;
    color: #f8f9fa;
    padding: .5rem 1rem;
    position: sticky;
    top: 56px; /* debajo del header admin */
    z-index: 100;
}
.preview-admin-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}
.preview-admin-back {
    color: #adb5bd;
    text-decoration: none;
    font-size: .9rem;
}
.preview-admin-back:hover { color: #f8f9fa; }
.preview-admin-label {
    font-size: .8rem;
    color: #6c757d;
    margin-left: .75rem;
}
.preview-admin-bar-right { display: flex; gap: .5rem; }

/* ── Wrapper principal ─────────────────────────────────────────── */
.preview-wrapper {
    background: #fff;
    min-height: 100vh;
}

/* ── Hero / galería ────────────────────────────────────────────── */
.preview-galeria {
    width: 100%;
}
.preview-hero {
    width: 100%;
    height: clamp(240px, 45vw, 520px);
    overflow: hidden;
    background: #e9ecef;
}
.preview-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.preview-hero-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.preview-placeholder-svg {
    width: 100%;
    height: 100%;
}
.preview-thumbs { padding-top: .5rem; }
.preview-thumb-img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: .3rem;
    cursor: pointer;
    transition: opacity .2s;
}
.preview-thumb-img:hover { opacity: .85; }
.preview-thumbs-mas {
    background: #f8f9fa;
    border-radius: .3rem;
    font-size: .85rem;
    color: #6c757d;
    aspect-ratio: 4/3;
}

/* ── Cuerpo ────────────────────────────────────────────────────── */
.preview-body {
    padding-top: 2rem;
    padding-bottom: 4rem;
}

/* ── Encabezado ────────────────────────────────────────────────── */
.preview-encabezado {
    margin-bottom: 1.5rem;
}
.preview-ambito {
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #6c757d;
}
.preview-nombre {
    font-size: clamp(1.5rem, 4vw, 2.4rem);
    font-weight: 700;
    color: #212529;
    margin-bottom: .35rem;
    line-height: 1.2;
}
.preview-subtitulo {
    font-size: 1.1rem;
    color: #495057;
    margin-bottom: .5rem;
}
.preview-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem .75rem;
    font-size: .9rem;
    color: #6c757d;
    margin-bottom: .75rem;
}
.preview-meta-item { display: inline-flex; align-items: center; gap: .25rem; }
.preview-meta-tipo {
    background: #e9ecef;
    border-radius: 999px;
    padding: .1rem .65rem;
    font-size: .8rem;
    font-weight: 600;
    color: #495057;
}
.preview-texto-promo {
    font-style: italic;
    color: #0d6efd;
    font-weight: 500;
    font-size: .95rem;
}

/* ── Badges de estado ──────────────────────────────────────────── */
.preview-estado-badges {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-bottom: .5rem;
}
.preview-badge-estado  { font-size: .75rem; }
.preview-badge-comercial { font-size: .75rem; }

/* ── Secciones ─────────────────────────────────────────────────── */
.preview-seccion {
    border-top: 1px solid #dee2e6;
    padding-top: 1.25rem;
    margin-bottom: 1.5rem;
}
.preview-seccion-titulo {
    font-size: 1.1rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: .75rem;
}

/* ── Precio ────────────────────────────────────────────────────── */
.preview-precio-bloque {
    background: #f8f9fa;
    border-radius: .5rem;
    padding: 1rem 1.25rem;
}
.preview-precio-usd {
    font-size: 1.8rem;
    font-weight: 800;
    color: #0d6efd;
    line-height: 1.1;
}
.preview-precio-por {
    font-size: .85rem;
    font-weight: 400;
    color: #6c757d;
    margin-left: .4rem;
}
.preview-precio-millas {
    margin-top: .5rem;
    display: flex;
    align-items: baseline;
    gap: .4rem;
}
.preview-millas-valor {
    font-size: 1.3rem;
    font-weight: 700;
    color: #198754;
}
.preview-millas-label {
    font-size: .85rem;
    color: #6c757d;
}
.preview-precio-tc {
    margin-top: .4rem;
    font-size: .8rem;
    color: #6c757d;
}
.preview-tc-texto { line-height: 1.4; }

/* ── Fechas ────────────────────────────────────────────────────── */
.preview-fechas-tabla {
    font-size: .9rem;
}
.preview-fechas-tabla thead th {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #6c757d;
    border-bottom: 2px solid #dee2e6;
}
.preview-fecha-celda { font-variant-numeric: tabular-nums; }
.preview-fecha-texto { font-size: 1rem; color: #212529; }

/* ── Descripción ───────────────────────────────────────────────── */
.preview-desc-corta {
    font-size: 1.05rem;
    color: #495057;
    margin-bottom: .75rem;
    font-weight: 500;
}
.preview-desc-larga {
    font-size: .95rem;
    color: #212529;
    line-height: 1.7;
    white-space: pre-line;
}

/* ── Incluye ───────────────────────────────────────────────────── */
.preview-incluye-grid {
    display: flex;
    flex-direction: column;
    gap: .9rem;
}
.preview-incluye-item {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
}
.preview-incluye-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    width: 1.8rem;
    text-align: center;
}
.preview-estrellas { font-size: .85rem; color: #f59e0b; }
.preview-incluye-texto {
    font-size: .9rem;
    color: #212529;
    line-height: 1.6;
}

/* ── No incluye ────────────────────────────────────────────────── */
.preview-no-incluye-texto {
    font-size: .9rem;
    color: #495057;
    line-height: 1.65;
}

/* ── Condiciones ───────────────────────────────────────────────── */
.preview-condiciones-subtitulo {
    font-size: .9rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: .4rem;
}
.preview-condiciones-texto {
    font-size: .88rem;
    color: #495057;
    line-height: 1.65;
}

/* ── Sidebar ───────────────────────────────────────────────────── */
.preview-sidebar-card { border-radius: .6rem; }
.preview-sidebar-precio {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0d6efd;
    line-height: 1.1;
    margin-bottom: .35rem;
}
.preview-sidebar-precio-valor { }
.preview-sidebar-precio-por {
    font-size: .8rem;
    font-weight: 400;
    color: #6c757d;
    display: block;
}
.preview-sidebar-millas {
    display: flex;
    align-items: baseline;
    gap: .4rem;
    margin-bottom: .25rem;
}
.preview-sidebar-millas-valor {
    font-size: 1.15rem;
    font-weight: 700;
    color: #198754;
}
.preview-sidebar-millas-label { font-size: .8rem; color: #6c757d; }
.preview-sidebar-detalles { font-size: .9rem; }
.preview-sidebar-detalle-item {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    padding: .3rem 0;
    border-bottom: 1px solid #f0f0f0;
}
.preview-sidebar-detalle-item:last-child { border-bottom: none; }
.preview-sidebar-detalle-icon { font-size: 1rem; flex-shrink: 0; }
.preview-btn-reservar {
    font-weight: 600;
    letter-spacing: .03em;
}
.preview-btn-reservar:disabled {
    cursor: not-allowed;
    opacity: .6;
}
.preview-reservar-aviso { font-size: .78rem; }
.preview-sidebar-nota {
    border-top: 1px solid #e9ecef;
    padding-top: .75rem;
    font-size: .78rem;
    text-align: center;
}

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 991.98px) {
    .preview-body { padding-top: 1.25rem; }
    .preview-sidebar { position: static !important; }
}
@media (max-width: 576px) {
    .preview-admin-bar-inner { flex-direction: column; align-items: flex-start; gap: .4rem; }
    .preview-nombre { font-size: 1.4rem; }
    .preview-precio-usd { font-size: 1.4rem; }
}


/* ═══════════════════════════════════════════════════════════════════════════
   Etapa 8 — Portal Público de Visa Viajes
   Paleta: azul COOPEMETRO #1B3A6E · dorado CR Millas #C8A951 · blanco #FFF
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Variables de color ─────────────────────────────────────────────────── */
:root {
  --vv-azul:        #1B3A6E;
  --vv-azul-dark:   #122851;
  --vv-azul-light:  #2D5DA6;
  --vv-dorado:      #C8A951;
  --vv-dorado-dark: #A68930;
  --vv-blanco:      #FFFFFF;
  --vv-gris-fondo:  #F5F7FA;
  --vv-gris-borde:  #DEE2E6;
  --vv-texto:       #1A1A2E;
}

/* ── Layout público ─────────────────────────────────────────────────────── */
.public-body { background: var(--vv-gris-fondo); margin: 0; }
.public-main  { min-height: 60vh; }

/* ══════════════════════════════════════════════════════════════════════════
   HEADER PÚBLICO — BLOQUE DEFINITIVO (todas las reglas activas aquí)
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Contenedor ─────────────────────────────────────────────────────────── */
.public-header {
  background: var(--vv-azul);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,.3);
  padding: 0;
}
.public-header-inner {
  max-width: 1580px;
  width: calc(100% - 40px);
  margin: 0 auto;
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: nowrap;
}

/* ── Brand (texto fallback, no usado si hay imagen) ─────────────────────── */
.public-header-brand {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--vv-blanco) !important;
  text-decoration: none;
  letter-spacing: -.02em;
  white-space: nowrap;
  flex-shrink: 0;
}
.public-header-brand span { color: var(--vv-dorado); }
.public-header-sub { display: none; }

/* ── Botón hamburguesa (solo móvil) ────────────────────────────────────── */
.public-nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: .4rem;
  color: var(--vv-blanco);
  cursor: pointer;
  font-size: 1.2rem;
  margin-left: auto;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

/* ── Navegación principal ───────────────────────────────────────────────── */
.public-header-nav {
  display: flex;
  align-items: center;
  gap: 2.125rem;       /* ≈ 34px */
  margin-left: 0;
  flex-shrink: 0;
}
.public-nav-link {
  color: rgba(255,255,255,.9) !important;
  font-size: 1.375rem; /* 22px */
  font-weight: 700;
  line-height: 1.2;
  padding: .5rem .25rem 1rem;   /* padding-bottom ≈ 16px para border-bottom */
  text-decoration: none;
  transition: color .15s;
  white-space: nowrap;
  border-bottom: 4px solid transparent;
}
.public-nav-link:hover {
  color: var(--vv-blanco) !important;
  border-bottom-color: rgba(255,255,255,.3);
}
.public-nav-link.active,
.public-nav-link.nav-link-activo {
  color: var(--vv-dorado) !important;
  font-weight: 700;
  border-bottom-color: var(--vv-dorado);
}
.public-nav-link.nav-cta {
  background: var(--vv-dorado);
  color: var(--vv-azul) !important;
  padding: .5rem 1rem;
  border-radius: .4rem;
  border-bottom-color: transparent;
}
.public-nav-link.nav-cta:hover { background: var(--vv-dorado-dark); }

/* ── Responsive: móvil < 768px ─────────────────────────────────────────── */
@media (max-width: 767.98px) {
  .public-nav-toggle    { display: flex; }
  .public-header-nav    { display: none !important; }
  .public-body          { overflow-x: hidden; }
  .public-header-inner  { padding: .75rem 0; gap: .75rem; width: calc(100% - 24px); }
}

/* ── Responsive: tablet 768–1199px ─────────────────────────────────────── */
@media (min-width: 768px) and (max-width: 1199.98px) {
  .public-header-inner  { padding: 1rem 0; gap: 1.25rem; width: calc(100% - 48px); }
  .public-header-logo-img { width: 160px; }
  .public-nav-link      { font-size: 1.1rem; gap: 1rem; }
  .public-header-nav    { gap: 1.25rem; }
  .public-header-marca-img { width: 68px; height: 68px; }
  .public-header-marca-sep { height: 60px; }
  .public-header-nav-sep   { height: 68px; }
  .public-header-right  { gap: .85rem; }
  .public-header-respaldo  { display: none; }
  .public-header-tc     { min-width: 150px; padding: .75rem 1rem; }
  .public-header-tc-valor  { font-size: 1.6rem; }
  .public-header-tc-etiqueta { font-size: 1rem; }
  .public-header-tc-texto { font-size: .9rem; }
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.public-footer {
  background: var(--vv-azul-dark);
  color: rgba(255,255,255,.8);
  padding: 2.5rem 1.5rem 1.5rem;
  margin-top: 3rem;
}
.public-footer-inner  { max-width: 1200px; margin: 0 auto; }
.public-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.public-footer-col-titulo {
  font-weight: 700;
  color: var(--vv-dorado);
  margin-bottom: .75rem;
  font-size: .88rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.public-footer-col p,
.public-footer-col ul { font-size: .84rem; line-height: 1.65; margin: 0; padding: 0; }
.public-footer-col ul { list-style: none; }
.public-footer-col li { margin-bottom: .3rem; }
.public-footer-col a  { color: rgba(255,255,255,.72); text-decoration: none; }
.public-footer-col a:hover { color: var(--vv-dorado); }
.public-footer-divider { border-color: rgba(255,255,255,.15); margin: 1rem 0; }
.public-footer-copy { font-size: .78rem; color: rgba(255,255,255,.45); text-align: center; margin: 0; }

/* ── Hero de home ───────────────────────────────────────────────────────── */
.portal-hero {
  background: linear-gradient(135deg, var(--vv-azul) 0%, var(--vv-azul-light) 60%, #3B78C8 100%);
  color: var(--vv-blanco);
  padding: 2.5rem 1.5rem 2.25rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.portal-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6z'/%3E%3C/g%3E%3C/svg%3E");
}
.portal-hero-inner { position: relative; max-width: 1100px; margin: 0 auto; }
.portal-hero-pretitulo {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255,255,255,.72);
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: .6rem;
}
.portal-hero-titulo {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: .5rem;
  line-height: 1.1;
}
.portal-hero-titulo span { color: var(--vv-dorado); }
.portal-hero-subtitulo {
  font-size: clamp(1.05rem, 2.5vw, 1.55rem);
  color: rgba(255,255,255,.82);
  margin-bottom: .9rem;
  line-height: 1.5;
}
.portal-hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-hero-primario {
  background: var(--vv-dorado);
  color: var(--vv-azul) !important;
  font-weight: 700;
  font-size: 1.08rem;
  padding: .65rem 1.85rem;
  border-radius: .5rem;
  text-decoration: none;
  border: none;
  transition: background .2s, transform .15s;
  display: inline-block;
}
.btn-hero-primario:hover { background: var(--vv-dorado-dark); transform: translateY(-2px); }
.btn-hero-secundario {
  background: rgba(255,255,255,.14);
  color: var(--vv-blanco) !important;
  font-weight: 600;
  font-size: 1.08rem;
  padding: .65rem 1.85rem;
  border-radius: .5rem;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.35);
  transition: background .2s;
  display: inline-block;
}
.btn-hero-secundario:hover { background: rgba(255,255,255,.24); }

/* ── Secciones de home ──────────────────────────────────────────────────── */
.portal-seccion { padding: 2.5rem 1.5rem; }
.portal-seccion-inner { max-width: 1200px; margin: 0 auto; }
.portal-seccion-encabezado {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--vv-dorado);
  padding-bottom: .5rem;
}
.portal-seccion-titulo { font-size: 1.35rem; font-weight: 700; color: var(--vv-azul); margin: 0; }
.portal-seccion-ver-mas {
  margin-left: auto;
  font-size: .84rem;
  color: var(--vv-azul-light);
  text-decoration: none;
  font-weight: 600;
}
.portal-seccion-ver-mas:hover { color: var(--vv-dorado-dark); text-decoration: underline; }
.portal-seccion-vacio { text-align: center; padding: 2.5rem; color: #6c757d; }

/* ── Grilla de tarjetas ─────────────────────────────────────────────────── */
.portal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
@media (max-width: 1199.98px) { .portal-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width:  767.98px) { .portal-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 479.98px) { .portal-grid { grid-template-columns: 1fr; } }

/* ── Tarjeta de destino ─────────────────────────────────────────────────── */
.portal-card {
  background: var(--vv-blanco);
  border-radius: .75rem;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.portal-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.14); }

.portal-card-img-wrap {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #e9ecef;
  display: block;
  text-decoration: none;
}
.portal-card-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.portal-card:hover .portal-card-img { transform: scale(1.04); }
.portal-card-img-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
}

/* Badges sobre imagen */
.portal-card-badges {
  position: absolute; top: .6rem; left: .6rem;
  display: flex; flex-wrap: wrap; gap: .3rem;
}
.portal-badge {
  font-size: .68rem; font-weight: 700;
  padding: .2rem .5rem;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: .04em;
  white-space: nowrap;
}
.portal-badge-nuevo      { background: var(--vv-azul);        color: #fff; }
.portal-badge-popular    { background: #e63946;               color: #fff; }
.portal-badge-promo      { background: var(--vv-dorado);      color: var(--vv-azul); }
.portal-badge-cupos      { background: #dc3545;               color: #fff; }
.portal-badge-oferta     { background: #fd7e14;               color: #fff; }
.portal-badge-destacado  { background: var(--vv-azul-light);  color: #fff; }

/* Cuerpo de la tarjeta */
.portal-card-body {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.portal-card-nombre {
  font-size: .97rem; font-weight: 700;
  color: var(--vv-azul); margin: 0; line-height: 1.25;
}
.portal-card-meta {
  font-size: .75rem; color: #6c757d;
  display: flex; flex-wrap: wrap; gap: .35rem; margin: 0;
}
.portal-card-meta-sep::before { content: '·'; margin-right: .2rem; }
.portal-card-desc {
  font-size: .8rem; color: #495057; line-height: 1.45;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Pie de tarjeta */
.portal-card-footer {
  padding: .75rem 1rem;
  border-top: 1px solid #f0f0f0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: .5rem;
}
.portal-card-precio-wrap { display: flex; flex-direction: column; }
.portal-card-precio-original { font-size: .72rem; color: #9ca3af; text-decoration: line-through; }
.portal-card-precio { font-size: 1.05rem; font-weight: 800; color: var(--vv-azul); line-height: 1.1; }
.portal-card-precio-por { font-size: .68rem; font-weight: 400; color: #6c757d; }
.portal-card-millas { font-size: .72rem; color: #198754; font-weight: 600; white-space: nowrap; }
.portal-card-millas .millas-symbol { vertical-align: middle; }

.btn-portal-ver {
  background: var(--vv-azul);
  color: var(--vv-blanco) !important;
  font-size: .78rem; font-weight: 600;
  padding: .4rem .9rem;
  border-radius: .45rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s;
  display: inline-block;
}
.btn-portal-ver:hover { background: var(--vv-azul-light); }

/* ── Catálogo con filtros ───────────────────────────────────────────────── */
.portal-catalogo-header {
  background: var(--vv-azul);
  color: var(--vv-blanco);
  padding: 2.5rem 1.5rem;
}
.portal-catalogo-header-inner { max-width: 1200px; margin: 0 auto; }
.portal-catalogo-titulo { font-size: 1.9rem; font-weight: 800; margin: 0 0 .25rem; }
.portal-catalogo-sub   { color: rgba(255,255,255,.75); margin: 0; }

.portal-catalogo-body { max-width: 1200px; margin: 0 auto; padding: 2rem 1.5rem; }
.portal-catalogo-layout { display: grid; grid-template-columns: 260px 1fr; gap: 2rem; align-items: start; }
@media (max-width: 767.98px) { .portal-catalogo-layout { grid-template-columns: 1fr; } }

/* Filtros */
.portal-filtros {
  background: var(--vv-blanco);
  border-radius: .75rem;
  padding: 1.25rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  position: sticky;
  top: 80px;
}
.portal-filtros-titulo { font-weight: 700; color: var(--vv-azul); margin-bottom: 1rem; font-size: .93rem; }
.portal-filtros-grupo  { margin-bottom: 1.1rem; }
.portal-filtros-label  { font-size: .8rem; font-weight: 600; color: #495057; margin-bottom: .35rem; display: block; }
.portal-filtros-select,
.portal-filtros-input {
  width: 100%; font-size: .82rem;
  border: 1px solid var(--vv-gris-borde);
  border-radius: .45rem;
  padding: .4rem .65rem;
  color: var(--vv-texto);
  background: var(--vv-blanco);
}
.portal-filtros-select:focus,
.portal-filtros-input:focus  { outline: none; border-color: var(--vv-azul-light); box-shadow: 0 0 0 3px rgba(45,93,166,.15); }
.portal-filtros-fila-precio  { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.btn-portal-filtrar {
  width: 100%; background: var(--vv-azul); color: var(--vv-blanco);
  font-weight: 700; font-size: .87rem; padding: .6rem;
  border: none; border-radius: .45rem; cursor: pointer;
  transition: background .15s; margin-top: .5rem;
}
.btn-portal-filtrar:hover { background: var(--vv-azul-light); }
.btn-portal-limpiar {
  display: block; text-align: center; font-size: .76rem;
  color: #6c757d; margin-top: .5rem; text-decoration: none;
}
.btn-portal-limpiar:hover { color: #dc3545; }

.portal-resultados-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1rem; gap: 1rem; flex-wrap: wrap;
}
.portal-resultados-count { font-size: .85rem; color: #6c757d; }
.portal-leyenda-tc { font-size: .76rem; color: #6c757d; margin-top: 1.5rem; }

/* ── Detalle del destino ────────────────────────────────────────────────── */
.portal-detalle-header {
  background: var(--vv-azul);
  padding: 1rem 1.5rem;
}
.portal-detalle-header-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: .6rem; font-size: .83rem;
}
.portal-breadcrumb a { color: rgba(255,255,255,.65); text-decoration: none; }
.portal-breadcrumb a:hover { color: var(--vv-dorado); }
.portal-breadcrumb-sep  { color: rgba(255,255,255,.35); }
.portal-breadcrumb-actual { color: var(--vv-blanco); font-weight: 600; }

.portal-detalle-body { max-width: 1200px; margin: 0 auto; padding: 2rem 1.5rem; }
.portal-detalle-layout { display: grid; grid-template-columns: 1fr 340px; gap: 2rem; align-items: start; }
@media (max-width: 991.98px) { .portal-detalle-layout { grid-template-columns: 1fr; } }

/* Sidebar público */
.portal-sidebar {
  background: var(--vv-blanco);
  border-radius: .75rem;
  box-shadow: 0 4px 20px rgba(0,0,0,.1);
  padding: 1.5rem;
  position: sticky;
  top: 80px;
}
.portal-sidebar-precio { font-size: 2rem; font-weight: 800; color: var(--vv-azul); line-height: 1.1; }
.portal-sidebar-precio-por { font-size: .78rem; font-weight: 400; color: #6c757d; }
.portal-sidebar-millas { color: #198754; font-size: .93rem; font-weight: 600; margin: .4rem 0 .2rem; }
.portal-sidebar-detalles { font-size: .86rem; }
.portal-sidebar-detalle-item {
  display: flex; align-items: flex-start; gap: .55rem;
  padding: .35rem 0; border-bottom: 1px solid #f0f0f0;
}
.portal-sidebar-detalle-item:last-child { border-bottom: none; }

.btn-portal-reservar {
  width: 100%;
  background: var(--vv-dorado);
  color: var(--vv-azul) !important;
  font-size: .97rem; font-weight: 700;
  padding: .85rem; border-radius: .5rem;
  border: none; cursor: not-allowed; opacity: .75;
  margin-top: 1rem; text-align: center;
  display: block; text-decoration: none;
  user-select: none;
}
.portal-reservar-aviso { font-size: .76rem; text-align: center; color: #6c757d; margin-top: .4rem; }

/* ── Info institucional ─────────────────────────────────────────────────── */
.portal-institucional {
  background: var(--vv-azul);
  color: var(--vv-blanco);
  padding: 3rem 1.5rem;
  text-align: center;
}
.portal-institucional-inner { max-width: 900px; margin: 0 auto; }
.portal-institucional-titulo { font-size: 1.55rem; font-weight: 800; margin-bottom: 1rem; }
.portal-institucional-texto  { color: rgba(255,255,255,.78); line-height: 1.7; margin-bottom: 1.5rem; }
.portal-institucional-links  { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.portal-institucional-link {
  background: rgba(255,255,255,.11);
  color: var(--vv-blanco) !important;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: .5rem;
  padding: .6rem 1.5rem;
  text-decoration: none; font-weight: 600; font-size: .88rem;
  transition: background .15s;
  display: inline-block;
}
.portal-institucional-link:hover { background: rgba(255,255,255,.22); }
.portal-institucional-link.dorado {
  background: var(--vv-dorado); color: var(--vv-azul) !important;
  border-color: var(--vv-dorado);
}
.portal-institucional-link.dorado:hover { background: var(--vv-dorado-dark); }

/* ── 404 pública ────────────────────────────────────────────────────────── */
.public-404-wrapper {
  display: flex; align-items: center; justify-content: center;
  min-height: 55vh; padding: 3rem 1.5rem;
}
.public-404-card { text-align: center; max-width: 500px; }
.public-404-numero { font-size: 6rem; font-weight: 800; color: var(--vv-azul); line-height: 1; }
.public-404-titulo { font-size: 1.5rem; font-weight: 700; margin: .5rem 0 1rem; }

/* ── Responsive compartido ──────────────────────────────────────────────── */
@media (max-width: 576px) {
  .portal-hero { padding: 2rem 1.25rem 1.75rem; }
  .portal-catalogo-titulo { font-size: 1.5rem; }
  .portal-seccion { padding: 2rem 1rem; }
}

/* ══════════════════════════════════════════════════════════════════════════ */
/* ETAPA 9 — Solicitudes: formulario público, confirmación, admin            */
/* ══════════════════════════════════════════════════════════════════════════ */

/* ── Botón "Solicitar información" en sidebar público ─────────────────── */
.btn-portal-solicitar {
  display: block;
  width: 100%;
  background: var(--vv-azul);
  color: #fff !important;
  text-align: center;
  padding: .9rem 1rem;
  border-radius: .65rem;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: background .18s, transform .12s;
  margin-bottom: .5rem;
}
.btn-portal-solicitar:hover {
  background: var(--vv-azul-dark, #0f2a5a);
  transform: translateY(-1px);
}

/* ── Botón WhatsApp ─────────────────────────────────────────────────── */
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: #25d366;
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
  font-size: .95rem;
  padding: .8rem 1.6rem;
  border-radius: 2rem;
  transition: background .18s, transform .12s;
}
.btn-whatsapp:hover { background: #1ebe59; transform: translateY(-1px); }

/* ── Formulario público de solicitud ──────────────────────────────────── */
.sol-formulario-wrapper {
  max-width: 680px;
  margin: 2rem auto;
  padding: 0 1rem 3rem;
}
.sol-formulario-card {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 1rem;
  padding: 2rem 2.25rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.sol-formulario-encabezado { margin-bottom: 1.5rem; }
.sol-formulario-titulo { font-size: 1.6rem; font-weight: 800; color: var(--vv-azul); margin: 0 0 .25rem; }
.sol-formulario-destino { font-size: 1rem; color: #495057; font-weight: 600; margin: 0 0 .4rem; }

.sol-campo-grupo { margin-bottom: 1.15rem; }
.sol-campo-label {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  color: #343a40;
  margin-bottom: .35rem;
}
.sol-obligatorio { color: #dc3545; }
.sol-campo-input,
.sol-campo-select,
.sol-campo-textarea {
  width: 100%;
  padding: .55rem .85rem;
  border: 1.5px solid #ced4da;
  border-radius: .5rem;
  font-size: .925rem;
  color: #212529;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
  box-sizing: border-box;
}
.sol-campo-input:focus,
.sol-campo-select:focus,
.sol-campo-textarea:focus {
  outline: none;
  border-color: var(--vv-azul);
  box-shadow: 0 0 0 .2rem rgba(18,55,120,.15);
}
.sol-campo-input.is-invalid,
.sol-campo-select.is-invalid,
.sol-campo-textarea.is-invalid { border-color: #dc3545; }
.sol-campo-textarea { resize: vertical; min-height: 90px; }
.sol-campo-error { color: #dc3545; font-size: .8rem; margin-top: .25rem; }
.sol-campo-ayuda { color: #6c757d; font-size: .78rem; margin-top: .2rem; }

.sol-campo-fila-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 480px) { .sol-campo-fila-2 { grid-template-columns: 1fr; } }

.sol-campo-check-grupo { display: flex; flex-direction: column; gap: .3rem; }
.sol-campo-check-label {
  display: flex;
  gap: .55rem;
  font-size: .875rem;
  color: #343a40;
  cursor: pointer;
  align-items: flex-start;
}
.sol-campo-check-label input[type="checkbox"] { margin-top: .2rem; flex-shrink: 0; }
.sol-campo-check-error .sol-campo-check-label { color: #dc3545; }

.sol-btn-enviar {
  display: block;
  width: 100%;
  padding: .9rem;
  background: var(--vv-azul);
  color: #fff;
  border: none;
  border-radius: .65rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: .5rem;
  transition: background .18s, transform .12s;
}
.sol-btn-enviar:hover { background: var(--vv-azul-dark, #0f2a5a); transform: translateY(-1px); }

.sol-aviso-final {
  text-align: center;
  font-size: .77rem;
  color: #6c757d;
  margin-top: .75rem;
  margin-bottom: 0;
}

/* ── Confirmación pública ─────────────────────────────────────────────── */
.sol-confirmacion-wrapper {
  max-width: 640px;
  margin: 2.5rem auto;
  padding: 0 1rem 3rem;
}
.sol-confirmacion-card {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 1rem;
  padding: 2.5rem 2.25rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  text-align: center;
}
.sol-confirmacion-icono { font-size: 3rem; margin-bottom: .75rem; }
.sol-confirmacion-titulo {
  font-size: 1.75rem; font-weight: 800;
  color: var(--vv-azul); margin: 0 0 .5rem;
}
.sol-confirmacion-bajada { font-size: 1rem; color: #495057; margin-bottom: 1.5rem; }

.sol-resumen {
  background: #f8f9fa;
  border-radius: .75rem;
  padding: 1.25rem 1.5rem;
  text-align: left;
  margin-bottom: 1.5rem;
}
.sol-resumen-titulo {
  font-size: .8rem; text-transform: uppercase;
  letter-spacing: .06em; color: #6c757d;
  font-weight: 700; margin-bottom: .75rem;
}
.sol-resumen-fila {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .35rem 0;
  border-bottom: 1px solid #e9ecef;
  font-size: .875rem;
}
.sol-resumen-fila:last-child { border-bottom: none; }
.sol-resumen-label { color: #6c757d; }
.sol-resumen-valor { font-weight: 600; color: #212529; text-align: right; }

.sol-confirmacion-aviso {
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: .5rem;
  padding: .9rem 1.2rem;
  font-size: .82rem;
  color: #6d4c00;
  text-align: left;
  margin-bottom: 1.5rem;
}
.sol-confirmacion-aviso p { margin: 0 0 .4rem; }
.sol-confirmacion-aviso p:last-child { margin: 0; }

.sol-confirmacion-footer { margin-top: 1.5rem; font-size: .84rem; color: #6c757d; }
.sol-confirmacion-footer a { color: var(--vv-azul); text-decoration: none; }
.sol-confirmacion-footer a:hover { text-decoration: underline; }

/* ── Admin: resumen de estados ────────────────────────────────────────── */
.sol-admin-resumen {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.25rem;
}
.sol-admin-resumen-item {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem .8rem;
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: .5rem;
  text-decoration: none;
  transition: background .12s;
}
.sol-admin-resumen-item:hover { background: #f8f9fa; }
.sol-admin-resumen-count { font-size: 1.1rem; font-weight: 800; color: #212529; }

/* ── Admin: filtros ───────────────────────────────────────────────────── */
.sol-admin-filtros-card {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: .65rem;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
}
.sol-admin-filtros-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: .75rem;
  margin-bottom: .75rem;
}
.sol-admin-filtros-acciones { display: flex; gap: .5rem; }

/* ── Admin: tabla ─────────────────────────────────────────────────────── */
.sol-admin-tabla-wrap {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: .65rem;
  padding: 1rem;
}
.sol-admin-tabla-header { margin-bottom: .5rem; }
.sol-admin-tabla { font-size: .84rem; }
.sol-admin-tabla thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: #6c757d; }

/* ── Admin: show layout ───────────────────────────────────────────────── */
.sol-admin-show-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 900px) { .sol-admin-show-layout { grid-template-columns: 1fr; } }

.sol-admin-show-card {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: .65rem;
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.sol-admin-show-card-titulo {
  font-size: .78rem; text-transform: uppercase;
  letter-spacing: .05em; color: #6c757d;
  font-weight: 700; margin-bottom: .85rem;
  border-bottom: 1px solid #f0f0f0; padding-bottom: .5rem;
}
.sol-admin-show-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem 1rem;
}
@media (max-width: 600px) { .sol-admin-show-grid { grid-template-columns: 1fr; } }
.sol-admin-show-campo { display: flex; flex-direction: column; gap: .15rem; font-size: .875rem; }
.sol-admin-show-campo-full { grid-column: 1 / -1; }
.sol-admin-show-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: #6c757d; }

/* ── Admin: notas ─────────────────────────────────────────────────────── */
.sol-admin-notas-lista { display: flex; flex-direction: column; gap: .75rem; margin-bottom: 1rem; }
.sol-admin-nota-item {
  background: #f8f9fa;
  border-left: 3px solid var(--vv-azul);
  border-radius: 0 .5rem .5rem 0;
  padding: .65rem .9rem;
}
.sol-admin-nota-header {
  display: flex; justify-content: space-between;
  align-items: baseline; gap: .5rem;
  margin-bottom: .3rem;
}
.sol-admin-nota-autor { font-weight: 600; font-size: .82rem; color: #343a40; }
.sol-admin-nota-fecha { font-size: .74rem; color: #6c757d; white-space: nowrap; }
.sol-admin-nota-texto { font-size: .84rem; color: #495057; white-space: pre-wrap; }

/* ── Dashboard: contadores de solicitudes ──────────────────────────────── */
.dashboard-sol-contadores {
  display: flex; gap: 1rem; flex-wrap: wrap;
  margin-bottom: 1.75rem;
}
.dashboard-sol-counter {
  flex: 1; min-width: 150px;
  display: flex; flex-direction: column; align-items: center;
  padding: 1.25rem 1rem;
  border-radius: .75rem;
  text-decoration: none;
  border: 1px solid #dee2e6;
  background: #fff;
  transition: box-shadow .15s, transform .12s;
}
.dashboard-sol-counter:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); transform: translateY(-2px); }
.dashboard-sol-num { font-size: 2.25rem; font-weight: 900; line-height: 1; }
.dashboard-sol-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: #6c757d; margin-top: .3rem; text-align: center; }
.dashboard-sol-counter--nueva .dashboard-sol-num { color: #0d6efd; }
.dashboard-sol-counter--seguimiento .dashboard-sol-num { color: #6c757d; }
.dashboard-sol-counter--total .dashboard-sol-num { color: var(--vv-azul); }

/* ── Responsive formulario en móvil ────────────────────────────────────── */
@media (max-width: 576px) {
  .sol-formulario-card { padding: 1.5rem 1.25rem; }
  .sol-confirmacion-card { padding: 1.75rem 1.25rem; }
}

/* ══════════════════════════════════════════════════════════════════════════
   ETAPA 10: Configuración del sitio (admin) y página de contacto (pública)
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Admin: formulario de configuración ──────────────────────────────────── */
.conf-seccion {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: .75rem;
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.5rem;
}
.conf-seccion-titulo {
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 700;
  color: #495057;
  margin-bottom: 1.1rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid #f0f0f0;
}
.conf-campo-grupo { margin-bottom: 1rem; }
.conf-label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: #343a40;
  margin-bottom: .3rem;
}
.conf-input,
.conf-textarea {
  width: 100%;
  padding: .5rem .75rem;
  border: 1px solid #ced4da;
  border-radius: .45rem;
  font-size: .9rem;
  color: #212529;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.conf-input:focus,
.conf-textarea:focus {
  border-color: var(--vv-azul);
  box-shadow: 0 0 0 .18rem rgba(14, 60, 110, .15);
  outline: none;
}
.conf-textarea { resize: vertical; min-height: 72px; }
.conf-ayuda { font-size: .76rem; color: #6c757d; margin-top: .2rem; }
.conf-campo-fila-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 600px) {
  .conf-campo-fila-2 { grid-template-columns: 1fr; }
}
.conf-acciones {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: .75rem 0 1.5rem;
}

/* ── Pública: página de contacto ────────────────────────────────────────── */
.contacto-hero {
  background: linear-gradient(135deg, var(--vv-azul) 0%, var(--vv-azul-oscuro, #07284d) 100%);
  color: #fff;
  padding: 3rem 1.5rem;
}
.contacto-hero-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.contacto-titulo {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  margin-bottom: .5rem;
  letter-spacing: -.01em;
}
.contacto-subtitulo {
  font-size: 1.05rem;
  opacity: .85;
  margin: 0;
}

.contacto-seccion {
  max-width: 1100px;
  margin: 2.5rem auto;
  padding: 0 1.5rem;
}
.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 768px) {
  .contacto-grid { grid-template-columns: 1fr; }
}

.contacto-datos-card {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: .85rem;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.contacto-datos-titulo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--vv-azul);
  margin-bottom: 1.5rem;
  padding-bottom: .75rem;
  border-bottom: 2px solid var(--vv-azul-claro, #d4e5f7);
}

.contacto-dato-item {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  margin-bottom: 1.1rem;
}
.contacto-dato-icono {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: .1rem;
}
.contacto-dato-label {
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 700;
  color: #6c757d;
  margin-bottom: .15rem;
}
.contacto-dato-valor { font-size: .95rem; color: #212529; }
.contacto-enlace { color: var(--vv-azul); text-decoration: none; }
.contacto-enlace:hover { text-decoration: underline; }

.contacto-redes { margin-top: 1.25rem; }
.contacto-redes-links { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .5rem; }
.contacto-red-btn {
  display: inline-block;
  padding: .35rem .85rem;
  border: 1px solid #ced4da;
  border-radius: 2rem;
  font-size: .82rem;
  color: #343a40;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.contacto-red-btn:hover { background: var(--vv-azul); color: #fff; border-color: var(--vv-azul); }

.contacto-mapa-col { position: sticky; top: 1.5rem; }
.contacto-mapa-wrapper {
  border-radius: .85rem;
  overflow: hidden;
  border: 1px solid #dee2e6;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.contacto-mapa-iframe {
  width: 100%;
  height: 420px;
  display: block;
  border: none;
}
.contacto-mapa-placeholder {
  background: #f8f9fa;
  border: 2px dashed #dee2e6;
  border-radius: .85rem;
  padding: 3rem 2rem;
  text-align: center;
}
.contacto-coop { padding-top: 1rem; border-top: 1px solid #f0f0f0; }

/* ══════════════════════════════════════════════════════════════════════════
   ETAPA 10.1: Imagen corporativa, header con logos, footer, convertidor
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Variables adicionales ───────────────────────────────────────────────── */
:root {
  --vv-dorado:          #c8963b;
  --vv-dorado-claro:    #f0c56e;
  --vv-azul-oscuro:     #07284d;
}

/* ── Header: logo Visa Viajes ────────────────────────────────────────────── */
.public-header-logo {
  display: flex; align-items: center; text-decoration: none;
  flex-shrink: 0;
}
.public-header-logo-img {
  width: 220px; height: auto; object-fit: contain;
  border-radius: .3rem;
}
.public-header-logo-texto {
  display: flex; align-items: center; gap: .3rem;
  font-size: 1.5rem; font-weight: 900; color: #fff;
  letter-spacing: -.02em;
}

/* ── Header: grupo derecho (sep + logos + TC, escritorio ≥768px) ─────────── */
.public-header-right {
  display: flex; align-items: center; gap: 1rem;
  margin-left: auto; flex-shrink: 0;
}
@media (max-width: 767.98px) {
  .public-header-right { display: none; }
}

/* ── Header: separador vertical ─────────────────────────────────────────── */
.public-header-nav-sep {
  width: 1px; height: 90px;
  background: rgba(255,255,255,.35);
  flex-shrink: 0;
  margin: 0 6px;
}

/* ── Header: logos institucionales ──────────────────────────────────────── */
.public-header-marcas {
  display: flex; align-items: center; gap: 1rem;
  flex-shrink: 0;
}
.public-header-marca-link {
  display: flex; align-items: center;
  text-decoration: none; transition: opacity .15s;
}
.public-header-marca-link:hover { opacity: .8; }
.public-header-marca-img {
  width: 96px; height: 96px; object-fit: contain;
  border-radius: 12px; background: #fff; padding: 6px 8px;
  flex-shrink: 0;
}
.public-header-marca-sep {
  width: 1px; height: 80px; background: rgba(255,255,255,.2);
}
.public-header-respaldo {
  font-size: 1.05rem; font-weight: 500;
  color: rgba(255,255,255,.82);
  line-height: 1.4; white-space: nowrap;
}
.public-header-respaldo strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
}

/* ── Header: tarjeta tipo de cambio ─────────────────────────────────────── */
.public-header-tc {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 190px;
  background: rgba(255,255,255,.03);
  border: 2px solid rgba(255,255,255,.75);
  border-radius: 14px;
  padding: 14px 18px;
  flex-shrink: 0;
}
.public-header-tc-etiqueta {
  display: block;
  font-size: 1.3rem;   /* 20–21px */
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  margin-bottom: .1rem;
}
.public-header-tc-texto {
  display: block;
  font-size: 1.05rem;  /* 16–17px */
  color: rgba(255,255,255,.9);
  margin-bottom: .1rem;
}
.public-header-tc-valor {
  display: block;
  font-size: 2rem;     /* 32px */
  font-weight: 800;
  color: var(--vv-dorado);
  line-height: 1.1;
  white-space: nowrap;
}

/* ── Enlace activo y símbolo millas ──────────────────────────────────────── */
.nav-link-activo {
  color: var(--vv-dorado) !important;
  font-weight: 700 !important;
  border-bottom-color: var(--vv-dorado) !important;
}
.nav-millas-sym { font-size: .82em; opacity: .85; }

/* ── Footer: logos ───────────────────────────────────────────────────────── */
.public-footer-logos {
  display: flex; align-items: center; justify-content: center;
  gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.public-footer-logo-link {
  display: flex; align-items: center;
  text-decoration: none; transition: opacity .15s;
}
.public-footer-logo-link:hover { opacity: .8; }
.public-footer-logo-img {
  height: 44px; width: auto; object-fit: contain;
  border-radius: .3rem; background: rgba(255,255,255,.1);
  padding: 4px;
}

/* ── Footer: texto institucional ─────────────────────────────────────────── */
.public-footer-institucional {
  text-align: center; margin-bottom: 1.75rem;
}
.public-footer-operado {
  font-size: .75rem; text-transform: uppercase; letter-spacing: .1em;
  color: rgba(255,255,255,.5); margin: 0;
}
.public-footer-nombre-coop {
  font-size: 1.05rem; color: #fff; margin: .15rem 0;
}
.public-footer-razon-social {
  font-size: .78rem; color: rgba(255,255,255,.6); margin: 0;
}

/* ── Hero: beneficios ────────────────────────────────────────────────────── */
.portal-hero-beneficios {
  display: flex; gap: 1.25rem; justify-content: center; flex-wrap: wrap;
  margin: .75rem 0 1rem;
}
.portal-hero-beneficio {
  display: flex; align-items: center; gap: .5rem;
  font-size: 1rem; color: rgba(255,255,255,.9);
  font-weight: 500;
}
.portal-hero-check {
  color: var(--vv-dorado); font-size: 1rem; font-weight: 700;
}

/* ── Tarjeta: banda CR Millas ────────────────────────────────────────────── */
.portal-card-banda-millas {
  background: linear-gradient(90deg, #f8f3e8 0%, #fdf7ec 100%);
  border-top: 1px solid #e8d9b8;
  padding: .55rem .85rem;
  font-size: .76rem; color: #7a5b1a;
  display: flex; align-items: center; gap: .4rem;
  border-radius: 0 0 .75rem .75rem;
}
.portal-card-banda-millas-sym {
  font-size: .9rem; color: var(--vv-dorado); flex-shrink: 0;
}

/* ── Sidebar: botón "Convertir otro monto" ───────────────────────────────── */
.btn-portal-convertir-otro {
  display: block; width: 100%;
  text-align: center;
  margin-top: .65rem;
  padding: .55rem 1rem;
  background: transparent;
  border: 1.5px solid var(--vv-dorado);
  border-radius: .5rem;
  color: var(--vv-dorado);
  font-size: .84rem; font-weight: 600;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.btn-portal-convertir-otro:hover {
  background: var(--vv-dorado);
  color: #fff;
}

/* ══════════════════════════════════════════════════════════════════════════
   CONVERTIDOR PÚBLICO (/convertidor)
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Hero ────────────────────────────────────────────────────────────────── */
.conv-hero {
  background: linear-gradient(135deg, var(--vv-azul) 0%, var(--vv-azul-oscuro) 100%);
  color: #fff; padding: 2.5rem 1.5rem 2rem;
}
.conv-hero-inner { max-width: 900px; margin: 0 auto; text-align: center; }
.conv-hero-titulo {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 900;
  letter-spacing: -.015em; margin-bottom: .5rem;
}
.conv-millas-sym { color: var(--vv-dorado); font-style: normal; }
.conv-hero-sub { font-size: 1rem; opacity: .8; margin: 0; }

/* ── Layout ──────────────────────────────────────────────────────────────── */
.conv-seccion { max-width: 1050px; margin: 2.5rem auto; padding: 0 1.5rem; }
.conv-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start;
}
@media (max-width: 768px) {
  .conv-layout { grid-template-columns: 1fr; }
}

/* ── Formulario ──────────────────────────────────────────────────────────── */
.conv-form-card {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: .85rem;
  padding: 2rem;
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
}
.conv-form-titulo { font-size: 1.1rem; font-weight: 700; color: var(--vv-azul); margin-bottom: .35rem; }
.conv-form-subtitulo { font-size: .82rem; color: #6c757d; margin-bottom: 1.25rem; }
.conv-campo-grupo { margin-bottom: 1.25rem; }
.conv-label { display: block; font-size: .84rem; font-weight: 600; color: #343a40; margin-bottom: .35rem; }
.conv-input-wrap { display: flex; align-items: center; gap: 0; }
.conv-input-prefix {
  background: #f8f9fa; border: 1px solid #ced4da; border-right: 0;
  padding: .55rem .75rem; border-radius: .45rem 0 0 .45rem;
  font-size: .9rem; color: #495057; font-weight: 600; flex-shrink: 0;
}
.conv-input {
  flex: 1; padding: .55rem .85rem;
  border: 1px solid #ced4da; border-radius: 0 .45rem .45rem 0;
  font-size: 1.05rem; color: #212529;
  transition: border-color .15s, box-shadow .15s;
}
.conv-input:focus {
  border-color: var(--vv-azul); outline: none;
  box-shadow: 0 0 0 .18rem rgba(14,60,110,.15);
}
.conv-input--error { border-color: #dc3545; }
.conv-input-hint { font-size: .75rem; color: #6c757d; margin-top: .25rem; }
.conv-error {
  background: #fff5f5; border: 1px solid #fca5a5; border-radius: .45rem;
  padding: .65rem .9rem; font-size: .85rem; color: #b91c1c;
  margin-bottom: 1rem;
}
.conv-btn-convertir {
  width: 100%; padding: .75rem 1.5rem;
  background: var(--vv-azul); color: #fff;
  border: none; border-radius: .5rem;
  font-size: 1rem; font-weight: 700; cursor: pointer;
  transition: background .15s, transform .1s;
}
.conv-btn-convertir:hover {
  background: var(--vv-azul-oscuro); transform: translateY(-1px);
}
.conv-aviso { margin-top: 1.25rem; font-size: .77rem; color: #6c757d; }
.conv-aviso a { color: var(--vv-azul); }

/* ── Resultado ───────────────────────────────────────────────────────────── */
.conv-result-card {
  background: #fff; border: 1px solid #dee2e6;
  border-radius: .85rem; padding: 2rem;
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
  position: sticky; top: 80px;
}
.conv-result-card--vacio { border-style: dashed; background: #fafafa; }

.conv-result-placeholder { text-align: center; padding: 2rem 1rem; }
.conv-result-sym-grande {
  font-size: 4rem; color: var(--vv-dorado); opacity: .35;
  font-weight: 900; margin-bottom: 1rem;
}
.conv-result-placeholder-texto { font-size: .88rem; color: #9ca3af; }

.conv-result-precio-ingresado {
  font-size: .8rem; color: #6c757d; margin-bottom: .75rem; text-align: center;
}
.conv-result-millas-bloque {
  text-align: center; padding: 1.5rem 1rem;
  background: linear-gradient(135deg, #f8f3e8, #fdf7ec);
  border-radius: .65rem; margin-bottom: 1rem;
}
.conv-result-sym {
  font-size: 2.5rem; color: var(--vv-dorado); font-weight: 900;
  line-height: 1; margin-bottom: .25rem;
}
.conv-result-millas-num {
  font-size: 2.6rem; font-weight: 900;
  color: var(--vv-azul); letter-spacing: -.02em; line-height: 1.1;
}
.conv-result-millas-label {
  font-size: .85rem; color: #6c757d; font-weight: 600; margin-top: .2rem;
}
.conv-result-meta {
  display: flex; flex-direction: column; gap: .5rem; margin-bottom: .75rem;
}
.conv-result-meta-item {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: .5rem; font-size: .82rem; padding: .3rem 0;
  border-bottom: 1px solid #f0f0f0;
}
.conv-result-meta-label { color: #6c757d; flex-shrink: 0; }
.conv-result-meta-valor { color: #212529; font-weight: 600; text-align: right; }
.conv-result-disclaimer {
  font-size: .72rem; color: #9ca3af; text-align: center; margin-bottom: .75rem;
  font-style: italic;
}
.conv-result-acciones {
  display: flex; flex-direction: column; gap: .6rem; margin-top: 1rem;
}
.conv-btn-destinos {
  display: block; text-align: center; padding: .7rem 1rem;
  background: var(--vv-azul); color: #fff; border-radius: .45rem;
  text-decoration: none; font-weight: 700; font-size: .9rem;
  transition: background .15s;
}
.conv-btn-destinos:hover { background: var(--vv-azul-oscuro); color: #fff; }
.conv-btn-contacto {
  display: block; text-align: center; padding: .65rem 1rem;
  background: transparent; color: var(--vv-azul);
  border: 1.5px solid var(--vv-azul); border-radius: .45rem;
  text-decoration: none; font-weight: 600; font-size: .9rem;
  transition: background .15s, color .15s;
}
.conv-btn-contacto:hover { background: var(--vv-azul); color: #fff; }

/* ── Nota institucional ──────────────────────────────────────────────────── */
.conv-nota-institucional {
  background: linear-gradient(135deg, var(--vv-azul), var(--vv-azul-oscuro));
  color: rgba(255,255,255,.85); padding: 2rem 1.5rem; margin-top: 2rem;
}
.conv-nota-inner {
  max-width: 800px; margin: 0 auto; text-align: center;
}
.conv-nota-inner p { margin-bottom: .75rem; font-size: .92rem; }
.conv-nota-inner strong { color: #fff; }
.conv-nota-cta {
  display: inline-block; padding: .55rem 1.5rem;
  background: var(--vv-dorado); color: #fff; border-radius: 2rem;
  font-weight: 700; font-size: .88rem; text-decoration: none;
  transition: background .15s;
}
.conv-nota-cta:hover { background: var(--vv-dorado-claro); color: #333; }

/* ══════════════════════════════════════════════════════════════════════════
   ETAPA 10.3 — Planificador de ahorro CR Millas
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Sección ─────────────────────────────────────────────────────────────── */
.plan-seccion {
  background: var(--vv-gris-fondo);
  border-top: 3px solid var(--vv-azul);
  padding: 3rem 0 3.5rem;
}
.plan-contenedor {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Encabezado de sección ───────────────────────────────────────────────── */
.plan-header {
  margin-bottom: 1.75rem;
}
.plan-titulo {
  font-size: clamp(1.875rem, 3.5vw, 2.125rem); /* 30–34px */
  font-weight: 700;
  color: var(--vv-azul);
  margin-bottom: .5rem;
}
.plan-subtitulo {
  font-size: clamp(1rem, 1.5vw, 1.125rem); /* 16–18px */
  color: #4a4a5a;
  line-height: 1.55;
  max-width: 800px;
}

/* ── Tarjeta principal contenedora ──────────────────────────────────────── */
.plan-tarjeta-principal {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 8px 28px rgba(15, 39, 78, 0.10);
  border: 1px solid rgba(25, 63, 112, 0.10);
  padding: 28px 32px 32px;
}

/* ── Layout 2 columnas ───────────────────────────────────────────────────── */
.plan-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(420px, 1.15fr);
  gap: 32px;
  align-items: start;
}
@media (max-width: 991.98px) {
  .plan-layout { grid-template-columns: 1fr; gap: 24px; }
}

/* ── Tarjeta interna del formulario ──────────────────────────────────────── */
.plan-form-card {
  background: #f8fafc;
  border: 1px solid #dfe7f0;
  border-radius: 14px;
  padding: 24px;
}
.plan-form-titulo {
  font-size: 1.25rem; /* 20px */
  font-weight: 700;
  color: var(--vv-azul);
  margin-bottom: 18px;
}

/* ── Campos del formulario planificador ──────────────────────────────────── */
.plan-campo-grupo { margin-bottom: 18px; }
.plan-label {
  font-size: .9rem;
  font-weight: 600;
  color: #343a40;
  margin-bottom: .4rem;
}
.plan-input-wrap { display: flex; align-items: stretch; }
.plan-input-prefix {
  background: #eef1f5;
  border: 1px solid #ced4da;
  border-right: 0;
  padding: 0 .85rem;
  border-radius: 10px 0 0 10px;
  font-size: 1rem;
  color: #495057;
  font-weight: 600;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.plan-input {
  min-height: 50px;
  border-radius: 0 10px 10px 0 !important;
  font-size: 1rem !important;
  padding: .6rem .9rem !important;
}
.plan-input--standalone {
  width: 100%;
  display: block;
  min-height: 50px;
  border: 1px solid #ced4da;
  border-radius: 10px !important;
  font-size: 1rem !important;
  padding: .6rem .9rem !important;
  color: #212529;
  transition: border-color .15s, box-shadow .15s;
  background: #fff;
}
.plan-input--standalone:focus {
  border-color: var(--vv-azul);
  outline: none;
  box-shadow: 0 0 0 .18rem rgba(14,60,110,.15);
}

/* ── Error por campo ─────────────────────────────────────────────────────── */
.plan-field-error {
  color: #c0392b;
  font-size: .82rem;
  margin-top: .35rem;
}

/* ── Botón principal del planificador ────────────────────────────────────── */
.plan-btn-submit {
  width: 100%;
  min-height: 52px;
  padding: .75rem 1.5rem;
  margin-top: 4px;
  background: var(--vv-azul);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1.0625rem; /* 17px */
  font-weight: 700;
  cursor: pointer;
  transition: background .15s, transform .1s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
}
.plan-btn-submit:hover {
  background: var(--vv-azul-oscuro);
  transform: translateY(-1px);
}

/* ── Estado vacío del resultado ──────────────────────────────────────────── */
.plan-result-empty {
  background: #fff;
  border-radius: 14px;
  padding: 3rem 1.5rem;
  text-align: center;
  color: #6c757d;
  border: 2px dashed #dfe7f0;
}
.plan-result-empty-icon { font-size: 2.75rem; display: block; margin-bottom: .85rem; }

/* ── Tarjeta resultado del plan ──────────────────────────────────────────── */
.plan-card {
  background: #fff;
  border-radius: 14px;
  padding: 24px 28px;
  border: 1px solid #dfe7f0;
  box-shadow: 0 2px 10px rgba(15,39,78,.06);
}
.plan-card-titulo {
  font-size: clamp(1.5rem, 2.5vw, 1.75rem); /* 24–28px */
  font-weight: 700;
  color: var(--vv-azul);
  margin-bottom: 1.25rem;
  padding-bottom: .75rem;
  border-bottom: 2px solid var(--vv-dorado);
}

/* ── Bloques temáticos (mini tarjetas) ───────────────────────────────────── */
.plan-bloque {
  background: #f8fafc;
  border-radius: 12px;
  padding: 18px;
  border: 1px solid #e3eaf2;
  margin-bottom: 16px;
}
.plan-bloque:last-of-type { margin-bottom: 0; }
.plan-bloque-titulo {
  font-size: .825rem;
  font-weight: 700;
  color: #5a6478;
  margin-bottom: .75rem;
}

/* ── Hero: total CR Millas ───────────────────────────────────────────────── */
.plan-millas-hero {
  margin-bottom: 12px;
}
.plan-millas-hero-label {
  display: block;
  font-size: .85rem;
  color: #6c757d;
  margin-bottom: .25rem;
}
.plan-millas-hero-display {
  display: flex;
  align-items: baseline;
  gap: .4rem;
  flex-wrap: wrap;
}
.plan-millas-hero-cifra {
  font-size: clamp(1.75rem, 4vw, 2.125rem); /* 28–34px */
  font-weight: 800;
  color: var(--vv-dorado);
  line-height: 1.1;
}
.plan-millas-hero-unit {
  font-size: 1rem;
  font-weight: 700;
  color: var(--vv-azul);
}

/* ── Filas de datos ──────────────────────────────────────────────────────── */
.plan-fila {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .75rem;
  padding: .3rem 0;
}
.plan-fila--destacada {
  background: rgba(255,255,255,.75);
  padding: .45rem .65rem;
  border-radius: .4rem;
  margin: .25rem 0;
  border: 1px solid rgba(25,63,112,.06);
}
.plan-fila--semanal {
  border-color: rgba(25,63,112,.12);
}
.plan-fila-label {
  font-size: .875rem; /* 14px */
  color: #6c757d;
  flex-shrink: 0;
}
.plan-fila-valor {
  font-size: 1.0625rem; /* 17px */
  font-weight: 700;
  color: var(--vv-azul);
  text-align: right;
  word-break: break-word;
}
.plan-fila-millas { color: var(--vv-azul); }
.plan-fila-colones { color: #1a6e2e; }

/* ── Nota informativa (callout) ──────────────────────────────────────────── */
.plan-nota-callout {
  background: #eef5ff;
  border-left: 4px solid var(--vv-azul);
  border-radius: 8px;
  padding: 12px 14px;
  margin-top: 16px;
}
.plan-nota-callout p {
  font-size: .825rem; /* 13px */
  color: #4a5568;
  line-height: 1.55;
  margin: 0 0 .2rem;
}
.plan-nota-callout p:last-child { margin-bottom: 0; }
.plan-nota-meta { color: #6c757d !important; font-size: .78rem !important; }

/* ── Botones de acción debajo del resultado ──────────────────────────────── */
.plan-acciones {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.plan-btn-destinos {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-width: 180px;
  padding: 12px 22px;
  background: var(--vv-azul);
  color: #fff;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: background .15s;
}
.plan-btn-destinos:hover { background: var(--vv-azul-oscuro); color: #fff; }
.plan-btn-contacto {
  display: inline-flex;
  align-items: center;
  min-width: 180px;
  padding: 12px 22px;
  background: transparent;
  color: var(--vv-azul);
  border: 2px solid var(--vv-azul);
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.plan-btn-contacto:hover { background: var(--vv-azul); color: #fff; }

/* ── Responsive tablet (≤991.98px) ──────────────────────────────────────── */
@media (max-width: 991.98px) {
  .plan-tarjeta-principal { padding: 22px 20px 26px; }
  .plan-card { padding: 20px 18px; }
}

/* ── Responsive móvil (<576px) ───────────────────────────────────────────── */
@media (max-width: 575.98px) {
  .plan-tarjeta-principal { padding: 16px 14px 20px; border-radius: 14px; }
  .plan-titulo { font-size: 1.625rem; } /* 26px */
  .plan-card-titulo { font-size: 1.375rem; } /* 22px */
  .plan-millas-hero-cifra { font-size: 1.625rem; } /* 26px */
  .plan-form-card { padding: 18px; }
  .plan-card { padding: 18px 14px; }
  .plan-fila { flex-wrap: wrap; gap: .3rem; }
  .plan-fila-valor { word-break: normal; }
  .plan-btn-destinos,
  .plan-btn-contacto { width: 100%; justify-content: center; min-width: unset; }
  .plan-acciones { flex-direction: column; }
}

/* ── Safe area insets — notch / Dynamic Island / barra Safari ────────────── */
/* Requiere viewport-fit=cover en el meta viewport */
@supports (padding-top: env(safe-area-inset-top)) {
  .public-header {
    padding-top:   env(safe-area-inset-top);
    padding-left:  env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
  /* El panel off-canvas también respeta los insets */
  .vv-offcanvas {
    padding-top:   env(safe-area-inset-top);
    padding-right: env(safe-area-inset-right);
    padding-bottom: env(safe-area-inset-bottom);
  }
}

/* ── Off-canvas: overlay ─────────────────────────────────────────────────── */
.vv-oc-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 1039;
  opacity: 0;
  transition: opacity 270ms ease;
}
.vv-oc-overlay.vv-oc-active  { display: block; }
.vv-oc-overlay.vv-oc-visible { opacity: 1; }

/* ── Off-canvas: panel ───────────────────────────────────────────────────── */
.vv-offcanvas {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 80%;
  max-width: 340px;
  background: var(--vv-azul-dark, #0a2540);
  z-index: 1040;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  transform: translateX(100%);
  transition: transform 270ms cubic-bezier(.4, 0, .2, 1);
  box-shadow: -6px 0 28px rgba(0,0,0,.35);
  border-radius: .75rem 0 0 .75rem;
}
.vv-offcanvas.vv-oc-open { transform: translateX(0); }

/* En escritorio el off-canvas nunca se muestra */
@media (min-width: 768px) {
  .vv-offcanvas,
  .vv-oc-overlay { display: none !important; }
}

/* ── Off-canvas: cabecera interna ────────────────────────────────────────── */
.vv-oc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,.12);
  flex-shrink: 0;
}
.vv-oc-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.vv-oc-logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
  border-radius: .25rem;
}
.vv-oc-logo-texto {
  display: flex;
  align-items: center;
  gap: .25rem;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 900;
}
.vv-oc-close {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: .4rem;
  color: #fff;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: background .15s;
}
.vv-oc-close:hover { background: rgba(255,255,255,.22); }

/* ── Off-canvas: lista de enlaces ────────────────────────────────────────── */
.vv-oc-links {
  display: flex;
  flex-direction: column;
  padding: .5rem 0;
  flex: 1;
}
.vv-oc-link {
  display: block;
  color: rgba(255,255,255,.85);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: .9rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
  white-space: normal;
  word-break: break-word;
  transition: background .15s, color .15s;
}
.vv-oc-link:last-child { border-bottom: none; }
.vv-oc-link:hover { background: rgba(255,255,255,.09); color: #fff; }
.vv-oc-link.nav-link-activo {
  color: var(--vv-dorado, #c8963b);
  font-weight: 700;
}

/* ══════════════════════════════════════════════════════════════════════════
   PLAN-AHORRO — Planificador de ahorro en CR Millas (BEM)
   ══════════════════════════════════════════════════════════════════════════ */

.plan-ahorro {
    width: min(1180px, calc(100% - 40px));
    margin: 48px auto 64px;
}

.plan-ahorro__header {
    margin-bottom: 22px;
}

.plan-ahorro__header h2 {
    margin: 0 0 8px;
    color: var(--vv-azul, #173f73);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    line-height: 1.15;
}

.plan-ahorro__header p {
    margin: 0;
    color: #5f6b7a;
    font-size: 1rem;
    line-height: 1.55;
    max-width: 800px;
}

.plan-ahorro__grid {
    display: grid;
    grid-template-columns: minmax(300px, 0.85fr) minmax(400px, 1.15fr);
    gap: 28px;
    align-items: start;
}

.plan-ahorro__form-card,
.plan-ahorro__result-card {
    background: #fff;
    border: 1px solid #dce4ee;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(20, 49, 87, 0.09);
    padding: 26px;
}

.plan-ahorro__form-card h3,
.plan-ahorro__result-card h3 {
    margin: 0 0 20px;
    color: var(--vv-azul, #173f73);
    font-size: 1.35rem;
    font-weight: 700;
    padding-bottom: .65rem;
    border-bottom: 2px solid var(--vv-dorado, #c8963b);
}

/* ── Campos del formulario ───────────────────────────────────────────────── */
.plan-ahorro__field {
    margin-bottom: 20px;
}

.plan-ahorro__field label {
    display: block;
    margin-bottom: 8px;
    color: #26384d;
    font-size: .9rem;
    font-weight: 700;
}

/* Input de plazo (sin prefix, ancho completo) */
.plan-ahorro__input-full {
    width: 100%;
    display: block;
    border-radius: .45rem !important;
    min-height: 46px;
}

.plan-ahorro__field-error {
    display: block;
    color: #c0392b;
    font-size: .82rem;
    margin-top: .3rem;
}

/* ── Botón enviar ────────────────────────────────────────────────────────── */
.plan-ahorro__button {
    width: 100%;
    min-height: 52px;
    margin-top: 4px;
    border: 0;
    border-radius: 10px;
    background: var(--vv-azul, #183f78);
    color: #fff;
    font-size: 1.0625rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s, transform .1s;
}

.plan-ahorro__button:hover {
    background: var(--vv-azul-oscuro, #102f5d);
    transform: translateY(-1px);
}

/* ── Estado vacío ────────────────────────────────────────────────────────── */
.plan-ahorro__empty {
    text-align: center;
    color: #667385;
    padding: 2rem 0;
}

.plan-ahorro__empty-icon {
    font-size: 2.75rem;
    display: block;
    margin-bottom: .85rem;
}

/* ── Secciones de resultado (mini tarjetas) ──────────────────────────────── */
.plan-ahorro__result-section {
    background: #f7f9fc;
    border: 1px solid #e1e7ef;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 16px;
}

.plan-ahorro__result-section:last-of-type {
    margin-bottom: 0;
}

.plan-ahorro__result-section h4 {
    margin: 0 0 12px;
    color: var(--vv-azul, #173f73);
    font-size: 1rem;
    font-weight: 700;
}

/* ── Filas de datos ──────────────────────────────────────────────────────── */
.plan-ahorro__row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 20px;
    padding: 8px 0;
    border-bottom: 1px solid #e4e9f0;
}

.plan-ahorro__row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.plan-ahorro__row--highlight {
    background: rgba(200, 150, 59, .07);
    padding-left: 6px;
    padding-right: 6px;
    border-radius: 6px;
    border-bottom: 0;
    margin: 2px 0;
}

.plan-ahorro__label {
    color: #667385;
    font-size: .875rem;
    flex-shrink: 0;
}

.plan-ahorro__value {
    color: var(--vv-azul, #173f73);
    font-weight: 700;
    font-size: .9375rem;
    text-align: right;
}

.plan-ahorro__value--millas { color: var(--vv-azul, #173f73); }
.plan-ahorro__value--colones { color: #1a6e2e; }

/* ── Total de CR Millas (número hero) ────────────────────────────────────── */
.plan-ahorro__total {
    display: block;
    color: var(--vv-dorado, #d99000);
    font-size: clamp(1.6rem, 3vw, 2rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2px;
}

/* ── Nota informativa ────────────────────────────────────────────────────── */
.plan-ahorro__note {
    margin-top: 16px;
    padding: 13px 15px;
    border-left: 4px solid var(--vv-azul, #183f78);
    border-radius: 8px;
    background: #eef4fb;
    color: #46566a;
    font-size: .875rem;
    line-height: 1.5;
}

.plan-ahorro__note p {
    margin: 0 0 4px;
}

.plan-ahorro__note p:last-child {
    margin: 0;
    font-size: .8rem;
    color: #667385;
}

/* ── Acciones ────────────────────────────────────────────────────────────── */
.plan-ahorro__actions {
    margin-top: 18px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.plan-ahorro__actions .btn {
    min-width: 180px;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 700;
}

/* ── Responsive ≤ 991px ──────────────────────────────────────────────────── */
@media (max-width: 991.98px) {
    .plan-ahorro__grid {
        grid-template-columns: 1fr;
    }
}

/* ── Responsive ≤ 575px ──────────────────────────────────────────────────── */
@media (max-width: 575.98px) {
    .plan-ahorro {
        width: calc(100% - 24px);
        margin-top: 28px;
        margin-bottom: 40px;
    }

    .plan-ahorro__form-card,
    .plan-ahorro__result-card {
        padding: 18px;
        border-radius: 13px;
    }

    .plan-ahorro__row {
        display: block;
    }

    .plan-ahorro__value {
        margin-top: 4px;
        text-align: left;
    }

    .plan-ahorro__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .plan-ahorro__actions .btn {
        width: 100%;
        min-width: unset;
        text-align: center;
        justify-content: center;
    }

    .plan-ahorro__total {
        font-size: 1.6rem;
    }
}

/* PLAN-AHORRO-CSS-V2 */

/* ══════════════════════════════════════════════════════════════════════════
   PLAN-AHORRO CSS V3 — sobreescribe reglas previas del planificador
   ══════════════════════════════════════════════════════════════════════════ */

.plan-ahorro {
    width: min(1180px, calc(100% - 40px));
    margin: 48px auto 64px;
}

.plan-ahorro__header {
    margin-bottom: 22px;
}

.plan-ahorro__header h2 {
    margin: 0 0 8px;
    color: #173f73;
    font-size: clamp(1.8rem, 3vw, 2.35rem);
    line-height: 1.15;
}

.plan-ahorro__header p {
    margin: 0;
    color: #5f6b7a;
    font-size: 1rem;
    line-height: 1.55;
}

.plan-ahorro__grid {
    display: grid;
    grid-template-columns: minmax(320px, .85fr) minmax(420px, 1.15fr);
    gap: 28px;
    align-items: start;
}

.plan-ahorro__form-card,
.plan-ahorro__result-card {
    background: #fff;
    border: 1px solid #dce4ee;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(20, 49, 87, .09);
    padding: 26px;
}

.plan-ahorro__form-card h3,
.plan-ahorro__result-card h3 {
    margin: 0 0 20px;
    color: #173f73;
    font-size: 1.35rem;
}

.plan-ahorro__field {
    margin-bottom: 20px;
}

.plan-ahorro__field label {
    display: block;
    margin-bottom: 8px;
    color: #26384d;
    font-weight: 700;
}

.plan-ahorro__field input,
.plan-ahorro__field select,
.plan-ahorro__field .input-group {
    width: 100%;
}

.plan-ahorro__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    border: 0;
    border-radius: 10px;
    background: #183f78;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
}

.plan-ahorro__button:hover {
    background: #102f5d;
}

.plan-ahorro__result-section {
    margin-bottom: 16px;
    padding: 18px;
    background: #f7f9fc;
    border: 1px solid #e1e7ef;
    border-radius: 12px;
}

.plan-ahorro__result-section h4 {
    margin: 0 0 14px;
    color: #173f73;
    font-size: 1.1rem;
}

.plan-ahorro__row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 9px 0;
    border-bottom: 1px solid #e4e9f0;
}

.plan-ahorro__row:last-child {
    border-bottom: 0;
}

.plan-ahorro__label {
    color: #667385;
}

.plan-ahorro__value {
    color: #173f73;
    font-weight: 700;
    text-align: right;
}

.plan-ahorro__total {
    display: block;
    margin-top: 6px;
    color: #d99000;
    font-size: clamp(1.65rem, 3vw, 2rem);
    font-weight: 800;
}

.plan-ahorro__note {
    margin-top: 16px;
    padding: 13px 15px;
    border-left: 4px solid #183f78;
    border-radius: 8px;
    background: #eef4fb;
    color: #46566a;
    font-size: .9rem;
    line-height: 1.5;
}

.plan-ahorro__empty {
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
    color: #657286;
    background: #f8fafc;
    border: 1px dashed #ccd7e3;
    border-radius: 12px;
}

.plan-ahorro__actions {
    margin-top: 18px;
    text-align: right;
}

@media (max-width: 991.98px) {
    .plan-ahorro__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .plan-ahorro {
        width: calc(100% - 24px);
        margin-top: 28px;
    }

    .plan-ahorro__form-card,
    .plan-ahorro__result-card {
        padding: 18px;
    }

    .plan-ahorro__row {
        display: block;
    }

    .plan-ahorro__value {
        margin-top: 4px;
        text-align: left;
    }
}

/* PLAN-AHORRO-CSS-V3 */
