/* ==========================================================================
   CECAOP | Hoja de estilos
   Metodología: mobile first (base = móvil, min-width para crecer).
   Orden: tokens > base > utilidades > loader > header > hero > secciones.
   Escala de radios: pill (botones, chips) / 28px (tarjetas grandes) /
   18px (tarjetas pequeñas) / 12px (campos).
   Acento único: dorado. Secundario de marca: azul real. Base: azul marino.
   ========================================================================== */

/* ---------- 1. TOKENS ---------- */
:root {
  --navy-950: #040b24;
  --navy-900: #071440;
  --navy-800: #0b1f5c;
  --navy-700: #112a78;
  --blue-600: #1f4fd8;
  --blue-500: #2f6bff;
  --blue-400: #5b8cff;
  --blue-300: #9db8ff;
  --gold-600: #e5a800;
  --gold-500: #ffc20e;
  --gold-400: #ffd43b;
  --ice-50: #f6f9ff;
  --ice-100: #eaf0fc;
  --ice-200: #d6e1f5;
  --ink: #0a1230;
  --ink-soft: #435070;
  --silver: #8d9bb8;
  --wa: #14a44d;

  --font-display: 'Sora', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  --r-xl: 28px;
  --r-lg: 18px;
  --r-md: 12px;

  --header-h: 68px;
  --gutter: clamp(20px, 5vw, 48px);
  --sec-pad: clamp(76px, 11vw, 150px);
  --cut: clamp(24px, 4.5vw, 64px);
}

/* ---------- 2. BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
html.is-loading, html.is-loading body { overflow: hidden; }

body {
  min-height: 100vh;
  background: var(--navy-950);
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

main { overflow-x: clip; }
img, svg, canvas, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
address { font-style: normal; }
[hidden] { display: none !important; }
::selection { background: var(--gold-500); color: var(--navy-950); }

:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 3px; border-radius: 6px; }
.section--light :focus-visible, .section--ice :focus-visible { outline-color: var(--blue-600); }

.container { width: min(100% - (var(--gutter) * 2), 1240px); margin-inline: auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 16px; top: -80px; z-index: 2000;
  padding: 12px 20px; border-radius: 999px;
  background: var(--gold-500); color: var(--navy-950); font-weight: 600;
  transition: top 0.3s var(--ease);
}
.skip-link:focus { top: 16px; }

/* ---------- 3. COMPONENTES BASE ---------- */
.ico { width: 1.2em; height: 1.2em; flex: none; }

