/* ==========================================================================
   Savian · Landing v2
   Tokens de marca (savian.ai): Sora + Inter, navy #022043, turquesa #00a9b4,
   savia #78fced, luz #e7fb6b.
   El movimiento solo se activa con html.motion (ver <head>): sin JS o con ?rm=1
   la página es completa y estática. Con prefers-reduced-motion la web sigue
   animada, sin la intro ni los bucles decorativos de fondo.
   ========================================================================== */

@font-face {
  font-family: "Sora";
  src: url("../fonts/sora-var-latin.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy-1000: #010c19;
  --navy-950: #051221;
  --navy-925: #061932;
  --navy-900: #022043;
  --navy-800: #243658;
  --navy-700: #3f4e6e;
  --ink-600: #5a6785;
  --ink-500: #76819c;
  --ink-400: #929db4;
  --ink-300: #afb9cd;
  --ink-200: #cdd6e6;
  --ink-100: #ebf4ff;
  --ink-50: #f2f8ff;
  --savia: #78fced;
  --savia-300: #3df5e6;
  --teal: #05c7c7;
  --turq: #00a9b4;
  --turq-700: #088a96;
  --luz: #e7fb6b;

  --f-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --f-text: "Inter", "Segoe UI", system-ui, sans-serif;

  --gutter: clamp(20px, 4vw, 64px);
  --maxw: 1600px;
  --nav-h: 76px;
  --e-out: cubic-bezier(.16, 1, .3, 1);
  --e-io: cubic-bezier(.65, 0, .35, 1);

  --fg: var(--ink-50);
  --fg-2: var(--ink-300);
  --fg-3: var(--ink-400);
  --line: rgba(242, 248, 255, .14);
  --accent: var(--savia);
}

[data-theme="light"] {
  --fg: var(--navy-900);
  --fg-2: var(--ink-600);
  --fg-3: var(--ink-500);
  --line: rgba(2, 32, 67, .14);
  --accent: var(--turq);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--navy-1000);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
}
body {
  margin: 0;
  min-height: 100%;
  background: var(--navy-950);
  color: var(--fg);
  font-family: var(--f-text);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
::selection { background: var(--savia); color: var(--navy-900); }
/* Cortes de línea equilibrados: sin palabras huérfanas en titulares ni párrafos */
h1, h2, h3, h4 { text-wrap: balance; }
p, li { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--savia); outline-offset: 3px; border-radius: 4px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.wrap { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.anchor { position: absolute; left: 0; width: 1px; height: 1px; top: 100vh; top: 100svh; }

/* Tipografía */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font: 500 12.5px/1 var(--f-text);
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .9; }
.h2 {
  font: 500 clamp(36px, 4.6vw, 82px)/1.02 var(--f-display);
  letter-spacing: -.035em;
  max-width: 17ch;
  text-wrap: balance;
}
.lead {
  font-size: clamp(16px, 1.22vw, 20px);
  line-height: 1.55;
  color: var(--fg-2);
  max-width: 46ch;
  margin-top: 28px;
  text-wrap: pretty;
}

/* Botones */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 22px; border-radius: 999px;
  font: 500 14px/1 var(--f-text); letter-spacing: .01em;
  border: 1px solid currentColor; overflow: hidden; isolation: isolate;
  transition: color .45s var(--e-out), border-color .45s var(--e-out);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--savia);
  transform: translateY(101%); transition: transform .5s var(--e-out);
  border-radius: inherit;
}
.btn span { position: relative; }
@media (hover: hover) {
  .btn:hover { color: var(--navy-900); border-color: var(--savia); }
  .btn:hover::before { transform: translateY(0); }
}
.btn--solid { background: var(--savia); color: var(--navy-900); border-color: var(--savia); }
.btn--solid::before { background: var(--ink-50); }

/* ---------- Vídeo / medios ---------- */
.vid { position: absolute; inset: 0; overflow: hidden; background: var(--navy-925); }
.vid img, .vid video, .vid picture { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vid video { opacity: 0; transition: opacity 1s var(--e-out); }
.vid.is-playing video { opacity: 1; }

[data-reticle] { position: relative; }
[data-reticle]::after {
  content: ""; position: absolute; inset: 14px; pointer-events: none; z-index: 5;
  --c: rgba(120, 252, 237, .75); --l: 18px; --t: 1px;
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--l) var(--t),
    linear-gradient(var(--c), var(--c)) top left / var(--t) var(--l),
    linear-gradient(var(--c), var(--c)) top right / var(--l) var(--t),
    linear-gradient(var(--c), var(--c)) top right / var(--t) var(--l),
    linear-gradient(var(--c), var(--c)) bottom left / var(--l) var(--t),
    linear-gradient(var(--c), var(--c)) bottom left / var(--t) var(--l),
    linear-gradient(var(--c), var(--c)) bottom right / var(--l) var(--t),
    linear-gradient(var(--c), var(--c)) bottom right / var(--t) var(--l);
  background-repeat: no-repeat;
  opacity: .9;
  transition: inset .6s var(--e-out), opacity .6s var(--e-out);
}
.hero__media[data-reticle]::after { display: none; }

/* ---------- Capas globales ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .075;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}
.bgcolor { display: none; }
.motion body { background: transparent; }
.motion .bgcolor { display: block; position: fixed; inset: 0; z-index: -1; background: var(--bg, var(--navy-950)); }

.reticle { display: none; }
@media (hover: hover) and (pointer: fine) {
  .motion .reticle {
    display: block; position: fixed; left: 0; top: 0; z-index: 95; width: 46px; height: 46px;
    pointer-events: none; opacity: 0; transform: translate(-50%, -50%);
    transition: opacity .3s var(--e-out), width .4s var(--e-out), height .4s var(--e-out);
  }
  .motion .reticle.is-on { opacity: 1; }
  .reticle i { position: absolute; width: 12px; height: 12px; border: 1.5px solid var(--savia); }
  .reticle i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; }
  .reticle i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; }
  .reticle i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; }
  .reticle i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; }
  .reticle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px; border-radius: 50%; background: var(--savia); }
}

/* ---------- Intro ---------- */
.loader { display: none; }
.intro .loader {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 200;
  background: var(--navy-1000);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, transparent var(--iris, 0px), #000 calc(var(--iris, 0px) + 1px));
  mask-image: radial-gradient(circle at 50% 50%, transparent var(--iris, 0px), #000 calc(var(--iris, 0px) + 1px));
}
.loader__mark { width: 74px; height: auto; overflow: visible; }
.loader__stroke { fill: none; stroke: var(--savia); stroke-width: .5; stroke-dasharray: 1; stroke-dashoffset: 1; }
.loader__fill { fill: var(--turq); opacity: 0; }
.loader__count {
  position: absolute; right: var(--gutter); bottom: 28px;
  font: 300 clamp(40px, 6vw, 88px)/1 var(--f-display); letter-spacing: -.04em; color: var(--ink-400);
  font-variant-numeric: tabular-nums;
}

/* ---------- Navegación ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center; gap: 32px;
  padding: env(safe-area-inset-top) var(--gutter) 0;
  color: var(--ink-50);
  --logo-icon: var(--savia);
  transition: transform .6s var(--e-out), color .5s var(--e-out);
}
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: rgba(5, 18, 33, .62);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(242, 248, 255, .08);
  transition: opacity .5s var(--e-out), background-color .5s var(--e-out);
}
.nav.is-scrolled::before { opacity: 1; }
.nav.is-hidden { transform: translateY(-110%); }
html[data-nav="light"] .nav { color: var(--navy-900); --logo-icon: var(--turq); }
html[data-nav="light"] .nav::before { background: rgba(242, 248, 255, .72); border-bottom-color: rgba(2, 32, 67, .08); }
.nav__brand .logo { width: 118px; height: auto; }
.nav__links { position: relative; display: flex; gap: clamp(18px, 2.2vw, 38px); margin-left: auto; font: 500 14px/1 var(--f-text); }
.nav__links a { position: relative; padding: 10px 0; opacity: .78; transition: opacity .3s; }
.nav__links a:hover, .nav__links a.is-active { opacity: 1; }
.nav__dot {
  position: absolute; left: 0; bottom: -2px; width: 5px; height: 5px; border-radius: 50%;
  background: var(--savia); opacity: 0; transform: translateX(var(--dx, 0px));
  transition: transform .6s var(--e-out), opacity .4s;
}
.nav__dot.is-on { opacity: 1; }
html[data-nav="light"] .nav__dot { background: var(--turq); }
.nav__cta { margin-left: 8px; }
.nav__burger { display: none; width: 44px; height: 44px; margin-left: auto; position: relative; }
.nav__burger span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor; transition: transform .5s var(--e-out); }
.nav__burger span:nth-child(1) { top: 18px; } .nav__burger span:nth-child(2) { top: 25px; }
.menu-open .nav__burger span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.menu-open .nav__burger span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 99; display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--nav-h) + 24px) var(--gutter) calc(32px + env(safe-area-inset-bottom));
  background: var(--navy-1000); color: var(--ink-50);
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .7s var(--e-io), visibility 0s .7s;
}
.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .7s var(--e-io), visibility 0s; }
.menu-open .nav { color: var(--ink-50) !important; }
.menu__links a {
  display: flex; align-items: baseline; gap: 16px; padding: 14px 0; border-top: 1px solid rgba(242, 248, 255, .12);
  font: 500 clamp(30px, 8.5vw, 48px)/1.05 var(--f-display); letter-spacing: -.03em;
  transform: translateY(24px); opacity: 0; transition: transform .8s var(--e-out), opacity .6s;
}
.menu-open .menu__links a { transform: none; opacity: 1; }
.menu__links a i { font: 500 12px/1 var(--f-text); letter-spacing: .12em; color: var(--savia); font-style: normal; transform: translateY(-.6em); }
.menu__mail { margin-top: 28px; color: var(--ink-400); font-size: 15px; }

/* ---------- Escenas (sticky) ---------- */
.scene { position: relative; }
.stage { position: relative; }
.motion .scene { height: var(--len, 300vh); }
.motion .scene > .stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; overflow: clip; }

