/* =====================================================================
   Horizonte · Sistema de diseño
   =====================================================================
   Un solo archivo de tokens y componentes para todo: sitio del pasajero
   y panel interno. La marca argentina va en el azul profundo del cielo
   nocturno y el sol del amanecer; el dorado queda para lo premium, sin
   caer en el cliché del avión dibujado.
   ===================================================================== */

:root {
  /* --- Marca --- */
  --azul-900: #071a33;
  --azul-800: #0b2647;
  --azul-700: #123a6b;
  --azul-600: #1a4d8f;
  --azul-500: #2563b8;
  --azul-400: #4a8ad6;
  --azul-100: #dbe9fa;
  --azul-50: #f1f7fe;

  --sol-600: #c2410c;
  --sol-500: #ea580c;
  --sol-400: #f97316;
  --sol-300: #fdba74;
  --sol-100: #ffedd5;

  --oro-600: #a16207;
  --oro-500: #ca8a04;
  --oro-300: #fcd34d;
  --oro-100: #fef3c7;

  --cielo-400: #38bdf8;
  --cielo-100: #e0f2fe;

  /* --- Semántica --- */
  --ok-600: #047857;
  --ok-500: #059669;
  --ok-100: #d1fae5;
  --alerta-600: #b45309;
  --alerta-500: #d97706;
  --alerta-100: #fef3c7;
  --peligro-600: #b91c1c;
  --peligro-500: #dc2626;
  --peligro-100: #fee2e2;
  --info-600: #0369a1;
  --info-100: #e0f2fe;

  /* --- Neutros --- */
  --tinta-900: #0f172a;
  --tinta-800: #1e293b;
  --tinta-700: #334155;
  --tinta-600: #475569;
  --tinta-500: #64748b;
  --tinta-400: #94a3b8;
  --tinta-300: #cbd5e1;
  --tinta-200: #e2e8f0;
  --tinta-100: #f1f5f9;
  --tinta-50: #f8fafc;
  --blanco: #ffffff;

  /* --- Tipografía --- */
  --fuente: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
            "Helvetica Neue", Arial, sans-serif;
  --fuente-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  --fuente-display: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* --- Espaciado y forma --- */
  --r-xs: 6px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-full: 999px;

  --sombra-xs: 0 1px 2px rgba(15, 23, 42, .06);
  --sombra-sm: 0 1px 3px rgba(15, 23, 42, .08), 0 1px 2px rgba(15, 23, 42, .04);
  --sombra-md: 0 4px 12px rgba(15, 23, 42, .08), 0 2px 4px rgba(15, 23, 42, .04);
  --sombra-lg: 0 12px 32px rgba(15, 23, 42, .12), 0 4px 8px rgba(15, 23, 42, .05);
  --sombra-xl: 0 24px 60px rgba(7, 26, 51, .18);

  --transicion: 160ms cubic-bezier(.4, 0, .2, 1);
}

/* ---------------------------------------------------------------------
   Base
   --------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--fuente);
  font-size: 15px;
  line-height: 1.6;
  color: var(--tinta-800);
  background: var(--tinta-50);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  line-height: 1.25;
  color: var(--tinta-900);
  font-weight: 700;
  letter-spacing: -.015em;
}
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.15rem; }
h4 { font-size: 1rem; }

p { margin: 0 0 1em; }
a { color: var(--azul-600); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 3px solid var(--azul-400);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}

/* Respeta a quien prefiere menos movimiento. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

/* ---------------------------------------------------------------------
   Layout
   --------------------------------------------------------------------- */
