/* ==========================================================================
   JMD Travesías por el Mundo — estilos
   Paleta extraída del logo: azul marino, azul real, dorado, naranja, rojo y magenta.
   ========================================================================== */

:root {
  --navy-950: #050d24;
  --navy-900: #0a1a44;
  --navy-800: #102a6b;
  --royal: #1f47c7;
  --royal-600: #1a3cae;
  --sky: #4d8dff;
  --gold: #ffc83d;
  --gold-600: #f2a900;
  --orange: #ff7a1a;
  --red: #e0263c;
  --magenta: #e1227c;
  --green-wa: #25d366;
  --green-wa-700: #0f7a40;

  /* Neutros: una sola familia fría teñida de marino */
  --ink: #0b1633;
  --ink-2: #3c4a6b;
  --muted: #5b6886;
  --line: #dde3ef;
  --paper: #f4f6fb;
  --paper-2: #e9eef7;
  --white: #fff;

  /* Acento principal: dorado. Naranja solo para paquetería. Rojo y magenta solo en la franja de marca. */
  --grad-brand: linear-gradient(100deg, var(--gold) 0%, var(--orange) 45%, var(--magenta) 100%);
  --stripe: linear-gradient(90deg, var(--gold) 0 25%, var(--orange) 25% 50%, var(--red) 50% 75%, var(--magenta) 75% 100%);
  --grad-navy: radial-gradient(120% 80% at 20% 0%, #17348a 0%, var(--navy-900) 45%, var(--navy-950) 100%);
  --ph: radial-gradient(120% 90% at 20% 0%, #1b3683 0%, var(--navy-900) 55%, var(--navy-950) 100%);
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  --f-display: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
  --f-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --r-xs: 6px;
  --r-sm: 10px;
  --r: 18px;
  --r-lg: 28px;
  --shadow-sm: 0 2px 8px rgb(10 26 68 / .08);
  --shadow: 0 18px 50px -18px rgb(10 26 68 / .35);
  --shadow-lg: 0 40px 90px -30px rgb(5 13 36 / .6);
  --ease: cubic-bezier(.22, 1, .36, 1);

  --header-h: 68px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(72px, 11vw, 140px);
  --section-b: calc(var(--section) * 1.15); /* padding inferior algo mayor: equilibrio óptico */

  --z-header: 100;
  --z-fab: 150;
  --z-progress: 200;
  --z-toast: 300;
  --z-skip: 400;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
html:not(.lenis) { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: clamp(16px, 1.02rem, 17px);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--royal); text-underline-offset: .18em; }
a:hover { color: var(--royal-600); }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.04; letter-spacing: -.025em; margin: 0 0 .5em; font-weight: 800; text-wrap: balance; }
h3 { font-weight: 700; letter-spacing: -.015em; }
p { margin: 0 0 1em; text-wrap: pretty; }
li, dd { text-wrap: pretty; }
ul, ol { padding: 0; margin: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
address { font-style: normal; }
strong { font-weight: 700; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.on-light :focus-visible, .field :focus-visible { outline-color: var(--royal); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 12px; top: 12px; z-index: var(--z-skip); padding: 10px 16px; border-radius: 10px;
  background: var(--gold); color: var(--navy-950); font-weight: 700; transform: translateY(-150%);
  transition: transform .2s;
}
.skip-link:focus { transform: none; }
.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.ta-r { text-align: right; }
.icon { width: 1.15em; height: 1.15em; flex: none; }
.stat__num, .calc__out dd, .office__phone, .board, .route-card__code, .bp__code, .nav__phone, .topbar, .step__n, .eyebrow__n { font-variant-numeric: tabular-nums; }

/* Resaltado en fondo claro: azul real con trazo de rotulador dorado (como el lema del logo) */
.hl {
  color: var(--royal);
  background: linear-gradient(transparent 64%, rgb(255 200 61 / .6) 64% 90%, transparent 90%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  padding-inline: .04em;
}
.hl--orange { color: #b23a0a; background: linear-gradient(transparent 64%, rgb(255 122 26 / .28) 64% 90%, transparent 90%); }
/* Resaltado en fondo oscuro: dorado sólido */
.hl-gold { color: var(--gold); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .7em; margin: 0 0 1.1rem;
  font-size: .95rem; font-weight: 600; letter-spacing: 0; color: var(--royal);
}
.eyebrow__n {
  font-family: var(--f-mono); font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  padding: 3px 7px 2px; border-radius: var(--r-xs); background: var(--navy-900); color: var(--gold);
}
.eyebrow--light { color: #e4eafb; font-weight: 500; }
.eyebrow--dark { color: #dbe3f8; }
.eyebrow--dark .eyebrow__n { background: var(--gold); color: var(--navy-950); }
.eyebrow--orange { color: #b23a0a; }
.eyebrow--orange .eyebrow__n { background: var(--orange); color: var(--navy-950); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-wa); box-shadow: 0 0 0 0 rgb(37 211 102 / .6); animation: dot 2s infinite; }
@keyframes dot { 70% { box-shadow: 0 0 0 10px rgb(37 211 102 / 0); } 100% { box-shadow: 0 0 0 0 rgb(37 211 102 / 0); } }

.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-title { font-size: clamp(2rem, 5.2vw, 3.6rem); letter-spacing: -.03em; line-height: 1.02; }
.section-title--light, .section-head--light .section-title { color: #fff; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-2); max-width: 60ch; }
.lead--light { color: #c9d4f0; }

/* ---------- Botones ---------- */
.btn {
  --bg: var(--royal); --fg: #fff;
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .8em 1.4em; border: 0; border-radius: 999px;
  background: var(--bg); color: var(--fg); font-weight: 700; font-size: 1rem; line-height: 1.1;
  text-decoration: none; white-space: nowrap;
  transition: background-color .25s var(--ease), box-shadow .25s var(--ease), color .25s, scale .15s var(--ease);
  will-change: transform;
}
.btn:hover { color: var(--fg); box-shadow: 0 12px 30px -10px rgb(10 26 68 / .5); }
.btn:active { scale: .97; }
.stepper__btn:active, .chip-btn:active, .board__toggle:active, .burger:active { scale: .94; }
.btn .icon { width: 1.2em; height: 1.2em; }
.btn--primary { --bg: var(--royal); }
.btn--primary:hover { --bg: var(--royal-600); }
.btn--gold { --bg: var(--gold); --fg: var(--navy-950); }
.btn--gold:hover { --bg: #ffd666; }
.btn--wa { --bg: var(--green-wa-700); --fg: #fff; }
.btn--wa:hover { --bg: #0b6634; }
.btn--glass { --bg: rgb(255 255 255 / .12); --fg: #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .4); }
.btn--glass:hover { --bg: rgb(255 255 255 / .22); }
.btn--light { --bg: #fff; --fg: var(--navy-900); }
.btn--outline { --bg: transparent; --fg: var(--royal); box-shadow: inset 0 0 0 2px currentColor; }
.btn--outline:hover { --bg: var(--royal); --fg: #fff; }
.btn--outline:disabled { opacity: .45; cursor: not-allowed; box-shadow: inset 0 0 0 2px currentColor; }
.btn--sm { min-height: 42px; padding: .6em 1.1em; font-size: .92rem; }
.btn--lg { min-height: 56px; padding: 1em 1.7em; font-size: 1.05rem; }
.btn--block { width: 100%; white-space: normal; text-align: center; }
.btn .ripple {
  position: absolute; z-index: -1; border-radius: 50%; pointer-events: none;
  background: rgb(255 255 255 / .45); transform: scale(0); animation: ripple .65s var(--ease) forwards;
}
@keyframes ripple { to { transform: scale(1); opacity: 0; } }

.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; text-decoration: none; }
.link-arrow .icon { transition: transform .3s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Progreso de scroll ---------- */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: var(--z-progress); pointer-events: none; }
.progress__bar { display: block; height: 100%; background: var(--stripe); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Barra superior ---------- */
.topbar { background: var(--navy-950); color: #d7e0f7; font-size: .82rem; }
.topbar__inner { display: flex; align-items: center; gap: 8px 22px; min-height: 38px; flex-wrap: wrap; padding-block: 6px; }
.topbar__item { display: inline-flex; align-items: center; gap: 7px; color: inherit; text-decoration: none; }
a.topbar__item:hover { color: var(--gold); }
.topbar__item .icon { width: 14px; height: 14px; color: var(--gold); }
.topbar__item--wide { display: none; }
@media (max-width: 420px) { .topbar__item--license span { font-size: .74rem; } }
@media (min-width: 900px) { .topbar__item--wide { display: inline-flex; } .topbar__item--license { margin-right: auto; } }

/* ---------- Cabecera ---------- */
.header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgb(255 255 255 / .86); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background-color .35s var(--ease), border-color .35s, box-shadow .35s;
}
.header__inner { display: flex; align-items: center; gap: 12px; height: var(--header-h); transition: height .35s var(--ease); }
.header.is-compact { --header-h: 58px; border-color: var(--line); box-shadow: 0 10px 30px -18px rgb(10 26 68 / .35); background: rgb(255 255 255 / .94); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy-900); margin-right: auto; min-width: 0; }
.brand__logo {
  width: 50px; height: 50px; flex: none; border-radius: 50%; overflow: hidden; background: #fff;
  box-shadow: 0 0 0 2px #fff, 0 4px 16px -4px rgb(10 26 68 / .35);
  transition: width .35s var(--ease), height .35s var(--ease);
}
.brand__logo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.header.is-compact .brand__logo { width: 42px; height: 42px; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--f-display); font-weight: 800; font-size: 1.12rem; letter-spacing: -.01em; }
.brand__sub { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: #c0156a; margin-top: 4px; font-weight: 700; }
.header__cta { display: none; }
@media (min-width: 480px) { .header__cta { display: inline-flex; } }

/* nav móvil */
.nav {
  position: fixed; inset: 0; z-index: -1; display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header-h) + 40px) var(--gutter) 40px;
  background: var(--grad-navy); color: #fff;
  clip-path: circle(0% at calc(100% - 40px) 34px);
  visibility: hidden;
  transition: clip-path .7s var(--ease), visibility 0s .7s;
}
.nav.is-open { clip-path: circle(150% at calc(100% - 40px) 34px); visibility: visible; transition: clip-path .7s var(--ease), visibility 0s; }
.nav__list { display: flex; flex-direction: column; gap: 4px; }
.nav__link {
  display: block; padding: 6px 0; font-family: var(--f-display); font-weight: 800; font-size: clamp(2rem, 9vw, 3rem);
  color: #fff; text-decoration: none; letter-spacing: -.02em;
}
.nav__link:hover { color: var(--gold); }
.nav.is-open .nav__list li { animation: navIn .6s var(--ease) both; animation-delay: calc(.12s + var(--i, 0) * .05s); }
@keyframes navIn { from { opacity: 0; transform: translateY(24px); } }
.nav__extra { margin-top: 32px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.nav__phone { color: #fff; font-family: var(--f-mono); font-size: 1.1rem; }
.nav__slogan { color: var(--gold); font-family: var(--f-display); font-weight: 700; margin: 0; }
body.menu-open { overflow: hidden; }
body.menu-open .header { background: transparent; border-color: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
body.menu-open .brand { color: #fff; }
body.menu-open .brand__sub { color: var(--gold); }

.burger {
  position: relative; width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: var(--navy-900); color: #fff; display: grid; place-items: center; flex: none;
}
.burger__lines { position: relative; width: 20px; height: 14px; }
.burger__lines span { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor; transition: transform .4s var(--ease), opacity .25s, width .3s; }
.burger__lines span:nth-child(1) { top: 0; }
.burger__lines span:nth-child(2) { top: 6px; width: 70%; }
.burger__lines span:nth-child(3) { top: 12px; }
.burger[aria-expanded="true"] { background: var(--gold); color: var(--navy-950); }
.burger[aria-expanded="true"] .burger__lines span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__lines span:nth-child(2) { opacity: 0; width: 0; }
.burger[aria-expanded="true"] .burger__lines span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Sin JavaScript: menú en línea bajo la cabecera */
@media (max-width: 1079px) {
  html:not(.js) .burger { display: none; }
  html:not(.js) .header__inner { flex-wrap: wrap; height: auto; padding-block: 8px; }
  html:not(.js) .nav { position: static; order: 3; width: 100%; z-index: auto; padding: 4px 0 6px; background: none; color: inherit; clip-path: none; visibility: visible; transition: none; }
  html:not(.js) .nav__list { flex-direction: row; flex-wrap: wrap; gap: 2px 16px; }
  html:not(.js) .nav__link { font-family: var(--f-body); font-size: .95rem; font-weight: 700; color: var(--ink); padding: 6px 0; }
  html:not(.js) .nav__extra { display: none; }
}

@media (min-width: 1080px) {
  .burger, .nav__extra { display: none; }
  .nav { position: static; inset: auto; z-index: auto; padding: 0; background: none; clip-path: none; visibility: visible; color: inherit; transition: none; }
  .nav__list { flex-direction: row; gap: 2px; }
  .nav__link { position: relative; font-family: var(--f-body); font-weight: 600; font-size: .96rem; color: var(--ink); padding: 10px 12px; letter-spacing: 0; }
  .nav__link::after {
    content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; border-radius: 2px;
    background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
  }
  .nav__link:hover, .nav__link.is-active { color: var(--royal); }
  .nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }
  .header__cta { margin-left: 8px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(100svh, 920px); display: flex; align-items: center;
  padding: clamp(48px, 9vw, 110px) 0 clamp(90px, 12vw, 140px);
  background: var(--navy-950); color: #fff;
}
.hero__bg { position: absolute; inset: -12% 0 -12%; z-index: -3; }
.hero__img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.hero__shade {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(90% 70% at 85% 20%, rgb(225 34 124 / .28), transparent 60%),
    radial-gradient(70% 60% at 10% 90%, rgb(31 71 199 / .55), transparent 70%),
    linear-gradient(180deg, rgb(5 13 36 / .55) 0%, rgb(5 13 36 / .78) 60%, var(--navy-950) 100%);
}
.hero__grain {
  position: absolute; inset: 0; z-index: -1; opacity: .12; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero__grid { display: grid; gap: clamp(36px, 5vw, 64px); align-items: center; }
@media (min-width: 980px) { .hero__grid { grid-template-columns: 1.15fr .85fr; } }
.hero__title {
  font-size: clamp(2.2rem, 7.2vw, 5rem); line-height: .98; margin-bottom: .35em; letter-spacing: -.035em;
}
.hero__title .w { display: inline-block; }
.hero__hl { color: var(--gold); }
.hero__hl--gold {
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .05em;
}
.hero__lead { font-size: clamp(1.05rem, 1.8vw, 1.25rem); color: #d6def5; max-width: 54ch; }
.hero__lead strong { color: #fff; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 26px; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hero__chips li {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: var(--r-xs);
  background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .18);
  font-family: var(--f-mono); font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.hero__chips .icon { color: var(--gold); width: 16px; height: 16px; }

.route-card {
  position: relative; border-radius: var(--r-lg); padding: 22px;
  background: linear-gradient(160deg, rgb(255 255 255 / .16), rgb(255 255 255 / .05));
  border: 1px solid rgb(255 255 255 / .22);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .28), inset 0 -1px 0 rgb(255 255 255 / .06), var(--shadow-lg);
}
.route-card::before, .route-card::after {
  content: ""; position: absolute; top: 58%; width: 26px; height: 26px; border-radius: 50%; background: var(--navy-950);
}
.route-card::before { left: -13px; } .route-card::after { right: -13px; }
.route-card__head, .route-card__foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.route-card__label { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: #b9c6ea; }
.route { width: 100%; height: auto; margin: 8px 0 10px; overflow: visible; }
.route__ghost { fill: none; stroke: rgb(255 255 255 / .22); stroke-width: 2; stroke-dasharray: 3 8; stroke-linecap: round; }
.route__path { fill: none; stroke: url(#routeGrad); stroke-width: 3.5; stroke-linecap: round; }
.route__pin { fill: var(--gold); stroke: var(--navy-950); stroke-width: 3; }
.route__pin--end { fill: var(--magenta); }
.route__ring { fill: none; stroke: var(--magenta); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: ring 2.2s var(--ease) infinite; }
@keyframes ring { from { transform: scale(1); opacity: .9; } to { transform: scale(3.2); opacity: 0; } }
.route__plane { fill: #fff; filter: drop-shadow(0 4px 6px rgb(0 0 0 / .45)); transform: translate(360px, 150px) rotate(120deg); }
.route-card__foot { border-top: 1px dashed rgb(255 255 255 / .3); padding-top: 14px; }
.route-card__code { display: block; font-family: var(--f-mono); font-weight: 700; font-size: clamp(1.8rem, 5vw, 2.4rem); line-height: 1; }
.route-card__city { display: block; font-size: .85rem; color: #b9c6ea; margin-top: 4px; }
.route-card__mid { text-align: center; font-size: .72rem; font-family: var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: #b9c6ea; }
.route-card__mid strong { display: block; font-size: 1rem; color: var(--gold); letter-spacing: .04em; }

/* ---------- Grano sutil en las secciones oscuras ---------- */
.departures::after, .quote::after, .real::after, .contact::after, .footer::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--noise); opacity: .06;
}

/* ---------- Panel de salidas ---------- */
.departures { position: relative; isolation: isolate; background: var(--navy-950); color: #fff; padding: 20px 0 0; overflow: hidden; }
.departures .section-head { margin-bottom: 28px; }
.board {
  --cell: clamp(17px, 3.9vw, 30px);
  border-radius: var(--r-lg); padding: clamp(14px, 2.4vw, 26px);
  background: linear-gradient(180deg, #0d1733, #070e22);
  border: 1px solid rgb(255 255 255 / .08);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .06), var(--shadow-lg);
}
.board__top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-bottom: 16px; }
.board__title { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); font-size: .85rem; }
.board__title .icon { transform: rotate(45deg); }
.board__clock { font-family: var(--f-mono); color: #9fb0d8; font-size: .85rem; margin-left: auto; }
.board__toggle {
  border: 1px solid rgb(255 255 255 / .25); background: transparent; color: #dfe6fa; border-radius: 999px;
  padding: 6px 14px; font-size: .8rem; min-height: 36px;
}
.board__toggle:hover { background: rgb(255 255 255 / .08); }
.board__head, .board__row { display: grid; grid-template-columns: calc(var(--cell) * 3 + 8px) 1fr auto; gap: 8px 14px; align-items: center; }
.board__head { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: #8193c0; padding: 0 2px 8px; border-bottom: 1px solid rgb(255 255 255 / .08); }
.board__h-bag, .board__cell--bag { display: none; }
.board__row { padding: 9px 0; border-bottom: 1px solid rgb(255 255 255 / .06); }
.board__row:last-child { border-bottom: 0; }
.board__cell { display: flex; gap: 2px; font-family: var(--f-mono); font-weight: 700; font-size: calc(var(--cell) * .72); text-transform: uppercase; color: #fff; min-width: 0; overflow: hidden; }
.board__cell--status { color: var(--gold); }
.board__cell--city { overflow: hidden; }
.flap {
  position: relative; display: inline-grid; place-items: center; flex: none;
  width: var(--cell); height: calc(var(--cell) * 1.35); border-radius: 4px;
  background: linear-gradient(180deg, #1c2748 0 49%, #0b1330 51% 100%);
  box-shadow: inset 0 -1px 0 rgb(0 0 0 / .5), 0 1px 0 rgb(255 255 255 / .04);
  transform-style: preserve-3d; perspective: 200px;
}
.flap::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgb(0 0 0 / .65); }
.flap--space { background: linear-gradient(180deg, #151e3b 0 49%, #0a1128 51% 100%); }
.board__cell--status .flap { color: var(--gold); }
.board__cell--code .flap { color: #7fb0ff; }
.board__row .board__cell--bag { display: none; }
/* Sin JS (texto plano) */
.board__cell:not(:has(.flap)) { letter-spacing: .12em; font-size: calc(var(--cell) * .66); }
@media (max-width: 559px) {
  .board { --cell: clamp(13px, 4.1vw, 17px); }
  .board__head { display: none; }
  .board__row { grid-template-columns: calc(var(--cell) * 3 + 6px) 1fr; grid-template-areas: "code city" "status status"; gap: 8px 10px; }
  .board__cell { gap: 1px; }
  .board__cell--code { grid-area: code; }
  .board__cell--city { grid-area: city; }
  .board__cell--status { grid-area: status; }
}
@media (min-width: 960px) {
  .board__head, .board__row { grid-template-columns: calc(var(--cell) * 3 + 8px) 1fr auto auto; }
  .board__h-bag, .board__row .board__cell--bag { display: flex; }
  .board { --cell: 26px; }
}
@media (min-width: 1200px) { .board { --cell: 30px; } }

.marquee { display: flex; overflow: hidden; margin-top: clamp(44px, 7vw, 80px); padding: 18px 0; background: var(--gold); color: var(--navy-950); transform: rotate(-1.4deg) scale(1.03); }
.marquee__track { display: flex; flex: none; gap: 0; min-width: 100%; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track li {
  display: inline-flex; align-items: center; gap: 12px; padding-inline: 22px; white-space: nowrap;
  font-family: var(--f-display); font-weight: 800; font-size: clamp(1.4rem, 3.4vw, 2.2rem); letter-spacing: -.01em;
}
.marquee__track li::after { content: "✈"; margin-left: 22px; font-size: .7em; color: var(--royal); }
.mq__code { font-family: var(--f-mono); font-size: .55em; padding: 3px 8px; border-radius: 6px; background: var(--navy-950); color: var(--gold); }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------- Especialidades ---------- */
.specs { padding: var(--section) 0 var(--section-b); background: var(--paper); }
.stats {
  display: grid; grid-template-columns: repeat(2, 1fr); margin-bottom: clamp(48px, 7vw, 88px);
  border-block: 1px solid var(--line);
}
@media (min-width: 820px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { position: relative; padding: clamp(22px, 3.4vw, 34px) clamp(14px, 2.6vw, 28px) clamp(20px, 3vw, 30px); }
.stat::before { content: ""; position: absolute; left: clamp(14px, 2.6vw, 28px); top: -2px; width: 28px; height: 3px; background: var(--gold); }
.stat:not(:last-child) { border-right: 1px solid var(--line); }
@media (max-width: 819px) {
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
}
.stat__num { display: flex; align-items: baseline; gap: 4px; font-family: var(--f-display); font-weight: 800; font-size: clamp(2.6rem, 7vw, 4.6rem); line-height: 1; color: var(--navy-900); letter-spacing: -.045em; }
.stat__num small { font-size: .38em; font-weight: 600; color: var(--royal); letter-spacing: 0; }
.stat__label { display: block; margin-top: 10px; color: var(--muted); font-size: .95rem; font-weight: 500; }

.specs__grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .specs__grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (min-width: 900px) { .spec:nth-child(2) { margin-top: 80px; } }
.spec { display: grid; grid-template-rows: auto 1fr; overflow: hidden; border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow); }
.spec__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ph); }
.spec__img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.spec:hover .spec__img { transform: scale(1.06); }
.spec__body { position: relative; display: flex; flex-direction: column; align-items: flex-start; padding: 28px clamp(22px, 3vw, 34px) 32px; }
.spec__body .link-arrow { margin-top: auto; }
.spec__body h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.spec__body p { color: var(--ink-2); }
.spec__icon {
  position: absolute; top: -30px; right: 26px; width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center;
  background: var(--navy-900); color: var(--gold); box-shadow: var(--shadow);
}
.spec__icon .icon { width: 28px; height: 28px; }
.spec__icon--orange { background: var(--orange); color: var(--navy-950); }

/* ---------- Cotizador de vuelos ---------- */
.quote { position: relative; isolation: isolate; padding: var(--section) 0 var(--section-b); color: #fff; background: var(--grad-navy); overflow: hidden; }
.quote__bg {
  position: absolute; inset: 0; z-index: -1; opacity: .5;
  background:
    radial-gradient(40% 50% at 90% 10%, rgb(225 34 124 / .35), transparent 70%),
    radial-gradient(40% 50% at 0% 100%, rgb(255 200 61 / .18), transparent 70%),
    repeating-linear-gradient(90deg, rgb(255 255 255 / .03) 0 1px, transparent 1px 80px),
    repeating-linear-gradient(0deg, rgb(255 255 255 / .03) 0 1px, transparent 1px 80px);
}
.quote__grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 980px) { .quote__grid { grid-template-columns: .9fr 1.1fr; gap: 64px; } .quote__intro { position: sticky; top: calc(var(--header-h) + 40px); } }
.checks { display: grid; gap: 10px; margin-top: 24px; }
.checks li { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.checks .icon { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--gold); color: var(--navy-950); }
.checks--light li { color: #e8eeff; }

.ticket {
  --tp: clamp(20px, 3.4vw, 34px);
  position: relative; color: var(--ink); background: #fff; border-radius: var(--r-lg);
  padding: var(--tp); box-shadow: var(--shadow-lg);
}
.ticket__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; font-family: var(--f-mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
.ticket__brand { color: var(--royal); }
.ticket__bag { padding: 5px 10px; border-radius: 6px; background: var(--navy-900); color: var(--gold); }
.ticket__tear { position: relative; height: 0; border-top: 2px dashed var(--line); margin: 26px calc(var(--tp) * -1); }
.ticket__tear::before, .ticket__tear::after { content: ""; position: absolute; top: -16px; width: 30px; height: 30px; border-radius: 50%; background: var(--navy-900); }
.ticket__tear::before { left: -15px; } .ticket__tear::after { right: -15px; }
.ticket__note { margin: 12px 0 0; font-size: .85rem; color: var(--muted); text-align: center; }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; margin: 0 0 18px; border: 0; border-radius: 14px; background: var(--paper); }
.seg__opt { position: relative; }
.seg__opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg__opt span { display: block; padding: 10px 12px; border-radius: 10px; text-align: center; font-weight: 700; color: var(--ink-2); transition: background-color .3s var(--ease), color .3s, box-shadow .3s; }
.seg__opt input:checked + span { background: #fff; color: var(--royal); box-shadow: var(--shadow-sm); }
.seg__opt input:focus-visible + span { outline: 3px solid var(--royal); outline-offset: 2px; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; min-width: 0; }
.field label { font-weight: 600; font-size: .92rem; color: var(--ink); }
.field .opt { font-weight: 400; color: var(--muted); }
.field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border-radius: 12px;
  border: 1.5px solid #cbd4e6; background: #fff; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f47c7' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--royal); box-shadow: 0 0 0 4px rgb(31 71 199 / .18); }
.field [aria-invalid="true"] { border-color: var(--red) !important; box-shadow: 0 0 0 4px rgb(224 38 60 / .12) !important; }
.field__error { margin: 0; min-height: 0; color: #b4152b; font-size: .85rem; font-weight: 600; }
.field__error:empty { display: none; }
.field--check { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 10px; }
.field--check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--royal); flex: none; }
.field--check label { flex: 1; font-weight: 500; }
.field--check .field__error { width: 100%; }
.grid-2, .grid-3 { display: grid; gap: 0 14px; }
@media (min-width: 520px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(3, 1fr); align-items: end; } }
.grid-3 { grid-template-columns: repeat(3, 1fr); align-items: end; }
.stepper { display: grid; grid-template-columns: 48px 1fr 48px; border: 1.5px solid #cbd4e6; border-radius: 12px; overflow: hidden; background: #fff; }
.stepper:focus-within { border-color: var(--royal); box-shadow: 0 0 0 4px rgb(31 71 199 / .18); }
.field .stepper input { border: 0 !important; box-shadow: none !important; text-align: center; border-radius: 0; font-weight: 700; -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper__btn { border: 0; background: var(--paper); color: var(--royal); font-size: 1.3rem; font-weight: 700; transition: background-color .2s; }
.stepper__btn:hover { background: #e6ecfb; }

/* ---------- Destinos (tarjetas de embarque) ---------- */
.destinations { padding: var(--section) 0 var(--section-b); background: #fff; }
.bp-grid { display: grid; gap: 22px; grid-template-columns: 1fr; grid-auto-flow: dense; perspective: 1400px; }
@media (min-width: 640px) {
  .bp-grid { grid-template-columns: repeat(2, 1fr); }
  .bp--feature { grid-column: span 2; }
  .bp--feature .bp__media { aspect-ratio: 21 / 9; }
}
@media (min-width: 1000px) {
  .bp-grid { grid-template-columns: repeat(3, 1fr); gap: 26px; }
  .bp--feature { grid-row: span 2; }
  .bp--feature .bp__media { aspect-ratio: auto; flex: 1; min-height: 300px; }
  .bp--feature .bp__img { position: absolute; inset: 0; }
  .bp--feature .bp__city { font-size: 2.6rem; }
  .bp--feature .bp__code { font-size: 2.1rem; }
  .bp--cta { grid-column: 1 / -1; }
}
.bp__inner {
  --rx: 0deg; --ry: 0deg;
  position: relative; display: flex; flex-direction: column; height: 100%;
  border-radius: 22px; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 16px 40px -22px rgb(10 26 68 / .45);
  --mx: 50%; --my: 50%;
  transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d;
  transition: transform .5s var(--ease), box-shadow .4s var(--ease);
}
.bp__inner:hover { box-shadow: 0 30px 60px -24px rgb(10 26 68 / .55); }
/* Borde iluminado bajo el cursor */
.bp__inner::before, [data-spot]::after {
  content: ""; position: absolute; inset: -1px; z-index: 3; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgb(242 169 0 / .9), transparent 65%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .35s var(--ease);
}
.bp__inner:hover::before, [data-spot]:hover::after { opacity: 1; }
[data-spot]::after { inset: 0; }
.bp__inner.is-tilting { transition: transform .12s linear, box-shadow .4s var(--ease); }
.bp__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 21px 21px 0 0; background: var(--ph); }
.bp__img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.1s var(--ease); }
.bp__inner:hover .bp__img { transform: scale(1.12); }
.bp__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgb(5 13 36 / .55)); }
.bp__art { position: relative; width: 100%; height: 100%; display: grid; place-items: center; background: var(--ph); }
.bp__art::before { content: ""; position: absolute; inset: 0; background-image: var(--noise); opacity: .08; }
.bp__art span { position: relative; font-family: var(--f-mono); font-weight: 700; font-size: 4rem; color: var(--gold); letter-spacing: .08em; }
.bp__country {
  position: absolute; left: 14px; bottom: 12px; z-index: 1; padding: 4px 9px; border-radius: var(--r-xs);
  background: rgb(255 255 255 / .92); color: var(--navy-900); font-size: .76rem; font-weight: 700;
}
.bp__body { padding: 18px 20px 16px; transform: translateZ(30px); }
.bp__route { display: flex; align-items: center; gap: 10px; }
.bp__code { font-family: var(--f-mono); font-weight: 700; font-size: 1.55rem; color: var(--navy-900); line-height: 1; }
.bp__plane { flex: 1; height: 18px; fill: var(--royal); background: linear-gradient(90deg, transparent, var(--line) 20% 80%, transparent) center / 100% 2px no-repeat; }
.bp__plane path { transform: rotate(90deg); transform-origin: 12px 12px; }
.bp__city { font-size: 1.45rem; margin: 10px 0 12px; }
.bp__meta { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 8px; margin: 0; }
.bp__meta dt { font-family: var(--f-mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.bp__meta dd { margin: 2px 0 0; font-weight: 600; font-size: .86rem; white-space: nowrap; }
.bp__stub {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: auto; padding: 16px 20px 18px; border-top: 2px dashed var(--line);
}
.bp__stub::before, .bp__stub::after { content: ""; position: absolute; top: -12px; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 1px solid var(--line); }
.bp__stub::before { left: -12px; clip-path: inset(0 0 0 50%); }
.bp__stub::after { right: -12px; clip-path: inset(0 50% 0 0); }
.bp__barcode { width: 92px; height: 34px; fill: var(--navy-900); flex: none; }
.bp-cta {
  position: relative; height: 100%; display: grid; gap: 18px; align-items: center;
  padding: clamp(22px, 3.4vw, 34px); border-radius: 22px;
  background: var(--ph); color: #fff; overflow: hidden; isolation: isolate;
  outline: 2px dashed rgb(255 255 255 / .22); outline-offset: -10px;
}
.bp-cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--noise); opacity: .07; }
.bp-cta__route { margin: 0; font-family: var(--f-mono); font-weight: 700; font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--gold); letter-spacing: .02em; }
.bp-cta__route span { color: rgb(255 255 255 / .5); }
.bp-cta__text h3 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); margin-bottom: .3em; }
.bp-cta__text p { margin: 0; color: #c9d4f0; max-width: 52ch; }
.bp-cta .btn { justify-self: start; }
@media (min-width: 1000px) {
  .bp-cta { grid-template-columns: auto 1fr auto; gap: 36px; }
}

/* ---------- Paquetería ---------- */
.parcel { padding: var(--section) 0 var(--section-b); background: var(--paper); }
.parcel-route { position: relative; margin-bottom: clamp(40px, 6vw, 64px); }
.parcel-route__svg { display: none; width: 100%; height: 110px; overflow: visible; }
.parcel-route__line { fill: none; stroke: #f3d4b6; stroke-width: 3; stroke-dasharray: 2 10; stroke-linecap: round; }
.parcel-route__draw { fill: none; stroke: var(--orange); stroke-width: 4; stroke-linecap: round; }
.parcel-route__box {
  display: none; position: absolute; left: 0; top: 0; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 12px;
  place-items: center; background: var(--orange); color: #fff; box-shadow: 0 10px 24px -8px rgb(255 122 26 / .7);
}
.parcel-route__box .icon { width: 24px; height: 24px; }
@media (min-width: 900px) { .parcel-route__svg { display: block; } .parcel-route__box { display: grid; } }
.steps { display: grid; gap: 14px; counter-reset: s; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 8px; } }
.step { position: relative; padding: 22px 8px 0 0; border-top: 2px solid var(--paper-2); }
.step::before { content: ""; position: absolute; left: 0; top: -2px; width: 36px; height: 2px; background: var(--orange); }
.step__n { display: block; font-family: var(--f-mono); font-weight: 700; color: #b23a0a; font-size: .9rem; margin-bottom: 8px; }
.step h3 { font-size: 1.2rem; margin-bottom: .35em; }
.step p { margin: 0; color: var(--ink-2); font-size: .95rem; }

.parcel__grid { display: grid; gap: 22px; align-items: start; }
@media (min-width: 980px) { .parcel__grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
.panel { border-radius: var(--r-lg); background: #fff; padding: clamp(20px, 3.2vw, 32px); box-shadow: var(--shadow); }
.panel--dark { background: var(--navy-900); color: #fff; border-color: transparent; }
.panel--dark .field label { color: #fff; }
.panel--dark .field__error { color: #ffb4bf; }
.panel__head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.panel__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--navy-900); color: var(--gold); flex: none; }
.panel__icon .icon { width: 26px; height: 26px; }
.panel__icon--orange { background: var(--orange); color: var(--navy-950); }
.panel__title { font-size: 1.35rem; margin: 0; }
.panel__sub { margin: 4px 0 0; font-family: var(--f-mono); font-size: .78rem; color: var(--muted); letter-spacing: .04em; }
.panel--dark .panel__sub { color: #aebbe0; }
.panel__note { margin: 12px 0 0; text-align: center; font-size: .85rem; color: #aebbe0; }
.calc .grid-3 .field input { padding-inline: 10px; }
.calc__out { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 8px 0 10px; }
.calc__out > div { padding: 14px; border-radius: var(--r-sm); background: var(--paper); }
.calc__out dt { font-size: .8rem; color: var(--muted); font-weight: 600; }
.calc__out dd { margin: 2px 0 0; font-family: var(--f-mono); font-weight: 700; font-size: 1.35rem; }
.calc__bill { grid-column: 1 / -1; background: var(--navy-900) !important; color: #fff; display: flex; justify-content: space-between; align-items: center; }
.calc__bill dt { color: #c9d4f0; font-size: .9rem; }
.calc__bill dd { color: var(--gold); font-size: 1.8rem; }
.calc__hint { font-size: .85rem; color: var(--muted); }
.is-bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.08); } }

/* ---------- Servicios (bento) ---------- */
.services { padding: var(--section) 0 var(--section-b); background: #fff; }
.bento { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) {
  .bento { grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(210px, auto); gap: 20px; }
  .svc--xl { grid-column: span 2; grid-row: span 2; }
  .bento .svc--photo:last-child { grid-column: span 2; }
}
.svc {
  position: relative; overflow: hidden; isolation: isolate; padding: 26px; border-radius: var(--r-lg);
  background: var(--paper);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.svc:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.svc h3 { font-size: 1.3rem; margin: 16px 0 .35em; }
.svc p { color: var(--ink-2); margin: 0; }
.svc__icon { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--navy-900); color: var(--gold); }
.svc__icon .icon { width: 24px; height: 24px; }
.svc__icon--orange { background: var(--orange); color: var(--navy-950); }
.svc--photo { min-height: 300px; display: flex; align-items: flex-end; padding: 0; color: #fff; background: var(--ph); }
.svc__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.svc--photo:hover .svc__img { transform: scale(1.07); }
.svc--photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(5 13 36 / .05) 20%, rgb(5 13 36 / .85) 100%); }
.svc__body { padding: 26px; }
.svc--photo p { color: #e6ecfb; }
.svc--xl h3 { font-size: clamp(1.5rem, 3vw, 2.2rem); }

/* ---------- No somos virtuales ---------- */
.real { position: relative; isolation: isolate; color: #fff; background: var(--navy-950); overflow: hidden; }
.real__bg { position: absolute; inset: 0; z-index: -1; }
.real__img { width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.real__bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 80% at 50% 50%, rgb(5 13 36 / .35), var(--navy-950) 95%); }
.real__pin { min-height: 100svh; display: flex; align-items: center; padding: var(--section) 0; }
.real__title { font-size: clamp(3rem, 11vw, 8.5rem); line-height: .92; letter-spacing: -.045em; margin-bottom: .45em; }
.real__line { display: block; }
.real__line--accent { padding-bottom: .06em; }
.real__line--accent .rw { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rw { display: inline-block; }
.real__points { display: grid; gap: 14px; max-width: 900px; }
@media (min-width: 760px) { .real__points { grid-template-columns: 1fr 1fr; } }
.real__points li {
  display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: var(--r);
  background: rgb(255 255 255 / .07); border: 1px solid rgb(255 255 255 / .14); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: #dbe3f8;
}
.real__points strong { color: #fff; }
.real__points .icon { width: 24px; height: 24px; color: var(--gold); margin-top: 2px; }

/* ---------- Oficina ---------- */
.office { padding: var(--section) 0 var(--section-b); background: var(--paper); }
.office__grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 980px) { .office__grid { grid-template-columns: 1fr 1.1fr; gap: 60px; } }
.office__address { font-size: 1.15rem; line-height: 1.7; margin-bottom: 22px; }
.office__list { display: grid; gap: 12px; margin-bottom: 26px; }
.office__list li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.office__list li > span { flex: 1; min-width: 0; }
.office__list .icon { color: var(--royal); width: 22px; height: 22px; }
.office__phone { font-family: var(--f-mono); font-weight: 700; font-size: 1.25rem; color: var(--navy-900); text-decoration: none; }
.chip-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 14px; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff; font-size: .85rem; font-weight: 700; color: var(--royal);
  transition: background-color .2s, border-color .2s;
}
.chip-btn .icon { width: 16px; height: 16px; }
.chip-btn:hover { border-color: var(--royal); }
.chip-btn.is-done { background: #e7f8ee; border-color: var(--green-wa-700); color: var(--green-wa-700); }
.office__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.map { position: relative; overflow: hidden; border-radius: var(--r-lg); height: 400px; width: 100%; background: var(--paper-2); box-shadow: var(--shadow); }
.map__placeholder { position: absolute; inset: 0; background: var(--paper-2); }
.map__art { width: 100%; height: 100%; }
.map__road { fill: none; stroke: #fff; stroke-width: 10; stroke-linecap: round; }
.map__road--main { stroke: #ffd98a; stroke-width: 18; }
.map__halo { fill: rgb(255 200 61 / .3); }
.map__marker { position: absolute; left: 55%; top: 42%; translate: -50% -100%; width: 54px; height: 54px; border-radius: 50% 50% 50% 0; rotate: -45deg; display: grid; place-items: center; background: var(--navy-900); color: var(--gold); box-shadow: var(--shadow); animation: bob 2.4s var(--ease) infinite; }
.map__marker .icon { rotate: 45deg; width: 24px; height: 24px; }
@keyframes bob { 50% { translate: -50% -115%; } }
.map__label { position: absolute; left: 50%; top: 48%; translate: -50% 0; padding: 6px 12px; border-radius: 999px; background: #fff; font-weight: 700; font-size: .85rem; white-space: nowrap; box-shadow: var(--shadow-sm); }
.map__overlay { position: absolute; inset: auto 0 0; padding: 18px; display: flex; flex-direction: column; align-items: center; gap: 8px; background: linear-gradient(180deg, transparent, rgb(5 13 36 / .75)); }
.map__note { margin: 0; font-size: .78rem; text-align: center; color: #fff; max-width: 44ch; }
.map__note a { color: var(--gold); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (min-width: 980px) { .map { height: auto; aspect-ratio: 4 / 3; } }

/* ---------- FAQ ---------- */
.faq { padding: var(--section) 0 var(--section-b); background: #fff; }
.faq__grid { display: grid; gap: 28px; }
@media (min-width: 980px) { .faq__grid { grid-template-columns: .8fr 1.2fr; gap: 64px; } .section-head--sticky { position: sticky; top: calc(var(--header-h) + 40px); align-self: start; } }
.faq__list { display: grid; gap: 12px; }
.acc { border-radius: var(--r); background: var(--paper); transition: background-color .3s, box-shadow .3s; }
.acc[open] { background: #fff; box-shadow: var(--shadow); }
.acc summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px;
  font-weight: 700; font-size: 1.05rem; cursor: pointer; list-style: none;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary:hover { color: var(--royal); }
.acc summary i { position: relative; width: 30px; height: 30px; border-radius: 50%; background: var(--navy-900); color: #fff; flex: none; transition: transform .4s var(--ease), background-color .3s, color .3s; }
.acc summary i::before, .acc summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: currentColor; border-radius: 2px; }
.acc summary i::after { transform: rotate(90deg); transition: transform .4s var(--ease); }
.acc[open] summary i { background: var(--gold); color: var(--navy-950); transform: rotate(180deg); }
.acc[open] summary i::after { transform: rotate(0); }
.acc__body { padding: 0 20px 18px; color: var(--ink-2); }
.acc__body ul { list-style: disc; padding-left: 1.2em; margin-bottom: 1em; display: grid; gap: 4px; }
.acc__body p:last-child { margin-bottom: 0; }

/* ---------- Contacto ---------- */
.contact { position: relative; isolation: isolate; padding: var(--section) 0 var(--section-b); background: var(--grad-navy); color: #fff; }
.contact__grid { display: grid; gap: 36px; align-items: start; }
@media (min-width: 980px) { .contact__grid { grid-template-columns: .85fr 1.15fr; gap: 64px; } }
.contact__quick { display: grid; gap: 10px; margin-top: 26px; }
.contact__quick a { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font-weight: 600; }
.contact__quick a:hover { color: var(--gold); }
.contact__quick .icon { width: 40px; height: 40px; padding: 10px; border-radius: 12px; background: rgb(255 255 255 / .1); color: var(--gold); }
.contact__form { color: var(--ink); }
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.contact__actions .btn { flex: 1 1 220px; }
.rgpd-info { font-size: .8rem; color: var(--muted); line-height: 1.5; padding: 12px 14px; border-radius: 12px; background: var(--paper); }

/* ---------- Footer ---------- */
.footer { position: relative; isolation: isolate; overflow: hidden; background: var(--navy-950); color: #b8c4e4; padding: clamp(56px, 8vw, 90px) 0 110px; font-size: .95rem; }
.footer__glow { position: absolute; left: 50%; top: -220px; translate: -50% 0; width: 800px; height: 400px; border-radius: 50%; background: radial-gradient(closest-side, rgb(31 71 199 / .45), transparent); pointer-events: none; }
.footer__top { position: relative; display: grid; gap: 36px; padding-bottom: 36px; border-bottom: 1px solid rgb(255 255 255 / .1); }
.footer__top::before { content: ""; position: absolute; left: 0; top: calc(clamp(56px, 8vw, 90px) * -1); width: 120px; height: 4px; background: var(--stripe); }
@media (min-width: 720px) { .footer__top { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .footer__top { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; } }
.brand--footer { color: #fff; margin: 0 0 16px; }
.brand--footer .brand__sub { color: var(--gold); }
.footer__slogan { font-family: var(--f-display); font-weight: 800; font-size: 1.5rem; line-height: 1.1; color: #fff; margin-bottom: 6px; }
.footer__tag { margin: 0; }
.footer__title { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.footer__col ul { display: grid; gap: 8px; }
.footer a { color: #dbe3f8; text-decoration: none; }
.footer a:hover { color: var(--gold); text-decoration: underline; }
.footer__address { margin-bottom: 12px; line-height: 1.6; }
.footer__contact a, .footer__contact span { display: inline-flex; align-items: center; gap: 8px; }
.footer__contact .icon { color: var(--gold); width: 16px; height: 16px; }
.footer__legal { padding-top: 24px; font-size: .84rem; display: grid; gap: 4px; }
.footer__legal p { margin: 0; }
.footer__credits { opacity: .85; }
.footer__legal a, .legal__body a, .lead a, .acc__body a, .field--check a, .rgpd-info a, .map__note a { text-decoration: underline; }

/* ---------- WhatsApp flotante y toast ---------- */
.fab-wa {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: var(--z-fab);
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: var(--green-wa); color: #fff; box-shadow: 0 14px 30px -8px rgb(18 140 74 / .7);
  transition: transform .3s var(--ease);
}
.fab-wa:hover { color: #fff; transform: scale(1.08); }
.fab-wa .icon { width: 32px; height: 32px; position: relative; }
.fab-wa__pulse { position: absolute; inset: 0; border-radius: 50%; background: var(--green-wa); animation: pulse 2.2s var(--ease) infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.8); opacity: 0; } }
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: var(--z-toast); translate: -50% 0; max-width: calc(100% - 120px);
  padding: 12px 18px; border-radius: 12px; background: var(--navy-900); color: #fff; font-weight: 600; font-size: .92rem;
  box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(20px); pointer-events: none;
  transition: opacity .3s, transform .4s var(--ease);
}
.toast.is-show { opacity: 1; transform: none; }

/* ---------- Imágenes que fallan: se oculta la imagen y queda el fondo de marca ---------- */
.img-err { opacity: 0 !important; }

/* ---------- Estado inicial de animaciones (solo con JS activo y sin reducción de movimiento) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .anim [data-reveal] { opacity: 0; }
  /* El hero arranca casi invisible (no 0) para no retrasar el LCP */
  .anim [data-hero], .anim .hero__title .w { opacity: .01; }
}

/* ---------- Páginas legales ---------- */
.legal-hero { background: var(--grad-navy); color: #fff; padding: clamp(56px, 9vw, 100px) 0 clamp(40px, 6vw, 64px); }
.legal-hero h1 { font-size: clamp(2.2rem, 6vw, 3.8rem); }
.legal-hero p { color: #c9d4f0; margin: 0; }
.legal { padding: clamp(40px, 6vw, 72px) 0 var(--section); background: #fff; }
.legal__body { max-width: 780px; }
.legal__body h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); margin-top: 2em; }
.legal__body h3 { font-size: 1.15rem; margin-top: 1.5em; font-family: var(--f-body); letter-spacing: 0; }
.legal__body ul { list-style: disc; padding-left: 1.3em; margin-bottom: 1em; display: grid; gap: 6px; }
.legal__body ol { list-style: decimal; padding-left: 1.3em; margin-bottom: 1em; display: grid; gap: 6px; }
.legal__body table { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; font-size: .95rem; }
.legal__body th, .legal__body td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.legal__body th { background: var(--paper); }
.legal__data { padding: 20px 22px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); }
.legal__data dl { display: grid; gap: 6px 18px; margin: 0; }
@media (min-width: 620px) { .legal__data dl { grid-template-columns: max-content 1fr; } }
.legal__data dt { font-weight: 700; }
.legal__data dd { margin: 0; }
.table-wrap { overflow-x: auto; }

/* ---------- 404 ---------- */
.nf { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 80px 0; background: var(--grad-navy); color: #fff; }
.nf__code { font-family: var(--f-mono); font-weight: 700; font-size: clamp(4rem, 18vw, 9rem); line-height: 1; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nf p { color: #c9d4f0; }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html:not(.lenis) { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .marquee__track { animation: none; flex-wrap: wrap; justify-content: center; }
  .marquee__track + .marquee__track { display: none; }
  .marquee { transform: none; }
  .fab-wa__pulse, .route__ring, .eyebrow .dot { display: none; }
}

@media print {
  .topbar, .header, .fab-wa, .progress, .marquee, .hero__bg, .map { display: none !important; }
  body { background: #fff; }
}

/* ---------- Anti-desbordamiento: los hijos de grid no crecen por su contenido (p. ej. <select> con opciones largas) ---------- */
.hero__grid > *, .quote__grid > *, .parcel__grid > *, .contact__grid > *, .office__grid > *, .faq__grid > *, .specs__grid > *, .grid-2 > *, .grid-3 > *, .bp-grid > *, .bento > * { min-width: 0; }
.field select { max-width: 100%; text-overflow: ellipsis; }
