/* ============================================================
   LATINO EXPRESS · base.css
   Mundo V2: rojo #B70603 · ink #0C0708 · BLANCO LIMPIO · oro solo detalle fino
   Tokens extraídos de la escena maestra (cap. 10 §3 / brief)
   ============================================================ */

@font-face {
  font-family: 'Archivo Black';
  src: url('/assets/fonts/archivo-black-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('/assets/fonts/manrope-var-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* V2 (orden O2 del dueño): superficies claras = BLANCO LIMPIO NEUTRO.
     Muere el crema dorado; el oro queda SOLO como detalle fino (ruta/pins/hairlines). */
  --ink: #0C0708;
  --ink-2: #150B0C;
  --ink-3: #1E1010;
  --surface: #FAFBFC;
  --surface-2: #F3F5F7;
  --card: #FEFEFE;
  --accent: #B70603;
  --accent-hi: #E82316;
  --gold: #EBB559;
  --gold-deep: #B87825;
  --brown: #794409; /* RETIRADO de todo uso en V2 (se conserva declarado) */
  --cream-hi: #FDFDFE; /* texto destacado sobre oscuro (nombre legado, valor V2) */
  --on-dark: #F5F6F8;
  --on-dark-muted: rgba(245, 246, 248, .66);
  --tx: #16181C;
  --tx-muted: rgba(22, 24, 28, .72);
  --hair-gold: rgba(235, 181, 89, .32);
  --hair-ink: rgba(12, 7, 8, .12);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --disp: 'Archivo Black', 'Arial Black', sans-serif;
  --ui: 'Manrope', 'Segoe UI', sans-serif;
  --pad-x: clamp(20px, 5vw, 72px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; scroll-padding-top: 96px; }
html, body { overflow-x: clip; }
html.menu-lock { overflow: hidden; }
body {
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.6;
  color: var(--on-dark);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select { font: inherit; }
em { font-style: normal; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- tipografía compartida ---------- */
h1, h2, h3 { font-family: var(--disp); font-weight: 400; text-transform: uppercase; letter-spacing: -0.015em; line-height: 0.94; }
.hl { display: block; overflow: hidden; }
.hl-in { display: inline-block; will-change: transform; }

.eyebrow {
  font-family: var(--ui); font-weight: 600; font-size: 12px;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold);
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow .rule { display: inline-block; width: 26px; height: 1px; background: var(--hair-gold); }
.eyebrow .glifo { font-size: 14px; letter-spacing: 0; transform: translateY(-1px); }

/* outline hueco 0711-s: tratamiento 2 de Archivo Black (jamás anima a relleno) */
.ghost-word {
  font-family: var(--disp); text-transform: uppercase; line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(235, 181, 89, .16);
  pointer-events: none; user-select: none;
}

/* ---------- botones (hover = GSAP, cero transition transform CSS) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--ui); font-weight: 800; font-size: 15px; line-height: 1.2;
  padding: 16px 28px; border-radius: 999px; white-space: nowrap;
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent-hi), var(--accent) 62%);
  color: #FDFDFE;
  box-shadow: 0 10px 28px rgba(183, 6, 3, .38), inset 0 1px 0 rgba(255, 255, 255, .22);
}
.btn-ghost {
  color: var(--on-dark);
  border: 1px solid rgba(245, 246, 248, .34);
  background: rgba(12, 7, 8, .22);
}
.btn-disc {
  display: inline-grid; place-items: center; width: 26px; height: 26px;
  border-radius: 50%; background: rgba(255, 255, 255, .16); font-style: normal;
}

/* ---------- chips glass del mundo nocturno (0704-c6) ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: 999px;
  background: rgba(12, 7, 8, .58);
  border: 1px solid rgba(235, 181, 89, .30);
  box-shadow: 0 8px 26px rgba(4, 2, 2, .45);
  backdrop-filter: none;
  font-size: 13px; font-weight: 600; color: var(--on-dark);
  will-change: transform;
}
.chip b { font-weight: 800; color: var(--cream-hi); }
.chip small { display: block; font-size: 11px; color: var(--on-dark-muted); line-height: 1.2; }
.chip svg { width: 18px; height: 18px; stroke: var(--gold); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.pill-mono {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--cream-hi);
  padding: 8px 14px; border-radius: 999px;
  border: 1px dashed rgba(235, 181, 89, .45);
  background: rgba(12, 7, 8, .4);
}
.pill-mono i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }

/* ---------- reveals IO (CSS dueño de .rv; GSAP jamás los toca) ---------- */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.rv-pop { transform: translateY(14px) scale(.95); }
.rv.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv, .rv-pop { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ============================================================
   NAV «TABLERO NOCTURNO» (o2/p1/0720-c)
   reposo: transparente sobre el hero · pegado: tinta + hairline oro
   Ningún tween GSAP sobre el header (dueño único).
   ============================================================ */
header { position: absolute; top: 0; left: 0; right: 0; z-index: 60; }
.nav {
  position: relative;
  display: flex; align-items: center;
  height: 92px; padding: 0 clamp(18px, 3vw, 44px);
}
.nav-logo { display: block; flex: none; }
.nav-logo img { height: 58px; width: auto; }
.nav-links {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: 8px;
  white-space: nowrap;
}
.nav-links a {
  position: relative;
  font-size: 15px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--on-dark);
  padding: 10px 14px;
}
/* separador puntos-de-ruta entre links (el hilo también vive en el nav) */
.nav-links a + a::before {
  content: ""; position: absolute; left: -6px; top: 50%; margin-top: -1.5px;
  width: 3px; height: 3px; border-radius: 50%; background: var(--gold); opacity: .7;
}
/* activo/hover: trazo punteado oro que se dibuja (CSS dueño de estos nodos) */
.nav-links a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background-image: repeating-linear-gradient(90deg, var(--gold) 0 6px, transparent 6px 11px);
  transform: scaleX(0); transform-origin: left center;
  transition: transform .35s var(--ease);
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.lang-pill {
  display: inline-flex; border: 1px solid rgba(245, 246, 248, .3); border-radius: 999px; overflow: hidden;
}
.lang-pill a {
  font-size: 12px; font-weight: 800; letter-spacing: .06em;
  padding: 7px 12px; color: var(--on-dark-muted);
}
.lang-pill a[aria-current="true"] { background: var(--accent); color: #FDFDFE; }
.nav-cta { padding: 12px 22px; font-size: 14px; }
.nav-burger {
  display: none; position: relative; width: 48px; height: 48px; flex: none;
  border-radius: 12px; border: 1px solid rgba(245, 246, 248, .28);
}
.nav-burger i, .nav-burger::before, .nav-burger::after {
  content: ""; position: absolute; left: 13px; right: 13px; height: 2px;
  background: var(--on-dark); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s;
}
.nav-burger::before { top: 17px; }
.nav-burger i { top: 23px; }
.nav-burger::after { top: 29px; }
body.menu-open .nav-burger::before { transform: translateY(6px) rotate(45deg); }
body.menu-open .nav-burger::after { transform: translateY(-6px) rotate(-45deg); }
body.menu-open .nav-burger i { opacity: 0; }

/* pegado 0720-c: fixed + tinta, slide-down, histéresis en JS */
body.nav-scrolled header {
  position: fixed;
  background: rgba(12, 7, 8, .96);
  border-bottom: 1px solid var(--hair-gold);
  animation: navDrop .35s var(--ease);
}
body.nav-scrolled .nav { height: 74px; }
body.nav-scrolled .nav-logo img { height: 46px; }
@keyframes navDrop { from { transform: translateY(-100%); } to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { body.nav-scrolled header { animation: none; } }

/* menú móvil PRO (0704-l3) */
.mobile-menu {
  position: fixed; inset: 0; z-index: 55;
  background: rgba(12, 7, 8, .97);
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
  padding: 110px clamp(24px, 8vw, 48px) 48px;
  opacity: 0; visibility: hidden;
  transition: opacity .3s ease, visibility 0s linear .3s;
}
body.menu-open .mobile-menu { opacity: 1; visibility: visible; transition: opacity .3s ease; }
.mobile-menu > a {
  font-family: var(--disp); font-size: clamp(26px, 7vw, 34px); text-transform: uppercase;
  color: var(--on-dark); padding: 10px 0; line-height: 1.1;
  opacity: 0; transform: translateY(12px);
  transition: opacity .3s ease, transform .3s var(--ease);
}
body.menu-open .mobile-menu > a { opacity: 1; transform: none; }
body.menu-open .mobile-menu > a:nth-child(1) { transition-delay: 40ms; }
body.menu-open .mobile-menu > a:nth-child(2) { transition-delay: 80ms; }
body.menu-open .mobile-menu > a:nth-child(3) { transition-delay: 120ms; }
body.menu-open .mobile-menu > a:nth-child(4) { transition-delay: 160ms; }
body.menu-open .mobile-menu > a:nth-child(5) { transition-delay: 200ms; }
.mobile-menu > a[aria-current="page"] { color: var(--gold); }
.mm-lang { display: inline-flex; margin-top: 18px; border: 1px solid rgba(245, 246, 248, .3); border-radius: 999px; overflow: hidden; align-self: flex-start; }
.mm-lang a { font-size: 14px; font-weight: 800; padding: 10px 18px; color: var(--on-dark-muted); }
.mm-lang a[aria-current="true"] { background: var(--accent); color: #FDFDFE; }
.mm-contact { margin-top: 14px; font-size: 14px; color: var(--on-dark-muted); }
.mm-contact a { color: var(--cream-hi); font-weight: 700; }
@media (prefers-reduced-motion: reduce) {
  .mobile-menu, .mobile-menu > a { transition: none !important; }
}

@media (max-width: 1080px) {
  .nav-links, .nav .lang-pill, .nav .nav-cta { display: none; }
  .nav-burger { display: block; margin-left: auto; }
  .nav-right { margin-left: auto; }
  .nav { height: 76px; }
  .nav-logo img { height: 46px; }
}

/* ============================================================
   CANVAS DE MOTAS (capa de esencia — SIEMPRE posicionada en base,
   gotcha 0704-j9a: jamás dejarla en flujo)
   ============================================================ */
.motes { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; }

/* ============================================================
   FOOTER ⑥ · C1 4-col + wordmark bleed (idéntico en las 5 páginas)
   ============================================================ */
.footer {
  position: relative; overflow: clip;
  background: linear-gradient(180deg, #120A0B, var(--ink) 55%);
  padding: clamp(56px, 7vw, 96px) var(--pad-x) 0;
}
.footer::before {
  /* susurro del mundo: ruta punteada tone-on-tone (ley q2) */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .05;
  background-image: radial-gradient(circle 2px at 12px 12px, var(--gold) 45%, transparent 55%);
  background-size: 46px 46px;
}
.footer-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
  gap: clamp(28px, 4vw, 56px);
  max-width: 1280px; margin: 0 auto;
}
.footer-brand img { width: min(220px, 56vw); height: auto; }
.footer-brand p { margin-top: 18px; font-size: 14.5px; color: var(--on-dark-muted); max-width: 30ch; }
.footer h3 {
  font-family: var(--ui); font-weight: 800; font-size: 12.5px;
  letter-spacing: .2em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 16px;
}
.footer-grid ul li { margin-bottom: 9px; }
.footer-grid ul a, .footer-grid ul span {
  font-size: 14.5px; color: var(--on-dark-muted);
  transition: color .25s ease;
}
.footer-grid ul a:hover { color: var(--cream-hi); }
.footer-fe { margin-top: 16px; font-size: 13px; font-style: italic; color: rgba(235, 181, 89, .72); }
.footer-hairline { position: relative; z-index: 2; height: 1px; background: var(--hair-gold); margin: clamp(36px, 5vw, 64px) auto 0; max-width: 1280px; }
.footer-word {
  position: relative; z-index: 1; overflow: clip;
  height: clamp(90px, 11vw, 180px); margin-top: 8px;
  display: flex; justify-content: center;
}
.footer-word span {
  font-family: var(--disp); font-size: min(16vw, 300px); line-height: .8;
  letter-spacing: -0.02em; white-space: nowrap;
  color: rgba(235, 181, 89, .08);
  transform: translateY(30%);
  pointer-events: none; user-select: none;
}
.footer-legal {
  position: relative; z-index: 2;
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between;
  max-width: 1280px; margin: 0 auto;
  padding: 18px 0 26px;
  font-size: 12.5px; color: rgba(245, 246, 248, .5);
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}

/* ---------- tarjeta de confirmación (ley n3: imposible de no ver) ---------- */
.sent-card {
  display: flex; align-items: center; gap: 16px;
  background: #14300F;
  border: 1px solid rgba(126, 211, 100, .5);
  border-radius: 16px;
  padding: 20px 22px; margin-bottom: 22px;
}
.sent-card .ok-disc {
  flex: none; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: #57B944; color: #0B1F07; font-size: 22px; font-weight: 800;
}
.sent-card b { display: block; font-size: 17px; color: #D8F5CE; }
.sent-card span { font-size: 14px; color: rgba(216, 245, 206, .8); }

/* error del widget / formularios */
.err-note {
  display: none; margin-top: 14px; padding: 14px 18px; border-radius: 12px;
  background: rgba(183, 6, 3, .16); border: 1px solid rgba(232, 35, 22, .45);
  font-size: 14px; color: #FFD9CF;
}
.err-note.show { display: block; }
.err-note a { color: var(--cream-hi); font-weight: 800; }

/* util compartida: secciones bajo el fold (0704-j4) */
.cv-auto { content-visibility: auto; contain-intrinsic-width: auto 1px; contain-intrinsic-height: auto 900px; }