.contenedor { width: min(1180px, 100% - 2rem); margin-inline: auto; }
.contenedor-angosto { width: min(760px, 100% - 2rem); margin-inline: auto; }
.pila { display: flex; flex-direction: column; gap: 1rem; }
.pila-sm { display: flex; flex-direction: column; gap: .5rem; }
.pila-lg { display: flex; flex-direction: column; gap: 1.75rem; }
.fila { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.fila-entre { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.grilla { display: grid; gap: 1rem; }
.grilla-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grilla-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grilla-4 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.seccion { padding: 2.5rem 0; }
.seccion-sm { padding: 1.5rem 0; }
.oculto { display: none !important; }
.texto-centro { text-align: center; }
.texto-der { text-align: right; }
.crecer { flex: 1 1 auto; }

/* ---------------------------------------------------------------------
   Cabecera del sitio
   --------------------------------------------------------------------- */
.cabecera {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--tinta-200);
}
.cabecera-interna {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .75rem 0;
}
.marca { display: flex; align-items: center; gap: .625rem; font-weight: 700; }
.marca-logo {
  width: 38px; height: 38px; border-radius: 10px; flex: none;
  background: linear-gradient(140deg, var(--azul-700), var(--azul-500) 55%, var(--sol-400));
  display: grid; place-items: center;
  box-shadow: var(--sombra-sm);
}
.marca-logo svg { width: 22px; height: 22px; }
.marca-texto { display: flex; flex-direction: column; line-height: 1.1; }
.marca-nombre { font-size: 1.05rem; letter-spacing: -.02em; color: var(--azul-900); }
.marca-bajada { font-size: .66rem; text-transform: uppercase; letter-spacing: .12em; color: var(--tinta-500); font-weight: 600; }

.nav { display: flex; align-items: center; gap: .25rem; flex-wrap: wrap; }
.nav a {
  padding: .5rem .75rem; border-radius: var(--r-sm); font-size: .9rem;
  font-weight: 500; color: var(--tinta-700); transition: var(--transicion);
}
.nav a:hover { background: var(--azul-50); color: var(--azul-700); text-decoration: none; }
.nav a.activo { background: var(--azul-100); color: var(--azul-800); font-weight: 600; }

/* ---------------------------------------------------------------------
   Botones
   --------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .625rem 1.1rem; border: 1px solid transparent; border-radius: var(--r-sm);
  font-family: inherit; font-size: .92rem; font-weight: 600; line-height: 1.2;
  cursor: pointer; transition: var(--transicion); text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }

.btn-primario { background: var(--azul-600); color: var(--sol-100); background: linear-gradient(180deg, var(--azul-500), var(--azul-700)); color: #fff; box-shadow: var(--sombra-sm); }
.btn-primario:hover { box-shadow: var(--sombra-md); }
.btn-sol { background: linear-gradient(180deg, var(--sol-400), var(--sol-600)); color: #fff; box-shadow: var(--sombra-sm); }
.btn-sol:hover { box-shadow: var(--sombra-md); }
.btn-secundario { background: var(--blanco); color: var(--azul-700); border-color: var(--tinta-300); }
.btn-secundario:hover { border-color: var(--azul-400); background: var(--azul-50); }
.btn-fantasma { background: transparent; color: var(--azul-700); }
.btn-fantasma:hover { background: var(--azul-50); }
.btn-peligro { background: var(--blanco); color: var(--peligro-600); border-color: var(--peligro-100); }
.btn-peligro:hover { background: var(--peligro-100); }
.btn-ok { background: linear-gradient(180deg, var(--ok-500), var(--ok-600)); color: #fff; }
.btn-sm { padding: .375rem .7rem; font-size: .82rem; }
.btn-lg { padding: .85rem 1.6rem; font-size: 1rem; }
.btn-bloque { width: 100%; }

/* ---------------------------------------------------------------------
   Tarjetas y superficies
   --------------------------------------------------------------------- */
.tarjeta {
  background: var(--blanco); border: 1px solid var(--tinta-200);
  border-radius: var(--r-lg); padding: 1.25rem; box-shadow: var(--sombra-sm);
}
.tarjeta-plana { box-shadow: none; }
.tarjeta-hover { transition: var(--transicion); }
.tarjeta-hover:hover { border-color: var(--azul-400); box-shadow: var(--sombra-md); transform: translateY(-2px); }
.tarjeta-acento { border-left: 4px solid var(--azul-500); }
.panel-blanco { background: var(--blanco); border-radius: var(--r-lg); border: 1px solid var(--tinta-200); padding: 1.5rem; }

/* ---------------------------------------------------------------------
   Formularios
   --------------------------------------------------------------------- */
.campo { display: flex; flex-direction: column; gap: .375rem; }
.campo label, .etiqueta {
  font-size: .8rem; font-weight: 600; color: var(--tinta-700);
  text-transform: uppercase; letter-spacing: .04em;
}
.campo .ayuda { font-size: .78rem; color: var(--tinta-500); font-weight: 400; text-transform: none; letter-spacing: 0; }

input[type="text"], input[type="email"], input[type="tel"], input[type="date"],
input[type="number"], input[type="search"], select, textarea {
  width: 100%; padding: .625rem .75rem; font-family: inherit; font-size: .95rem;
  color: var(--tinta-900); background: var(--blanco);
  border: 1px solid var(--tinta-300); border-radius: var(--r-sm);
  transition: var(--transicion);
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--azul-500);
  box-shadow: 0 0 0 3px var(--azul-100);
}
input::placeholder, textarea::placeholder { color: var(--tinta-400); }
textarea { resize: vertical; min-height: 110px; line-height: 1.6; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748b' d='M6 8 0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .75rem center; padding-right: 2rem; }
input[type="checkbox"], input[type="radio"] { width: auto; accent-color: var(--azul-600); }

