/* =====================================================================
   TiquetesBaratos.com — Estilos principales
   ===================================================================== */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #2d2d2d;
  background: #f5f5f5;
  min-height: 100vh;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
img { max-width: 100%; display: block; }
input, select { font-family: inherit; }

/* ---------- VARIABLES ---------- */
:root {
  --blue: #0057b8;
  --blue-dark: #003d82;
  --orange: #e87722;
  --orange-dark: #c5621a;
  --green: #1a9e4e;
  --gray-50:  #fafafa;
  --gray-100: #f0f0f0;
  --gray-200: #e0e0e0;
  --gray-400: #9e9e9e;
  --gray-600: #616161;
  --gray-800: #2d2d2d;
  --white: #ffffff;
  --shadow: 0 4px 16px rgba(0,0,0,.14);
  --shadow-sm: 0 2px 8px rgba(0,0,0,.10);
  --radius: 8px;
  --radius-lg: 14px;
}

/* ---------- UTIL ---------- */
.content-wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* =====================================================================
   HEADER
   ===================================================================== */
.header {
  background: var(--blue);
  position: sticky;
  top: 0;
  z-index: 900;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.navbar { width: 100%; }

/* TOP BAR */
.nav-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 16px;
  gap: 12px;
}

/* Logo */
.logo-link { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-circle {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--white);
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; line-height: 1.05;
  font-size: 7px; font-weight: 700; color: var(--blue);
  flex-shrink: 0;
}
.logo-www    { font-size: 6px; color: var(--gray-600); }
.logo-tiquetes { font-size: 7.5px; color: var(--blue-dark); font-weight: 800; }
.logo-baratos  { font-size: 7px; color: var(--orange); font-weight: 800; }
.logo-com    { font-size: 6px; color: var(--gray-600); }

.brand-text { display: flex; flex-direction: column; }
.brand-sub  { font-size: 10px; color: rgba(255,255,255,.78); }
.brand-name { font-size: 14px; color: var(--white); font-weight: 700; }

/* Nav actions */
.nav-actions { display: flex; align-items: center; gap: 4px; }

/* Generic dropdown */
.nav-dropdown { position: relative; }
.btn-action {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 11px; border-radius: 20px;
  color: var(--white); font-size: 13px; font-weight: 500;
  transition: background .2s;
  background: transparent;
}
.btn-action:hover { background: rgba(255,255,255,.15); }
.flag-icon { width: 18px; height: 13px; border-radius: 2px; object-fit: cover; }
.btn-phone strong { font-weight: 700; font-size: 14px; }
.btn-user { gap: 8px; border: 1px solid rgba(255,255,255,.5); border-radius: 20px; padding: 6px 12px; }
.btn-user-text { font-size: 13px; font-weight: 500; }

/* Dropdown menu */
.dropdown-menu {
  position: absolute; right: 0; top: calc(100% + 6px);
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); min-width: 200px; z-index: 999;
  display: none; overflow: hidden;
  border: 1px solid var(--gray-200);
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu,
.nav-dropdown.is-open .dropdown-menu { display: block; }
.dropdown-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px; font-size: 13.5px; color: var(--gray-800);
  transition: background .15s;
}
.dropdown-menu a:hover { background: var(--gray-100); }
.dropdown-menu a i { width: 16px; color: var(--blue); }

/* Phone menu */
.phone-menu { min-width: 300px; }
.phone-promo { padding: 12px 16px 4px; font-size: 13px; font-weight: 600; color: var(--blue); }
.phone-main { font-size: 18px !important; font-weight: 700 !important; color: var(--blue) !important; padding: 8px 16px !important; }
.phone-cities-title { padding: 10px 16px 6px; font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--gray-600); }
.phone-cities-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0;
}
.phone-cities-grid a { font-size: 12px !important; padding: 6px 12px !important; }
.phone-cities-grid span { font-weight: 600; }
.phone-contact-links { border-top: 1px solid var(--gray-200); }
.phone-contact-links a { font-size: 13px !important; }
.phone-contact-links a i { color: var(--green); }