.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; overflow: hidden; isolation: isolate;
  font: 600 0.95rem/1 var(--font-display); letter-spacing: -0.01em; white-space: nowrap;
  translate: var(--tx, 0px) var(--ty, 0px);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.3s, color 0.3s, border-color 0.3s;
  -webkit-tap-highlight-color: transparent;
}
.btn::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 32%, rgba(255, 255, 255, 0.5) 50%, transparent 68%);
  transform: translateX(-130%);
}
.btn:hover::after { transform: translateX(130%); transition: transform 0.9s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn .ico--arrow { transition: transform 0.4s var(--ease); }
.btn:hover .ico--arrow { transform: translateX(4px); }

.btn--gold { background: linear-gradient(180deg, var(--gold-400), var(--gold-500)); color: var(--navy-950); box-shadow: 0 12px 32px -10px rgba(255, 194, 14, 0.6); }
.btn--gold:hover { box-shadow: 0 18px 40px -8px rgba(255, 194, 14, 0.75); }
.btn--ghost { color: #fff; border: 1px solid rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.05); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--gold-500); }
.btn--navy { background: var(--navy-900); color: #fff; box-shadow: 0 14px 30px -12px rgba(7, 20, 64, 0.6); }
.btn--navy:hover { background: var(--navy-800); }
.btn--outline { color: var(--navy-900); border: 1.5px solid var(--navy-900); }
.btn--outline:hover { background: var(--navy-900); color: #fff; }
.btn--lg { padding: 17px 28px; font-size: 1rem; }
.btn--sm { padding: 11px 18px; font-size: 0.86rem; }
.btn--block { width: 100%; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 18px;
  font: 600 0.74rem/1 var(--font-mono); letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-400);
}
.eyebrow::before { content: ''; width: 28px; height: 2px; background: currentColor; }
.eyebrow--dark { color: var(--blue-600); }

.h2 {
  font: 700 clamp(2rem, 6.2vw, 3.8rem)/1.06 var(--font-display);
  letter-spacing: -0.035em; text-wrap: balance;
}
.h2--xl { font-size: clamp(2.3rem, 7.4vw, 4.8rem); line-height: 1.02; }
.lead { margin-top: 18px; max-width: 56ch; font-size: clamp(1rem, 2vw, 1.2rem); color: rgba(255, 255, 255, 0.72); }

.section { position: relative; padding-block: var(--sec-pad); }
.section--dark { background: var(--navy-900); color: #fff; }
.section--light {
  background-color: var(--ice-50); color: var(--ink);
  background-image: radial-gradient(rgba(10, 18, 48, 0.07) 1px, transparent 1px);
  background-size: 26px 26px;
}
.section--ice { background: var(--ice-100); color: var(--ink); }
.section--light .lead, .section--ice .lead { color: var(--ink-soft); }

.section--cut {
  margin-top: calc(var(--cut) * -1);
  padding-top: calc(var(--sec-pad) + var(--cut));
  clip-path: polygon(0 var(--cut), 100% 0, 100% 100%, 0 100%);
}
.section--cut::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: var(--cut); z-index: 3; pointer-events: none;
  background: linear-gradient(to bottom right,
    transparent calc(50% + 1px), var(--gold-500) calc(50% + 1px) calc(50% + 5px),
    transparent calc(50% + 5px) calc(50% + 10px), var(--blue-500) calc(50% + 10px) calc(50% + 13px),
    transparent calc(50% + 13px));
}

.section-head { max-width: 800px; margin-bottom: clamp(36px, 6vw, 72px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

/* Split de palabras (lo genera script.js) */
.sw { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.sw > span { display: inline-block; }
html.js-ok [data-split] .sw > span { transform: translateY(112%); transition: transform 1.1s var(--ease) calc(var(--wi, 0) * 55ms); }
html.js-ok [data-split].is-in .sw > span { transform: none; }

/* Reveal al hacer scroll */
html.js-ok [data-reveal] {
  opacity: 0; transform: translateY(40px);
  transition: opacity 1.2s var(--ease) var(--d, 0ms), transform 1.2s var(--ease) var(--d, 0ms);
}
html.js-ok [data-reveal='scale'] { transform: translateY(28px) scale(0.94); }
html.js-ok [data-reveal='left'] { transform: translateX(-48px); }
html.js-ok [data-reveal='right'] { transform: translateX(48px); }
html.js-ok [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- 4. LOADER ---------- */
.loader { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; color: #fff; }
.loader.is-gone { display: none; }
.loader__panel {
  position: absolute; left: 0; right: 0; height: 50.6%; background: var(--navy-950);
  transition: transform 1.05s var(--ease-io);
}
.loader__panel--a { top: 0; background: linear-gradient(180deg, #02061a, var(--navy-950)); }
.loader__panel--b { bottom: 0; background: linear-gradient(0deg, #02061a, var(--navy-950)); }
.loader__panel--a::after, .loader__panel--b::after {
  content: ''; position: absolute; left: 0; right: 0; height: 2px; background: var(--gold-500);
  box-shadow: 0 0 24px 2px rgba(255, 194, 14, 0.6); transform: scaleX(0); transition: transform 0.8s var(--ease-io) 0.1s;
}
.loader__panel--a::after { bottom: 0; }
.loader__panel--b::after { top: 0; }
.loader.is-done .loader__panel--a { transform: translateY(-101%); transition-delay: 0.25s; }
.loader.is-done .loader__panel--b { transform: translateY(101%); transition-delay: 0.25s; }
.loader.is-done .loader__panel--a::after, .loader.is-done .loader__panel--b::after { transform: scaleX(1); }

.loader__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(91, 140, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 140, 255, 0.12) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, rgba(31, 79, 216, 0.4), transparent 55%);
  background-size: 56px 56px, 56px 56px, 100% 100%;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0, transparent 70%);
  mask-image: radial-gradient(circle at 50% 50%, #000 0, transparent 70%);
  animation: gridPan 6s linear infinite;
  transition: opacity 0.5s;
}
.loader.is-done .loader__grid { opacity: 0; }
@keyframes gridPan { to { background-position: 0 56px, 56px 0, 0 0; } }

.loader__core {
  position: relative; z-index: 2; display: grid; justify-items: center; gap: 14px;
  transition: opacity 0.45s var(--ease), transform 0.6s var(--ease);
}
.loader.is-done .loader__core { opacity: 0; transform: scale(0.9); }

.loader__orb { position: relative; width: 190px; height: 190px; animation: orbIn 1s var(--ease) both; }
@keyframes orbIn { from { opacity: 0; transform: scale(0.7) rotate(-30deg); } to { opacity: 1; transform: none; } }
.loader__spinner { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.loader__spinner circle { fill: none; transform-box: fill-box; transform-origin: center; }
.sp-track { stroke: rgba(255, 255, 255, 0.08); stroke-width: 2; }
.sp-progress {
  stroke: var(--gold-500); stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 100; stroke-dashoffset: 100; transform: rotate(-90deg);
  filter: drop-shadow(0 0 6px rgba(255, 194, 14, 0.8));
}
.sp-arc { stroke-linecap: round; }
.sp-arc--gold { stroke: var(--gold-400); stroke-width: 2.5; stroke-dasharray: 20 80; animation: spin 1.4s linear infinite; }
.sp-arc--blue { stroke: var(--blue-400); stroke-width: 2.5; stroke-dasharray: 34 66; animation: spinRev 2.2s linear infinite; }
.sp-ticks { stroke: rgba(255, 255, 255, 0.4); stroke-width: 6; stroke-dasharray: 0.35 1.65; animation: spin 14s linear infinite; }
.loader__logo {
  position: absolute; inset: 20%; border-radius: 50%; background: #fff; display: grid; place-items: center; overflow: hidden;
  box-shadow: 0 0 0 4px rgba(255, 194, 14, 0.25), 0 0 60px rgba(31, 79, 216, 0.6);
  animation: breathe 2.6s ease-in-out infinite;
}
.loader__logo img { width: 84%; }
.loader__brand {
  font: 700 1.25rem/1 var(--font-display); letter-spacing: 0.5em; text-indent: 0.5em;
  animation: brandIn 1.2s var(--ease) 0.2s both;
}
@keyframes brandIn { from { opacity: 0; letter-spacing: 1.1em; } to { opacity: 1; letter-spacing: 0.5em; } }
.loader__status { min-height: 1.2em; font: 600 0.7rem/1 var(--font-mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--blue-300); }
.loader__meter { width: 170px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.loader__meter span { display: block; height: 100%; background: linear-gradient(90deg, var(--blue-500), var(--gold-500)); transform-origin: left; transform: scaleX(var(--p, 0)); }
.loader__count { font: 600 0.8rem/1 var(--font-mono); color: rgba(255, 255, 255, 0.7); }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spinRev { to { transform: rotate(-360deg); } }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }

/* ---------- 5. HEADER ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 900; pointer-events: none;
  background: linear-gradient(90deg, var(--blue-500), var(--gold-500));
  transform-origin: left; transform: scaleX(var(--sp, 0));
}

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 800;
  padding: max(10px, env(safe-area-inset-top)) 12px 0;
  transform: translateY(-120%);
  transition: transform 0.9s var(--ease) 0.2s;
}
html.is-ready .site-header, html:not(.js-ok) .site-header { transform: none; }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: min(100%, 1240px); margin-inline: auto; min-height: 56px; padding: 6px 8px 6px 10px;
  border-radius: 999px; border: 1px solid transparent;
  transition: background 0.5s var(--ease), border-color 0.5s, box-shadow 0.5s, backdrop-filter 0.5s;
}
.site-header.is-scrolled .site-header__inner {
  background: rgba(7, 20, 64, 0.72); border-color: rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 18px 44px -18px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
@media (prefers-reduced-transparency: reduce) { .site-header.is-scrolled .site-header__inner { background: var(--navy-900); -webkit-backdrop-filter: none; backdrop-filter: none; } }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__badge {
  display: grid; place-items: center; width: 52px; height: 42px; flex: none; padding: 3px 4px;
  background: #fff; border-radius: 14px; box-shadow: 0 0 0 2px rgba(255, 194, 14, 0.5);
}
.brand__badge img { width: 100%; height: 100%; object-fit: contain; }
.brand__text { display: grid; line-height: 1.1; }
.brand__text strong { font: 800 1.1rem/1 var(--font-display); letter-spacing: 0.08em; }
.brand__text small { margin-top: 3px; font: 600 0.62rem/1 var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-400); }

.primary-nav { display: none; }
.primary-nav ul { display: flex; gap: 2px; }
.primary-nav a {
  display: block; padding: 9px 14px; border-radius: 999px;
  font-size: 0.88rem; font-weight: 500; color: rgba(255, 255, 255, 0.75);
  transition: color 0.3s, background 0.3s;
}
.primary-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.primary-nav a.is-active { color: var(--gold-400); }
.site-header__cta { display: none; }

.menu-toggle {
  position: relative; display: grid; place-content: center; gap: 5px; width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14);
}
.menu-toggle span { display: block; width: 20px; height: 2px; border-radius: 2px; background: #fff; transition: transform 0.5s var(--ease), opacity 0.3s; }
.menu-toggle[aria-expanded='true'] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded='true'] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 790; display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--header-h) + 40px) var(--gutter) calc(32px + env(safe-area-inset-bottom));
  background: radial-gradient(circle at 80% 0, rgba(31, 79, 216, 0.5), transparent 55%), var(--navy-950);
  clip-path: circle(0% at calc(100% - 44px) 40px); visibility: hidden;
  transition: clip-path 0.9s var(--ease-io), visibility 0s linear 0.9s;
}
.mobile-menu.is-open { clip-path: circle(150% at calc(100% - 44px) 40px); visibility: visible; transition: clip-path 0.9s var(--ease-io); }
.mobile-menu ul { display: grid; gap: 4px; }
.mobile-menu li { overflow: hidden; }
.mobile-menu li a {
  display: block; padding: 8px 0; font: 700 clamp(2rem, 9vw, 3rem)/1.1 var(--font-display); letter-spacing: -0.03em;
  transform: translateY(110%); transition: transform 0.8s var(--ease), color 0.3s;
}
.mobile-menu.is-open li a { transform: none; transition-delay: calc(0.25s + var(--i, 0) * 70ms); }
.mobile-menu li a:hover, .mobile-menu li a:active { color: var(--gold-400); }
.mobile-menu__foot { display: grid; gap: 16px; text-align: center; opacity: 0; transition: opacity 0.6s 0.7s; }
.mobile-menu.is-open .mobile-menu__foot { opacity: 1; }
.mobile-menu__foot p { color: rgba(255, 255, 255, 0.7); font-size: 0.95rem; }

/* ---------- 6. HERO ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden; min-height: 100svh;
  display: grid; align-items: center;
  padding: calc(var(--header-h) + 40px) 0 calc(var(--cut) + 56px);
  background: linear-gradient(180deg, var(--navy-950) 0%, var(--navy-900) 75%);
  --road-h: clamp(240px, 40svh, 420px);
}
.hero__bg { position: absolute; inset: 0; z-index: -1; }

.hero__aurora i { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.55; will-change: transform; }
.hero__aurora i:nth-child(1) { width: 60vmax; height: 60vmax; left: -25vmax; top: -22vmax; background: var(--blue-600); animation: floatA 22s ease-in-out infinite alternate; }
.hero__aurora i:nth-child(2) { width: 38vmax; height: 38vmax; right: -14vmax; top: 18%; background: rgba(255, 194, 14, 0.34); animation: floatB 26s ease-in-out infinite alternate; }
.hero__aurora i:nth-child(3) { width: 44vmax; height: 30vmax; left: 20%; bottom: -12vmax; background: var(--navy-700); animation: floatA 30s ease-in-out infinite alternate-reverse; }
@keyframes floatA { to { transform: translate3d(8vmax, 6vmax, 0) scale(1.15); } }
@keyframes floatB { to { transform: translate3d(-10vmax, -5vmax, 0) scale(0.85); } }

.hero__road {
  position: absolute; left: 0; right: 0; bottom: 0; height: var(--road-h);
  perspective: 600px; perspective-origin: 50% 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 40%); mask-image: linear-gradient(to bottom, transparent 0, #000 40%);
}
.road__plane {
  position: absolute; left: -60%; right: -60%; top: 0; height: 125%;
  transform-origin: 50% 0; transform: rotateX(70deg);
  background-image:
    linear-gradient(rgba(91, 140, 255, 0.5) 2px, transparent 2px),
    linear-gradient(90deg, rgba(91, 140, 255, 0.4) 2px, transparent 2px);
  background-size: 110px 110px;
  animation: roadFlow 1.2s linear infinite;
}
@keyframes roadFlow { to { background-position: 0 110px, 0 0; } }
.road__lane { position: absolute; top: 0; bottom: 0; }
.road__lane--c {
  left: 50%; width: 12px; margin-left: -6px;
  background: repeating-linear-gradient(to bottom, var(--gold-500) 0 64px, transparent 64px 150px);
  box-shadow: 0 0 20px rgba(255, 194, 14, 0.6);
  animation: laneFlow 1.2s linear infinite;
}
@keyframes laneFlow { to { background-position: 0 150px; } }
.road__lane--l, .road__lane--r { width: 6px; background: rgba(255, 255, 255, 0.55); box-shadow: 0 0 14px rgba(157, 184, 255, 0.5); }
.road__lane--l { left: calc(50% - 300px); }
.road__lane--r { left: calc(50% + 294px); }

.hero__horizon {
  position: absolute; left: 0; right: 0; bottom: calc(var(--road-h) - 1px); height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-500) 30%, #fff 50%, var(--gold-500) 70%, transparent);
  box-shadow: 0 0 40px 8px rgba(255, 194, 14, 0.4);
}
.hero__horizon::after {
  content: ''; position: absolute; left: 10%; right: 10%; bottom: 0; height: 160px;
  background: radial-gradient(ellipse at 50% 100%, rgba(255, 194, 14, 0.28), transparent 70%);
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__stripes i {
  position: absolute; left: -20%; width: 140%; height: 54px; transform: rotate(-14deg);
  animation: drift 16s ease-in-out infinite alternate;
}
.hero__stripes i:nth-child(1) { top: 9%; background: linear-gradient(90deg, transparent, rgba(31, 79, 216, 0.38), transparent); }
.hero__stripes i:nth-child(2) { top: calc(9% + 84px); height: 26px; background: linear-gradient(90deg, transparent, rgba(255, 194, 14, 0.22), transparent); animation-delay: -6s; }
@keyframes drift { from { translate: -6% 0; } to { translate: 6% 0; } }
.hero__vignette { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 42%, transparent 35%, rgba(4, 11, 36, 0.7) 100%); }

.hero__grid { display: grid; gap: 44px; align-items: center; }
.hero__copy { position: relative; }

.hero__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.6rem, 11vw, 5.2rem); line-height: 1; letter-spacing: -0.032em; word-spacing: 0.06em; }
.hero__kicker { display: block; margin-bottom: 20px; font: 600 clamp(0.7rem, 2.6vw, 0.82rem)/1.3 var(--font-mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-400); }
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.16em; margin-bottom: -0.16em; }
.hero__title .line > span { display: inline-block; }
.grad {
  background: linear-gradient(100deg, var(--gold-500) 0%, var(--gold-400) 30%, #fff8dc 50%, var(--gold-400) 70%, var(--gold-500) 100%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 5s ease-in-out infinite;
}
@keyframes shimmer { 0% { background-position: 120% 0; } 100% { background-position: -120% 0; } }

.hero__lead { max-width: 36ch; margin-top: 24px; font-size: clamp(1.05rem, 2.6vw, 1.3rem); color: rgba(255, 255, 255, 0.8); }
.rotator { color: var(--gold-400); font-weight: 600; }
.rotator__caret { display: inline-block; width: 2px; height: 1em; margin-left: 3px; vertical-align: -0.14em; background: var(--gold-500); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__cta .btn { flex: 1 1 230px; }

.status-chip {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; padding: 8px 16px 8px 14px;
  border-radius: 999px; font-size: 0.86rem; font-weight: 500;
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.16); color: rgba(255, 255, 255, 0.9);
}
.status-chip__dot { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--silver); flex: none; }
.status-chip.is-open .status-chip__dot { background: var(--gold-500); }
.status-chip.is-open .status-chip__dot::after {
  content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--gold-500); animation: ping 1.8s ease-out infinite;
}
@keyframes ping { from { transform: scale(0.4); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
.status-chip--light { margin: 0; background: var(--ice-100); border-color: var(--ice-200); color: var(--ink); }
.status-chip--light.is-open .status-chip__dot { background: var(--blue-600); }
.status-chip--light.is-open .status-chip__dot::after { border-color: var(--blue-600); }

/* Entrada del hero (se dispara cuando termina el loader) */
html.js-ok [data-hero-in] { opacity: 0; transform: translateY(28px); }
html.js-ok .hero__title .line > [data-hero-in] { opacity: 1; transform: translateY(118%); }
html.js-ok.is-ready [data-hero-in], html.js-ok.is-ready .hero__title .line > [data-hero-in] { opacity: 1; transform: none; transition: opacity 1.2s var(--ease) var(--hd, 0ms), transform 1.3s var(--ease) var(--hd, 0ms); }

/* Órbita */
.hero__visual { position: relative; display: grid; place-items: center; padding: 22px 0; }
.orbit { --size: min(78vw, 360px); --chip: clamp(40px, 11.5vw, 54px); position: relative; width: var(--size); height: var(--size); }
.orbit__glow { position: absolute; inset: -12%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 194, 14, 0.2), rgba(31, 79, 216, 0.22) 45%, transparent 70%); animation: breathe 6s ease-in-out infinite; }
.orbit__sweep {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 290deg, rgba(255, 194, 14, 0.3) 360deg);
  -webkit-mask-image: radial-gradient(circle, transparent 0 24%, #000 25%); mask-image: radial-gradient(circle, transparent 0 24%, #000 25%);
  animation: spin 6s linear infinite;
}
.orbit__ring { position: absolute; border-radius: 50%; border: 1px solid rgba(157, 184, 255, 0.28); }
.orbit__ring--1 { inset: 0; border-style: dashed; animation: spin 90s linear infinite; }
.orbit__ring--2 { inset: 14%; border-color: rgba(255, 194, 14, 0.4); }
.orbit__ring--3 { inset: 28%; border-style: dashed; border-color: rgba(157, 184, 255, 0.35); animation: spinRev 50s linear infinite; }
.orbit__track { position: absolute; inset: 0; }
.orbit__track--a { animation: spin 48s linear infinite; }
.orbit__track--b { animation: spinRev 70s linear infinite; }
.orbit__chip {
  position: absolute; top: 50%; left: 50%; width: var(--chip); height: var(--chip); margin: calc(var(--chip) / -2);
  transform: rotate(var(--a)) translateX(calc(var(--size) * 0.36)) rotate(calc(var(--a) * -1));
}
.orbit__chip span {
  display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%;
  background: linear-gradient(145deg, var(--navy-700), var(--navy-900)); border: 1.5px solid var(--gold-500);
  color: var(--gold-400); font: 800 calc(var(--chip) * 0.42)/1 var(--font-display);
  box-shadow: 0 0 26px rgba(255, 194, 14, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  animation: spinRev 48s linear infinite;
}
.orbit__sat {
  position: absolute; top: 50%; left: 50%; width: 11px; height: 11px; margin: -5.5px; border-radius: 50%;
  background: var(--gold-500); box-shadow: 0 0 16px 2px var(--gold-500);
  transform: rotate(var(--a)) translateX(calc(var(--size) * 0.5));
}
.orbit__sat:nth-child(2) { width: 7px; height: 7px; margin: -3.5px; background: var(--blue-300); box-shadow: 0 0 14px var(--blue-400); }
.orbit__core { position: absolute; inset: 31%; display: grid; place-items: center; }
.orbit__badge {
  display: grid; place-items: center; width: 100%; aspect-ratio: 1; border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 6px rgba(255, 194, 14, 0.3), 0 0 0 14px rgba(255, 194, 14, 0.12), 0 0 90px rgba(255, 194, 14, 0.4);
  animation: breathe 4.5s ease-in-out infinite;
}
.orbit__badge { overflow: hidden; }
.orbit__badge img { width: 78%; }

.route-card {
  display: none; position: absolute; left: -2%; bottom: 0; width: min(270px, 62%); padding: 18px 18px 16px;
  border-radius: var(--r-lg); color: #fff;
  background: rgba(7, 20, 64, 0.62); border: 1px solid rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  translate: var(--rx, 0px) var(--ry, 0px);
}
.route-card__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; font: 600 0.7rem/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-300); }
.route-card__head b { color: var(--gold-400); font-size: 0.9rem; }
.route-card__list { display: grid; gap: 9px; }
.route-card__list li { display: flex; align-items: center; gap: 10px; font-size: 0.82rem; color: rgba(255, 255, 255, 0.55); transition: color 0.4s; }
.route-card__list i { display: grid; place-items: center; width: 20px; height: 20px; flex: none; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.28); transition: background 0.4s, border-color 0.4s; }
.route-card__list svg { width: 12px; height: 12px; opacity: 0; transform: scale(0.4); transition: opacity 0.3s, transform 0.5s var(--ease); }
.route-card__list li.is-current { color: #fff; }
.route-card__list li.is-current i { border-color: var(--gold-500); border-top-color: transparent; animation: spin 0.9s linear infinite; }
.route-card__list li.is-done { color: #fff; }
.route-card__list li.is-done i { background: var(--gold-500); border-color: var(--gold-500); color: var(--navy-950); }
.route-card__list li.is-done svg { opacity: 1; transform: none; }
.route-card__bar { height: 4px; margin-top: 14px; border-radius: 4px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.route-card__bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--blue-400), var(--gold-500)); transform-origin: left; transform: scaleX(var(--rp, 0)); transition: transform 0.7s var(--ease); }

/* ---------- 7. TICKER ---------- */
.ticker {
  position: relative; z-index: 5; margin: calc(var(--cut) * -0.9) -3% 0; padding: 18px 0;
  background: var(--gold-500); color: var(--navy-950); overflow: hidden;
  transform: rotate(-1.6deg); box-shadow: 0 -20px 60px -20px rgba(0, 0, 0, 0.5);
  border-block: 3px solid var(--navy-950);
}
.ticker__track { display: flex; width: max-content; will-change: transform; }
.ticker__group { display: flex; flex: none; }
.ticker__group li {
  display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; white-space: nowrap;
  font: 800 clamp(0.95rem, 2.8vw, 1.25rem)/1 var(--font-display); letter-spacing: 0.04em; text-transform: uppercase;
}
.ticker__group li::after { content: ''; width: 10px; height: 10px; background: var(--navy-950); transform: rotate(45deg); }

/* ---------- 8. NOSOTROS ---------- */
.manifesto { padding-top: calc(var(--sec-pad) + var(--cut)); }
.manifesto__text {
  max-width: 1100px; font: 700 clamp(1.7rem, 5.4vw, 3.7rem)/1.14 var(--font-display); letter-spacing: -0.035em; color: var(--navy-900);
}
.manifesto__text .w { opacity: 0.14; transition: opacity 0.45s; }
.manifesto__text .w.is-lit { opacity: 1; }
html:not(.js-ok) .manifesto__text .w { opacity: 1; }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 20px; margin-top: clamp(48px, 8vw, 96px); }
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 8px; padding-top: 18px; border-top: 3px solid var(--navy-900); }
.stat dt { font-size: 0.92rem; color: var(--ink-soft); font-weight: 500; }
.stat dd { font: 800 clamp(2.8rem, 9vw, 5rem)/1 var(--font-display); letter-spacing: -0.05em; color: var(--blue-600); }

/* ---------- 9. CURSOS (tarjetas apiladas con sticky) ---------- */
.stack { display: grid; gap: 28px; padding-bottom: 24px; }

.course-card {
  position: sticky; top: calc(var(--header-h) + 14px + var(--i) * 12px);
  display: grid; gap: 18px; padding: 22px; isolation: isolate; overflow: hidden;
  border-radius: var(--r-xl); border: 1px solid rgba(255, 255, 255, 0.13);
  background: linear-gradient(150deg, #173f9f 0%, var(--navy-800) 42%, var(--navy-900) 100%);
  box-shadow: 0 -18px 50px -24px rgba(0, 0, 0, 0.55), 0 40px 80px -34px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform-origin: 50% 0; transform: scale(var(--sc, 1)); will-change: transform;
}
.course-card:nth-child(even) { background: linear-gradient(210deg, #1b46b4 0%, var(--navy-800) 45%, var(--navy-900) 100%); }
.course-card::before {
  content: ''; position: absolute; top: 0; right: 0; width: 190px; height: 190px; z-index: 0; pointer-events: none; opacity: 0.95;
  background: linear-gradient(225deg,
    transparent 38%, var(--gold-500) 38% 42%, transparent 42% 47%, var(--blue-400) 47% 50%, transparent 50%);
}
.course-card::after { content: ''; position: absolute; inset: 0; z-index: 5; border-radius: inherit; pointer-events: none; background: var(--navy-950); opacity: var(--cover, 0); }
.course-card--hazard {
  background:
    repeating-linear-gradient(-45deg, var(--gold-500) 0 14px, #0a0f1e 14px 28px) bottom / 100% 10px no-repeat,
    linear-gradient(150deg, #173f9f 0%, var(--navy-800) 42%, var(--navy-900) 100%);
}
.course-card__ghost {
  position: absolute; right: 2%; bottom: -16%; z-index: 0; pointer-events: none; user-select: none;
  font: 800 clamp(13rem, 46vw, 24rem)/1 var(--font-display); color: transparent; -webkit-text-stroke: 2px rgba(255, 255, 255, 0.1);
  transform: translateY(var(--gy, 0px));
}
.course-card__art { position: relative; z-index: 1; order: -1; display: grid; place-items: center; min-height: 130px; }
.course-card__art::before {
  content: ''; position: absolute; left: 8%; right: 8%; bottom: 4%; height: 42%;
  background: radial-gradient(ellipse at 50% 50%, rgba(255, 194, 14, 0.3), transparent 70%); filter: blur(10px);
}
.course-card__body { position: relative; z-index: 1; display: grid; justify-items: start; align-content: center; gap: 12px; }
.course-card__tag { display: inline-flex; align-items: center; gap: 10px; font: 600 0.72rem/1 var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue-300); }
.course-card__tag b {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--gold-500); color: var(--navy-950);
  font: 800 1rem/1 var(--font-display); letter-spacing: 0;
}
.course-card h3 { font: 700 clamp(1.45rem, 4.4vw, 2.3rem)/1.1 var(--font-display); letter-spacing: -0.03em; text-wrap: balance; }
.course-card__body > p { max-width: 46ch; color: rgba(255, 255, 255, 0.78); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 6px 13px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.22); font-size: 0.78rem; font-weight: 500; color: rgba(255, 255, 255, 0.88); background: rgba(255, 255, 255, 0.05); }
.course-card .btn { margin-top: 8px; }

/* Ilustraciones de vehículos (línea que se dibuja) */
.vehicle { width: min(100%, 500px); height: auto; overflow: visible; animation: bob 5s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-6px); } }
.vehicle .v-line > * { fill: rgba(255, 255, 255, 0.05); stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.vehicle .v-line circle[r='3'], .vehicle .v-line circle[r='4'], .vehicle .v-line circle[r='6'], .vehicle .v-line circle[r='7'], .vehicle .v-line circle[r='8'] { stroke: var(--gold-500); }
.vehicle .v-ground > * { fill: none; stroke: var(--blue-400); stroke-width: 2; stroke-linecap: round; opacity: 0.85; }
.vehicle .v-ground .v-dash { stroke-dasharray: 22 18; opacity: 0.35; animation: dashMove 0.9s linear infinite; }
@keyframes dashMove { to { stroke-dashoffset: -40; } }
.vehicle .v-line .v-fill { fill: var(--gold-500); stroke: none; }
.vehicle .v-text { fill: var(--gold-400); font: 800 11px var(--font-display); letter-spacing: 0.12em; opacity: 0; transition: opacity 0.8s 1.5s; }
.is-in .vehicle .v-text { opacity: 1; }
html:not(.js-ok) .vehicle .v-text { opacity: 1; }
html.js-ok .vehicle .v-line > *, html.js-ok .vehicle .v-ground > *:not(.v-dash) { stroke-dasharray: 1 2; stroke-dashoffset: 1.02; }
html.js-ok .is-in .vehicle .v-line > *, html.js-ok .is-in .vehicle .v-ground > *:not(.v-dash) {
  stroke-dashoffset: 0; transition: stroke-dashoffset 2s var(--ease-io) calc(var(--k, 0) * 55ms);
}

/* ---------- 10. PROCESO ---------- */
.route-wrap { position: relative; max-width: 980px; margin-inline: auto; }
.route { display: grid; gap: 22px; padding-left: 68px; }
.route__line { position: absolute; left: 22px; top: 24px; bottom: 24px; width: 4px; border-radius: 4px; background: var(--ice-200); }
.route__fill { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(to bottom, var(--gold-500), var(--blue-600)); transform-origin: top; transform: scaleY(var(--rp, 0)); }
.route__truck {
  position: absolute; left: 50%; top: calc(var(--rp, 0) * 100%); width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%;
  background: var(--gold-500); box-shadow: 0 0 0 5px rgba(255, 194, 14, 0.3), 0 0 28px rgba(255, 194, 14, 0.9);
}
.route__truck::before { content: ''; position: absolute; inset: 8px; background: var(--navy-950); transform: rotate(45deg); border-radius: 2px; }
.route__truck::after { content: ''; position: absolute; inset: -12px; border-radius: 50%; border: 2px solid var(--gold-500); animation: ping 1.8s ease-out infinite; }
.route__step { position: relative; }
.route__node {
  position: absolute; left: -68px; top: 4px; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: #fff; border: 2px solid var(--ice-200); color: var(--silver); z-index: 2;
  transition: background 0.5s var(--ease), border-color 0.5s, color 0.5s, box-shadow 0.5s, transform 0.6s var(--ease);
}
.route__node svg { width: 22px; height: 22px; }
.route__step.is-active .route__node { background: var(--navy-900); border-color: var(--gold-500); color: var(--gold-400); box-shadow: 0 0 0 8px rgba(255, 194, 14, 0.2); transform: scale(1.08); }
.route__card {
  padding: 22px 24px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--ice-200);
  box-shadow: 0 24px 50px -32px rgba(7, 20, 64, 0.45); transition: border-color 0.5s, box-shadow 0.5s;
}
.route__step.is-active .route__card { border-color: rgba(31, 79, 216, 0.4); box-shadow: 0 30px 60px -28px rgba(31, 79, 216, 0.5); }
.route__card h3 { font: 700 1.2rem/1.2 var(--font-display); letter-spacing: -0.02em; color: var(--navy-900); }
.route__card p { margin-top: 8px; color: var(--ink-soft); font-size: 0.97rem; }
.route__step--end .route__card { background: var(--navy-900); border-color: var(--navy-900); }
.route__step--end .route__card h3 { color: var(--gold-400); }
.route__step--end .route__card p { color: rgba(255, 255, 255, 0.78); }

/* ---------- 11. BENEFICIOS (bento) ---------- */
.bento { display: grid; gap: 16px; }
.tile {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px;
  min-height: 250px; padding: 26px; border-radius: var(--r-xl);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02)); border: 1px solid rgba(255, 255, 255, 0.13);
}
.tile::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.14), transparent 45%);
}
.tile:hover::before { opacity: 1; }
.tile > * { position: relative; z-index: 1; }
.tile h3 { font: 700 clamp(1.2rem, 3.2vw, 1.6rem)/1.15 var(--font-display); letter-spacing: -0.025em; text-wrap: balance; }
.tile p { max-width: 42ch; font-size: 0.96rem; color: rgba(255, 255, 255, 0.74); }