/* ==========================================================================
   1 + 2 · HERO → CAPA
   ========================================================================== */
.s-hero { --len: 330vh; }
.s-hero .stage { height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; }
.hero__media {
  position: absolute; inset: 0; overflow: hidden;
  clip-path: inset(var(--it, 0px) var(--ir, 0px) var(--ib, 0px) var(--il, 0px) round var(--rad, 0px));
}
.hero__media .vid { transform: scale(var(--vs, 1)); transform-origin: 50% 50%; }
.hero__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to top, rgba(1, 12, 25, .9) 0%, rgba(1, 12, 25, .45) 34%, rgba(1, 12, 25, 0) 62%),
    linear-gradient(to bottom, rgba(1, 12, 25, .55) 0%, rgba(1, 12, 25, 0) 24%),
    radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(1, 12, 25, .45) 100%);
}
.hero__shade::after { content: ""; position: absolute; inset: 0; background: var(--navy-1000); opacity: var(--dim, 0); }
.lattice, .tags { position: absolute; top: var(--it, 0px); right: var(--ir, 0px); bottom: var(--ib, 0px); left: var(--il, 0px); pointer-events: none; }
.lattice { width: auto; height: auto; opacity: 0; overflow: visible; }
.lattice line, .lattice path { stroke: var(--savia); stroke-width: 1; vector-effect: non-scaling-stroke; fill: none; }
.lattice .lx { stroke-opacity: .22; }
.lattice .lc { stroke-opacity: .85; }


.tag { position: absolute; left: var(--x); top: var(--y); display: flex; align-items: center; opacity: 0; }
.tag[data-dir="l"] { flex-direction: row-reverse; transform: translateX(-100%); }
.tag__dot {
  position: relative; flex: none; width: 10px; height: 10px; margin: -5px; border-radius: 50%;
  background: var(--savia); box-shadow: 0 0 0 4px rgba(120, 252, 237, .18), 0 0 18px rgba(120, 252, 237, .7);
}
.tag__dot::after {
  content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 1px solid rgba(120, 252, 237, .6);
  animation: pulse 2.4s var(--e-out) infinite;
}
@keyframes pulse { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }
.tag__line { flex: none; width: clamp(28px, 4vw, 64px); height: 1px; margin: 0 10px; background: linear-gradient(90deg, var(--savia), rgba(120, 252, 237, .35)); transform-origin: left center; }
.tag[data-dir="l"] .tag__line { transform-origin: right center; background: linear-gradient(270deg, var(--savia), rgba(120, 252, 237, .35)); }
.tag__label {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  padding: 9px 14px 9px 12px; border-radius: 999px;
  font: 500 13px/1 var(--f-text); letter-spacing: .01em; color: var(--ink-50);
  background: rgba(5, 18, 33, .66);
  border: 1px solid rgba(120, 252, 237, .38);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.tag__label::before { content: ""; width: 6px; height: 6px; border-radius: 1px; background: var(--savia); transform: rotate(45deg); }

.hero__copy { position: absolute; left: 0; right: 0; bottom: clamp(150px, 24vh, 250px); z-index: 2; }
.hero__title {
  font: 500 clamp(46px, 7.4vw, 132px)/.94 var(--f-display);
  letter-spacing: -.045em; max-width: 11.5ch; color: var(--ink-50);
  text-wrap: balance;
}
.hero__lead { margin-top: 26px; font-size: clamp(16px, 1.3vw, 21px); color: var(--ink-200); max-width: 34ch; }

.hero__foot {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto; align-items: end; gap: 40px;
  padding-bottom: calc(26px + env(safe-area-inset-bottom));
}
.hero__foot::before { content: ""; position: absolute; left: var(--gutter); right: var(--gutter); top: -22px; height: 1px; background: rgba(242, 248, 255, .16); transform-origin: left; }
.facts { display: flex; gap: 36px; font-size: 13.5px; line-height: 1.35; color: var(--ink-300); }
.facts li { max-width: 24ch; }
.facts strong { display: block; margin-bottom: 6px; font: 500 22px/1 var(--f-display); letter-spacing: -.02em; color: var(--ink-50); }
.clients { display: grid; gap: 12px; min-width: 0; }
.clients p { font-size: 13.5px; color: var(--ink-300); }
.clients p strong { color: var(--ink-50); font-weight: 500; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; align-items: center; gap: 48px; width: max-content; animation: marquee 32s linear infinite; }
.marquee__track img { height: 26px; width: auto; opacity: .62; }
@keyframes marquee { to { transform: translateX(-50%); } }
.scrollcue { display: inline-flex; flex-direction: column; align-items: center; gap: 12px; font: 500 11px/1 var(--f-text); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-300); }
.scrollcue i { position: relative; width: 1px; height: 46px; background: rgba(242, 248, 255, .22); overflow: hidden; }
.scrollcue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--savia); animation: cue 1.8s var(--e-io) infinite; }
@keyframes cue { to { top: 110%; } }

.capa__copy { position: relative; z-index: 2; padding-block: 18vh 14vh; }
.capa__title { font: 500 clamp(34px, 3.9vw, 68px)/1.02 var(--f-display); letter-spacing: -.035em; max-width: 15ch; text-wrap: balance; }
.capa__lead { margin-top: 26px; color: var(--ink-300); font-size: clamp(16px, 1.2vw, 19px); max-width: 38ch; }