/* User menu */
.user-menu-login {
  background: var(--gray-50); font-weight: 600 !important;
  border-bottom: 1px solid var(--gray-200); justify-content: space-between !important;
}

/* Lang menu */
.lang-menu .active-lang { background: rgba(0,87,184,.08); font-weight: 600; }

/* NAV TABS */
.nav-tabs {
  display: flex; align-items: flex-end;
  max-width: 1200px; margin: 0 auto;
  padding: 0 16px;
  gap: 0;
  border-top: 1px solid rgba(255,255,255,.15);
}
.tab-item { position: relative; }
.tab-item a {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 18px; color: rgba(255,255,255,.82); font-size: 14px; font-weight: 500;
  border-radius: var(--radius) var(--radius) 0 0;
  transition: background .2s, color .2s;
}
.tab-item:hover a, .tab-item.active a {
  background: rgba(255,255,255,.18); color: var(--white);
}
.tab-item.active a { background: rgba(255,255,255,.22); font-weight: 700; }
.tab-badge {
  position: absolute; top: 2px; right: 4px;
  font-size: 9px; font-weight: 700; padding: 2px 5px; border-radius: 10px;
  white-space: nowrap;
}
.badge-green { background: var(--green); color: #fff; }
.badge-blue  { background: var(--orange); color: #fff; }

/* =====================================================================
   HERO SECTION
   ===================================================================== */
.hero-section { position: relative; background: var(--blue); }

/* BUSCADOR */
.booker-wrap {
  position: relative; z-index: 50;
  max-width: 1200px; margin: 0 auto;
  padding: 24px 16px 0;
}

/* Formulario */
.search-form {
  background: rgba(255,255,255,.96);
  border-radius: var(--radius-lg);
  padding: 20px 20px 0;
  box-shadow: var(--shadow);
}

/* Tipo vuelo */
.flight-type-row {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 14px;
}
.ft-label { font-size: 13px; color: var(--gray-600); font-weight: 500; }
.radio-pill { display: flex; align-items: center; gap: 5px; cursor: pointer; }
.radio-pill input { accent-color: var(--blue); }
.radio-pill span { font-size: 13px; color: var(--gray-800); }

/* FILA DE CAMPOS */
.search-fields {
  display: flex; align-items: stretch; gap: 2px;
  background: var(--gray-200); border-radius: 10px; overflow: visible;
  margin-bottom: 0;
}

/* Campo individual */
.field-wrap {
  flex: 1; min-width: 0; position: relative;
  background: var(--white);
}
.field-wrap:first-child { border-radius: 10px 0 0 10px; }
.field-wrap.field-pax   { border-radius: 0 10px 10px 0; }
.field-wrap:last-child  { border-radius: 0 10px 10px 0; }

.field-btn {
  width: 100%; height: 70px; padding: 10px 14px;
  display: flex; align-items: center; gap: 12px;
  background: transparent; text-align: left;
  transition: background .2s;
}
.field-btn:hover { background: var(--gray-100); }
.field-ico { font-size: 18px; color: var(--blue); flex-shrink: 0; }
.field-inner { display: flex; flex-direction: column; overflow: hidden; }
.field-lbl { font-size: 11px; color: var(--gray-600); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.field-val { font-size: 15px; font-weight: 600; color: var(--gray-800); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Swap button */
.swap-btn {
  width: 36px; flex-shrink: 0; align-self: center;
  background: var(--white); z-index: 2;
  border-radius: 50%;
  width: 32px; height: 32px;
  border: 1px solid var(--gray-200);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue); font-size: 14px; margin: 0 -4px;
  transition: transform .25s, background .2s;
}
.swap-btn:hover { background: var(--blue); color: #fff; transform: rotate(180deg); }

/* Botón buscar */
.search-bottom {
  padding: 16px 0 20px;
  display: flex; justify-content: center;
}
.btn-buscar {
  background: var(--orange); color: var(--white);
  font-size: 17px; font-weight: 700; padding: 14px 60px;
  border-radius: 8px; transition: background .2s, transform .1s;
  box-shadow: 0 4px 10px rgba(232,119,34,.35);
}
.btn-buscar:hover  { background: var(--orange-dark); }
.btn-buscar:active { transform: scale(.98); }

/* =====================================================================
   AUTOCOMPLETE PANEL
   ===================================================================== */
.ac-panel {
  position: absolute; top: calc(100% + 4px); left: 0;
  width: 380px; max-height: 440px;
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); z-index: 500;
  overflow: hidden; display: flex; flex-direction: column;
  border: 1px solid var(--gray-200);
}
.ac-top {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 14px; border-bottom: 1px solid var(--gray-200);
}
.ac-ico { color: var(--gray-400); font-size: 14px; }
.ac-input {
  flex: 1; border: none; outline: none;
  font-size: 14.5px; color: var(--gray-800);
}
.ac-x { color: var(--gray-400); font-size: 14px; padding: 4px; }
.ac-x:hover { color: var(--gray-800); }

.ac-body { flex: 1; overflow-y: auto; padding: 8px 0; }
.ac-section-lbl {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  color: var(--gray-600); padding: 4px 14px 8px; letter-spacing: .5px;
}
.ac-list { padding: 0; }
.ac-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; cursor: pointer; transition: background .15s;
}
.ac-item:hover { background: var(--gray-100); }
.ac-item-ico { color: var(--blue); font-size: 16px; flex-shrink: 0; }
.ac-item-body { flex: 1; min-width: 0; }
.ac-item-city { font-size: 14px; font-weight: 600; color: var(--gray-800); }
.ac-item-detail { font-size: 12px; color: var(--gray-600); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-item-code {
  font-size: 13px; font-weight: 700; color: var(--blue);
  background: rgba(0,87,184,.08); border-radius: 4px; padding: 2px 6px; flex-shrink: 0;
}

/* =====================================================================
   CALENDAR PANEL
   ===================================================================== */
.cal-panel {
  position: absolute; top: calc(100% + 4px); left: 50%; transform: translateX(-50%);
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); z-index: 500;
  border: 1px solid var(--gray-200);
  min-width: 580px; padding: 16px;
}
.cal-nav-row {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 12px;
}
.cal-months-row { flex: 1; display: flex; justify-content: space-around; }
.cal-month-title { font-size: 15px; font-weight: 700; color: var(--gray-800); text-align: center; min-width: 200px; }
.cal-arrow {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--gray-200); color: var(--gray-600);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; transition: all .2s;
}
.cal-arrow:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.cal-grids-row { display: flex; gap: 24px; }
.cal-grid { flex: 1; }
.cal-weekdays {
  display: grid; grid-template-columns: repeat(7,1fr);
  margin-bottom: 6px;
}
.cal-weekday { text-align: center; font-size: 11px; font-weight: 700; color: var(--gray-600); padding: 4px 0; text-transform: uppercase; }
.cal-days { display: grid; grid-template-columns: repeat(7,1fr); gap: 2px; }
.cal-day {
  text-align: center; padding: 7px 2px; font-size: 13px; cursor: pointer;
  border-radius: 50%; transition: background .15s, color .15s;
  color: var(--gray-800);
}
.cal-day:hover:not(.cal-empty):not(.cal-past) { background: var(--gray-100); }
.cal-day.cal-empty { visibility: hidden; }
.cal-day.cal-past  { color: var(--gray-400); cursor: default; }
.cal-day.cal-today { font-weight: 700; color: var(--blue); }
.cal-day.cal-sel-start, .cal-day.cal-sel-end {
  background: var(--blue); color: #fff; border-radius: 50%;
}
.cal-day.cal-in-range { background: rgba(0,87,184,.12); border-radius: 0; color: var(--blue); font-weight: 600; }
.cal-footer-row {
  display: flex; justify-content: flex-end; gap: 10px;
  margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--gray-200);
}
.cal-btn-clear {
  padding: 8px 18px; border-radius: 6px; font-size: 13px; font-weight: 600;
  color: var(--gray-600); border: 1px solid var(--gray-200);
  transition: background .2s;
}
.cal-btn-clear:hover { background: var(--gray-100); }
.cal-btn-apply {
  padding: 8px 22px; border-radius: 6px; font-size: 13px; font-weight: 700;
  background: var(--blue); color: #fff; transition: background .2s;
}
.cal-btn-apply:hover { background: var(--blue-dark); }

