/* Joivia — tema minimalista tipo Swiss (claro + oscuro por tokens).
   Organización tipo comparador: nav, hero con panel de búsqueda en línea,
   parrilla de populares y resultados con filtros + barra de búsqueda editable. */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --fondo: #F7F8FA;
  --panel: #FFFFFF;
  --panel2: #F1F3F6;
  --borde: #E3E7EE;
  --borde-campo: #D7DEE8;
  --tinta: #0F1B2D;
  --texto: #1B2638;
  --suave: #48566B;           /* secundario, ≥4.5:1 sobre --panel en ambos temas */
  --azul: #1D4ED8;
  --azul-osc: #173FAE;
  --azul-suave: #E8EEFF;
  --teal: #0E9384;
  --grad-marca: var(--azul);  /* antes degradado teal→azul→morado: ahora color plano */
  --ok: #0E7C5A;
  --precio-media: #B45309;
  --precio-alta: #C2413D;
  --rojo-fondo: #FCEDEC; --rojo-borde: #F3C6C6; --rojo-texto: #9B2F2F;
  --ambar-fondo: #FBF3E4; --ambar-borde: #E9C97A; --ambar-texto: #8A5A00;
  --sombra: 0 1px 2px rgba(15, 27, 45, .07);
  --sombra-2: 0 10px 28px rgba(15, 27, 45, .12);
  --display: "Lexend", "Segoe UI", system-ui, sans-serif;
  --cuerpo: "Lexend", "Segoe UI", system-ui, sans-serif;
}

/* Tema oscuro: sigue SIEMPRE al del sistema (no hay toggle ni override manual). */
@media (prefers-color-scheme: dark) {
  :root {
    --fondo: #0E1524; --panel: #161F32; --panel2: #1E2942;
    --borde: #2A3550; --borde-campo: #33405E;
    --tinta: #F4F7FB; --texto: #E3E8F0; --suave: #A9B4C6;
    --azul: #5B8DEF; --azul-osc: #7CA3F2; --azul-suave: #1B2A4A;
    --teal: #2DD4BF;
    --ok: #34D399; --precio-media: #FBBF24; --precio-alta: #F87171;
    --rojo-fondo: #3A1E1E; --rojo-borde: #5A2E2E; --rojo-texto: #F87171;
    --ambar-fondo: #3A2E14; --ambar-borde: #5A4620; --ambar-texto: #FBBF24;
    --sombra: 0 1px 2px rgba(0, 0, 0, .4);
    --sombra-2: 0 10px 28px rgba(0, 0, 0, .5);
  }
}

body {
  background: var(--fondo);
  color: var(--texto);
  font-family: var(--cuerpo);
}

/* cifras tabulares: precios, horas, contadores, calendario */
.precio-total, .precio-vuelo, .destino-precio, .filtro-grande, .filtro-valor,
.cal-precio, .cal-num, .cf-precio, .cf-nota, #f-precio-valor, .filtro-extremos,
.destino-nota, .dispersion, .pf-precio {
  font-variant-numeric: tabular-nums;
}

/* ---- pantalla de carga ---- */
#splash {
  position: fixed; inset: 0; z-index: 50;
  background: var(--fondo);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; transition: opacity .45s ease;
}
#splash.fuera { opacity: 0; pointer-events: none; }
.splash-nombre { color: var(--tinta); font-family: var(--display); font-size: 28px; font-weight: 700; }
.splash-nombre b { color: var(--azul); font-weight: 700; }
.splash-lema { color: var(--suave); font-size: 13.5px; }
.salto { animation: salto 1.4s ease-in-out infinite alternate; }
@keyframes salto { from { opacity: .55; } to { opacity: 1; } }