/* estado con movimiento */
.motion .capa__copy {
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  padding-block: 0; width: 100%; pointer-events: none;
}
.motion .capa__copy > * { max-width: min(38vw, 660px); }
.motion .capa__copy .eyebrow,
.motion .capa__title,
.motion .capa__lead { opacity: 0; }

/* ==========================================================================
   3 · CIFRAS
   ========================================================================== */
.s-cifras { --len: 660vh; }

/* Láminas: la sección clara se desliza sobre la última vista de la escena anterior */
.motion .sheet {
  position: relative; z-index: 3; margin-top: -100vh;
  background: var(--ink-50);
  border-radius: clamp(22px, 3vw, 44px) clamp(22px, 3vw, 44px) 0 0;
  box-shadow: 0 -40px 90px rgba(1, 12, 25, .55);
}
.s-cifras .stage { background: radial-gradient(90% 70% at 70% 50%, #06213a 0%, var(--navy-1000) 70%); overflow: hidden; }
.cifras__gl { position: absolute; inset: 0; width: 100%; height: 100%; }
.cifras__vignette { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(1, 12, 25, .82) 0%, rgba(1, 12, 25, .2) 46%, rgba(1, 12, 25, 0) 70%); }
.cifras__list { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 56px 32px; padding-block: 18vh; }
.cifra { display: flex; flex-direction: column; gap: 14px; }
.cifra__n {
  display: block; font: 300 clamp(52px, 5.2vw, 92px)/.86 var(--f-display); letter-spacing: -.05em; color: var(--ink-50);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.cifra__n .d { display: inline-block; width: .6em; text-align: center; }
.cifra__n .d--1 { width: .44em; }
.cifra__n .plus { display: inline-block; font-size: .42em; vertical-align: .95em; margin-right: .08em; color: var(--savia); font-weight: 400; }
.cifra__l { font: 400 clamp(16px, 1.5vw, 24px)/1.25 var(--f-text); color: var(--ink-200); max-width: 17ch; }
.cifras__progress { display: none; }

.motion .cifras__list { position: absolute; inset: 0; display: block; padding: 0; }
.motion .cifra { position: absolute; left: var(--gutter); bottom: clamp(90px, 16vh, 170px); opacity: 0; visibility: hidden; }
.motion .cifra__n { font-size: clamp(110px, 19vw, 330px); }
.motion .cifras__progress {
  display: flex; gap: 8px; position: absolute; left: 0; right: 0; bottom: 38px; justify-content: flex-end;
}
.cifras__progress i { position: relative; width: 44px; height: 2px; background: rgba(242, 248, 255, .16); overflow: hidden; }
.cifras__progress i::after { content: ""; position: absolute; inset: 0; background: var(--savia); transform: scaleX(var(--p, 0)); transform-origin: left; }

/* ==========================================================================
   4 · PARA QUIÉN ES
   ========================================================================== */
.s-para { background: var(--ink-50); color: var(--fg); }

.para__head { padding-block: clamp(120px, 24vh, 260px) clamp(60px, 12vh, 140px); }
.para__title { font-size: clamp(40px, 6.2vw, 112px); max-width: 15ch; }

.efi { --len: 260vh; }
.efi .stage { height: 100vh; height: 100svh; min-height: 520px; overflow: hidden; }
.efi__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: none; }
.efi__word {
  position: absolute; inset: 0; display: grid; place-items: center;
  font: 600 clamp(64px, 17vw, 300px)/1 var(--f-display); letter-spacing: -.045em; color: var(--ink-50);
  text-shadow: 0 10px 60px rgba(1, 12, 25, .4);
}
.efi__sub {
  position: absolute; left: 50%; bottom: 12vh; transform: translateX(-50%); width: min(92vw, 900px); text-align: center;
  font: 500 clamp(22px, 2.6vw, 42px)/1.15 var(--f-display); letter-spacing: -.025em; color: var(--ink-50);
  text-wrap: balance;
}
.efi .stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(1, 12, 25, .7), rgba(1, 12, 25, 0) 50%); opacity: var(--shade, 1); }
.motion .efi__canvas { display: block; z-index: 2; }
.motion .efi__word { opacity: 0; }
.motion .efi__sub { opacity: 0; z-index: 3; }

.pee { --len: 340vh; }
.pee .stage {
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); grid-template-rows: auto auto 1fr;
  column-gap: 4vw; align-content: center; min-height: 100vh; min-height: 100svh; padding-block: 16vh 10vh;
}
.pee__intro { grid-column: 1; font: 500 13px/1.4 var(--f-text); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); max-width: 30ch; }
.pee__word { grid-column: 1; display: flex; align-items: flex-end; margin-top: 3vh; color: var(--navy-900); }
.pee__p { flex: none; font: 600 clamp(140px, 20vw, 340px)/.78 var(--f-display); letter-spacing: -.06em; }
.pee__roll { position: relative; display: block; flex: none; height: 1.1em; overflow: hidden; font: 500 clamp(30px, 3.5vw, 62px)/1.1 var(--f-display); letter-spacing: -.035em; margin: 0 0 .12em .06em; white-space: nowrap; }
.pee__roll span { display: block; height: 1.1em; }
.pee__items { grid-column: 1; margin-top: 5vh; display: grid; gap: 22px; }
.pee__item { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 6px; }
.pee__item h3 { font: 500 22px/1.2 var(--f-display); letter-spacing: -.02em; }
.pee__item p { color: var(--fg-2); max-width: 38ch; }
.pee__media { grid-column: 2; grid-row: 1 / span 3; align-self: center; position: relative; aspect-ratio: 4 / 5; max-height: 76vh; max-height: 76svh; width: 100%; border-radius: 22px; overflow: hidden; background: var(--navy-925); }
.pee__layer { position: absolute; inset: 0; }
.pee__layer picture, .pee__layer img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pee__layer--kb img { transform: scale(var(--kb, 1.08)); }
.pee__roll { display: none; }
.motion .pee__roll { display: block; }
.motion .pee__word { display: flex; }
.pee__word { display: none; }
.motion .pee__items { position: relative; display: block; min-height: 7.5em; }
.motion .pee__item { position: absolute; inset: 0 0 auto; opacity: 0; }
.motion .pee__item h3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.motion .pee__item p { font-size: clamp(17px, 1.35vw, 22px); color: var(--navy-800); max-width: 30ch; }
.motion .pee__layer { clip-path: inset(100% 0 0 0); }
.motion .pee__layer:first-child { clip-path: inset(0 0 0 0); }

/* ==========================================================================
   5 · SOLUCIONES
   ========================================================================== */
