/* ============================================================
   Flight Spain 4 — Design System
   Paleta: Naranja + Azul marino oscuro · Tipografía: Poppins
   ============================================================ */

:root{
  --navy-900:#061024;
  --navy-800:#0a1b3d;
  --navy-700:#0e2450;
  --navy-600:#14346f;
  --navy-500:#1e4589;
  --orange:#ff7a18;
  --orange-600:#ef6606;
  --orange-700:#cc5804;
  --orange-soft:#fff2e6;
  --ink:#101828;
  --slate:#475467;
  --muted:#8a94a6;
  --line:#e6eaf1;
  --bg:#ffffff;
  --bg-alt:#f5f8fd;
  --white:#ffffff;
  --radius:18px;
  --radius-lg:28px;
  --shadow-sm:0 6px 20px rgba(10,27,61,.06);
  --shadow:0 18px 45px rgba(10,27,61,.10);
  --shadow-orange:0 16px 38px rgba(255,122,24,.32);
  --container:1180px;
  --ease:cubic-bezier(.22,.61,.36,1);
}

*{ box-sizing:border-box; margin:0; padding:0; }

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

body{
  font-family:'Poppins',system-ui,-apple-system,sans-serif;
  color:var(--ink);
  background:var(--bg);
  line-height:1.65;
  overflow-x:hidden;
  font-size:16px;
}

img{ max-width:100%; display:block;width: 175px;}
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; }

.container{
  width:100%;
  max-width:var(--container);
  margin:0 auto;
  padding:0 22px;
}