/* =====================================================================
   PASSENGERS PANEL
   ===================================================================== */
.pax-panel {
  position: absolute; top: calc(100% + 4px); right: 0;
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); z-index: 500; min-width: 310px;
  border: 1px solid var(--gray-200); padding: 8px 0 12px;
}
.pax-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px; border-bottom: 1px solid var(--gray-100);
}
.pax-row:last-of-type { border-bottom: none; }
.pax-info { display: flex; flex-direction: column; }
.pax-info strong { font-size: 14px; color: var(--gray-800); }
.pax-info small  { font-size: 12px; color: var(--gray-600); }
.pax-ctrl { display: flex; align-items: center; gap: 12px; }
.pax-btn {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1.5px solid var(--blue); color: var(--blue);
  font-size: 18px; line-height: 1; display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.pax-btn:hover { background: var(--blue); color: #fff; }
.pax-btn:disabled { border-color: var(--gray-200); color: var(--gray-400); cursor: default; }
.pax-ctrl span { font-size: 16px; font-weight: 700; min-width: 24px; text-align: center; color: var(--gray-800); }
.pax-cabin-row { border-top: 1px solid var(--gray-200); margin-top: 4px; }
.pax-cabin-row strong { font-size: 14px; color: var(--gray-800); }
#cabinSel {
  border: 1px solid var(--gray-200); border-radius: 6px;
  padding: 6px 10px; font-size: 13px; color: var(--gray-800);
  outline: none; cursor: pointer;
}
.pax-apply {
  display: block; width: calc(100% - 36px); margin: 10px 18px 0;
  background: var(--blue); color: #fff;
  font-size: 14px; font-weight: 700; padding: 10px;
  border-radius: 8px; transition: background .2s;
}
.pax-apply:hover { background: var(--blue-dark); }

/* =====================================================================
   BANNER CAROUSEL
   ===================================================================== */
.banner-wrap {
  position: relative; overflow: hidden;
  margin-top: 16px;
  max-height: 426px;
}
.banner-track { position: relative; }
.banner-slide { display: none; }
.banner-slide.active { display: block; }
.banner-img { width: 100%; height: 426px; object-fit: cover; display: block; }

.banner-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.85); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; transition: all .2s; z-index: 10;
  box-shadow: var(--shadow-sm);
}
.banner-arrow:hover { background: var(--white); }
.arr-prev { left: 14px; }
.arr-next { right: 14px; }