.s-sol { background: var(--navy-950); }
.motion .s-sol { background: transparent; }
.sol__head { padding-block: clamp(120px, 22vh, 240px) clamp(40px, 8vh, 90px); }
.sol { --len: 580vh; }
.sol .stage { --split: 40%; --gapc: 5vw; }
.sol__rail { display: none; }
.sol__deck { display: grid; gap: 12vh; padding-bottom: 14vh; }
.mod { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: var(--gapc); align-items: center; }
.mod__name { font: 500 clamp(46px, 5.6vw, 100px)/.95 var(--f-display); letter-spacing: -.045em; }
.mod__cat { margin-top: 14px; font: 500 12.5px/1 var(--f-text); letter-spacing: .16em; text-transform: uppercase; color: var(--savia); }
.mod__desc { margin-top: 22px; color: var(--ink-300); font-size: clamp(15.5px, 1.1vw, 18px); max-width: 42ch; }
.mod__layer { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); max-width: 44ch; }
.mod__label { font: 500 11.5px/1 var(--f-text); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-400); }
.mod__h { margin-top: 14px; font: 500 clamp(20px, 1.6vw, 26px)/1.2 var(--f-display); letter-spacing: -.02em; }
.mod__sub { margin-top: 10px; color: var(--ink-300); font-size: 15px; }
.mod__pts { margin-top: 16px; display: grid; gap: 9px; }
.mod__pts li { position: relative; padding-left: 26px; font-size: 14.5px; color: var(--ink-200); }
.mod__pts li::before { content: ""; position: absolute; left: 0; top: .72em; width: 14px; height: 1px; background: var(--savia); transform-origin: left; transform: scaleX(var(--tick, 1)); }
.mod__media { position: relative; aspect-ratio: 16 / 11; border-radius: 22px; overflow: hidden; background: var(--navy-925); }
.mod__media .vid::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(1, 12, 25, .55), rgba(1, 12, 25, 0) 45%); }
.mod__inset { position: absolute; right: 22px; top: 22px; z-index: 3; width: 36%; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; box-shadow: 0 18px 50px rgba(0, 0, 0, .45); border: 1px solid rgba(242, 248, 255, .16); }
.mod__inset img { width: 100%; height: 100%; object-fit: cover; }

.widget {
  position: absolute; left: 22px; bottom: 22px; z-index: 4; width: min(320px, 70%);
  padding: 16px 16px 14px; border-radius: 14px; color: var(--ink-50);
  background: rgba(5, 18, 33, .72); border: 1px solid rgba(120, 252, 237, .22);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font-size: 12.5px;
}
.w-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid rgba(242, 248, 255, .1); }
.w-top span { color: var(--ink-300); letter-spacing: .02em; }
.w-top strong { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; color: var(--savia); }
.w-top strong::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; animation: blink 1.6s steps(2) infinite; }
@keyframes blink { 50% { opacity: .25; } }
.w-signal { margin-top: 12px; display: flex; align-items: center; gap: 8px; color: var(--ink-50); font-weight: 500; }
.w-signal::before { content: ""; width: 14px; height: 14px; border-radius: 4px; border: 1px solid var(--savia); background: linear-gradient(var(--savia), var(--savia)) center / 6px 6px no-repeat; }
.w-tasks { display: grid; gap: 10px; margin-top: 12px; }
.w-tasks span { position: relative; padding-bottom: 7px; color: var(--ink-200); }
.w-tasks span::before, .w-tasks span::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; border-radius: 2px; }
.w-tasks span::before { right: 0; background: rgba(242, 248, 255, .1); }
.w-tasks span::after { width: var(--w); background: linear-gradient(90deg, var(--turq), var(--savia)); transform-origin: left; transform: scaleX(var(--fill, 1)); }
.w-graph { width: 100%; height: 64px; margin-top: 12px; overflow: visible; }
.w-graph path { fill: none; stroke: var(--savia); stroke-width: 2.5; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: var(--draw, 0); }
.w-route { position: relative; display: flex; justify-content: space-between; margin-top: 16px; height: 10px; }
.w-route::before { content: ""; position: absolute; left: 5px; right: 5px; top: 4px; height: 1px; background: repeating-linear-gradient(90deg, var(--savia) 0 6px, transparent 6px 11px); opacity: .6; }
.w-route i { position: relative; width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--savia); background: var(--navy-950); }
.w-bars { display: flex; align-items: flex-end; gap: 8px; height: 64px; margin-top: 14px; }
.w-bars span { flex: 1; height: var(--h); border-radius: 3px 3px 0 0; background: linear-gradient(to top, rgba(0, 169, 180, .5), var(--savia)); transform-origin: bottom; transform: scaleY(var(--grow, 1)); }
.w-core { position: relative; height: 64px; margin-top: 12px; display: grid; place-items: center; }
.w-core span { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--savia); box-shadow: inset 0 0 18px rgba(120, 252, 237, .4); }
.w-core::before, .w-core::after { content: ""; position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px; border-radius: 50%; border: 1px dashed rgba(120, 252, 237, .35); animation: spin 14s linear infinite; }
.w-core::after { width: 22px; height: 22px; margin: -11px; border: 0; background: var(--savia); box-shadow: 0 0 20px var(--savia); animation: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.w-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.w-chips i { font-style: normal; padding: 6px 10px; border-radius: 999px; border: 1px solid rgba(120, 252, 237, .3); color: var(--ink-100); }
.w-chips i:first-child { background: var(--savia); color: var(--navy-900); border-color: var(--savia); }

.sol__scan { display: none; }

/* ==========================================================================
   5b · CINE
   ========================================================================== */
.s-cine { --len: 340vh; background: var(--navy-950); }
.motion .s-cine { background: transparent; }
.s-cine .stage { height: 100vh; height: 100svh; min-height: 480px; display: grid; place-items: center; overflow: hidden; }
.cine__frame {
  position: absolute; inset: 0; overflow: hidden;
  clip-path: inset(var(--ct, 0px) var(--cr, 0px) var(--cb, 0px) var(--cl, 0px) round var(--crad, 0px));
}
.cine__shade { position: absolute; inset: 0; background: radial-gradient(70% 70% at 50% 50%, rgba(1, 12, 25, 0) 40%, rgba(1, 12, 25, .55) 100%); }
.cine__play {
  position: relative; z-index: 3; width: clamp(96px, 9vw, 132px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; color: var(--navy-900);
  transition: transform .6s var(--e-out);
}
.cine__play::before { content: ""; position: absolute; inset: 14%; border-radius: 50%; background: var(--savia); box-shadow: 0 0 60px rgba(120, 252, 237, .45); transition: transform .6s var(--e-out); }
.cine__ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transform: rotate(-90deg); }
.cine__ring circle { fill: none; stroke: rgba(242, 248, 255, .35); stroke-width: 1; }
.cine__ring .cine__ring-p { stroke: var(--savia); stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: var(--ring, 1); transition: stroke-dashoffset 1s var(--e-out); }
.cine__icon { position: relative; width: 30%; height: 30%; margin-left: 6%; }
@media (hover: hover) {
  .cine__play:hover { transform: scale(1.06); }
  .cine__play:hover::before { transform: scale(.9); }
  .cine__play:hover { --ring: 0; }
}

.film {
  width: min(92vw, 1400px); max-width: none; padding: 0; border: 0; border-radius: 18px; overflow: hidden;
  background: #000; color: var(--ink-50);
}
.film::backdrop { background: rgba(1, 12, 25, .86); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.film__video { width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; }
.film__close { position: absolute; right: 14px; top: 14px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; background: rgba(5, 18, 33, .7); }
.film__close i { position: absolute; left: 13px; right: 13px; top: 21px; height: 1.5px; background: var(--ink-50); transform: rotate(45deg); }
.film__close i + i { transform: rotate(-45deg); }

/* ==========================================================================
   6 · RESULTADOS
   ========================================================================== */
.s-res { --len: 260vh; background: var(--ink-50); color: var(--fg); }

.s-res .stage {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 2.1fr); grid-template-rows: auto 1fr auto;
  column-gap: 4vw; row-gap: 3.5vh; align-content: center; min-height: 100vh; min-height: 100svh; padding-block: calc(var(--nav-h) + 3vh) 5vh;
}
.res__head { grid-column: 1 / -1; }
.res__head .eyebrow { margin-bottom: 18px; }
.res__head .h2 { font-size: clamp(34px, 3.9vw, 68px); max-width: none; }
.res__photo { grid-column: 1; grid-row: 2; align-self: stretch; position: relative; border-radius: 20px; overflow: hidden; min-height: 320px; background: var(--ink-200); }
.res__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; transform: scale(var(--kb, 1.1)); }
.res__photo[data-reticle]::after { --c: rgba(2, 32, 67, .7); }
.res__grid { grid-column: 2; grid-row: 2; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 36px); }
.vessel { display: flex; flex-direction: column; }
.vessel__n { display: block; font: 500 clamp(36px, 3.8vw, 68px)/1 var(--f-display); letter-spacing: -.04em; color: var(--navy-900); white-space: nowrap; }
.vessel--up .vessel__n { font-size: clamp(28px, 2.7vw, 46px); line-height: 1.3; }
.vessel__glass {
  position: relative; margin: 18px 0 18px; height: clamp(170px, 27vh, 320px); border-radius: 999px 999px 18px 18px;
  border: 1px solid rgba(2, 32, 67, .18); background: linear-gradient(90deg, rgba(2, 32, 67, .03), rgba(255, 255, 255, .7) 40%, rgba(2, 32, 67, .04));
  overflow: hidden;
}
.vessel__glass::before { content: ""; position: absolute; left: 12%; top: 6%; bottom: 8%; width: 7%; border-radius: 999px; background: linear-gradient(rgba(255, 255, 255, .8), rgba(255, 255, 255, 0)); z-index: 2; }
/* Cada vaso con su color de la paleta Savian */
.vessel { --l1: var(--turq-700); --l2: var(--turq); --l3: var(--savia); }
.vessel--fert { --l1: #8dac04; --l2: #c4e41f; --l3: #f3ff97; }
.vessel--calidad { --l1: #00a17b; --l2: #04c897; --l3: #79fbd4; }
.vessel--mano { --l1: #8a31ec; --l2: #ba82fe; --l3: #e7d4ff; }
.vessel__liquid { position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--lvl, 1) * 100%); background: linear-gradient(to top, var(--l1), var(--l2) 45%, var(--l3)); }
.vessel__wave { position: absolute; left: 0; bottom: calc(100% - 1px); width: 200%; height: 14px; fill: var(--l3); animation: wave 3.2s linear infinite; }
@keyframes wave { to { transform: translateX(-50%); } }
.vessel__mark { position: absolute; left: 0; right: 0; top: 7%; height: 0; border-top: 1px dashed rgba(2, 32, 67, .45); z-index: 3; }
.vessel__mark--up { top: 8%; border-top-style: solid; border-top-color: rgba(2, 32, 67, .3); }
.vessel__n::after { content: ""; display: block; width: 28px; height: 3px; margin-top: 12px; border-radius: 3px; background: var(--l2); }
.vessel__bubbles, .vessel__bubbles::before, .vessel__bubbles::after {
  position: absolute; bottom: 6%; width: 6px; height: 6px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .75); animation: bubble 3.6s ease-in infinite;
}
.vessel__bubbles { left: 38%; }
.vessel__bubbles::before, .vessel__bubbles::after { content: ""; bottom: 0; }
.vessel__bubbles::before { left: 30px; width: 4px; height: 4px; animation-delay: 1.3s; }
.vessel__bubbles::after { left: -18px; width: 5px; height: 5px; animation-delay: 2.4s; }
@keyframes bubble { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 85% { opacity: .8; } 100% { transform: translateY(-150px); opacity: 0; } }
.vessel h3 { font: 500 clamp(17px, 1.3vw, 21px)/1.2 var(--f-display); letter-spacing: -.015em; }
.vessel p { margin-top: 8px; font-size: 14.5px; color: var(--fg-2); }
.res__note { grid-column: 1 / -1; font-size: 13px; color: var(--fg-3); max-width: 70ch; }