/* ---- barra de navegación ---- */
.nav { background: var(--panel); border-bottom: 1px solid var(--borde); }
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 11px 18px;
  display: flex; align-items: center; gap: 26px;
}
.nav-marca { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-marca span { font-family: var(--display); font-size: 20px; font-weight: 700; color: var(--tinta); }
.nav-marca b { color: var(--azul); font-weight: 700; }
.nav-enlaces { display: flex; gap: 4px; flex: 1; }
.nav-enlaces a {
  color: var(--suave); text-decoration: none; font-size: 14px; font-weight: 600;
  padding: 7px 13px; border-radius: 999px; transition: background .2s, color .2s;
}
.nav-enlaces a:hover { color: var(--tinta); background: var(--panel2); }
.nav-enlaces a.activo { color: var(--azul); background: var(--azul-suave); }
.nav-derecha { display: flex; align-items: center; gap: 10px; color: var(--suave); font-size: 13.5px; font-weight: 600; }
.nav-derecha .cambiar { color: var(--azul); text-decoration: none; }
.nav-derecha .cambiar:hover { text-decoration: underline; }

/* insignia "beta" junto al logo */
.nav-marca .beta {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; padding: 2px 7px; border-radius: 999px;
  margin-left: 7px; vertical-align: super;
  background: var(--panel2); color: var(--suave); border: 1px solid var(--borde);
}

/* ---- hero de portada ---- */
.hero-portada {
  position: relative;
  /* sin overflow:hidden aquí — el calendario desplegable debe poder sobresalir */
  padding: 54px 18px 108px;
  border-bottom: 1px solid var(--borde);
}
.hero-fondo {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
  background: var(--fondo);
}
.hero-inner { position: relative; max-width: 1100px; margin: 0 auto; }
.hero-portada h1 {
  font-family: var(--display);
  font-size: clamp(32px, 5vw, 50px);
  font-weight: 700; color: var(--tinta); line-height: 1.1; letter-spacing: -0.5px;
  text-wrap: balance;
}
.subrayado {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12' preserveAspectRatio='none'%3E%3Cpath d='M3 9 C 30 3, 60 3, 117 7' fill='none' stroke='%230E9384' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E")
    no-repeat bottom / 100% 0.24em;
  padding-bottom: 0.16em;
}
.sellos { display: flex; gap: 22px; flex-wrap: wrap; margin: 16px 0 30px; }
.sellos span { color: var(--suave); font-size: 13.5px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 7px; }
.sellos svg { color: var(--teal); }

/* ---- panel de búsqueda ---- */
.panel-busqueda {
  position: relative; z-index: 60; /* el calendario debe tapar a las tarjetas */
  background: var(--panel);
  border: 1px solid var(--borde);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: var(--sombra-2);
}
.panel-fila { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.etiqueta-fila { margin-bottom: 12px; }
.panel-etiqueta { color: var(--tinta); font-size: 13px; font-weight: 700; margin-right: 4px; }
.panel-etiqueta em { font-style: normal; font-weight: 400; color: var(--suave); font-size: 12px; }
#lista-amigos { display: flex; gap: 8px; flex-wrap: wrap; }

.fila-amigo {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--panel2);
  border: 1px solid var(--borde);
  border-radius: 999px; padding: 5px 8px 5px 5px;
}
.fila-amigo .avatar {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; background: var(--azul-suave);
}
.fila-amigo input {
  background: transparent; border: none; color: var(--tinta);
  font-size: 13.5px; font-family: inherit; outline: none; padding: 4px 2px;
}
.fila-amigo input::placeholder { color: var(--suave); }
.fila-amigo .nombre { width: 74px; }
.fila-amigo .aeropuerto { width: 150px; }
.quitar {
  background: none; border: none; color: var(--suave);
  cursor: pointer; padding: 4px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px;
}
.quitar:hover { color: var(--precio-alta); }

.campos-fila .campo {
  background: var(--panel2);
  border: 1px solid var(--borde);
  border-radius: 12px; padding: 7px 12px 8px;
}
.campos-fila .campo label, .barra-edicion .campo label {
  display: block; color: var(--suave); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .4px;
}
.campos-fila .campo input, .campos-fila .campo select,
.barra-edicion .campo input, .barra-edicion .campo select {
  background: transparent; border: none; outline: none;
  color: var(--tinta); font-size: 15px; font-family: inherit; padding-top: 1px;
}
.campo-destino { flex: 1; min-width: 240px; position: relative; }
.campo-destino input { width: 100%; }
.solo-ida { color: var(--texto); font-size: 13px; font-weight: 600;
  display: flex; align-items: center; gap: 6px; cursor: pointer; }
.solo-ida input { width: 18px; height: 18px; accent-color: var(--azul); }

.boton-explorar {
  background: var(--azul);
  border: none; border-radius: 12px;
  color: white; font-size: 16px; font-weight: 700;
  font-family: var(--display);
  padding: 14px 30px; cursor: pointer; margin-left: auto;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background .2s, transform .15s;
}
.boton-explorar:hover { background: var(--azul-osc); transform: translateY(-1px); }
.boton-explorar.compacto { padding: 11px 20px; font-size: 14px; }
#error-portada .error { margin-top: 12px; }

.boton-suave {
  background: var(--panel);
  color: var(--azul);
  border: 1.5px dashed var(--azul);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px; font-weight: 700;
  cursor: pointer; font-family: var(--display);
  transition: background .2s;
}
.boton-suave:hover { background: var(--azul-suave); }
.boton-suave.mini { padding: 6px 10px; font-size: 15px; min-width: 36px; min-height: 36px; }

/* ---- calendario desplegable ---- */
.campo-con-calendario { position: relative; }
.campo-fecha {
  background: transparent; border: none; font-family: inherit;
  font-size: 15px; font-weight: 600; color: var(--tinta);
  cursor: pointer; padding: 1px 0; min-width: 92px; text-align: left;
}
.campo-fecha.desactivado { opacity: .35; cursor: not-allowed; }
.calendario {
  position: absolute; top: calc(100% + 10px); left: -8px; z-index: 80;
  background: var(--panel); border: 1px solid var(--borde); border-radius: 14px;
  box-shadow: var(--sombra-2);
  padding: 12px; width: 336px;
}
.calendario.rango { width: 620px; max-width: calc(100vw - 28px); }
.cal-barra {
  display: flex; justify-content: space-between;
  margin-bottom: -26px; position: relative; z-index: 1;
}
.cal-meses { display: flex; gap: 18px; }
.cal-mes { flex: 1; min-width: 0; }
.cal-mes-nombre {
  text-align: center; font-family: var(--display); font-weight: 700;
  color: var(--tinta); font-size: 14.5px; margin-bottom: 6px;
}
.cal-dia.en-rango { background: var(--azul-suave); border-radius: 0; }
.cal-dia.extremo { background: var(--azul); color: white; font-weight: 700; }
.cal-dia.extremo .cal-precio { color: #dbeafe; }
.cal-pie {
  display: flex; justify-content: space-between; align-items: center;
  gap: 10px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--borde);
}
.cal-guia { font-size: 12.5px; color: var(--suave); }
.cal-aplicar {
  background: var(--azul); color: white; border: none; border-radius: 10px;
  padding: 9px 24px; font-family: var(--display); font-weight: 700;
  font-size: 14px; cursor: pointer;
}
.cal-aplicar:hover:not([disabled]) { background: var(--azul-osc); }
.cal-aplicar[disabled] { opacity: .4; cursor: default; }

.cal-cabecera {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--display); font-weight: 700; color: var(--tinta);
  font-size: 14.5px; margin-bottom: 8px;
}
.cal-nav {
  border: none; background: var(--panel2); width: 36px; height: 36px;
  border-radius: 8px; cursor: pointer; font-size: 16px; color: var(--tinta);
}
.cal-nav:hover { background: var(--azul-suave); }
.cal-rejilla { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-dia-semana { font-size: 11px; color: var(--suave); text-align: center; padding: 4px 0; font-weight: 700; }
.cal-dia {
  border: none; background: none; font-family: inherit;
  color: var(--texto); height: 42px; border-radius: 8px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1px; padding: 2px 0;
}
.cal-dia .cal-num { font-size: 13px; line-height: 1; }
.cal-dia .cal-precio { font-size: 10px; line-height: 1; font-weight: 700; min-height: 10px; }
.cal-dia:hover:not([disabled]) { background: var(--azul-suave); }
.cal-dia[disabled] { color: var(--borde-campo); cursor: default; }
.cal-dia.elegido { background: var(--azul); color: white; font-weight: 700; }
.cal-dia.elegido .cal-precio { color: #dbeafe; }
.cal-precio.cal-barato { color: var(--ok); }
.cal-precio.cal-medio { color: var(--precio-media); }
.cal-precio.cal-caro { color: var(--precio-alta); }
.cal-leyenda {
  display: flex; gap: 12px; justify-content: center; margin-top: 8px;
  font-size: 11px; color: var(--suave);
}
.cal-leyenda .lb { color: var(--ok); }
.cal-leyenda .lm { color: var(--precio-media); }
.cal-leyenda .lc { color: var(--precio-alta); }

/* shimmer del precio del calendario mientras carga */
.cal-precio.cargando {
  display: inline-block; width: 20px; height: 8px; border-radius: 4px;
  background: linear-gradient(90deg, var(--panel2) 25%, var(--borde) 50%, var(--panel2) 75%);
  background-size: 200% 100%; animation: brillo 1.2s ease-in-out infinite;
}
@keyframes brillo {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ---- secciones de portada ---- */
main { max-width: 1100px; margin: 0 auto; padding: 0 18px; }
.banner-viaje { padding: 34px 0 0; }
.formas-buscar, .ideas-grupo, .populares { padding: 40px 0 26px; }
.titulo-seccion { font-family: var(--display); font-size: 24px; font-weight: 700; color: var(--tinta); }
.titulo-seccion.grande { font-size: 28px; }
.sub-seccion { color: var(--suave); font-size: 13.5px; margin: 4px 0 18px; }

/* banner de bienvenida: tarjeta con texto a la izquierda y foto a sangre a
   la derecha, fundida con un degradado hacia el fondo de la tarjeta */
.banner-inner {
  display: flex; flex-wrap: wrap; background: var(--panel);
  border: 1px solid var(--borde); border-radius: 22px; overflow: hidden;
  box-shadow: var(--sombra-2); min-height: 230px;
}
.banner-texto { flex: 1 1 340px; display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 36px 40px; }
.banner-titulo-fila { display: flex; align-items: flex-start; gap: 14px; }
.banner-barra { flex: none; width: 4px; height: 44px; margin-top: 3px; background: var(--azul); border-radius: 2px; }
.banner-titulo-fila h2 { font-family: var(--display); font-size: 23px; font-weight: 700; color: var(--tinta); line-height: 1.28; }
.banner-texto p { color: var(--suave); font-size: 14px; line-height: 1.55; max-width: 42ch; }
.banner-foto { position: relative; flex: 1 1 320px; min-height: 220px; }
.banner-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner-foto::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, var(--panel) 0%, transparent 20%);
}
@media (max-width: 780px) {
  .banner-foto::before { background: linear-gradient(180deg, var(--panel) 0%, transparent 24%); }
}

/* reveal on scroll: cada sección de portada entra en fade + desplazamiento,
   escalonado por hijo, la primera vez que se hace scroll hasta ella (ver
   IntersectionObserver en app.js que añade "en-vista" a .seccion-portada) */
.reveal-item {
  opacity: 0; transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal-item.d2 { transition-delay: .08s; }
.reveal-item.d3 { transition-delay: .16s; }
.seccion-portada.en-vista .reveal-item { opacity: 1; transform: translateY(0); }

/* "así funciona": franja conectora entre el hero y el resto — sin título
   propio, tipografía en vez de tarjetas con sombra */
.como-funciona { padding: 30px 0; border-top: 1px solid var(--borde); border-bottom: 1px solid var(--borde); }
.pasos { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 26px; }
.paso { display: flex; align-items: flex-start; gap: 12px; }
.paso-num {
  font-family: var(--display); font-size: 12px; font-weight: 700;
  color: var(--suave); letter-spacing: 1px; margin-top: 3px;
}
.paso svg { color: var(--teal); flex: none; margin-top: 1px; }
.paso p { font-size: 13.5px; color: var(--suave); line-height: 1.45; }
.paso p strong { color: var(--tinta); font-weight: 600; }

/* "formas de buscar": lista de filas, no tarjetas — cada una rellena el
   campo Destino de arriba */
.lista-modos { border-top: 1px solid var(--borde); }
.modo-fila {
  display: flex; align-items: center; gap: 14px;
  padding: 15px 4px; border-bottom: 1px solid var(--borde);
  cursor: pointer; color: var(--suave);
  transition: color .15s, padding-left .15s;
}
.modo-fila svg:first-child { flex: none; color: var(--teal); }
.modo-texto { flex: 1; font-size: 14px; }
.modo-texto strong { color: var(--tinta); font-weight: 600; }
.modo-flecha { flex: none; opacity: 0; transform: translateX(-4px); transition: opacity .15s, transform .15s; }
.modo-fila:hover, .modo-fila:focus-visible {
  color: var(--tinta); padding-left: 8px;
}
.modo-fila:hover .modo-flecha, .modo-fila:focus-visible .modo-flecha { opacity: 1; transform: translateX(0); }

/* "ideas de grupo": foto real para las que ya tienen destino de ejemplo;
   panel liso con un "?" para las de sorpresa — la ausencia de foto es
   intencionada, el destino todavía está por decidir */
.tarjetas-idea { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.idea-tarjeta { cursor: pointer; animation: tarjeta-aparecer .5s ease both; }
.idea-tarjeta:nth-child(1) { animation-delay: 0ms; }
.idea-tarjeta:nth-child(2) { animation-delay: 80ms; }
.idea-tarjeta:nth-child(3) { animation-delay: 160ms; }
.idea-tarjeta:nth-child(4) { animation-delay: 240ms; }
.idea-foto-caja {
  position: relative; height: 168px; border-radius: 14px; overflow: hidden;
  background: var(--panel2);
}
.idea-foto-caja img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.idea-tarjeta:hover .idea-foto-caja img { transform: scale(1.04); }
.idea-cuerpo { padding: 10px 2px 0; }
.idea-titulo { font-family: var(--display); font-size: 15px; font-weight: 700; color: var(--tinta); }
.idea-sub { color: var(--suave); font-size: 12.5px; margin-top: 2px; }

/* ---- página de resultados: barra editable ---- */
.resumen {
  position: relative; z-index: 60; /* por encima de tarjetas y sidebar sticky */
  background: var(--panel); border-bottom: 1px solid var(--borde);
}
.resumen-inner {
  max-width: 1100px; margin: 0 auto; padding: 10px 18px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.barra-edicion .campo {
  background: var(--panel2); border: 1px solid var(--borde);
  border-radius: 10px; padding: 5px 10px 6px;
}
.barra-edicion .campo-destino { min-width: 190px; }
.barra-edicion .campo input, .barra-edicion .campo-fecha { font-size: 13.5px; }
.barra-edicion .fila-amigo .nombre { width: 64px; font-size: 12.5px; }
.barra-edicion .fila-amigo .aeropuerto { width: 128px; font-size: 12.5px; }
.barra-edicion .fila-amigo .avatar { width: 26px; height: 26px; font-size: 14px; }
#error-barra:empty { display: none; }
#error-barra .error { margin: 0 0 10px; width: 100%; }

.cuerpo-resultados {
  max-width: 1100px; margin: 20px auto 40px; padding: 0 18px;
  display: grid; grid-template-columns: 250px 1fr; gap: 20px;
  align-items: start;
}
/* Fija arriba pero con scroll propio: si la lista de aerolíneas es larga y no
   cabe en pantalla, el panel de filtros se desliza por dentro en vez de quedar
   cortado (antes había que bajar TODOS los vuelos para alcanzar el final). */
.filtros {
  position: sticky; top: 14px;
  max-height: calc(100vh - 28px); overflow-y: auto;
  /* deja aire para la sombra del panel al hacer scroll interno */
  margin: -6px; padding: 6px;
}
.filtros-caja {
  background: var(--panel); border: 1px solid var(--borde);
  border-radius: 16px; padding: 14px 16px; box-shadow: var(--sombra);
}
.filtros-caja summary {
  font-family: var(--display); font-weight: 700; font-size: 16px;
  color: var(--tinta); cursor: pointer; list-style: none;
}
.filtros-caja summary::-webkit-details-marker { display: none; }
#contador-combos { color: var(--suave); font-family: var(--cuerpo); font-weight: 600; font-size: 13px; }
.filtro { margin-top: 18px; }
.filtro-titulo {
  font-size: 13px; font-weight: 700; color: var(--tinta); margin-bottom: 8px;
  display: flex; align-items: baseline; gap: 8px;
}
.filtro-grande {
  font-family: var(--display); font-size: 19px; font-weight: 700;
  color: var(--tinta); margin-bottom: 4px;
}
.filtro-extremos {
  display: flex; justify-content: space-between;
  font-size: 11px; color: var(--suave); margin-top: 2px;
}
.filtro-sub { font-size: 11.5px; color: var(--suave); margin: 4px 0 8px; }
.segmentado {
  display: flex; gap: 3px; background: var(--panel2);
  border-radius: 11px; padding: 3px;
}
.segmentado button {
  flex: 1; border: none; background: none; padding: 9px 6px;
  border-radius: 9px; font-family: inherit; font-size: 12.5px; font-weight: 600;
  color: var(--suave); cursor: pointer; transition: background .2s, color .2s;
  min-height: 36px;
}
.segmentado button.activo {
  background: var(--panel); color: var(--azul); font-weight: 700;
  box-shadow: var(--sombra);
}
.chips-filtro { display: flex; gap: 6px; flex-wrap: wrap; }
.chips-filtro button {
  border: 1.5px solid var(--borde); background: var(--panel);
  border-radius: 999px; padding: 7px 12px; font-family: inherit;
  font-size: 12px; font-weight: 600; color: var(--texto); cursor: pointer;
  min-height: 32px;
  transition: border-color .2s, background .2s, color .2s;
}
.chips-filtro button:hover { border-color: var(--azul); }
.chips-filtro button.activo {
  border-color: var(--azul); background: var(--azul-suave); color: var(--azul);
  font-weight: 700;
}
.enlace-todas {
  margin-left: auto; border: none; background: none; color: var(--azul);
  font-size: 12px; font-weight: 600; cursor: pointer; font-family: inherit;
}
.enlace-todas:hover { text-decoration: underline; }
#f-aerolineas .filtro-opcion { padding: 6px 0; }
footer .version { font-weight: 700; }
.filtro-opcion {
  display: flex; align-items: center; gap: 8px;
  font-size: 13.5px; color: var(--texto); padding: 4px 0; cursor: pointer;
}
.filtro-opcion input { accent-color: var(--azul); width: 17px; height: 17px; }
.filtro-valor { font-size: 13px; color: var(--tinta); font-weight: 700; margin-top: 4px; }
.filtro select {
  width: 100%; background: var(--panel); color: var(--texto);
  border: 1px solid var(--borde-campo); border-radius: 10px;
  padding: 8px 10px; font-family: inherit; font-size: 13.5px;
}

/* control de rango de precio: por tokens en ambos temas */
input[type="range"] {
  width: 100%; -webkit-appearance: none; appearance: none;
  background: transparent; height: 24px;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 6px; border-radius: 999px; background: var(--panel2); border: 1px solid var(--borde);
}
input[type="range"]::-moz-range-track {
  height: 6px; border-radius: 999px; background: var(--panel2); border: 1px solid var(--borde);
}
input[type="range"]::-moz-range-progress {
  height: 6px; border-radius: 999px; background: var(--azul);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; margin-top: -8px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--azul); border: 2px solid var(--panel); box-shadow: var(--sombra);
  cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--azul); border: 2px solid var(--panel); box-shadow: var(--sombra);
  cursor: pointer;
}

/* rango doble (hora de salida): dos sliders superpuestos sobre una pista común */
.rango-doble { position: relative; height: 24px; margin-top: 6px; }
.rango-pista {
  position: absolute; top: 50%; left: 0; right: 0; height: 6px; transform: translateY(-50%);
  background: var(--panel2); border: 1px solid var(--borde); border-radius: 999px; overflow: hidden;
}
.rango-relleno { position: absolute; top: 0; bottom: 0; background: var(--azul); }
.rango-doble input[type="range"] {
  -webkit-appearance: none; appearance: none;
  position: absolute; top: 0; left: 0; width: 100%; height: 24px;
  margin: 0; background: transparent; pointer-events: none;
}
.rango-doble input[type="range"]::-webkit-slider-runnable-track {
  -webkit-appearance: none; height: 24px; background: transparent; border: none;
}
.rango-doble input[type="range"]::-moz-range-track { height: 24px; background: transparent; border: none; }
.rango-doble input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; pointer-events: auto; margin-top: 2px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--azul); border: 2px solid var(--panel); box-shadow: var(--sombra); cursor: pointer;
}
.rango-doble input[type="range"]::-moz-range-thumb {
  pointer-events: auto; width: 20px; height: 20px; border-radius: 50%;
  background: var(--azul); border: 2px solid var(--panel); box-shadow: var(--sombra); cursor: pointer;
}