.tile--a { min-height: 400px; border-color: transparent; background: radial-gradient(circle at 85% 95%, rgba(255, 194, 14, 0.28), transparent 52%), linear-gradient(150deg, var(--blue-600), var(--navy-800) 72%); }
.tile--a h3 { font-size: clamp(1.6rem, 4.6vw, 2.6rem); max-width: 14ch; }
.tile--d { border-color: transparent; background: linear-gradient(150deg, var(--gold-400), var(--gold-500)); color: var(--navy-950); }
.tile--d p { color: rgba(7, 20, 64, 0.82); }
.tile--e { border-color: transparent; background: var(--ice-50); color: var(--ink); }
.tile--e p { color: var(--ink-soft); }
.tile--f { min-height: 0; gap: 22px; border-color: rgba(255, 194, 14, 0.35); background: linear-gradient(120deg, var(--navy-800), var(--navy-950)); }

.tile > .tile__orbit {
  position: absolute; right: -90px; top: -70px; z-index: 0; width: 320px; height: 320px; border-radius: 50%;
  border: 1.5px dashed rgba(255, 255, 255, 0.35); animation: spin 38s linear infinite;
}
.tile__orbit::before { content: ''; position: absolute; inset: 24%; border-radius: 50%; border: 1.5px solid rgba(255, 194, 14, 0.7); box-shadow: 0 0 40px rgba(255, 194, 14, 0.3), inset 0 0 40px rgba(255, 194, 14, 0.15); }
.tile__orbit span { position: absolute; top: 50%; left: 50%; width: 48px; height: 48px; margin: -24px; transform: rotate(var(--a)) translateX(160px) rotate(calc(var(--a) * -1)); }
.tile__orbit b {
  display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: #fff; color: var(--navy-900);
  font: 800 1.15rem/1 var(--font-display); box-shadow: 0 10px 30px -6px rgba(0, 0, 0, 0.5); animation: spinRev 38s linear infinite;
}