/* ==========================================================================
   7 · IMPLANTACIÓN
   ========================================================================== */
.s-impl { background: var(--navy-950); padding-bottom: 14vh; }
.motion .s-impl { background: transparent; }
.impl__head { padding-block: clamp(120px, 22vh, 240px) clamp(60px, 10vh, 120px); }
.impl__track { position: relative; }
.impl__stage { position: relative; }
.impl__stem { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.impl__stem path { fill: none; stroke-linecap: round; }
.impl__base { stroke: rgba(242, 248, 255, .1); stroke-width: 1; }
.impl__path { stroke: var(--savia); stroke-width: 2; filter: drop-shadow(0 0 6px rgba(120, 252, 237, .6)); }
.impl__steps { position: relative; display: grid; gap: clamp(80px, 16vh, 200px); }
.step { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10vw; align-items: center; }
.step:nth-child(even) .step__media { order: 2; }
.step__media { position: relative; aspect-ratio: 16 / 11; border-radius: 22px; overflow: hidden; background: var(--navy-925); }
.step__txt { max-width: 34ch; }
.step:nth-child(odd) .step__txt { justify-self: start; }
.step__txt h3 { font: 500 clamp(26px, 2.4vw, 40px)/1.08 var(--f-display); letter-spacing: -.03em; }
.step__txt p { margin-top: 14px; color: var(--ink-300); font-size: clamp(15.5px, 1.1vw, 18px); }
.step__node {
  position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px; border-radius: 50%;
  background: var(--navy-950); border: 1.5px solid rgba(242, 248, 255, .35); transition: background .5s, border-color .5s, box-shadow .5s;
}
.step.is-lit .step__node { background: var(--savia); border-color: var(--savia); box-shadow: 0 0 0 6px rgba(120, 252, 237, .15), 0 0 24px rgba(120, 252, 237, .8); }

/* ==========================================================================
   8 · QUIÉNES SOMOS
   ========================================================================== */
.s-quienes { background: var(--navy-950); }
.motion .s-quienes { background: transparent; }
.iris { --len: 240vh; }
.iris .stage { height: 100vh; height: 100svh; min-height: 520px; overflow: hidden; }
.iris__media { position: absolute; inset: 0; clip-path: circle(var(--iris, 150%) at 50% var(--iy, 50%)); }
.iris__media .vid { transform: scale(var(--vs, 1)); }
.iris__shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(1, 12, 25, .88) 0%, rgba(1, 12, 25, .2) 55%, rgba(1, 12, 25, .35) 100%); }
.iris__title { position: absolute; left: 0; right: 0; bottom: clamp(60px, 12vh, 140px); z-index: 2; }
.quienes__h { font: 500 clamp(42px, 6.4vw, 118px)/.96 var(--f-display); letter-spacing: -.045em; max-width: 14ch; text-wrap: balance; }
/* Capítulos: recorrido horizontal por la historia de Savian */
.qc { --len: 520vh; }
.qc .stage { position: relative; overflow: hidden; }
.qc__lattice { display: none; }
.qc__track { display: flex; flex-direction: column; gap: 14vh; padding: 14vh var(--gutter) 16vh; }
.qc__panel { position: relative; display: grid; gap: 40px; align-items: center; }
.qc__text { position: relative; }
.qc__p { font: 400 clamp(20px, 1.7vw, 30px)/1.38 var(--f-display); letter-spacing: -.02em; color: var(--ink-200); max-width: 31ch; text-wrap: pretty; }
.qc__p--lead { font-size: clamp(24px, 2.35vw, 42px); line-height: 1.24; color: var(--ink-50); max-width: 24ch; }
.qc__p em, .qc__statement em {
  font-style: normal; color: var(--savia);
  background: linear-gradient(var(--savia), var(--savia)) 0 100% / var(--u, 100%) 1px no-repeat;
  padding-bottom: .04em;
}
.qc__statement { font: 500 clamp(30px, 3.5vw, 64px)/1.1 var(--f-display); letter-spacing: -.035em; color: var(--ink-50); max-width: 19ch; text-wrap: balance; }
.qc__media { position: relative; border-radius: 22px; overflow: hidden; background: var(--navy-925); }
.qc__media picture, .qc__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.qc__media img { object-position: 50% 30%; }
.qc__media--tall, .qc__media--portrait { aspect-ratio: 4 / 5; width: min(100%, 520px); }
.qc__media--wide { aspect-ratio: 16 / 10; width: 100%; }
.qc__media .vid, .qc__media picture { transform: scale(1.14); }
.qc__seal { position: relative; width: min(56vw, 360px); aspect-ratio: 1; display: grid; place-items: center; justify-self: center; }
.qc__ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(120, 252, 237, .22); }
.qc__ring--2 { inset: 16%; border-style: dashed; border-color: rgba(120, 252, 237, .3); animation: spin 40s linear infinite; }
.qc__seal::before { content: ""; position: absolute; inset: 28%; border-radius: 50%; background: radial-gradient(circle, rgba(0, 169, 180, .35), rgba(0, 169, 180, 0) 70%); filter: blur(10px); }
.qc__mark { position: relative; width: 50%; height: auto; overflow: visible; }
.qc__mark .mark-stroke { fill: none; stroke: var(--savia); stroke-width: .45; stroke-dasharray: 1; stroke-dashoffset: var(--draw, 0); }
.qc__mark .mark-fill { fill: var(--turq); opacity: var(--fill, 1); }
.qc__progress { display: none; }