.zona-resultados { min-width: 0; }

/* ---- genéricos ---- */
.tarjeta {
  background: var(--panel);
  border: 1px solid var(--borde);
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 14px;
  box-shadow: var(--sombra);
}
h2 {
  font-family: var(--display);
  font-size: 17px; font-weight: 700; color: var(--tinta);
  margin-bottom: 12px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.pista { color: var(--suave); font-size: 12.5px; font-weight: 400; font-family: var(--cuerpo); }

/* ---- cargando: skeletons de tarjetas fantasma ---- */
.cargando { padding: 4px 0 8px; }
.cargando.oculto { display: none; }
.cargando .texto-cargando {
  text-align: center; color: var(--suave); font-size: 13px; margin-bottom: 12px;
}
.combo-fantasma {
  background: var(--panel); border: 1px solid var(--borde); border-radius: 16px;
  padding: 18px 20px; margin-bottom: 14px;
}
.barra-fantasma {
  height: 14px; border-radius: 7px; margin-bottom: 10px;
  background: linear-gradient(90deg, var(--panel2) 25%, var(--borde) 50%, var(--panel2) 75%);
  background-size: 200% 100%; animation: brillo 1.2s ease-in-out infinite;
}
.barra-fantasma.corta { width: 40%; }
.barra-fantasma.media { width: 70%; }
.barra-fantasma.larga { width: 100%; height: 40px; margin-top: 14px; }

/* ---- resultados ---- */
.titulo-resultados {
  font-family: var(--display);
  font-size: 22px; font-weight: 700; color: var(--tinta); margin: 20px 0 12px;
}
.titulo-resultados .sub { display: block; color: var(--suave); font-size: 13px; font-weight: 400; font-family: var(--cuerpo); margin-top: 2px; }

/* pestañas Ida / Vuelta */
.tabs-viaje {
  display: flex; gap: 4px; background: var(--panel2);
  border-radius: 12px; padding: 4px; margin: 16px 0 14px;
}
.tabs-viaje button {
  flex: 1; border: none; background: none; cursor: pointer;
  font-family: inherit; font-size: 13.5px; font-weight: 600; color: var(--suave);
  padding: 10px 12px; border-radius: 9px; min-height: 44px;
  transition: background .2s, color .2s;
}
.tabs-viaje button[aria-selected="true"] {
  background: var(--panel); color: var(--tinta); font-weight: 700; box-shadow: var(--sombra);
}
.panel-viaje[hidden] { display: none; }

/* pestañas de modo de ordenación (Equilibrado / Barato / Juntos): mismo idioma
   que .segmentado / .tabs-viaje — control sobre --panel2, activo con fondo
   --panel, acento azul y sombra. */
.tabs-modo {
  display: flex; gap: 4px; background: var(--panel2);
  border-radius: 12px; padding: 4px; margin: 16px 0 14px;
}
.tab-modo {
  flex: 1; border: none; background: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-family: inherit; color: var(--suave);
  padding: 9px 8px; border-radius: 9px; min-height: 48px;
  transition: background .2s, color .2s, box-shadow .2s; text-align: center;
}
.tab-modo b { font-size: 13.5px; font-weight: 600; }
.tab-modo span { font-size: 11px; font-weight: 400; line-height: 1.2; color: var(--suave); }
.tab-modo:hover:not(.activo) { color: var(--texto); }
.tab-modo.activo {
  background: var(--panel); color: var(--azul); box-shadow: var(--sombra);
}
.tab-modo.activo b { font-weight: 700; }
@media (max-width: 520px) {
  .tab-modo span { display: none; }  /* en móvil, solo el nombre del modo */
  .tab-modo { min-height: 40px; }
}

.combo {
  background: var(--panel);
  border: 1px solid var(--borde);
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 14px;
  box-shadow: var(--sombra);
}
.combo.mejor { border: 2px solid var(--azul); }
.cinta {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--azul); color: white; font-size: 12px;
  font-weight: 700; border-radius: 999px; padding: 4px 12px; margin-bottom: 8px;
  font-family: var(--display);
}
.cinta svg { width: 12px; height: 12px; }
.cinta.secundaria { background: var(--panel2); color: var(--tinta); }