.banner-dots {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 7px; z-index: 10;
}
.bdot {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255,255,255,.55); transition: background .3s;
}
.bdot.active { background: var(--white); }

/* =====================================================================
   SECTIONS COMMON
   ===================================================================== */
.section-block { padding: 56px 0; }
.section-block + .section-block { padding-top: 0; }
.block-title { font-size: 26px; font-weight: 800; color: var(--gray-800); margin-bottom: 6px; }
.block-sub   { font-size: 15px; color: var(--gray-600); margin-bottom: 28px; }

/* =====================================================================
   OFFERS CAROUSEL
   ===================================================================== */
.offers-outer { position: relative; }
.o-arr {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 10; width: 38px; height: 38px; border-radius: 50%;
  background: var(--white); box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue); font-size: 14px; transition: all .2s;
  border: 1px solid var(--gray-200);
}
.o-arr:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.o-arr-l { left: -18px; }
.o-arr-r { right: -18px; }

.offers-viewport { overflow: hidden; }
.offers-track {
  display: flex; gap: 16px;
  transition: transform .35s ease;
}
.offer-card {
  flex: 0 0 calc(16.666% - 14px); min-width: 160px;
}
.offer-card a { display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.offer-card a:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.offer-card figure { aspect-ratio: 3/2; overflow: hidden; }
.offer-card figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.offer-card a:hover img { transform: scale(1.04); }
.offer-lbl {
  padding: 8px 10px; font-size: 12.5px; font-weight: 600;
  color: var(--gray-800); background: var(--white); text-align: center;
}

/* =====================================================================
   PAGOS
   ===================================================================== */
.section-pagos { background: var(--white); padding: 28px 0; }
.promo-aside {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.promo-left { flex-shrink: 0; }
.promo-title { font-size: 18px; font-weight: 700; color: var(--gray-800); margin-bottom: 6px; }
.promo-link-btn {
  font-size: 13px; color: var(--blue); font-weight: 600;
  display: flex; align-items: center; gap: 5px;
}
.promo-link-btn:hover { text-decoration: underline; }
.promo-logos {
  display: flex; align-items: center; flex-wrap: wrap; gap: 18px;
}
.promo-logos li { list-style: none; display: flex; align-items: center; }
.promo-logos img { display: block; }

/* =====================================================================
   PAQUETES
   ===================================================================== */
.pkg-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 20px;
}
.pkg-card {
  display: block; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; background: var(--white);
}
.pkg-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.pkg-card figure { aspect-ratio: 4/3; overflow: hidden; }
.pkg-card figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.pkg-card:hover img { transform: scale(1.04); }
.pkg-info {
  padding: 14px 16px; display: flex; flex-direction: column; gap: 2px;
}
.pkg-info span { font-size: 16px; font-weight: 700; color: var(--gray-800); }
.pkg-info small { font-size: 13px; color: var(--gray-600); }

/* =====================================================================
   BENEFICIOS
   ===================================================================== */
.section-beneficios { background: var(--blue); }
.section-beneficios .block-title,
.section-beneficios .block-sub { color: #fff; }
.bene-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.bene-item {
  display: flex; align-items: flex-start; gap: 14px;
  background: rgba(255,255,255,.12); border-radius: var(--radius);
  padding: 20px; color: #fff;
}
.bene-item i { font-size: 28px; margin-top: 2px; color: rgba(255,255,255,.85); flex-shrink: 0; }
.bene-item h4 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.bene-item p  { font-size: 13px; color: rgba(255,255,255,.78); line-height: 1.4; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer { background: #1a2332; color: rgba(255,255,255,.82); }
.footer-top { padding: 48px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 28px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h5 { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; color: #fff; margin-bottom: 4px; }
.footer-col a { font-size: 13px; color: rgba(255,255,255,.72); transition: color .2s; line-height: 1.6; }
.footer-col a:hover { color: #fff; }
.footer-col p  { font-size: 13px; color: rgba(255,255,255,.72); display: flex; align-items: center; gap: 8px; }
.footer-col p i { color: rgba(255,255,255,.5); }

.footer-brand { gap: 12px; }
.footer-logo { width: 80px; height: auto; }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,.78); line-height: 1.5; }
.footer-brand strong { color: #fff; }
.rnt { font-size: 11px !important; color: rgba(255,255,255,.45) !important; }

/* Sociales */
.socials { display: flex; gap: 10px; margin-top: 4px; }
.soc {
  width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: #fff; transition: background .2s;
}
.soc-fb { background: #1877f2; }
.soc-tw { background: #000000; }
.soc-ig { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.soc-yt { background: #ff0000; }
.soc:hover { opacity: .85; transform: scale(1.08); }

.footer-bottom {
  background: #111820; padding: 14px;
  text-align: center; font-size: 12px; color: rgba(255,255,255,.4);
}

/* =====================================================================
   OVERLAY
   ===================================================================== */
.overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.35); z-index: 400;
}
.overlay.active { display: block; }

/* =====================================================================
   RESPONSIVE — Mobile-First
   ===================================================================== */

/* ---- Pantalla mediana 1100px ---- */
@media (max-width: 1100px) {
  .bene-grid    { grid-template-columns: repeat(2, 1fr); }
  .footer-grid  { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Tablet 900px ---- */
@media (max-width: 900px) {
  .search-fields {
    flex-wrap: wrap;
    background: transparent;
    gap: 8px;
  }
  .field-wrap {
    flex: 1 1 calc(50% - 4px) !important;
    border-radius: var(--radius) !important;
    border: 1px solid var(--gray-200);
  }
  .swap-btn        { display: none; }
  .pkg-grid        { grid-template-columns: repeat(2, 1fr); }
  .offer-card      { flex: 0 0 calc(33.333% - 11px); }
}

/* ---- Móvil 640px — TARGET PRINCIPAL ---- */
@media (max-width: 640px) {

  /* --- Header compacto --- */
  .nav-top {
    padding: 6px 12px;
    gap: 4px;
    flex-wrap: nowrap;
    overflow: hidden;
  }

  /* Solo círculo logo, ocultar texto de marca */
  .brand-text  { display: none; }
  .logo-circle { width: 40px; height: 40px; }

  /* Ocultar idioma y ayuda — solo teléfono + usuario */
  .dd-lang, .dd-help { display: none; }

  /* Teléfono: solo icono */
  .btn-phone strong,
  .btn-phone .fa-chevron-down { display: none; }
  .btn-phone { padding: 7px 10px; }

  /* Usuario: solo icono usuario */
  .btn-user-text,
  .btn-user .fa-bars { display: none; }
  .btn-user { padding: 7px 10px; gap: 0; }

  /* Dropdowns teléfono y usuario — anclados al viewport */
  .dd-phone .dropdown-menu,
  .dd-user  .dropdown-menu {
    position: fixed;
    left: 8px; right: 8px; top: 60px;
    width: auto; min-width: unset;
    max-height: 72vh; overflow-y: auto;
    border-radius: var(--radius-lg);
    z-index: 950;
  }
  .phone-cities-grid { grid-template-columns: 1fr 1fr; }

  /* Nav tabs: scroll horizontal */
  .nav-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 8px;
    flex-wrap: nowrap;
  }
  .nav-tabs::-webkit-scrollbar { display: none; }
  .tab-item a  { padding: 10px 14px; font-size: 13px; white-space: nowrap; }
  .tab-badge   { display: none; }

  /* --- Buscador --- */
  .booker-wrap { padding: 10px 10px 0; }
  .search-form { padding: 14px 12px 0; border-radius: 10px; }
  .flight-type-row { padding-bottom: 10px; margin-bottom: 10px; gap: 8px; }
  .ft-label        { font-size: 12px; }
  .radio-pill span { font-size: 12px; }

  /* Campos: columna completa */
  .search-fields    { flex-direction: column; gap: 5px; background: transparent; }
  .field-wrap       { flex: none !important; width: 100% !important; }
  .field-btn        { height: 60px; padding: 8px 12px; }
  .field-ico        { font-size: 16px; }
  .field-val        { font-size: 14px; }

  /* Botón buscar */
  .search-bottom { padding: 10px 0 14px; }
  .btn-buscar    { width: 100%; padding: 14px; font-size: 16px; border-radius: 8px; }

  /* =====================================================
     BOTTOM SHEETS — Autocomplete, Calendario, Pasajeros
     ===================================================== */

  /* Handle visual ("tirador") en todos los bottom sheets */
  .ac-panel::before,
  .cal-panel::before,
  .pax-panel::before {
    content: '';
    display: block;
    width: 40px; height: 4px;
    background: var(--gray-200);
    border-radius: 2px;
    margin: 12px auto 0;
    flex-shrink: 0;
  }

  /* AUTOCOMPLETE — bottom sheet */
  .ac-panel {
    position: fixed;
    left: 0; right: 0; bottom: 0; top: auto;
    width: 100%; max-height: 82vh;
    transform: none !important;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -6px 28px rgba(0,0,0,.22);
    z-index: 950;
    display: flex;
    flex-direction: column;
  }
  .ac-top {
    padding: 8px 14px 10px;
    border-bottom: 1px solid var(--gray-200);
  }
  .ac-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .ac-item { padding: 14px 16px; } /* área táctil generosa */

  /* CALENDARIO — bottom sheet */
  .cal-panel {
    position: fixed;
    left: 0; right: 0; bottom: 0; top: auto;
    width: 100%; min-width: unset;
    transform: none !important;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -6px 28px rgba(0,0,0,.22);
    z-index: 950;
    padding: 0 12px 20px;
    max-height: 94vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .cal-nav-row     { margin: 14px 0 10px; }
  .cal-grids-row   { flex-direction: column; gap: 14px; }
  .cal-month-title { min-width: unset; font-size: 14px; }
  .cal-day         { padding: 10px 2px; font-size: 14px; } /* área táctil más grande */
  .cal-weekday     { font-size: 10px; padding: 6px 0; }
  .cal-footer-row  { padding-top: 10px; margin-top: 10px; }
  .cal-btn-apply,
  .cal-btn-clear   { padding: 11px 16px; font-size: 14px; }

  /* PASAJEROS — bottom sheet */
  .pax-panel {
    position: fixed;
    left: 0; right: 0; bottom: 0; top: auto;
    width: 100%; min-width: unset;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -6px 28px rgba(0,0,0,.22);
    z-index: 950;
    padding-bottom: 20px;
  }
  .pax-row         { padding: 14px 18px; }
  .pax-btn         { width: 36px; height: 36px; font-size: 20px; }
  .pax-ctrl span   { font-size: 17px; }
  .pax-apply       { margin: 10px 16px 0; padding: 13px; font-size: 15px; }
  #cabinSel        { padding: 8px 10px; font-size: 14px; }

  /* Overlay en móvil: z-index mayor para cubrir sticky header */
  .overlay { z-index: 920; }

  /* --- Banner --- */
  .banner-wrap   { margin-top: 10px; max-height: 190px; }
  .banner-img    { height: 190px; }
  .banner-arrow  { width: 30px; height: 30px; font-size: 12px; }
  .arr-prev      { left: 8px; }
  .arr-next      { right: 8px; }
  .bdot          { width: 7px; height: 7px; }

  /* --- Secciones --- */
  .section-block { padding: 32px 0; }
  .block-title   { font-size: 20px; }
  .block-sub     { font-size: 14px; margin-bottom: 18px; }

  /* Ofertas: scroll táctil horizontal */
  .offers-outer  { padding: 0; }
  .o-arr         { display: none; }
  .offers-track  {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    transform: none !important;
    padding-bottom: 4px;
  }
  .offers-track::-webkit-scrollbar { display: none; }
  .offer-card    { flex: 0 0 170px; }

  /* Pagos */
  .section-pagos  { padding: 20px 0; }
  .promo-aside    { flex-direction: column; align-items: flex-start; gap: 14px; }
  .promo-logos    { gap: 14px; }

  /* Paquetes */
  .pkg-grid       { grid-template-columns: 1fr; gap: 14px; }

  /* Beneficios */
  .bene-grid      { grid-template-columns: 1fr; gap: 10px; }
  .bene-item      { padding: 16px; }

  /* Footer */
  .footer-top     { padding: 28px 0 16px; }
  .footer-grid    { grid-template-columns: 1fr; gap: 20px; }
}

/* ---- Móviles muy pequeños ≤ 380px ---- */
@media (max-width: 380px) {
  .tab-item a    { padding: 9px 11px; font-size: 12px; }
  .banner-img    { height: 155px; }
  .offer-card    { flex: 0 0 150px; }
  .field-btn     { height: 56px; }
  .btn-buscar    { font-size: 15px; }
}