/* con movimiento: pista horizontal fijada */
.motion .qc .stage { height: 100vh; height: 100vh; height: 100svh; }
.motion .qc__lattice {
  display: block; position: absolute; inset: 0 -60vw 0 0; pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(120, 252, 237, .055) 0 1px, transparent 1px 180px),
    linear-gradient(rgba(120, 252, 237, .06), rgba(120, 252, 237, .06)) 0 62% / 100% 1px no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
}
.motion .qc__track {
  position: absolute; top: 0; left: 0; height: 100%; width: max-content;
  flex-direction: row; align-items: center; gap: 9vw; padding: 0 var(--gutter);
  will-change: transform;
}
.motion .qc__panel { height: 100%; }
.motion .qc__panel--1 { width: 84vw; grid-template-columns: auto minmax(0, 1fr); column-gap: 6vw; }
.motion .qc__panel--1 .qc__media { height: 70vh; height: 70svh; width: auto; }
.motion .qc__panel--2 { width: 72vw; grid-template-columns: minmax(0, 1fr) auto; column-gap: 6vw; }
.motion .qc__panel--2 .qc__text { align-self: start; padding-top: 18vh; padding-top: 18svh; }
.motion .qc__panel--2 .qc__media { height: 62vh; height: 62svh; width: auto; align-self: end; margin-bottom: 9vh; margin-bottom: 9svh; }
.motion .qc__panel--3 { width: 64vw; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; align-content: center; row-gap: 5vh; row-gap: 5svh; }
.motion .qc__panel--3 .qc__media { height: 50vh; height: 50svh; width: auto; aspect-ratio: 16 / 10; }
.motion .qc__panel--4 { width: calc(100vw - var(--gutter) * 2); grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); column-gap: 5vw; }
.motion .qc__p em, .motion .qc__statement em { --u: 0%; }
.motion .qc__mark .mark-stroke { --draw: 1; }
.motion .qc__mark .mark-fill { --fill: 0; }
.motion .qc__progress {
  display: flex; align-items: center; gap: 18px; position: absolute; left: 0; right: 0; bottom: calc(30px + env(safe-area-inset-bottom));
  font: 500 12px/1 var(--f-text); letter-spacing: .14em; color: var(--ink-500); pointer-events: none;
}
.qc__bar { position: relative; width: min(220px, 40vw); height: 1px; background: rgba(242, 248, 255, .16); }
.qc__bar i { position: absolute; inset: 0; background: var(--savia); transform-origin: left; transform: scaleX(var(--p, 0)); box-shadow: 0 0 10px rgba(120, 252, 237, .7); }

/* ==========================================================================
   9 · CONTACTO + PIE
   ========================================================================== */
.s-contacto { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; background: var(--navy-1000); }
.contacto__bg { position: absolute; inset: 0; }
.contacto__bg .vid { transform: scale(var(--vs, 1.12)); }
.contacto__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(1, 12, 25, .94) 0%, rgba(1, 12, 25, .78) 50%, rgba(1, 12, 25, .6) 100%), linear-gradient(to top, var(--navy-1000), transparent 40%); }
.contacto__inner { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 6vw; align-items: center; padding-block: 18vh 14vh; }
.contacto__title { font-size: clamp(38px, 4.4vw, 78px); max-width: 14ch; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; max-width: 560px; }
.chips__label { margin-top: 34px; font: 500 11.5px/1 var(--f-text); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-400); }
.chips__label + .chips { margin-top: 14px; }
.chip {
  height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(242, 248, 255, .28);
  font-size: 14px; color: var(--ink-100); transition: background .35s, color .35s, border-color .35s;
}
.chip[aria-pressed="true"] { background: var(--savia); color: var(--navy-900); border-color: var(--savia); }
@media (hover: hover) { .chip:hover { border-color: var(--savia); } }
.form {
  display: grid; gap: 22px; padding: clamp(24px, 3vw, 44px); border-radius: 22px;
  background: rgba(5, 18, 33, .62); border: 1px solid rgba(242, 248, 255, .1);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: flex; flex-direction: column-reverse; gap: 10px; }
.field label { font: 500 11.5px/1 var(--f-text); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-400); transition: color .3s; }
.field input, .field textarea {
  width: 100%; padding: 10px 0 12px; border: 0; border-bottom: 1px solid rgba(242, 248, 255, .22); border-radius: 0;
  background: transparent; color: var(--ink-50); font: 400 16px/1.4 var(--f-text); resize: none; outline: none;
  transition: border-color .35s;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(175, 185, 205, .55); }
.field input:focus, .field textarea:focus { border-bottom-color: var(--savia); }
.field input:focus + label, .field textarea:focus + label { color: var(--savia); }
.form__send { justify-self: start; height: 52px; padding: 0 30px; margin-top: 6px; font-size: 15px; }

.foot { position: relative; background: var(--navy-1000); color: var(--ink-300); overflow: hidden; padding-top: 64px; --logo-icon: var(--savia); }
.foot__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; color: var(--ink-50); }
.foot__brand .logo { width: 130px; height: auto; }
.foot__links { display: flex; flex-wrap: wrap; gap: 14px 32px; font-size: 14px; color: var(--ink-300); }
.foot__links a:hover { color: var(--ink-50); }
.foot__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 28px;
  margin-top: 48px; padding-block: 22px; border-top: 1px solid rgba(242, 248, 255, .08); font-size: 13px;
}
.foot__bottom a { transition: color .3s; }
.foot__bottom a:hover { color: var(--savia); }
.foot__legal { display: flex; flex-wrap: wrap; gap: 6px 22px; color: var(--ink-500); }
.foot__word { overflow: hidden; padding-inline: var(--gutter); margin-top: 10px; color: var(--navy-925); --logo-icon: var(--navy-925); }
.foot__word-in svg { width: 100%; height: auto; }
.foot__word-in { transform: translateY(var(--fw, 0%)); }

/* ==========================================================================
   Estado con movimiento: posiciones iniciales (el JS las anima)
   ========================================================================== */