/* ---------- Tipografía utilitaria ---------- */
h1,h2,h3,h4{ font-weight:700; line-height:1.18; letter-spacing:-.02em; color:var(--navy-800); }
.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-size:.72rem; font-weight:600; letter-spacing:.16em; text-transform:uppercase;
  color:var(--orange-600);
  background:var(--orange-soft);
  padding:7px 14px; border-radius:999px;
}
.eyebrow--light{ color:#ffd9bd; background:rgba(255,122,24,.16); }
.section-title{ font-size:clamp(1.7rem,3.6vw,2.7rem); margin-top:16px; }
.section-lead{ color:var(--slate); margin-top:14px; max-width:640px; font-size:1.02rem; }
.text-orange{ color:var(--orange-600); }
.center{ text-align:center; margin-left:auto; margin-right:auto; }

/* ---------- Botones ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  font-weight:600; font-size:.95rem; line-height:1;
  padding:15px 26px; border-radius:14px; border:1.5px solid transparent;
  cursor:pointer; transition:transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s;
  white-space:nowrap;
}
.btn svg{ width:18px; height:18px; }
.btn-primary{ background:var(--orange); color:#fff; box-shadow:var(--shadow-orange); }
.btn-primary:hover{ background:var(--orange-600); transform:translateY(-2px); }
.btn-navy{ background:var(--navy-800); color:#fff; }
.btn-navy:hover{ background:var(--navy-700); transform:translateY(-2px); }
.btn-ghost{ background:rgba(255,255,255,.10); color:#fff; border-color:rgba(255,255,255,.28); }
.btn-ghost:hover{ background:rgba(255,255,255,.18); }
.btn-outline{ background:transparent; color:var(--navy-800); border-color:var(--line); }
.btn-outline:hover{ border-color:var(--orange); color:var(--orange-600); }
.btn-block{ width:100%; }

/* ---------- Header ---------- */
.site-header{
  position:fixed; top:0; left:0; right:0; z-index:60;
  transition:background .3s, box-shadow .3s, padding .3s;
  padding:16px 0;
}
.site-header.is-scrolled{
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  box-shadow:var(--shadow-sm);
  padding:10px 0;
}
.nav{ display:flex; align-items:center; justify-content:space-between; gap:20px; }
.brand{ display:inline-flex; align-items:center; gap:11px; font-weight:800; font-size:1.18rem; color:#fff; letter-spacing:-.02em; }
.site-header.is-scrolled .brand{ color:var(--navy-800); }
.brand-mark{
  width:40px; height:40px; border-radius:12px; flex-shrink:0;
  background:linear-gradient(135deg,var(--orange) 0%,var(--orange-700) 100%);
  display:grid; place-items:center; color:#fff; box-shadow:var(--shadow-orange);
}
.brand-mark svg{ width:22px; height:22px; }

.nav-links{ display:flex; align-items:center; gap:30px; }
.nav-links a{ color:rgba(255,255,255,.86); font-weight:500; font-size:.95rem; position:relative; transition:color .2s; }
.nav-links a:hover{ color:#fff; }
.site-header.is-scrolled .nav-links a{ color:var(--slate); }
.site-header.is-scrolled .nav-links a:hover{ color:var(--orange-600); }
.nav-links a::after{
  content:""; position:absolute; left:0; bottom:-6px; height:2px; width:0; background:var(--orange);
  transition:width .25s var(--ease);
}
.nav-links a:hover::after{ width:100%; }

.nav-cta{ display:flex; align-items:center; gap:14px; }
.nav-phone{ display:inline-flex; align-items:center; gap:8px; color:#fff; font-weight:600; font-size:.92rem; }
.site-header.is-scrolled .nav-phone{ color:var(--navy-800); }
.nav-phone svg{ width:17px; height:17px; color:var(--orange); }

/* Hamburguesa */
.menu-toggle{
  display:none; width:46px; height:46px; border-radius:12px; border:1.5px solid rgba(255,255,255,.3);
  background:rgba(255,255,255,.08); cursor:pointer; position:relative;
}
.site-header.is-scrolled .menu-toggle{ border-color:var(--line); background:#fff; }
.menu-toggle span{
  position:absolute; left:12px; right:12px; height:2px; background:#fff; border-radius:2px;
  transition:transform .3s var(--ease), opacity .2s;
}
.site-header.is-scrolled .menu-toggle span{ background:var(--navy-800); }
.menu-toggle span:nth-child(1){ top:16px; }
.menu-toggle span:nth-child(2){ top:22px; }
.menu-toggle span:nth-child(3){ top:28px; }
.menu-toggle.is-active span:nth-child(1){ transform:translateY(6px) rotate(45deg); }
.menu-toggle.is-active span:nth-child(2){ opacity:0; }
.menu-toggle.is-active span:nth-child(3){ transform:translateY(-6px) rotate(-45deg); }

/* Menú móvil */
.mobile-nav{
  position:fixed; inset:0 0 0 auto; top:0; height:100dvh; width:min(84vw,340px);
  background:var(--navy-800); z-index:70; padding:90px 26px 30px;
  transform:translateX(100%); transition:transform .35s var(--ease);
  box-shadow:-20px 0 60px rgba(0,0,0,.3); display:flex; flex-direction:column; gap:6px;
}
.mobile-nav.is-open{ transform:translateX(0); }
.mobile-nav a{ color:#dfe6f3; font-weight:500; padding:14px 12px; border-radius:12px; font-size:1.02rem; transition:background .2s,color .2s; }
.mobile-nav a:hover{ background:rgba(255,255,255,.06); color:#fff; }
.mobile-nav .btn{ margin-top:16px; }

/* ---------- Hero ---------- */
.hero{ position:relative; min-height:100dvh; display:flex; align-items:center; color:#fff; padding:130px 0 80px; overflow:hidden; isolation:isolate; }
.hero-bg{ position:absolute; inset:0; z-index:0; }
.hero-bg img{ width:100%; height:100%; object-fit:cover; }
.hero-bg::after{
  content:""; position:absolute; inset:0;
  background:
    linear-gradient(115deg, #061024a8 0%, rgb(10 27 61 / 26%) 46%, rgba(10, 27, 61, .62) 100%);
}
.hero .container{ position:relative; z-index:2; }
.hero-grid{ display:grid; grid-template-columns:1.02fr 0.98fr; gap:48px; align-items:center; width:100%; }
.hero-inner{ max-width:560px; }
.hero h1{ color:#fff; font-size:clamp(2.2rem,4.4vw,3.6rem); font-weight:800; margin-top:20px; }
.hero h1 .accent{ color:var(--orange); }
.hero p{ color:#d4ddec; font-size:clamp(1rem,2.4vw,1.14rem); margin-top:18px; max-width:520px; }
.hero-actions{ display:flex; flex-wrap:wrap; gap:14px; margin-top:30px; }
.hero-trust{ display:flex; flex-wrap:wrap; align-items:center; gap:22px; margin-top:34px; }
.hero-trust .rating{ display:flex; align-items:center; gap:9px; font-size:.9rem; color:#e7edf7; }
.stars{ color:var(--orange); letter-spacing:2px; font-size:1rem; }
.hero-form{ width:100%; }

/* Franja de estadísticas */
.stats{ position:relative; z-index:2; margin-top:64px; }
.stats-grid{
  background:var(--navy-800); border-radius:var(--radius-lg); box-shadow:var(--shadow);
  display:grid; grid-template-columns:repeat(4,1fr); overflow:hidden;
}
.stat{ padding:30px 24px; text-align:center; border-right:1px solid rgba(255,255,255,.08); }
.stat:last-child{ border-right:0; }
.stat .num{ font-size:2rem; font-weight:800; color:#fff; }
.stat .num span{ color:var(--orange); }
.stat .lbl{ color:#9fb0cc; font-size:.86rem; margin-top:4px; }

/* ---------- Secciones ---------- */
.section{ padding:88px 0; }
.section--alt{ background:var(--bg-alt); }
.section-head{ margin-bottom:52px; }
.section-head.center{ text-align:center; }
.section-head.center .section-lead{ margin-left:auto; margin-right:auto; }

/* Features / servicios */
.feature-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:24px; }
.feature{
  background:#fff; border:1px solid var(--line); border-radius:var(--radius-lg);
  padding:32px 26px; transition:transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.feature:hover{ transform:translateY(-6px); box-shadow:var(--shadow); border-color:transparent; }
.feature-ic{
  width:58px; height:58px; border-radius:16px; display:grid; place-items:center; margin-bottom:20px;
  background:var(--orange-soft); color:var(--orange-600);
}
.feature:nth-child(even) .feature-ic{ background:#eaf0fb; color:var(--navy-600); }
.feature-ic svg{ width:28px; height:28px; }
.feature h3{ font-size:1.14rem; }
.feature p{ color:var(--slate); font-size:.94rem; margin-top:10px; }

/* Destinos */
.dest-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.dest-card{
  position:relative; border-radius:var(--radius-lg); overflow:hidden; min-height:340px;
  display:flex; align-items:flex-end; color:#fff; box-shadow:var(--shadow-sm);
  transition:transform .35s var(--ease), box-shadow .35s;
}
.dest-card:hover{ transform:translateY(-6px); box-shadow:var(--shadow); }
.dest-card img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; transition:transform .6s var(--ease); z-index:0; }
.dest-card:hover img{ transform:scale(1.07); }
.dest-card::after{ content:""; position:absolute; inset:0; z-index:1;
  background:linear-gradient(to top, rgba(6,16,36,.9) 0%, rgba(6,16,36,.25) 55%, transparent 100%); }
.dest-body{ padding:24px; width:100%; position:relative; z-index:2; }
.dest-tag{
  position:absolute; top:16px; left:16px; z-index:3; background:var(--orange); color:#fff;
  font-size:.72rem; font-weight:600; padding:6px 12px; border-radius:999px; letter-spacing:.03em;
}
.dest-body h3{ color:#fff; font-size:1.4rem; }
.dest-route{ color:#cdd8ea; font-size:.86rem; margin-top:2px; }
.dest-meta{ display:flex; align-items:center; justify-content:space-between; margin-top:16px; padding-top:16px; border-top:1px solid rgba(255,255,255,.16); }
.dest-price{ font-weight:700; font-size:1.05rem; }
.dest-price span{ font-size:.76rem; font-weight:400; color:#b9c6dc; display:block; }
.dest-arrow{ width:42px; height:42px; border-radius:12px; background:rgba(255,255,255,.14); display:grid; place-items:center; transition:background .25s, transform .25s; }
.dest-card:hover .dest-arrow{ background:var(--orange); transform:translateX(3px); }
.dest-arrow svg{ width:18px; height:18px; }

/* Cómo funciona */
.steps{ display:grid; grid-template-columns:repeat(3,1fr); gap:26px; counter-reset:step; }
.step{ position:relative; padding-top:20px; }
.step-num{
  width:54px; height:54px; border-radius:16px; background:var(--navy-800); color:#fff;
  display:grid; place-items:center; font-weight:700; font-size:1.25rem; margin-bottom:20px;
}
.step:nth-child(2) .step-num{ background:var(--orange); }
.step h3{ font-size:1.18rem; }
.step p{ color:var(--slate); margin-top:10px; font-size:.95rem; }

/* Split / sobre nosotros */
.split{ display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:center; }
.split-media{ position:relative; }
.split-media img{ border-radius:var(--radius-lg); width:100%; height:480px; object-fit:cover; box-shadow:var(--shadow); }
.split-badge{
  position:absolute; left:-18px; bottom:26px; background:#fff; border-radius:20px; padding:20px 22px;
  box-shadow:var(--shadow); display:flex; align-items:center; gap:14px; max-width:250px;
}
.split-badge .ic{ width:46px; height:46px; border-radius:12px; background:var(--orange-soft); color:var(--orange-600); display:grid; place-items:center; flex-shrink:0; }
.split-badge .ic svg{ width:24px; height:24px; }
.split-badge b{ display:block; color:var(--navy-800); font-size:1.05rem; }
.split-badge span{ font-size:.82rem; color:var(--slate); }
.check-list{ margin-top:26px; display:grid; gap:16px; }
.check-list li{ display:flex; gap:14px; align-items:flex-start; }
.check-list .tick{ width:26px; height:26px; border-radius:8px; background:var(--orange-soft); color:var(--orange-600); display:grid; place-items:center; flex-shrink:0; margin-top:2px; }
.check-list .tick svg{ width:15px; height:15px; }
.check-list b{ color:var(--navy-800); }
.check-list p{ color:var(--slate); font-size:.92rem; }

/* Testimonios */
.tst-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.tst{ background:#fff; border:1px solid var(--line); border-radius:var(--radius-lg); padding:30px 26px; }
.tst .stars{ margin-bottom:14px; }
.tst p{ color:var(--slate); font-size:.96rem; }
.tst-who{ display:flex; align-items:center; gap:13px; margin-top:22px; }
.tst-who img{ width:46px; height:46px; border-radius:50%; object-fit:cover; }
.tst-who b{ color:var(--navy-800); font-size:.95rem; display:block; }
.tst-who span{ color:var(--muted); font-size:.82rem; }

/* CTA band */
.cta-band{ position:relative; border-radius:var(--radius-lg); overflow:hidden; padding:64px 48px; color:#fff; }
.cta-band::before{ content:""; position:absolute; inset:0; z-index:-1;
  background:linear-gradient(120deg,var(--navy-800) 0%, var(--navy-700) 55%, var(--orange-700) 130%); }
.cta-band .glow{ position:absolute; width:340px; height:340px; border-radius:50%; background:rgba(255,122,24,.25); filter:blur(80px); top:-120px; right:-60px; z-index:-1; }
.cta-flex{ display:flex; align-items:center; justify-content:space-between; gap:32px; flex-wrap:wrap; }
.cta-band h2{ color:#fff; font-size:clamp(1.6rem,3.4vw,2.3rem); max-width:560px; }
.cta-band p{ color:#d4ddec; margin-top:12px; max-width:520px; }

/* ---------- Footer ---------- */
.footer{ background:var(--navy-900); color:#aebbd2; padding:70px 0 30px; }
.footer-grid{ display:grid; grid-template-columns:1.6fr 1fr 1fr 1.3fr; gap:40px; }
.footer .brand{ color:#fff; margin-bottom:16px; }
.footer p{ font-size:.92rem; }
.footer h4{ color:#fff; font-size:.98rem; margin-bottom:18px; letter-spacing:.02em; }
.footer-links{ display:grid; gap:11px; }
.footer-links a{ color:#aebbd2; font-size:.92rem; transition:color .2s,padding .2s; }
.footer-links a:hover{ color:var(--orange); padding-left:4px; }
.footer-contact li{ display:flex; gap:11px; align-items:flex-start; font-size:.92rem; margin-bottom:13px; }
.footer-contact svg{ width:18px; height:18px; color:var(--orange); flex-shrink:0; margin-top:3px; }
.footer-bottom{ border-top:1px solid rgba(255,255,255,.09); margin-top:48px; padding-top:24px; display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; font-size:.86rem; }
.footer-bottom a:hover{ color:var(--orange); }

/* ---------- Botón flotante llamada ---------- */
.float-call{
  position:fixed; right:20px; bottom:20px; z-index:55;
  display:inline-flex; align-items:center; gap:9px; background:var(--orange); color:#fff;
  padding:14px 20px; border-radius:999px; font-weight:600; font-size:.92rem;
  box-shadow:var(--shadow-orange); animation:pulse 2.6s infinite;
}
.float-call svg{ width:19px; height:19px; }
@keyframes pulse{ 0%,100%{ box-shadow:0 16px 38px rgba(255,122,24,.32);} 50%{ box-shadow:0 16px 38px rgba(255,122,24,.55);} }

/* ---------- Reveal ---------- */
[data-reveal]{ opacity:0; transform:translateY(26px); transition:opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].is-visible{ opacity:1; transform:none; }

/* ---------- Páginas internas ---------- */
.page-hero{ position:relative; color:#fff; padding:150px 0 70px; overflow:hidden; isolation:isolate; }
.page-hero-bg{ position:absolute; inset:0; z-index:0; }
.page-hero-bg img{ width:100%; height:100%; object-fit:cover; }
.page-hero-bg::after{ content:""; position:absolute; inset:0; background:linear-gradient(115deg, var(--navy-900) 0%, rgb(10 27 61 / 0%) 100%); }
.page-hero .container{ position:relative; z-index:2; }
.page-hero h1{ color:#fff; font-size:clamp(2rem,5vw,3.1rem); font-weight:800; margin-top:18px; }
.page-hero p{ color:#d4ddec; margin-top:16px; max-width:600px; }
.breadcrumb{ font-size:.86rem; color:#b9c6dc; margin-top:20px; }
.breadcrumb a:hover{ color:var(--orange); }

/* Contacto */
.contact-grid{ display:grid; grid-template-columns:1fr 1.15fr; gap:34px; align-items:start; }
.info-card{ background:#fff; border:1px solid var(--line); border-radius:var(--radius-lg); padding:34px; box-shadow:var(--shadow-sm); }
.info-item{ display:flex; gap:16px; align-items:flex-start; padding:18px 0; border-bottom:1px solid var(--line); }
.info-item:last-child{ border-bottom:0; }
.info-item .ic{ width:48px; height:48px; border-radius:13px; background:var(--orange-soft); color:var(--orange-600); display:grid; place-items:center; flex-shrink:0; }
.info-item .ic svg{ width:22px; height:22px; }
.info-item b{ color:var(--navy-800); display:block; font-size:.98rem; }
.info-item span{ color:var(--slate); font-size:.92rem; word-break:break-word; }
.form-card{ background:#fff; border:1px solid var(--line); border-radius:var(--radius-lg); padding:34px; box-shadow:var(--shadow-sm); }
.field{ margin-bottom:18px; }
.field label{ display:block; font-size:.86rem; font-weight:600; color:var(--navy-800); margin-bottom:8px; }
.field input, .field textarea, .field select{
  width:100%; padding:14px 16px; border:1.5px solid var(--line); border-radius:12px;
  font-family:inherit; font-size:.95rem; color:var(--ink); background:#fdfefe; transition:border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus{ outline:none; border-color:var(--orange); box-shadow:0 0 0 4px rgba(255,122,24,.12); }
.field textarea{ min-height:130px; resize:vertical; }
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.form-success{ display:none; background:var(--orange-soft); color:var(--orange-700); border-radius:12px; padding:14px 16px; font-size:.92rem; margin-bottom:18px; font-weight:500; }
.form-success.is-visible{ display:block; }

/* Contenido legal */
.legal{ max-width:820px; margin:0 auto; }
.legal h2{ font-size:1.35rem; margin:38px 0 12px; color:var(--navy-800); }
.legal h2:first-child{ margin-top:0; }
.legal p{ color:var(--slate); margin-bottom:14px; }
.legal ul{ list-style:disc; padding-left:22px; margin-bottom:16px; color:var(--slate); }
.legal li{ margin-bottom:8px; }
.legal a{ color:var(--orange-600); }
.legal-updated{ color:var(--muted); font-size:.88rem; margin-bottom:30px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width:1024px){
  .feature-grid{ grid-template-columns:repeat(2,1fr); }
  .footer-grid{ grid-template-columns:1fr 1fr; gap:34px; }
  .split{ gap:40px; }
}

@media (max-width:860px){
  .nav-links, .nav-phone{ display:none; }
  .menu-toggle{ display:block; }
  .stats-grid{ grid-template-columns:repeat(2,1fr); }
  .stat:nth-child(2){ border-right:0; }
  .stat:nth-child(1),.stat:nth-child(2){ border-bottom:1px solid rgba(255,255,255,.08); }
  .dest-grid{ grid-template-columns:repeat(2,1fr); }
  .steps{ grid-template-columns:1fr; gap:22px; }
  .split{ grid-template-columns:1fr; }
  .split-media img{ height:360px; }
  .split-media{ order:-1; }
  .tst-grid{ grid-template-columns:1fr; }
  .contact-grid{ grid-template-columns:1fr; }
  .section{ padding:64px 0; }
  .cta-band{ padding:44px 28px; }
}

@media (max-width:560px){
  .container{ padding:0 18px; }
  .feature-grid{ grid-template-columns:1fr; }
  .dest-grid{ grid-template-columns:1fr; }
  .footer-grid{ grid-template-columns:1fr; gap:30px; }
  .form-row{ grid-template-columns:1fr; }
  .stats-grid{ grid-template-columns:1fr; }
  .stat{ border-right:0 !important; border-bottom:1px solid rgba(255,255,255,.08); }
  .stat:last-child{ border-bottom:0; }
  .hero-actions .btn{ width:100%; }
  .split-badge{ left:12px; right:12px; max-width:none; }
  .float-call span{ display:none; }
  .float-call{ padding:15px; }
  .cta-flex .btn{ width:100%; }
}

/* ============================================================
   Buscador de vuelos + Popup
   ============================================================ */
.hidden{ display:none !important; }

.search-wrap{ position:relative; z-index:5; margin-top:-70px; }
.search-card{
  background:#fff; border-radius:var(--radius-lg); box-shadow:var(--shadow);
  padding:26px; border:1px solid var(--line);
}
.search-head{ display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:18px; flex-wrap:wrap; }
.search-title{ font-weight:700; color:var(--navy-800); font-size:1.05rem; }
.trip-types{ display:flex; gap:22px; }
.trip-opt{ display:inline-flex; align-items:center; gap:9px; cursor:pointer; font-size:.85rem; font-weight:600; color:var(--slate); }
.radio-custom{ width:19px; height:19px; border-radius:50%; border:2px solid #cbd5e1; display:grid; place-items:center; transition:border-color .2s; flex-shrink:0; }
.radio-custom .radio-dot{ width:9px; height:9px; border-radius:50%; background:transparent; transition:background .2s; }
.radio-custom.checked{ border-color:var(--orange); }
.radio-custom.checked .radio-dot{ background:var(--orange); }

.search-grid{ display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.search-field{ position:relative; border:1.5px solid var(--line); border-radius:14px; background:#fdfefe; padding:12px 14px; transition:border-color .2s, box-shadow .2s; }
.search-field:focus-within{ border-color:var(--orange); box-shadow:0 0 0 4px rgba(255,122,24,.10); }
.search-field label{ display:block; font-size:.68rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); margin-bottom:5px; }
.search-field .field-row{ display:flex; align-items:center; gap:9px; }
.search-field svg{ width:17px; height:17px; color:var(--orange); flex-shrink:0; }
.search-field input, .search-field select{ width:100%; border:0; outline:none; background:transparent; font-family:inherit; font-size:.95rem; font-weight:600; color:var(--ink); padding:0; }
.search-field input::placeholder{ color:#b7c0d0; font-weight:400; }

.autocomplete-list{
  position:absolute; top:calc(100% + 8px); left:0; right:0; z-index:40;
  background:#fff; border:1px solid var(--line); border-radius:16px; box-shadow:var(--shadow);
  max-height:260px; overflow-y:auto;
}
.suggestion-item{ display:flex; align-items:center; gap:12px; padding:12px 14px; border-bottom:1px solid #f1f4f9; cursor:pointer; transition:background .15s; }
.suggestion-item:last-child{ border-bottom:0; }
.suggestion-item:hover{ background:var(--orange-soft); }
.suggestion-code{ width:42px; height:42px; border-radius:11px; background:#eef3fb; color:var(--navy-600); display:grid; place-items:center; font-weight:800; font-size:.82rem; flex-shrink:0; }
.suggestion-item .city{ font-weight:700; color:var(--navy-800); font-size:.9rem; }
.suggestion-item .apt{ color:var(--muted); font-size:.76rem; }
.suggestion-item .cty{ margin-left:auto; color:var(--muted); font-size:.76rem; flex-shrink:0; }

.swap-row{ display:flex; justify-content:center; margin:4px 0; }
.swap-btn{ width:44px; height:44px; border-radius:50%; border:1.5px solid var(--line); background:#fff; color:var(--navy-700); display:grid; place-items:center; cursor:pointer; transition:transform .4s var(--ease), background .2s, color .2s; }
.swap-btn:hover{ background:var(--orange-soft); color:var(--orange-600); }
.swap-btn svg{ width:20px; height:20px; }
.field-full{ grid-column:1 / -1; }

.search-error{ display:none; margin-top:14px; background:#fdecec; border:1px solid #f7c5c5; color:#c0392b; border-radius:12px; padding:12px 15px; font-size:.88rem; font-weight:500; text-align:center; }
.search-error.is-visible{ display:block; }
.search-submit{ margin-top:16px; }

/* Popup */
.popup{ position:fixed; inset:0; z-index:200; display:flex; align-items:center; justify-content:center; padding:16px; }
.popup-backdrop{ position:absolute; inset:0; background:rgba(6,16,36,.62); backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px); }
.popup-card{ position:relative; z-index:2; width:100%; max-width:390px; background:#fff; border-radius:26px; box-shadow:0 30px 80px rgba(6,16,36,.35); padding:34px 30px; text-align:center; }
.popup-close{ position:absolute; top:16px; right:16px; width:36px; height:36px; border-radius:50%; border:0; background:#f1f4f9; color:var(--muted); display:grid; place-items:center; cursor:pointer; transition:background .2s, color .2s; }
.popup-close:hover{ background:#e6eaf1; color:var(--navy-700); }
.popup-close svg{ width:16px; height:16px; }
.popup-card h3{ font-size:1.3rem; color:var(--navy-800); margin-bottom:8px; }
.popup-card p{ color:var(--slate); font-size:.9rem; margin-bottom:18px; }

.timer{ position:relative; width:98px; height:98px; margin:0 auto 20px; }
.timer-svg{ width:98px; height:98px; transform:rotate(-90deg); }
.timer-track{ fill:none; stroke:#e6eaf1; stroke-width:8; }
.timer-prog{ fill:none; stroke:var(--orange); stroke-width:8; stroke-linecap:round; transition:stroke-dashoffset 1s linear; }
.timer-count{ position:absolute; inset:0; display:grid; place-items:center; font-size:1.6rem; font-weight:800; color:var(--navy-800); }

.search-steps{ text-align:left; display:grid; gap:11px; margin-bottom:22px; }
.s-step{ display:flex; align-items:center; gap:12px; font-size:.82rem; color:var(--muted); font-weight:500; transition:color .3s; }
.s-ring{ width:20px; height:20px; border-radius:50%; border:2px solid var(--line); display:grid; place-items:center; flex-shrink:0; transition:border-color .3s; }
.s-dot{ width:8px; height:8px; border-radius:50%; background:#cbd5e1; transition:background .3s; }
.s-step.active{ color:var(--orange-600); font-weight:600; }
.s-step.active .s-ring{ border-color:var(--orange); }
.s-step.active .s-dot{ background:var(--orange); }

.load-dots{ display:flex; justify-content:center; gap:8px; }
.load-dots span{ width:11px; height:11px; border-radius:50%; }
.load-dots span:nth-child(1){ background:var(--navy-600); animation:dotB 1.2s 0s infinite; }
.load-dots span:nth-child(2){ background:var(--navy-500); animation:dotB 1.2s .2s infinite; }
.load-dots span:nth-child(3){ background:var(--orange); animation:dotB 1.2s .4s infinite; }
@keyframes dotB{ 0%,80%,100%{ transform:scale(1); opacity:.5; } 40%{ transform:scale(1.35); opacity:1; } }

.result-badge{ width:82px; height:82px; border-radius:50%; margin:0 auto 18px; display:grid; place-items:center; color:#fff;
  background:linear-gradient(135deg,var(--navy-700) 0%, var(--orange) 120%); box-shadow:var(--shadow); }
.result-badge svg{ width:40px; height:40px; }
.agents-live{ display:flex; align-items:center; justify-content:center; gap:9px; background:var(--orange-soft); border:1px solid #ffe0c4; border-radius:12px; padding:11px; margin-bottom:18px; }
.agents-live .live-dot{ width:9px; height:9px; border-radius:50%; background:#2ecc71; animation:pulseDot 1.4s infinite; }
.agents-live span{ font-size:.74rem; font-weight:700; letter-spacing:.05em; text-transform:uppercase; color:var(--orange-700); }
@keyframes pulseDot{ 0%,100%{ opacity:1; } 50%{ opacity:.35; } }

@media (max-width:560px){
  .search-wrap{ margin-top:-40px; }
  .search-grid{ grid-template-columns:1fr; }
  .search-head{ justify-content:flex-start; }
}

/* ---------- Formulario dentro del hero ---------- */
.hero-form .search-card{ padding:22px; box-shadow:0 30px 70px rgba(6,16,36,.42); }
.hero-form .search-title{ font-size:1rem; }
.hero-form .search-grid{ gap:12px; }

@media (max-width:980px){
  .hero{ min-height:auto; padding:120px 0 64px; }
  .hero-grid{ grid-template-columns:1fr; gap:34px; }
  .hero-inner{ max-width:640px; }
  .hero-form{ max-width:560px; }
}



/* ===== Footer alignment fix ===== */
.footer{
  background:var(--navy-900);
  color:#aebbd2;
  padding:70px 0 30px;
}

.footer-grid{
  display:grid;
  grid-template-columns:minmax(250px,1.45fr) minmax(150px,.8fr) minmax(170px,.85fr) minmax(240px,1.15fr);
  gap:44px;
  align-items:start;
}

.footer-grid > div{
  min-width:0;
}

.footer .brand{
  display:inline-flex;
  align-items:center;
  margin-bottom:18px;
}

.footer .brand img{
  width:auto;
  height:56px;
  max-width:220px;
  object-fit:contain;
}

.footer p{
  font-size:.92rem;
  line-height:1.75;
}

.footer-links{
  display:grid;
  gap:11px;
}

.footer-contact{
  display:grid;
  gap:13px;
}

.footer-contact li{
  display:grid;
  grid-template-columns:20px minmax(0,1fr);
  gap:11px;
  align-items:start;
  margin:0;
  line-height:1.55;
}

.footer-contact svg{
  width:18px;
  height:18px;
  margin-top:3px;
}

.footer-contact a,
.footer-contact span{
  min-width:0;
  overflow-wrap:anywhere;
  word-break:break-word;
}

.footer-disclaimer,
.legal-disclaimer{
  width:100%;
  margin-top:42px;
  padding-top:30px;
  border-top:1px solid rgba(255,255,255,.09);
}

.footer-disclaimer p,
.legal-disclaimer p{
  max-width:none;
  margin:0;
  font-size:.84rem;
  line-height:1.75;
}

.footer-disclaimer p + p,
.legal-disclaimer p + p{
  margin-top:14px;
}

.footer-bottom{
  border-top:1px solid rgba(255,255,255,.09);
  margin-top:34px;
  padding-top:24px;
  display:grid;
  grid-template-columns:1fr auto;
  gap:14px 28px;
  align-items:center;
  font-size:.82rem;
  line-height:1.6;
}

.footer-bottom > span:last-child{
  text-align:right;
  white-space:nowrap;
}

.footer-note{
  margin-top:18px;
  text-align:center;
  font-size:.76rem;
  line-height:1.6;
  color:#71819b;
}

@media (max-width:1024px){
  .footer-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:36px 40px;
  }

  .footer-bottom{
    grid-template-columns:1fr;
  }

  .footer-bottom > span:last-child{
    text-align:left;
    white-space:normal;
  }
}

@media (max-width:640px){
  .footer{
    padding:52px 0 24px;
  }

  .footer-grid{
    grid-template-columns:1fr;
    gap:32px;
  }

  .footer .brand img{
    height:48px;
    max-width:190px;
  }

  .footer-disclaimer,
  .legal-disclaimer{
    margin-top:34px;
    padding-top:24px;
  }

  .footer-bottom{
    margin-top:28px;
    padding-top:20px;
    gap:10px;
  }

  .footer-bottom > span,
  .footer-bottom > span:last-child{
    width:100%;
    text-align:left;
    white-space:normal;
  }
}
.footer-bottom-right{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:5px;
  text-align:right;
}

@media (max-width:1024px){
  .footer-bottom-right{
    align-items:flex-start;
    text-align:left;
  }
}

@media (max-width:640px){
  .footer-bottom-right{
    width:100%;
    align-items:flex-start;
    text-align:left;
  }
}