.chat { display: grid; align-content: start; gap: 8px; margin-bottom: auto; min-height: 118px; }
.chat__msg { max-width: 90%; padding: 10px 14px; border-radius: 16px; font-size: 0.85rem; line-height: 1.4; opacity: 0; }
.chat__msg--in { justify-self: start; border-bottom-left-radius: 4px; background: rgba(255, 255, 255, 0.14); animation: chatIn 9s ease infinite; }
.chat__msg--out { justify-self: end; border-bottom-right-radius: 4px; background: var(--gold-500); color: var(--navy-950); font-weight: 500; animation: chatOut 9s ease infinite; }
.chat__typing { display: flex; gap: 4px; width: 52px; padding: 12px 14px; border-radius: 16px; border-bottom-right-radius: 4px; justify-self: end; background: rgba(255, 255, 255, 0.14); opacity: 0; animation: chatTyping 9s ease infinite; grid-row: 2; }
.chat__msg--out { grid-row: 2; }
.chat__typing i { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: dots 1s ease-in-out infinite; }
.chat__typing i:nth-child(2) { animation-delay: 0.15s; }
.chat__typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes chatIn { 0%, 3% { opacity: 0; transform: translateY(10px); } 8%, 90% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes chatTyping { 0%, 14% { opacity: 0; } 18%, 30% { opacity: 1; } 34%, 100% { opacity: 0; } }
@keyframes chatOut { 0%, 33% { opacity: 0; transform: translateY(10px); } 38%, 90% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes dots { 0%, 100% { transform: translateY(0); opacity: 0.5; } 50% { transform: translateY(-4px); opacity: 1; } }

.checklist { display: grid; gap: 12px; margin-bottom: auto; }
.checklist li { display: flex; align-items: center; gap: 12px; font-size: 0.95rem; color: rgba(255, 255, 255, 0.88); }
.checklist i { display: grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.35); color: transparent; animation: checkOn 7s ease infinite; }
.checklist li:nth-child(2) i { animation-delay: 0.9s; }
.checklist li:nth-child(3) i { animation-delay: 1.8s; }
.checklist svg { width: 14px; height: 14px; }
@keyframes checkOn {
  0%, 6% { background: transparent; border-color: rgba(255, 255, 255, 0.35); color: transparent; }
  12%, 82% { background: var(--gold-500); border-color: var(--gold-500); color: var(--navy-950); }
  90%, 100% { background: transparent; border-color: rgba(255, 255, 255, 0.35); color: transparent; }
}

.tile__icon--cap { position: relative; display: grid; place-items: center; width: 76px; height: 76px; margin-bottom: auto; border-radius: 50%; background: var(--navy-900); color: var(--gold-400); animation: bob 4s ease-in-out infinite; }
.tile__icon--cap svg { width: 36px; height: 36px; }
.tile__icon--cap span { position: absolute; inset: -9px; border-radius: 50%; border: 2px solid var(--navy-900); animation: ping 2.4s ease-out infinite; }

.doc { position: relative; display: grid; align-content: start; gap: 10px; width: 128px; height: 156px; margin-bottom: auto; padding: 24px 16px; overflow: hidden; border-radius: 14px; background: #fff; border: 1px solid var(--ice-200); box-shadow: 0 24px 40px -22px rgba(7, 20, 64, 0.45); }
.doc__line { display: block; height: 7px; border-radius: 4px; background: var(--ice-200); }
.doc__line--short { width: 58%; }
.doc__seal { position: absolute; right: 8px; bottom: 8px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--gold-500); color: var(--navy-950); animation: sealPop 5s ease infinite; }
.doc__seal svg { width: 22px; height: 22px; }
.doc__scan { position: absolute; left: 0; right: 0; top: -40px; height: 40px; background: linear-gradient(to bottom, transparent, rgba(47, 107, 255, 0.28)); border-bottom: 2px solid var(--blue-500); animation: scan 3.6s linear infinite; }
@keyframes scan { to { transform: translateY(200px); } }
@keyframes sealPop { 0%, 55% { transform: scale(0); } 65%, 90% { transform: scale(1); } 100% { transform: scale(0); } }

.tile__person { display: grid; gap: 18px; align-items: center; }
.avatar {
  display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: linear-gradient(145deg, var(--blue-600), var(--navy-700));
  border: 3px solid var(--gold-500); box-shadow: 0 0 0 8px rgba(255, 194, 14, 0.14); font: 800 1.5rem/1 var(--font-display);
}
.tile__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- 12. UBICACIÓN ---------- */
.location__grid { display: grid; gap: 40px; align-items: center; }
.address { display: flex; align-items: flex-start; gap: 14px; margin-top: 26px; font-size: 1.05rem; font-weight: 500; color: var(--ink); }
.address .ico { width: 46px; height: 46px; padding: 12px; border-radius: 50%; background: var(--navy-900); color: var(--gold-400); }
.address em { display: block; margin-top: 3px; font-style: normal; font-size: 0.9rem; font-weight: 400; color: var(--ink-soft); }
.hours { margin-top: 26px; padding: 22px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--ice-200); box-shadow: 0 30px 60px -44px rgba(7, 20, 64, 0.5); }
.hours__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-bottom: 12px; }
.hours__head > .ico { width: 24px; height: 24px; color: var(--blue-600); }
.hours__head h3 { margin-right: auto; font: 700 1.1rem/1 var(--font-display); letter-spacing: -0.02em; }
.hours__list { display: grid; gap: 4px; }
.hours__list li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 14px; border-radius: var(--r-md); font-size: 0.95rem; color: var(--ink-soft); }
.hours__list li b { font-weight: 600; color: var(--ink); }
.hours__list li.is-today { background: var(--navy-900); color: #fff; }
.hours__list li.is-today b { color: var(--gold-400); }
.hours__list li.is-today span::after { content: ' (hoy)'; color: var(--gold-400); }
.location__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.location__grid > *, .contact__grid > *, .faq__grid > *, .hero__grid > * { min-width: 0; }
.map-frame { position: relative; width: 100%; height: clamp(320px, 92vw, 460px); overflow: hidden; border-radius: var(--r-xl); border: 1px solid var(--ice-200); background: var(--ice-100); box-shadow: 0 40px 80px -44px rgba(7, 20, 64, 0.6); }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: saturate(0.85) contrast(1.04); }
.map-frame__corner { position: absolute; width: 60px; height: 60px; pointer-events: none; border: 4px solid var(--gold-500); }
.map-frame__corner--tl { top: 12px; left: 12px; border-right: 0; border-bottom: 0; border-top-left-radius: 20px; }
.map-frame__corner--br { right: 12px; bottom: 12px; border-left: 0; border-top: 0; border-bottom-right-radius: 20px; }