.buscador {
  background: var(--blanco); border-radius: var(--r-xl);
  box-shadow: var(--sombra-lg); padding: 1rem; border: 1px solid var(--tinta-200);
}
.buscador-grilla {
  display: grid; gap: .75rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.buscador-grilla .campo-ancho { grid-column: span 2; }
@media (max-width: 640px) { .buscador-grilla .campo-ancho { grid-column: span 1; } }

/* Interruptor de ida y vuelta */
.interruptor { display: inline-flex; background: var(--tinta-100); border-radius: var(--r-full); padding: 3px; }
.interruptor button {
  border: 0; background: transparent; padding: .4rem 1rem; border-radius: var(--r-full);
  font: inherit; font-size: .85rem; font-weight: 600; color: var(--tinta-600); cursor: pointer;
  transition: var(--transicion);
}
.interruptor button[aria-pressed="true"] { background: var(--blanco); color: var(--azul-700); box-shadow: var(--sombra-xs); }

/* ---------------------------------------------------------------------
   Etiquetas y estados
   --------------------------------------------------------------------- */
.etiqueta-estado {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .2rem .6rem; border-radius: var(--r-full);
  font-size: .74rem; font-weight: 700; letter-spacing: .02em;
  text-transform: uppercase;
}
.estado-ok { background: var(--ok-100); color: var(--ok-600); }
.estado-info { background: var(--info-100); color: var(--info-600); }
.estado-alerta { background: var(--alerta-100); color: var(--alerta-600); }
.estado-peligro { background: var(--peligro-100); color: var(--peligro-600); }
.estado-neutro { background: var(--tinta-100); color: var(--tinta-600); }
.estado-oro { background: var(--oro-100); color: var(--oro-600); }

.chip {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .3rem .7rem; border-radius: var(--r-full);
  background: var(--tinta-100); color: var(--tinta-700);
  font-size: .8rem; font-weight: 500;
}
.chip-azul { background: var(--azul-100); color: var(--azul-700); }
.chip-sol { background: var(--sol-100); color: var(--sol-600); }
.chip-oro { background: var(--oro-100); color: var(--oro-600); }
.chip-ok { background: var(--ok-100); color: var(--ok-600); }
.chip-peligro { background: var(--peligro-100); color: var(--peligro-600); }

.punto { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.punto-ok { background: var(--ok-500); }
.punto-alerta { background: var(--alerta-500); }
.punto-peligro { background: var(--peligro-500); }
.punto-neutro { background: var(--tinta-400); }
.pulso { animation: pulso 2s ease-in-out infinite; }
@keyframes pulso { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------------------------------------------------------------------
   Avisos
   --------------------------------------------------------------------- */
.aviso {
  display: flex; gap: .75rem; padding: .875rem 1rem;
  border-radius: var(--r-md); border: 1px solid transparent;
  font-size: .9rem; align-items: flex-start;
}
.aviso svg { flex: none; margin-top: 2px; }
.aviso-info { background: var(--info-100); border-color: #bae6fd; color: #075985; }
.aviso-ok { background: var(--ok-100); border-color: #a7f3d0; color: #065f46; }
.aviso-alerta { background: var(--alerta-100); border-color: #fde68a; color: #92400e; }
.aviso-peligro { background: var(--peligro-100); border-color: #fecaca; color: #991b1b; }
.aviso-azul { background: var(--azul-50); border-color: var(--azul-100); color: var(--azul-800); }

/* ---------------------------------------------------------------------
   Métricas
   --------------------------------------------------------------------- */
.metrica {
  background: var(--blanco); border: 1px solid var(--tinta-200);
  border-radius: var(--r-lg); padding: 1.1rem 1.25rem;
}
.metrica-etiqueta {
  font-size: .74rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--tinta-500); margin-bottom: .35rem;
}
.metrica-valor {
  font-size: 1.75rem; font-weight: 700; letter-spacing: -.03em;
  color: var(--tinta-900); line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.metrica-detalle { font-size: .8rem; color: var(--tinta-500); margin-top: .3rem; }
.metrica-ok .metrica-valor { color: var(--ok-600); }
.metrica-alerta .metrica-valor { color: var(--alerta-600); }
.metrica-peligro .metrica-valor { color: var(--peligro-600); }
.metrica-azul .metrica-valor { color: var(--azul-700); }

.variacion { font-size: .8rem; font-weight: 700; display: inline-flex; align-items: center; gap: .2rem; }
.variacion-arriba { color: var(--ok-600); }
.variacion-abajo { color: var(--peligro-600); }

/* ---------------------------------------------------------------------
   Tablas
   --------------------------------------------------------------------- */
.tabla-envoltura { overflow-x: auto; border-radius: var(--r-md); border: 1px solid var(--tinta-200); background: var(--blanco); }
table.tabla { width: 100%; border-collapse: collapse; font-size: .88rem; }
table.tabla th {
  text-align: left; padding: .7rem .85rem; background: var(--tinta-50);
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; color: var(--tinta-600);
  border-bottom: 1px solid var(--tinta-200); white-space: nowrap;
  position: sticky; top: 0;
}
table.tabla td { padding: .7rem .85rem; border-bottom: 1px solid var(--tinta-100); vertical-align: middle; }
table.tabla tbody tr:last-child td { border-bottom: 0; }
table.tabla tbody tr:hover { background: var(--azul-50); }
table.tabla .num { text-align: right; font-variant-numeric: tabular-nums; }
table.tabla .mono { font-family: var(--fuente-mono); font-size: .84rem; letter-spacing: -.01em; }

/* ---------------------------------------------------------------------
   Barras y progreso
   --------------------------------------------------------------------- */
.barra { height: 8px; background: var(--tinta-200); border-radius: var(--r-full); overflow: hidden; }
.barra-relleno { height: 100%; border-radius: var(--r-full); background: var(--azul-500); transition: width 400ms ease; }
.barra-ok { background: var(--ok-500); }
.barra-alerta { background: var(--alerta-500); }
.barra-peligro { background: var(--peligro-500); }
.barra-oro { background: var(--oro-500); }

.medidor-fila { display: grid; grid-template-columns: 1fr auto; gap: .5rem; align-items: center; font-size: .86rem; margin-bottom: .5rem; }
.medidor-fila .valor { font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------------
   Gráficos de barra (sin dependencias)
   --------------------------------------------------------------------- */
.grafico-barras {
  display: flex; align-items: flex-end; gap: 4px; height: 140px;
  padding-top: .5rem;
}
.grafico-barras .barra-col {
  flex: 1 1 0; min-width: 4px; background: linear-gradient(180deg, var(--azul-400), var(--azul-600));
  border-radius: 4px 4px 0 0; position: relative;
  transition: var(--transicion);
}
.grafico-barras .barra-col:hover { background: linear-gradient(180deg, var(--sol-400), var(--sol-600)); }
.grafico-barras .barra-col[data-vacio="true"] { background: var(--tinta-200); }
.grafico-eje { display: flex; justify-content: space-between; font-size: .7rem; color: var(--tinta-400); margin-top: .4rem; }

.grafico-linea { width: 100%; height: 150px; display: block; }
.grafico-linea .area { fill: url(#gradienteArea); opacity: .55; }
.grafico-linea .linea { fill: none; stroke: var(--azul-600); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.grafico-linea .punto-dato { fill: var(--blanco); stroke: var(--azul-600); stroke-width: 2; }

/* ---------------------------------------------------------------------
   Línea de tiempo (equipaje, expedientes, viajes)
   --------------------------------------------------------------------- */
.timeline { position: relative; padding-left: 1.75rem; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px;
  width: 2px; background: var(--tinta-200);
}
.timeline-item { position: relative; padding-bottom: 1.25rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ""; position: absolute; left: -1.75rem; top: 4px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--blanco); border: 3px solid var(--tinta-300);
}
.timeline-item.hecho::before { border-color: var(--ok-500); background: var(--ok-100); }
.timeline-item.activo::before { border-color: var(--azul-500); background: var(--azul-100); box-shadow: 0 0 0 4px var(--azul-100); }
.timeline-item.problema::before { border-color: var(--alerta-500); background: var(--alerta-100); }
.timeline-item.grave::before { border-color: var(--peligro-500); background: var(--peligro-100); }
.timeline-fecha { font-size: .75rem; color: var(--tinta-500); font-variant-numeric: tabular-nums; }
.timeline-titulo { font-weight: 600; font-size: .92rem; color: var(--tinta-900); }
.timeline-detalle { font-size: .86rem; color: var(--tinta-600); }

/* ---------------------------------------------------------------------
   Pasos del proceso de compra
   --------------------------------------------------------------------- */
.pasos { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.paso { display: flex; align-items: center; gap: .5rem; font-size: .85rem; color: var(--tinta-500); font-weight: 500; }
.paso-numero {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--tinta-200); color: var(--tinta-600); font-size: .78rem; font-weight: 700;
  flex: none;
}
.paso.activo { color: var(--azul-700); font-weight: 700; }
.paso.activo .paso-numero { background: var(--azul-600); color: #fff; }
.paso.hecho { color: var(--ok-600); }
.paso.hecho .paso-numero { background: var(--ok-500); color: #fff; }
.paso-sep { width: 20px; height: 2px; background: var(--tinta-200); border-radius: 2px; }

/* ---------------------------------------------------------------------
   Tarjeta de vuelo
   --------------------------------------------------------------------- */
.vuelo {
  display: grid; gap: 1rem; align-items: center;
  grid-template-columns: auto 1fr auto;
  background: var(--blanco); border: 1px solid var(--tinta-200);
  border-radius: var(--r-lg); padding: 1.1rem 1.25rem;
  transition: var(--transicion);
}
.vuelo:hover { border-color: var(--azul-400); box-shadow: var(--sombra-md); }
@media (max-width: 780px) { .vuelo { grid-template-columns: 1fr; } }

.vuelo-horario { display: flex; align-items: center; gap: .9rem; }
.vuelo-hora { font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--tinta-900); }
.vuelo-codigo { font-size: .78rem; font-weight: 700; color: var(--tinta-500); letter-spacing: .04em; }
.vuelo-ruta { display: flex; flex-direction: column; align-items: center; min-width: 92px; }
.vuelo-linea { width: 100%; height: 2px; background: var(--tinta-300); position: relative; }
.vuelo-linea::after {
  content: "✈"; position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  font-size: 12px; color: var(--azul-500); background: var(--blanco); padding: 0 4px;
}
.vuelo-duracion { font-size: .74rem; color: var(--tinta-500); margin-top: .35rem; white-space: nowrap; }
.vuelo-precio { text-align: right; }
.vuelo-precio .monto { font-size: 1.5rem; font-weight: 700; color: var(--azul-800); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.vuelo-precio .moneda { font-size: .82rem; color: var(--tinta-500); }

.tarifa {
  border: 1.5px solid var(--tinta-200); border-radius: var(--r-md); padding: .9rem;
  cursor: pointer; transition: var(--transicion); background: var(--blanco);
  display: flex; flex-direction: column; gap: .5rem; position: relative;
}
.tarifa:hover { border-color: var(--azul-400); background: var(--azul-50); }
.tarifa[aria-pressed="true"] { border-color: var(--azul-600); background: var(--azul-50); box-shadow: 0 0 0 3px var(--azul-100); }
.tarifa.agotada { opacity: .5; cursor: not-allowed; }
.tarifa-nombre { font-weight: 700; font-size: .95rem; color: var(--tinta-900); }
.tarifa-precio { font-size: 1.2rem; font-weight: 700; color: var(--azul-800); font-variant-numeric: tabular-nums; }
.tarifa-lista { list-style: none; margin: 0; padding: 0; font-size: .82rem; color: var(--tinta-600); }
.tarifa-lista li { display: flex; gap: .35rem; align-items: flex-start; padding: .12rem 0; }
.tarifa-lista li.si::before { content: "✓"; color: var(--ok-600); font-weight: 700; flex: none; }
.tarifa-lista li.no::before { content: "✕"; color: var(--tinta-400); font-weight: 700; flex: none; }
.tarifa-lista li.no { color: var(--tinta-400); }

/* ---------------------------------------------------------------------
   Mapa de asientos
   --------------------------------------------------------------------- */
.avion {
  background: var(--blanco); border: 2px solid var(--tinta-200);
  border-radius: 90px 90px 24px 24px; padding: 1.5rem 1rem 1rem;
  max-width: 380px; margin-inline: auto;
}
.avion-fila {
  display: grid; grid-template-columns: 1.5rem 1fr 1.2rem 1fr; gap: .3rem;
  align-items: center; margin-bottom: .3rem;
}
.avion-numero { font-size: .7rem; color: var(--tinta-400); text-align: center; font-variant-numeric: tabular-nums; }
.avion-pasillo { font-size: .62rem; color: var(--tinta-300); text-align: center; }
.avion-asientos { display: grid; grid-template-columns: 1fr 1fr; gap: .3rem; }
.asiento {
  aspect-ratio: 1; border: 1.5px solid var(--tinta-300); border-radius: var(--r-xs);
  background: var(--blanco); font-size: .68rem; font-weight: 600; color: var(--tinta-600);
  cursor: pointer; transition: var(--transicion); display: grid; place-items: center;
  font-family: inherit; position: relative;
}
.asiento:hover:not(:disabled) { border-color: var(--azul-500); background: var(--azul-50); color: var(--azul-700); }
.asiento[aria-pressed="true"] { background: var(--azul-600); border-color: var(--azul-700); color: #fff; }
.asiento:disabled { cursor: not-allowed; }
.asiento.ocupado { background: var(--tinta-200); border-color: var(--tinta-300); color: var(--tinta-400); }
.asiento.bloqueado { background: repeating-linear-gradient(45deg, var(--tinta-100), var(--tinta-100) 4px, var(--tinta-200) 4px, var(--tinta-200) 8px); border-color: var(--tinta-300); }
.asiento.extra { border-color: var(--sol-400); }
.asiento.extra::after { content: ""; position: absolute; top: 2px; right: 2px; width: 5px; height: 5px; border-radius: 50%; background: var(--sol-500); }
.asiento.premium { border-color: var(--oro-500); background: #fffdf5; }
.asiento.business { border-color: var(--azul-600); background: #f7fbff; }
.asiento-leyenda { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .78rem; color: var(--tinta-600); justify-content: center; margin-top: 1rem; }
.asiento-leyenda span { display: flex; align-items: center; gap: .35rem; }
.asiento-muestra { width: 18px; height: 18px; border-radius: 4px; border: 1.5px solid var(--tinta-300); }

/* ---------------------------------------------------------------------
   Pase de embarque
   --------------------------------------------------------------------- */
.pase {
  background: var(--blanco); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--sombra-lg); border: 1px solid var(--tinta-200);
}
.pase-cabecera {
  background: linear-gradient(135deg, var(--azul-800), var(--azul-600) 60%, var(--sol-500));
  color: #fff; padding: 1.1rem 1.25rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.pase-cabecera .marca-nombre { color: #fff; }
.pase-cabecera .marca-bajada { color: rgba(255,255,255,.7); }
.pase-cuerpo { padding: 1.25rem; }
.pase-trayecto {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .75rem 0; border-bottom: 1px dashed var(--tinta-300);
}
.pase-ciudad { font-size: 1.6rem; font-weight: 700; letter-spacing: -.02em; color: var(--tinta-900); }
.pase-datos { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: .85rem; padding-top: .85rem; }
.pase-dato .etiqueta { font-size: .66rem; }
.pase-dato .valor { font-size: 1rem; font-weight: 700; color: var(--tinta-900); font-variant-numeric: tabular-nums; }
.pase-qr { display: grid; place-items: center; padding: 1rem; background: var(--tinta-50); border-top: 1px dashed var(--tinta-300); }
.pase-qr svg { width: 130px; height: 130px; }
.pase-talon { border-top: 2px dashed var(--tinta-300); position: relative; }
.pase-talon::before, .pase-talon::after {
  content: ""; position: absolute; top: -10px; width: 20px; height: 20px;
  border-radius: 50%; background: var(--tinta-50);
}
.pase-talon::before { left: -10px; }
.pase-talon::after { right: -10px; }

/* ---------------------------------------------------------------------
   Panel interno
   --------------------------------------------------------------------- */
.panel-layout { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
@media (max-width: 980px) { .panel-layout { grid-template-columns: 1fr; } }

.panel-lateral {
  background: var(--azul-900); color: #fff; padding: 1.25rem 1rem;
  display: flex; flex-direction: column; gap: 1.25rem;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
@media (max-width: 980px) { .panel-lateral { position: static; height: auto; } }
.panel-lateral .marca-nombre { color: #fff; }
.panel-lateral .marca-bajada { color: rgba(255,255,255,.55); }
.panel-nav { display: flex; flex-direction: column; gap: .2rem; }
.panel-nav button {
  display: flex; align-items: center; gap: .6rem; width: 100%;
  padding: .55rem .7rem; border: 0; border-radius: var(--r-sm);
  background: transparent; color: rgba(255,255,255,.72); font: inherit;
  font-size: .88rem; font-weight: 500; cursor: pointer; text-align: left;
  transition: var(--transicion);
}
.panel-nav button:hover { background: rgba(255,255,255,.08); color: #fff; }
.panel-nav button[aria-current="true"] { background: rgba(255,255,255,.14); color: #fff; font-weight: 600; }
.panel-nav .separador {
  margin: .6rem 0 .3rem; font-size: .66rem; text-transform: uppercase;
  letter-spacing: .1em; color: rgba(255,255,255,.4); font-weight: 700; padding-left: .7rem;
}
.panel-nav .insignia {
  margin-left: auto; background: var(--peligro-500); color: #fff;
  font-size: .68rem; font-weight: 700; padding: .05rem .4rem; border-radius: var(--r-full);
  min-width: 20px; text-align: center;
}
.panel-nav .insignia.alerta { background: var(--alerta-500); }

.panel-principal { padding: 1.75rem; overflow-x: hidden; }
@media (max-width: 640px) { .panel-principal { padding: 1rem; } }
.panel-titulo { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.panel-titulo h1 { font-size: 1.6rem; margin-bottom: .15rem; }
.panel-titulo p { color: var(--tinta-500); margin: 0; font-size: .92rem; }

.pestanas { display: flex; gap: .25rem; border-bottom: 1px solid var(--tinta-200); margin-bottom: 1.25rem; overflow-x: auto; }
.pestanas button {
  border: 0; background: transparent; padding: .6rem .9rem; font: inherit;
  font-size: .88rem; font-weight: 500; color: var(--tinta-500); cursor: pointer;
  border-bottom: 2px solid transparent; white-space: nowrap; transition: var(--transicion);
}
.pestanas button:hover { color: var(--azul-700); }
.pestanas button[aria-selected="true"] { color: var(--azul-700); font-weight: 700; border-bottom-color: var(--azul-600); }

/* ---------------------------------------------------------------------
   Cola de trabajo
   --------------------------------------------------------------------- */
.caso {
  background: var(--blanco); border: 1px solid var(--tinta-200);
  border-radius: var(--r-md); padding: 1rem; cursor: pointer;
  transition: var(--transicion); border-left: 4px solid var(--tinta-300);
}
.caso:hover { border-color: var(--azul-400); box-shadow: var(--sombra-md); }
.caso.urgente { border-left-color: var(--peligro-500); }
.caso.alta { border-left-color: var(--alerta-500); }
.caso.normal { border-left-color: var(--azul-400); }
.caso.baja { border-left-color: var(--tinta-300); }
.caso-titulo { font-weight: 700; font-size: .95rem; color: var(--tinta-900); margin-bottom: .2rem; }
.caso-relato {
  font-size: .88rem; color: var(--tinta-600); margin: .5rem 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden; line-height: 1.55;
}
.caso-pie { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; font-size: .78rem; color: var(--tinta-500); }

.reloj { font-variant-numeric: tabular-nums; font-weight: 600; }
.reloj-ok { color: var(--ok-600); }
.reloj-alerta { color: var(--alerta-600); }
.reloj-vencido { color: var(--peligro-600); }

/* Conversación del expediente */
.conversacion { display: flex; flex-direction: column; gap: .85rem; }
.mensaje { display: flex; flex-direction: column; gap: .3rem; max-width: 88%; }
.mensaje-pasajero { align-self: flex-start; }
.mensaje-agente { align-self: flex-end; align-items: flex-end; }
.mensaje-cola {
  background: var(--tinta-100); border-radius: var(--r-md) var(--r-md) var(--r-md) 4px;
  padding: .7rem .9rem; font-size: .9rem; color: var(--tinta-800); line-height: 1.6;
}
.mensaje-agente .mensaje-cola { background: var(--azul-100); border-radius: var(--r-md) var(--r-md) 4px var(--r-md); color: var(--azul-900); }
.mensaje-interno .mensaje-cola { background: var(--oro-100); color: var(--oro-600); border: 1px dashed var(--oro-500); }
.mensaje-meta { font-size: .72rem; color: var(--tinta-400); }

/* ---------------------------------------------------------------------
   Simulador
   --------------------------------------------------------------------- */
.palanca { padding: .75rem 0; border-bottom: 1px solid var(--tinta-100); }
.palanca:last-child { border-bottom: 0; }
.palanca-cabecera { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; margin-bottom: .4rem; }
.palanca-nombre { font-size: .88rem; font-weight: 600; color: var(--tinta-800); }
.palanca-valor { font-size: .88rem; font-weight: 700; color: var(--azul-700); font-variant-numeric: tabular-nums; }
input[type="range"] { width: 100%; accent-color: var(--azul-600); height: 22px; }

.memoria-calculo {
  background: var(--tinta-50); border-left: 3px solid var(--azul-400);
  border-radius: var(--r-sm); padding: .75rem .9rem; margin-bottom: .65rem;
  font-size: .84rem;
}
.memoria-calculo .titulo { font-weight: 700; color: var(--tinta-800); margin-bottom: .2rem; }
.memoria-calculo .calculo { color: var(--tinta-600); }
.memoria-calculo .supuesto { color: var(--alerta-600); font-size: .8rem; margin-top: .3rem; font-style: italic; }
.memoria-calculo .efecto { font-weight: 700; font-variant-numeric: tabular-nums; }
.efecto-positivo { color: var(--ok-600); }
.efecto-negativo { color: var(--peligro-600); }

/* ---------------------------------------------------------------------
   Utilidades
   --------------------------------------------------------------------- */
.texto-xs { font-size: .78rem; }
.texto-sm { font-size: .86rem; }
.texto-lg { font-size: 1.1rem; }
.texto-gris { color: var(--tinta-500); }
.texto-tenue { color: var(--tinta-400); }
.texto-azul { color: var(--azul-700); }
.texto-ok { color: var(--ok-600); }
.texto-alerta { color: var(--alerta-600); }
.texto-peligro { color: var(--peligro-600); }
.texto-oro { color: var(--oro-600); }
.negrita { font-weight: 700; }
.mono { font-family: var(--fuente-mono); }
.tabular { font-variant-numeric: tabular-nums; }
.mayus { text-transform: uppercase; letter-spacing: .06em; }
.truncar { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }

.tarjeta-pnr {
  background: linear-gradient(135deg, var(--azul-800), var(--azul-600));
  color: #fff; border-radius: var(--r-lg); padding: 1.25rem;
}
.tarjeta-pnr .etiqueta { color: rgba(255,255,255,.6); }
.tarjeta-pnr .pnr {
  font-family: var(--fuente-mono); font-size: 2rem; font-weight: 700;
  letter-spacing: .12em; color: #fff;
}

.cargando { display: grid; place-items: center; padding: 3rem 1rem; color: var(--tinta-500); }
.cargando::after {
  content: ""; width: 26px; height: 26px; margin-top: .75rem;
  border: 3px solid var(--tinta-200); border-top-color: var(--azul-600);
  border-radius: 50%; animation: girar .7s linear infinite;
}
@keyframes girar { to { transform: rotate(360deg); } }
.cargando-bloque { display: flex; flex-direction: column; align-items: center; }

.vacio { text-align: center; padding: 2.5rem 1rem; color: var(--tinta-500); }
.vacio svg { width: 44px; height: 44px; color: var(--tinta-300); margin-bottom: .75rem; }

.esqueleto {
  background: linear-gradient(90deg, var(--tinta-100) 25%, var(--tinta-200) 50%, var(--tinta-100) 75%);
  background-size: 200% 100%; animation: brillo 1.4s infinite; border-radius: var(--r-sm);
}
@keyframes brillo { to { background-position: -200% 0; } }

.modal-fondo {
  position: fixed; inset: 0; background: rgba(15, 23, 42, .55);
  display: grid; place-items: center; z-index: 100; padding: 1rem;
  backdrop-filter: blur(3px);
}
.modal {
  background: var(--blanco); border-radius: var(--r-lg); width: min(680px, 100%);
  max-height: 90vh; overflow-y: auto; box-shadow: var(--sombra-xl);
}
.modal-cabecera {
  padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--tinta-200);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  position: sticky; top: 0; background: var(--blanco); z-index: 1;
}
.modal-cuerpo { padding: 1.25rem; }
.modal-pie {
  padding: 1rem 1.25rem; border-top: 1px solid var(--tinta-200);
  display: flex; gap: .5rem; justify-content: flex-end; flex-wrap: wrap;
  position: sticky; bottom: 0; background: var(--blanco);
}
.cerrar {
  border: 0; background: transparent; font-size: 1.4rem; line-height: 1;
  color: var(--tinta-400); cursor: pointer; padding: .2rem .4rem; border-radius: var(--r-sm);
}
.cerrar:hover { background: var(--tinta-100); color: var(--tinta-700); }

.aviso-flotante {
  position: fixed; bottom: 1.25rem; right: 1.25rem; z-index: 200;
  background: var(--tinta-900); color: #fff; padding: .8rem 1.1rem;
  border-radius: var(--r-md); box-shadow: var(--sombra-lg);
  font-size: .9rem; max-width: 400px;
  animation: subir 220ms ease;
}
.aviso-flotante.ok { background: var(--ok-600); }
.aviso-flotante.error { background: var(--peligro-600); }
.aviso-flotante.alerta { background: var(--alerta-600); }
@keyframes subir { from { opacity: 0; transform: translateY(12px); } }

/* ---------------------------------------------------------------------
   Impresión: el pase de embarque tiene que salir bien en papel
   --------------------------------------------------------------------- */
@media print {
  .cabecera, .pie, .btn, .no-imprimir { display: none !important; }
  body { background: #fff; }
  .pase { box-shadow: none; border: 1px solid #000; page-break-inside: avoid; }
  .pase-cabecera { background: #0b2647 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .contenedor { width: 100%; }
}

/* ---------------------------------------------------------------------
   Pie del sitio
   --------------------------------------------------------------------- */
.pie {
  background: var(--azul-900); color: rgba(255,255,255,.72);
  padding: 2.5rem 0 1.5rem; margin-top: 3rem; font-size: .88rem;
}
.pie a { color: rgba(255,255,255,.85); }
.pie h4 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .75rem; }
.pie-grilla { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.5rem; }
.pie-legal {
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 2rem; padding-top: 1rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: .8rem; color: rgba(255,255,255,.5);
}
.demo-aviso {
  background: var(--oro-100); color: var(--oro-600); text-align: center;
  padding: .4rem; font-size: .78rem; font-weight: 600;
  border-bottom: 1px solid var(--oro-300);
}