.motion .hero__title .line, .motion .hero__lead { will-change: transform; }
/* Las máscaras de SplitText no deben cortar descendentes (j, g, p, y) ni tildes */
.line-mask, .w-mask { padding: .08em 0 .2em; margin: -.08em 0 -.2em; }
.motion:not(.is-ready) .hero__copy, .motion:not(.is-ready) .hero__foot { visibility: hidden; animation: reveal-late 0s linear 3.5s forwards; }
@keyframes reveal-late { to { visibility: visible; } }
/* Mientras llega el JavaScript en redes lentas: línea de carga solo con CSS */
.intro .loader::after {
  content: ""; position: absolute; left: 50%; bottom: 32%; width: 120px; height: 1px; margin-left: -60px;
  background: linear-gradient(90deg, transparent, var(--savia), transparent);
  animation: loader-pulse 1.4s var(--e-io) infinite;
}
@keyframes loader-pulse { 0% { transform: scaleX(.2); opacity: .2; } 50% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(.2); opacity: .2; } }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__burger { display: block; }
}

@media (max-width: 1023.98px) {
  :root { --nav-h: 64px; }
  .nav__brand .logo { width: 104px; }

  .s-hero { --len: 280vh; }
  .hero__copy { bottom: 212px; }
  .hero__title { font-size: clamp(31px, 9.2vw, 76px); max-width: none; }
  .hero__lead { margin-top: 18px; max-width: 28ch; }
  .hero__foot { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .hero__foot::before { top: -14px; }
  .facts { gap: 20px; font-size: 12.5px; }
  .facts strong { font-size: 19px; margin-bottom: 4px; }
  .clients { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 14px; }
  .clients p { font-size: 12px; max-width: 16ch; line-height: 1.3; }
  .marquee__track img { height: 20px; }
  .marquee__track { gap: 32px; }
  .scrollcue { display: none; }
  .tag__label { font-size: 12px; padding: 7px 11px 7px 10px; }
  .tag__line { width: 18px; margin: 0 6px; }
  .motion .tag { left: var(--mx); top: var(--my); }
  .tag[data-mdir="r"] { flex-direction: row; transform: none; }
  .tag[data-mdir="r"] .tag__line { transform-origin: left center; background: linear-gradient(90deg, var(--savia), rgba(120, 252, 237, .35)); }
  .tag[data-mdir="l"] { flex-direction: row-reverse; transform: translateX(-100%); }
  .tag[data-mdir="l"] .tag__line { transform-origin: right center; background: linear-gradient(270deg, var(--savia), rgba(120, 252, 237, .35)); }
  .motion .capa__copy { top: auto; bottom: calc(40px + env(safe-area-inset-bottom)); transform: none; }
  .motion .capa__copy > * { max-width: 100%; }
  .capa__title { font-size: clamp(30px, 8.4vw, 44px); }
  .capa__lead { font-size: 15.5px; margin-top: 16px; }
  .capa__copy .eyebrow { margin-bottom: 16px; }

  .s-cifras { --len: 560vh; }
  .cifras__vignette { background: linear-gradient(to top, rgba(1, 12, 25, .9) 0%, rgba(1, 12, 25, .3) 45%, rgba(1, 12, 25, 0) 70%); }
  .motion .cifra { left: var(--gutter); right: var(--gutter); bottom: calc(92px + env(safe-area-inset-bottom)); align-items: center; text-align: center; gap: 12px; }
  .motion .cifra__n { font-size: clamp(80px, 24vw, 170px); }
  .motion .cifra__l { max-width: 22ch; font-size: 17px; }
  .motion .cifras__progress { justify-content: center; bottom: calc(46px + env(safe-area-inset-bottom)); }
  .cifras__vignette { background: radial-gradient(120% 60% at 50% 100%, rgba(1, 12, 25, .92) 0%, rgba(1, 12, 25, .55) 45%, rgba(1, 12, 25, 0) 75%); }

  .efi { --len: 200vh; }
  .efi__sub { bottom: 10vh; bottom: 10svh; }

  .pee { --len: 300vh; }
  .pee .stage { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto auto; padding-block: calc(var(--nav-h) + 16px) 32px; align-content: start; row-gap: 0; }
  .pee__media { grid-column: 1; grid-row: 1; aspect-ratio: auto; height: 42vh; height: 42svh; max-height: none; border-radius: 16px; }
  .pee__intro { grid-row: 2; margin-top: 22px; font-size: 11.5px; }
  .pee__word { grid-row: 3; margin-top: 8px; }
  .pee__items { grid-row: 4; margin-top: 14px; }
  .pee__p { font-size: clamp(110px, 34vw, 170px); }
  .pee__roll { font-size: clamp(26px, 7.4vw, 40px); }

  .sol { --len: 580vh; }
  .sol__deck { gap: 0; padding-bottom: 8vh; }
  /* móvil con movimiento: mazo de tarjetas fijo */
  .motion .sol > .stage { padding-top: calc(var(--nav-h) + 10px); padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
  .motion .sol__deck { position: relative; height: 100%; padding: 0; display: block; }
  .motion .sol .mod {
    position: absolute; inset: 0; margin: 0; display: flex; flex-direction: column; align-items: stretch; gap: 14px;
    padding: 16px; overflow: hidden; transform-origin: 50% 0; will-change: transform;
  }
  .motion .sol .mod__media { width: 100%; }
  .motion .sol .widget { transform: scale(.84); transform-origin: 0 100%; width: min(240px, 72%); }
  .motion .sol .mod::after { content: ""; position: absolute; inset: 0; z-index: 7; border-radius: inherit; background: var(--navy-1000); opacity: var(--dimc, 0); pointer-events: none; }
  .motion .sol .mod__media { flex: none; height: var(--mh, 200px); aspect-ratio: auto; }
  .motion .sol .mod__name { font-size: clamp(34px, 9.6vw, 48px); }
  .motion .sol .mod__cat { margin-top: 8px; }
  .motion .sol .mod__desc { margin-top: 10px; font-size: 14.5px; line-height: 1.5; }
  .motion .sol .mod__layer { margin-top: 14px; padding-top: 12px; }
  .motion .sol .mod__h { margin-top: 10px; font-size: 18px; }
  .motion .sol .mod__sub { margin-top: 6px; font-size: 13.5px; line-height: 1.45; }
  .motion .sol .mod__pts { margin-top: 10px; gap: 6px; }
  .motion .sol .mod__pts li { font-size: 13.5px; line-height: 1.4; }
  .mod {
    position: relative; grid-template-columns: minmax(0, 1fr); gap: 22px;
    align-content: start;
    padding: 18px; border-radius: 22px; background: var(--navy-925); border: 1px solid rgba(242, 248, 255, .08);
    margin-bottom: 16px;
  }
  .mod__scan { position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 6; background: var(--savia); box-shadow: 0 0 16px 2px rgba(120, 252, 237, .8); opacity: 0; pointer-events: none; }
  .mod__media { order: -1; aspect-ratio: 4 / 3; border-radius: 14px; }
  .mod__inset { display: none; }
  .mod__name { font-size: clamp(40px, 11vw, 60px); }
  .mod__desc { margin-top: 14px; }
  .mod__layer { margin-top: 18px; padding-top: 16px; }
  .widget { left: 10px; bottom: 10px; width: min(232px, 64%); padding: 10px 11px; font-size: 10.5px; border-radius: 11px; }
  .w-top { padding-bottom: 8px; }
  .w-tasks { gap: 6px; margin-top: 8px; }
  .w-signal { margin-top: 8px; }
  .w-graph, .w-bars, .w-core { height: 34px; margin-top: 8px; }
  .w-core span { width: 30px; height: 30px; }
  .w-core::before { width: 50px; height: 50px; margin: -25px; }
  .mod__inset { width: 38%; right: 12px; top: 12px; }

  .s-cine { --len: 300vh; }

  .s-res { --len: auto; }
  .motion .s-res { height: auto; }
  .motion .s-res > .stage { position: relative; height: auto; overflow: visible; }
  .s-res .stage { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; padding-block: 16vh 10vh; row-gap: 36px; }
  .res__head { display: block; }
  .res__photo { grid-column: 1; grid-row: auto; min-height: 0; aspect-ratio: 16 / 10; }
  .res__grid { grid-column: 1; grid-row: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 18px; }
  .vessel__glass { height: 190px; margin: 14px 0 16px; }

  .step { grid-template-columns: minmax(0, 1fr); gap: 22px; padding-left: 38px; }
  .step:nth-child(even) .step__media { order: 0; }
  .step__node { left: 7px; top: 0; margin: 0; }
  /* móvil con movimiento: escena fija, el tallo crece por el borde */
  .motion .impl__track { height: 340vh; }
  .motion .impl__stage { position: sticky; top: 0; height: 100vh; height: 100vh; height: 100svh; overflow: hidden; }
  .motion .impl__steps { position: absolute; inset: calc(var(--nav-h) + 12px) 0 calc(20px + env(safe-area-inset-bottom)) 0; display: block; }
  .motion .step { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 20px; }
  .motion .step__media { width: 100%; aspect-ratio: 16 / 11; }
  .motion .step:nth-child(1) .step__node { top: 14%; }
  .motion .step:nth-child(2) .step__node { top: 50%; }
  .motion .step:nth-child(3) .step__node { top: 86%; }

  .iris { --len: 200vh; }
  .qc { --len: 480vh; }
  .motion .qc__track { gap: calc(var(--gutter) * 2); padding: 0 var(--gutter); }
  .motion .qc__panel { width: calc(100vw - var(--gutter) * 2) !important; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 22px; padding-top: var(--nav-h); }
  .motion .qc__panel--2 { flex-direction: column-reverse; }
  .motion .qc__panel .qc__media { height: 40vh !important; height: 40svh !important; width: auto; margin: 0 !important; align-self: flex-start; }
  .motion .qc__panel--3 .qc__media { width: 100%; height: auto !important; aspect-ratio: 4 / 3; }
  .motion .qc__panel--2 .qc__text, .motion .qc__panel--3 .qc__text { padding-top: 0; margin-left: 0; }
  .qc__p { font-size: 17.5px; line-height: 1.42; max-width: none; }
  .qc__p--lead { font-size: 20px; line-height: 1.32; }
  .qc__statement { font-size: clamp(27px, 7.6vw, 38px); max-width: none; }
  .motion .qc__panel--4 { justify-content: center; }
  .motion .qc__seal { width: 46vw; align-self: flex-end; margin-top: 8px; }
  .motion .qc__progress { bottom: calc(26px + env(safe-area-inset-bottom)); }

  .contacto__inner { grid-template-columns: minmax(0, 1fr); padding-block: 16vh 10vh; gap: 40px; }
  .form__row { grid-template-columns: minmax(0, 1fr); }
  .form { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(5, 18, 33, .86); }
}

@media (max-width: 1023.98px) and (max-height: 800px) {
  .motion .qc__panel .qc__media { height: 31vh !important; height: 31svh !important; }
  .motion .qc__panel--3 .qc__media { height: auto !important; width: 86%; }
  .qc__p { font-size: 16.5px; line-height: 1.4; }
  .qc__p--lead { font-size: 18px; line-height: 1.3; }
  .motion .qc__panel { gap: 16px; }
  .motion .sol .widget { transform: scale(.74); }
}

@media (max-width: 380px) {
  .hero__copy { bottom: 214px; }
  .facts { gap: 14px; font-size: 11.5px; }
  .facts strong { font-size: 17px; }
}

@media (min-width: 1024px) {
  .nav { padding-top: calc(env(safe-area-inset-top) + 8px); }
  .motion .sol > .stage { display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: center; }
  .motion .sol__rail { display: grid; gap: 22px; align-self: center; }
  .sol__rail button { display: flex; align-items: center; gap: 12px; font: 500 12.5px/1 var(--f-text); letter-spacing: .04em; color: var(--ink-500); transition: color .4s; }
  .sol__rail button i { position: relative; width: 22px; height: 1px; background: currentColor; transition: width .5s var(--e-out), background .4s; }
  .sol__rail button.is-active { color: var(--ink-50); }
  .sol__rail button.is-active i { width: 40px; background: var(--savia); }
  .motion .sol__deck { position: relative; height: 100vh; height: 100svh; display: block; padding: 0; }
  .motion .mod { position: absolute; inset: 0; display: block; }
  .motion .mod__text { position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: var(--split); }
  .motion .mod__media {
    position: absolute; left: calc(var(--split) + var(--gapc)); right: 0; top: 50%; height: min(74vh, 46vw); height: min(74svh, 46vw);
    transform: translateY(-50%); aspect-ratio: auto; clip-path: inset(0 0 100% 0 round 22px);
  }
  .motion .mod:first-child .mod__media { clip-path: inset(0 0 0 0 round 22px); }
  .motion .mod__text > * { opacity: 0; }
  .motion .mod:first-child .mod__text > * { opacity: 1; }
  .motion .sol__scan {
    display: block; position: absolute; z-index: 20; left: calc(var(--split) + var(--gapc)); right: 0; top: 0; height: 2px;
    background: var(--savia); box-shadow: 0 0 18px 2px rgba(120, 252, 237, .8), 0 0 60px 8px rgba(120, 252, 237, .25);
    opacity: 0; pointer-events: none;
  }
  .motion .widget { opacity: 0; }
  .motion .mod:first-child .widget { opacity: 1; }
}

/* ==========================================================================
   Sin movimiento (reduced motion o sin JS)
   ========================================================================== */
html:not(.motion) .scene { height: auto; }
html:not(.motion) .s-hero .stage { height: auto; min-height: 0; }
html:not(.motion) .hero__media { position: relative; height: 100vh; height: 100svh; min-height: 560px; }
html:not(.motion) .hero__copy { bottom: auto; top: calc(100vh - clamp(150px, 24vh, 250px)); top: calc(100svh - clamp(150px, 24vh, 250px)); transform: translateY(-100%); }
html:not(.motion) .hero__foot { bottom: auto; top: 100vh; top: 100svh; transform: translateY(-100%); }
html:not(.motion) .lattice { display: none; }
html:not(.motion) .tags { inset: calc(var(--nav-h) + 20px) var(--gutter) auto; display: flex; flex-wrap: wrap; gap: 10px; }
html:not(.motion) .tag { position: static; opacity: 1; transform: none; }
html:not(.motion) .tag__dot, html:not(.motion) .tag__line { display: none; }
html:not(.motion) .efi__word { display: grid; }
html:not(.motion) .cifras__gl { display: none; }
html:not(.motion) .s-cifras .stage { height: auto; }
html:not(.motion) .pee .stage { min-height: 0; }
html:not(.motion) .pee__layer { position: relative; aspect-ratio: 16 / 10; }
html:not(.motion) .pee__media { aspect-ratio: auto; display: grid; gap: 12px; background: none; border-radius: 0; }
html:not(.motion) .pee__layer { border-radius: 18px; overflow: hidden; }
html:not(.motion) .iris .stage, html:not(.motion) .efi .stage, html:not(.motion) .s-cine .stage { height: 100vh; height: 100svh; }
html:not(.motion) .impl__path { stroke-dasharray: none; }
html:not(.motion) .step__node { background: var(--savia); border-color: var(--savia); }

@media (prefers-reduced-motion: reduce) {
  .grain, .marquee__track, .tag__dot::after, .scrollcue i::after, .vessel__wave, .w-core::before, .w-top strong::before, .vessel__bubbles, .vessel__bubbles::before, .vessel__bubbles::after, .qc__ring--2 { animation: none !important; }
  * { scroll-behavior: auto !important; }
}