/* ---------- 13. FAQ ---------- */
.faq__grid { display: grid; gap: 28px; }
.faq .section-head { margin-bottom: 0; }
.accordion { display: grid; gap: 12px; }
.acc { border-radius: var(--r-lg); background: #fff; border: 1px solid var(--ice-200); transition: border-color 0.4s, box-shadow 0.4s; }
.acc.is-open { border-color: rgba(31, 79, 216, 0.4); box-shadow: 0 24px 50px -32px rgba(31, 79, 216, 0.55); }
.acc__btn { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 20px 22px; text-align: left; font: 600 1.02rem/1.35 var(--font-display); letter-spacing: -0.015em; color: var(--navy-900); }
.acc__btn i { position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--ice-100); transition: background 0.4s, transform 0.5s var(--ease); }
.acc__btn i::before, .acc__btn i::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: var(--navy-900); transition: transform 0.5s var(--ease), background 0.3s; }
.acc__btn i::after { transform: rotate(90deg); }
.acc.is-open .acc__btn i { background: var(--navy-900); transform: rotate(180deg); }
.acc.is-open .acc__btn i::before, .acc.is-open .acc__btn i::after { background: var(--gold-400); }
.acc.is-open .acc__btn i::after { transform: rotate(0deg); }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.55s var(--ease); }
.acc.is-open .acc__panel { grid-template-rows: 1fr; }
.acc__panel > div { overflow: hidden; }
.acc__panel p { padding: 0 22px 22px; color: var(--ink-soft); max-width: 62ch; }