.cabecera-combo { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.precio-total { font-family: var(--display); font-size: 26px; font-weight: 700; color: var(--tinta); }
.precio-total small { font-family: var(--cuerpo); font-size: 13px; color: var(--suave); font-weight: 500; }
.dispersion { display: inline-flex; align-items: center; gap: 6px; color: var(--suave); font-size: 13px; }
.dispersion svg { width: 14px; height: 14px; color: var(--teal); }
.dispersion b { color: var(--ok); }

.vuelo {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 0; border-top: 1px solid var(--borde);
}
.vuelo:first-of-type { border-top: none; }
.chip-amigo {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center; font-size: 13px;
  background: var(--azul-suave);
}
.vuelo-info { flex: 1; min-width: 0; }
.vuelo-quien {
  font-size: 12.5px; font-weight: 600; color: var(--suave);
  display: flex; align-items: center; gap: 4px; margin-bottom: 6px;
}
/* "Ida"/"Vuelta" delante del nombre en las tarjetas combinadas de un
   viajero solo (htmlComboSolo), para distinguir los dos tramos. */
.etiqueta-tramo { color: var(--azul); text-transform: uppercase; letter-spacing: .02em; }

/* itinerario estilo comparador: logo · salida · duración/escala · llegada */
.vuelo-itinerario { display: flex; align-items: center; gap: 16px; }
.logo-aerolinea {
  width: 54px; height: 54px; object-fit: contain; flex: none;
  border: 1px solid var(--borde); border-radius: 12px; padding: 3px; background: #fff;
}
.inicial-aerolinea {
  width: 54px; height: 54px; border-radius: 12px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--borde); background: var(--panel2); color: var(--suave);
  font-size: 18px; font-weight: 700;
}
.itin-hora { display: flex; flex-direction: column; align-items: center; line-height: 1.15; }
.itin-hora b { font-family: var(--display); font-size: 19px; font-weight: 700; color: var(--tinta); }
.itin-hora span { font-size: 12px; color: var(--suave); font-weight: 600; }
.itin-tramo {
  flex: 1; min-width: 90px; display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.itin-dur { font-size: 12px; color: var(--suave); }
.itin-linea {
  position: relative; width: 100%; height: 1px; background: var(--borde);
  display: flex; align-items: center; justify-content: flex-end;
}
.itin-linea svg { width: 15px; height: 15px; color: var(--suave); background: var(--panel); transform: translateX(2px); }
.itin-escala { font-size: 12px; color: var(--teal); font-weight: 600; }
.itin-nota { font-size: 13px; color: var(--suave); }
.vuelo-itinerario.orientativo { min-height: 44px; }

.vuelo-compra { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; min-width: 96px; }
.precio-vuelo { font-family: var(--display); font-weight: 700; font-size: 19px; color: var(--tinta); }
.precio-desde { font-size: 12.5px; font-weight: 600; color: var(--suave); }
.boton-reservar {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--azul); color: #fff; text-decoration: none;
  font-size: 13px; font-weight: 700; border-radius: 10px; padding: 8px 14px;
  transition: background .2s; white-space: nowrap;
}
.boton-reservar:hover { background: var(--azul-osc); }
/* enlace de texto (usado en avisos "ver en vivo") */
.reservar { color: var(--azul); font-size: 13px; text-decoration: none; font-weight: 600; }
.reservar:hover { text-decoration: underline; }
/* utilidad: cifras tabulares para precios, horas y contadores */
.num { font-variant-numeric: tabular-nums; }