/* ---------- 14. CONTACTO ---------- */
.contact { overflow: hidden; background: radial-gradient(circle at 0 0, rgba(31, 79, 216, 0.55), transparent 55%), var(--navy-900); }
.contact__bg i { position: absolute; width: 520px; height: 70px; transform: rotate(-24deg); pointer-events: none; animation: drift 14s ease-in-out infinite alternate; }
.contact__bg i:nth-child(1) { right: -140px; top: 22%; background: linear-gradient(90deg, transparent, rgba(255, 194, 14, 0.2)); }
.contact__bg i:nth-child(2) { right: -200px; top: calc(22% + 100px); height: 30px; background: linear-gradient(90deg, transparent, rgba(91, 140, 255, 0.28)); animation-delay: -5s; }
.contact__grid { position: relative; display: grid; gap: 44px; align-items: center; }
.contact__list { display: grid; gap: 18px; margin-top: 34px; }
.contact__list li { display: flex; align-items: flex-start; gap: 14px; }
.contact__ico { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 14px; background: rgba(255, 194, 14, 0.14); color: var(--gold-400); border: 1px solid rgba(255, 194, 14, 0.35); }
.contact__ico svg { width: 22px; height: 22px; }
.contact__list small { display: block; font: 600 0.68rem/1 var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue-300); margin-bottom: 6px; }
.contact__list a, .contact__list b { display: block; font: 600 1.1rem/1.4 var(--font-display); letter-spacing: -0.01em; }
.contact__list a { transition: color 0.3s; }
.contact__list a:hover { color: var(--gold-400); }

.contact__formwrap { position: relative; }
.contact__formwrap::before { content: ''; position: absolute; inset: -2px; z-index: 0; border-radius: calc(var(--r-xl) + 2px); background: conic-gradient(from var(--ang, 0deg), var(--gold-500), var(--blue-500), var(--navy-700), var(--gold-500)); animation: angle 8s linear infinite; opacity: 0.85; }
@property --ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes angle { to { --ang: 360deg; } }
.form { position: relative; z-index: 1; padding: 26px 22px 24px; border-radius: var(--r-xl); background: #fff; color: var(--ink); box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.8); overflow: hidden; }
.form__title { margin-bottom: 20px; font: 700 1.4rem/1.1 var(--font-display); letter-spacing: -0.03em; color: var(--navy-900); }
.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 8px; font-size: 0.88rem; font-weight: 600; color: var(--navy-900); }
.field label span { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: var(--r-md); border: 1.5px solid var(--ice-200); background: var(--ice-50); color: var(--ink); font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s; appearance: none; -webkit-appearance: none;
}
.field textarea { resize: vertical; min-height: 92px; }
.field input::placeholder, .field textarea::placeholder { color: #5d6a88; opacity: 1; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-600); background: #fff; box-shadow: 0 0 0 4px rgba(31, 79, 216, 0.16); }
.field [aria-invalid='true'] { border-color: #c2183a; background: #fff5f7; }
.field__error { min-height: 0; margin-top: 6px; font-size: 0.84rem; font-weight: 500; color: #b4132f; }
.field__error:empty { display: none; }
.select { position: relative; }
.select .ico { position: absolute; right: 16px; top: 50%; width: 18px; height: 18px; translate: 0 -50%; rotate: 90deg; pointer-events: none; color: var(--navy-900); }
.form .btn { margin-top: 6px; }
.form__note { margin-top: 12px; font-size: 0.8rem; color: var(--ink-soft); text-align: center; }
.form__success { position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 28px; text-align: center; background: #fff; animation: fadeIn 0.5s var(--ease); }
.form__success:focus { outline: none; }
.form__success h3 { font: 700 1.6rem/1.1 var(--font-display); letter-spacing: -0.03em; color: var(--navy-900); }
.form__success p { max-width: 30ch; color: var(--ink-soft); }
.form__success a { color: var(--blue-600); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.form__check { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: var(--gold-500); color: var(--navy-950); animation: pop 0.7s var(--ease); }
.form__check svg { width: 38px; height: 38px; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { transform: scale(0) rotate(-40deg); } to { transform: none; } }

/* ---------- 15. FOOTER ---------- */
.footer { position: relative; overflow: hidden; padding: clamp(56px, 8vw, 96px) 0 28px; background: var(--navy-950); color: rgba(255, 255, 255, 0.78); }
.footer::after {
  content: 'CECAOP'; position: absolute; left: 50%; bottom: -0.2em; translate: -50% 0; pointer-events: none; user-select: none; white-space: nowrap;
  font: 800 clamp(5rem, 24vw, 22rem)/1 var(--font-display); letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 2px rgba(255, 255, 255, 0.06);
}
.footer__grid { position: relative; z-index: 1; display: grid; gap: 36px; }
.footer__brand p { max-width: 36ch; margin: 18px 0; font-size: 0.95rem; }
.footer__social { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.2); font-size: 0.9rem; font-weight: 500; transition: background 0.3s, border-color 0.3s, color 0.3s; }
.footer__social:hover { background: var(--gold-500); border-color: var(--gold-500); color: var(--navy-950); }
.footer__col h2 { margin-bottom: 14px; font: 600 0.72rem/1 var(--font-mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-400); }
.footer__col ul { display: grid; gap: 9px; font-size: 0.94rem; }
.footer__col a { transition: color 0.3s; }
.footer__col a:hover { color: var(--gold-400); }
.footer__col address { font-size: 0.94rem; max-width: 30ch; }
.footer__bottom { position: relative; z-index: 1; display: grid; gap: 6px; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.82rem; color: rgba(255, 255, 255, 0.62); }
.footer__bottom { padding-bottom: 8px; }

/* ---------- 16. WHATSAPP FLOTANTE ---------- */
.wa-float { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 850; }
.wa-float__btn {
  position: relative; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--wa); color: #fff;
  box-shadow: 0 16px 36px -8px rgba(20, 164, 77, 0.65), 0 0 0 3px rgba(255, 255, 255, 0.9);
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
  opacity: 0; transform: scale(0.4);
}
html:not(.js-ok) .wa-float__btn, html.is-ready .wa-float__btn { opacity: 1; transform: none; }
html.is-ready .wa-float__btn { transition: transform 0.4s var(--ease), box-shadow 0.4s, opacity 0.8s 1.2s; }
.wa-float { transition: opacity 0.3s; }
html.menu-open .wa-float { opacity: 0; pointer-events: none; }
.wa-float__btn:hover { transform: scale(1.08) rotate(-6deg); }
.wa-float__btn svg { width: 32px; height: 32px; }
.wa-float__ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: waRing 2.4s ease-out infinite; pointer-events: none; }
.wa-float__ring--2 { animation-delay: 1.2s; }
@keyframes waRing { from { transform: scale(1); opacity: 0.8; } to { transform: scale(1.9); opacity: 0; } }
.wa-float__tip {
  position: absolute; right: 74px; bottom: 12px; padding: 10px 16px; border-radius: 999px; white-space: nowrap;
  background: #fff; color: var(--navy-900); font-size: 0.86rem; font-weight: 600; box-shadow: 0 18px 40px -14px rgba(0, 0, 0, 0.5);
  opacity: 0; transform: translateX(14px) scale(0.92); transform-origin: right center; pointer-events: none;
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
}
.wa-float.is-tip .wa-float__tip { opacity: 1; transform: none; }

/* ---------- 17. RESPONSIVE (mobile first: solo min-width) ---------- */
@media (min-width: 640px) {
  .route-card { display: block; }
  .hero__cta .btn { flex: 0 1 auto; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .tile__person { grid-template-columns: auto 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 768px) {
  .site-header__cta { display: inline-flex; }
  .course-card { padding: 30px; }
  .bento { grid-template-columns: repeat(12, 1fr); gap: 18px; }
  .tile { min-height: 280px; padding: 30px; }
  .tile--a { grid-column: 1 / 8; grid-row: 1 / 3; min-height: 0; }
  .tile--b { grid-column: 8 / 13; grid-row: 1; }
  .tile--c { grid-column: 8 / 13; grid-row: 2; }
  .tile--d { grid-column: 1 / 6; grid-row: 3; }
  .tile--e { grid-column: 6 / 13; grid-row: 3; }
  .tile--f { grid-column: 1 / 13; grid-row: 4; flex-direction: row; align-items: center; justify-content: space-between; min-height: 0; }
  .tile > .doc { position: absolute; right: 30px; top: 30px; }
  .tile--e { padding-right: 190px; }
  .tile > .tile__orbit { right: -60px; top: -40px; width: 400px; height: 400px; }
  .tile__orbit span { transform: rotate(var(--a)) translateX(200px) rotate(calc(var(--a) * -1)); width: 54px; height: 54px; margin: -27px; }
  .hero__lead { max-width: 40ch; }
}

@media (min-width: 900px) {
  .course-card { grid-template-columns: 1fr 1.05fr; align-items: center; gap: 32px; min-height: 470px; padding: 46px 52px; top: calc(var(--header-h) + 26px + var(--i) * 16px); }
  .course-card__art { order: 0; }
  .course-card::before { width: 260px; height: 260px; }

  .route { padding-left: 0; gap: 0; }
  .route__line { left: 50%; margin-left: -2px; }
  .route__step { width: 50%; padding-right: 66px; text-align: right; }
  .route__step:nth-child(even) { margin-left: 50%; padding-right: 0; padding-left: 66px; text-align: left; }
  .route__step + .route__step { margin-top: -30px; }
  .route__node { left: auto; right: -24px; }
  .route__step:nth-child(even) .route__node { right: auto; left: -24px; }

  .location__grid { grid-template-columns: 0.92fr 1.08fr; gap: 64px; }
  .map-frame { height: auto; aspect-ratio: 1 / 1; max-height: 640px; }
  .faq__grid { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
  .faq .section-head { position: sticky; top: calc(var(--header-h) + 32px); }
  .contact__grid { grid-template-columns: 1.05fr 0.95fr; gap: 72px; }
  .form { padding: 36px 34px 30px; }
  .footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 48px; }
  .footer__bottom { grid-template-columns: 1fr auto; align-items: center; }
}

@media (min-width: 1024px) {
  .primary-nav { display: block; }
  .menu-toggle { display: none; }
  .hero__grid { grid-template-columns: 1.08fr 0.92fr; gap: 48px; }
  .hero__lead { max-width: 42ch; }
  .orbit { --size: min(36vw, 520px); --chip: 58px; }
  .route-card { left: -8%; bottom: 2%; width: 280px; }
  .road__lane--l { left: calc(50% - 380px); }
  .road__lane--r { left: calc(50% + 374px); }
}

@media (min-width: 1280px) {
  .hero__title { font-size: 5.6rem; }
  .course-card { min-height: 500px; }
}

@media (max-height: 640px) and (min-width: 1024px) {
  .hero { padding-top: calc(var(--header-h) + 24px); }
}

/* ---------- 18. MOVIMIENTO REDUCIDO ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
  html.js-ok [data-reveal], html.js-ok [data-hero-in], html.js-ok .hero__title .line > [data-hero-in] { opacity: 1 !important; transform: none !important; }
  html.js-ok [data-split] .sw > span { transform: none !important; }
  html.js-ok .vehicle .v-line > *, html.js-ok .vehicle .v-ground > *:not(.v-dash) { stroke-dashoffset: 0 !important; }
  .manifesto__text .w { opacity: 1; }
  .hero__road, .hero__canvas, .orbit__sweep { display: none; }
  .course-card { transform: none !important; }
}