/* línea de tiempo de llegadas */
.llegadas { margin-top: 12px; background: var(--panel2); border-radius: 14px; padding: 12px 16px 20px; }
.llegadas .titulo { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--suave); font-weight: 700; margin-bottom: 12px; }
.llegadas .titulo svg { width: 14px; height: 14px; color: var(--teal); }
.pista-tiempo { position: relative; height: 5px; background: var(--borde); border-radius: 999px; }
.punto-llegada {
  position: absolute; top: 50%; transform: translate(-50%, -50%);
  width: 27px; height: 27px; border-radius: 50%; background: var(--panel);
  border: 2px solid var(--azul); display: flex; align-items: center; justify-content: center;
  font-size: 12px;
}
.etiqueta-llegada { position: absolute; top: 20px; transform: translateX(-50%);
  font-size: 11px; color: var(--suave); white-space: nowrap; }

/* héroe del destino */
.hero {
  position: relative; border-radius: 16px; overflow: hidden;
  height: 200px; margin-bottom: 14px; background: var(--panel2);
  box-shadow: var(--sombra);
}
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-iata, .foto-respaldo {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 700; color: white;
  background: var(--grad-marca);
  letter-spacing: 4px;
}
.hero-iata { font-size: 64px; }
.hero .capa { position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,27,45,0) 35%, rgba(15,27,45,.75)); }
.hero .titulo-hero {
  position: absolute; left: 20px; bottom: 14px; color: white;
  font-family: var(--display); font-size: 26px; font-weight: 700;
}
.hero .titulo-hero small { display: block; font-family: var(--cuerpo); font-size: 13px; font-weight: 400; color: #dce5f2; margin-top: 1px; }

/* fechas parecidas */
.chips-fechas { display: flex; gap: 10px; flex-wrap: wrap; }
.chip-fecha {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  background: var(--panel); border: 1.5px solid var(--borde); border-radius: 14px;
  padding: 9px 14px; cursor: pointer; font-family: var(--cuerpo);
  min-height: 44px;
  transition: border-color .2s, transform .15s;
}
.chip-fecha:hover { border-color: var(--azul); transform: translateY(-1px); }
.chip-fecha .cf-rango { font-size: 12px; color: var(--suave); }
.chip-fecha .cf-precio { font-family: var(--display); font-size: 15.5px; font-weight: 700; color: var(--tinta); }
.chip-fecha .cf-nota { font-size: 11.5px; color: var(--suave); }
.chip-fecha.actual { border: 2px solid var(--azul); background: var(--azul-suave); cursor: default; }
.chip-fecha.actual .cf-nota { color: var(--azul); font-weight: 700; }
.chip-fecha.barata { border: 2px solid var(--ok); }
.chip-fecha.barata .cf-precio, .chip-fecha.barata .cf-nota { color: var(--ok); }

/* pestañas "Fechas concretas" / "Fechas flexibles" dentro del propio popover
   de calendario (mismo idioma que .segmentado/.tabs-viaje) */
.cal-tabs { display: flex; gap: 4px; background: var(--panel2); border-radius: 11px; padding: 3px; margin-bottom: 10px; }
.cal-tab {
  flex: 1; border: none; background: none; cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 600; color: var(--suave);
  padding: 8px 10px; border-radius: 8px; min-height: 38px;
  transition: background .2s, color .2s;
}
.cal-tab.activo { background: var(--panel); color: var(--tinta); font-weight: 700; box-shadow: var(--sombra); }

/* pestaña "Fechas flexibles": rejilla de meses en vez de días (mismo popover
   .calendario que el de fecha exacta), luego lista de parejas de fechas. */
.rejilla-meses { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; }
.mes-celda {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: var(--panel2); border: 1.5px solid var(--borde); border-radius: 12px;
  padding: 12px 6px; cursor: pointer; font-family: inherit; color: var(--texto);
  transition: border-color .2s, background .2s;
}
.mes-celda:hover { border-color: var(--azul); }
.mes-celda.elegido { background: var(--azul); border-color: var(--azul); color: white; }
.mes-anio { font-size: 11px; color: var(--suave); }
.mes-celda.elegido .mes-anio { color: #dbeafe; }
.mes-nombre { font-family: var(--display); font-weight: 700; font-size: 14px; text-transform: capitalize; }
.mes-orientativo {
  font-size: 9.5px; color: var(--precio-media); font-weight: 700; text-transform: uppercase;
  letter-spacing: .3px;
}
.mes-celda.elegido .mes-orientativo { color: #ffe8b8; }

.flex-fila-noches { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.flex-fila-noches label { font-size: 12.5px; font-weight: 700; color: var(--tinta); }
.flex-fila-noches input {
  width: 64px; background: var(--panel2); border: 1px solid var(--borde-campo);
  border-radius: 8px; padding: 7px 8px; font-family: inherit; font-size: 14px; color: var(--texto);
}
.flex-vacio { color: var(--suave); font-size: 13px; padding: 4px 2px 2px; }

/* campo de duración (página fechas.html): mismo look que los demás .campo,
   pero estrecho (solo un número de noches) */
.campo-duracion { flex: none; }
.campo-duracion input { width: 56px; }

/* parejas de fechas (resultado de fechas.html): tarjetas tipo .chip-fecha
   pero clicables como enlace directo a resultados.html */
.parejas-fechas { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.pareja-fecha {
  display: block; text-decoration: none;
  background: var(--panel); border: 1.5px solid var(--borde); border-radius: 14px;
  padding: 14px 16px; transition: border-color .2s, transform .15s, box-shadow .2s;
}
.pareja-fecha:hover { border-color: var(--azul); transform: translateY(-2px); box-shadow: var(--sombra); }
.pareja-fecha.mejor { border: 2px solid var(--azul); background: var(--azul-suave); }
.pf-rango { font-size: 12.5px; color: var(--suave); font-weight: 600; }
.pf-precio { font-family: var(--display); font-size: 21px; font-weight: 700; color: var(--tinta); margin-top: 2px; }
.pf-nota { font-size: 12px; color: var(--suave); margin-top: 2px; }

/* destinos sugeridos y populares */
.destinos { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.destino-tarjeta {
  background: var(--panel); border: 1px solid var(--borde); border-radius: 16px;
  padding: 0; overflow: hidden; cursor: pointer;
  box-shadow: var(--sombra);
  transition: transform .15s, box-shadow .2s, border-color .2s;
}
.destino-tarjeta:hover { border-color: var(--azul); transform: translateY(-2px);
  box-shadow: var(--sombra-2); }
.destino-tarjeta.mejor { border: 2px solid var(--azul); }
.destino-foto-caja { position: relative; height: 132px; background: var(--panel2); }
.destino-foto-caja .foto-respaldo { font-size: 34px; }
.destino-foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.destino-etiqueta {
  position: absolute; left: 10px; bottom: 10px; z-index: 1;
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--panel); color: var(--tinta); font-size: 11.5px; font-weight: 700;
  border-radius: 999px; padding: 4px 10px 4px 8px; font-family: var(--display);
  box-shadow: var(--sombra);
}
.destino-etiqueta svg { width: 13px; height: 13px; color: var(--azul); }

/* aparición escalonada de las tarjetas de escapadas/ideas al insertarse */
.seccion-portada .destino-tarjeta { animation: tarjeta-aparecer .5s ease both; }
.seccion-portada .destino-tarjeta:nth-child(1) { animation-delay: 0ms; }
.seccion-portada .destino-tarjeta:nth-child(2) { animation-delay: 60ms; }
.seccion-portada .destino-tarjeta:nth-child(3) { animation-delay: 120ms; }
.seccion-portada .destino-tarjeta:nth-child(4) { animation-delay: 180ms; }
.seccion-portada .destino-tarjeta:nth-child(5) { animation-delay: 240ms; }
.seccion-portada .destino-tarjeta:nth-child(6) { animation-delay: 300ms; }
.seccion-portada .destino-tarjeta:nth-child(7) { animation-delay: 360ms; }
.seccion-portada .destino-tarjeta:nth-child(8) { animation-delay: 420ms; }
@keyframes tarjeta-aparecer {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.destino-cuerpo { padding: 13px 16px 15px; }
.destino-ciudad { font-family: var(--display); font-size: 17px; font-weight: 700; color: var(--tinta); }
.destino-pais { color: var(--suave); font-size: 12.5px; margin-bottom: 8px; }
.destino-precio { font-family: var(--display); font-size: 22px; font-weight: 700; color: var(--tinta); }
.destino-precio small { font-family: var(--cuerpo); font-size: 12.5px; color: var(--suave); font-weight: 500; }
.destino-nota { margin-top: 4px; font-size: 12.5px; color: var(--suave); }

/* relleno del modo país cuando faltan datos cacheados: aeropuertos sin
   precio todavía, tocarlos busca ese destino en vivo (ver resultados.js) */
.destino-tarjeta.sin-datos { border-style: dashed; opacity: .82; }
.destino-tarjeta.sin-datos:hover { opacity: 1; }
.destino-precio-pendiente { font-size: 15px; color: var(--suave); }

.nota-resumen { margin-top: 10px; font-size: 12px; color: var(--suave); line-height: 1.4; }

/* etiqueta de fuente de datos */
.fuente-datos {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--ambar-fondo); color: var(--ambar-texto);
  border: 1px solid var(--ambar-borde); border-radius: 999px;
  font-size: 12px; font-weight: 600; padding: 5px 12px; margin-bottom: 12px;
}
.fuente-datos svg { width: 13px; height: 13px; }
.fuente-datos.real { background: var(--panel2); color: var(--ok); border-color: var(--borde); }
.fuente-datos.error { background: var(--rojo-fondo); color: var(--rojo-texto); border-color: var(--rojo-borde); }

/* insignia de fuente por vuelo (junto a la ruta) */
.insignia-fuente {
  display: inline-block; font-size: 11px; font-weight: 600;
  padding: 1px 7px; border-radius: 999px; margin-left: 6px;
  vertical-align: middle; white-space: nowrap;
  background: var(--panel2); color: var(--suave);
}

/* avisos */
.error {
  background: var(--rojo-fondo); border: 1px solid var(--rojo-borde);
  color: var(--rojo-texto); border-radius: 14px; padding: 13px 16px; margin-top: 14px; font-size: 14px;
}
.error a { color: inherit; font-weight: 700; }
.aviso {
  background: var(--ambar-fondo); border: 1px solid var(--ambar-borde);
  color: var(--ambar-texto); border-radius: 14px; padding: 13px 16px;
  margin-bottom: 14px; font-size: 14px;
}

/* resaltar brevemente un campo al que hay que prestar atención */
.pide-atencion { animation: pide-atencion 1.2s ease; }
@keyframes pide-atencion {
  0%, 100% { box-shadow: none; }
  20%, 60% { box-shadow: 0 0 0 3px var(--azul-suave), 0 0 0 1px var(--azul); }
}

footer { text-align: center; color: var(--suave); font-size: 12px; padding: 20px 16px; }

/* ---- autocompletar de lugares ---- */
.auto-panel {
  position: fixed; z-index: 200;
  background: var(--panel); border: 1px solid var(--borde); border-radius: 12px;
  box-shadow: var(--sombra-2); padding: 6px; max-height: 280px; overflow-y: auto;
}
.auto-opcion {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 10px; border-radius: 8px; cursor: pointer;
  font-size: 13.5px; color: var(--texto);
}
.auto-opcion svg { width: 15px; height: 15px; color: var(--suave); flex: none; }
.auto-opcion b { color: var(--tinta); font-weight: 600; }
.auto-opcion .auto-sub { color: var(--suave); font-size: 12px; margin-left: auto; padding-left: 8px; white-space: nowrap; }
.auto-opcion:hover, .auto-opcion.activa { background: var(--azul-suave); }
.auto-vacio { padding: 10px; color: var(--suave); font-size: 13px; }

/* accesibilidad */
:focus-visible { outline: 3px solid var(--azul); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .cal-precio.cargando, .barra-fantasma { background: var(--panel2); }
}

/* responsive */
@media (max-width: 900px) {
  .cuerpo-resultados { grid-template-columns: 1fr; }
  .filtros { position: static; }
}
@media (max-width: 640px) {
  body { overflow-x: hidden; }
  .nav-enlaces { display: none; }
  .hero-portada { padding: 34px 16px 72px; }
  .campos-fila .campo, .campo-destino { width: 100%; flex: 1 1 100%; }
  .boton-explorar { width: 100%; margin-left: 0; }
  .fila-amigo .aeropuerto { width: 120px; }
  input { max-width: 100%; }
  .calendario { left: 0; }
  .auto-panel { left: 16px !important; right: 16px; width: auto !important; }
  /* fila de vuelo: el itinerario baja bajo el nombre y el precio a la derecha */
  .vuelo { flex-wrap: wrap; gap: 10px 12px; }
  .vuelo-itinerario { gap: 10px; }
  .itin-tramo { min-width: 60px; }
  .logo-aerolinea, .inicial-aerolinea { width: 46px; height: 46px; }
  .itin-hora b { font-size: 17px; }
  .vuelo-compra { flex-direction: row; align-items: center; gap: 12px; min-width: 0; margin-left: 48px; }
}
