/* ==========================================================================
   Vita-Peptide Laboratories · Hoja de estilos
   Concepto: "Instrumento de precisión molecular". Mobile first.
   Marca (del logo): azul marino #0B1F4A + verde hoja #34B462.
   ========================================================================== */

/* ---------- 1. Variables ---------- */
:root {
  --navy-950: #050d26;
  --navy-900: #0a1a44;
  --navy-800: #0b1f4a;
  --navy-700: #14307a;
  --navy-600: #1f449f;
  --green-600: #178040;
  --green-500: #34b462;
  --green-400: #4fd17f;
  --green-300: #8be8ae;
  --green-100: #e3f7ea;
  --mist-50: #f7fafd;
  --mist-100: #eef4fb;
  --mist-200: #dde8f5;
  --mist-300: #c3d3ea;
  --ink: #0b1f4a;
  --ink-2: #3b4d75;
  --ink-3: #5d6f94;
  --line: rgba(11, 31, 74, 0.12);

  --font-display: "Sora", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-body: "Manrope", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --radius: 20px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(11, 31, 74, 0.06), 0 10px 28px -14px rgba(11, 31, 74, 0.2);
  --shadow-md: 0 2px 4px rgba(11, 31, 74, 0.06), 0 28px 64px -26px rgba(11, 31, 74, 0.38);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --header-h: 64px;
  --container: 1200px;
  --gutter: clamp(18px, 5vw, 40px);
}

/* ---------- 2. Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--mist-50);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, canvas { display: block; max-width: 100%; }
img { height: auto; }
svg { max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
address { font-style: normal; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
}
h2 { font-size: clamp(1.9rem, 5.4vw, 3.5rem); }
h3 { font-size: 1.25rem; }

:focus-visible { outline: 2px solid var(--green-500); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--green-400); color: var(--navy-950); }

section[id] { scroll-margin-top: 56px; }

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

.skip {
  position: fixed; left: 12px; top: -80px; z-index: 2000;
  padding: 10px 16px; border-radius: 10px;
  background: var(--navy-800); color: #fff; font-weight: 600;
  transition: top 0.2s;
}
.skip:focus { top: 12px; }

.ico { width: 1.15em; height: 1.15em; flex: none; display: inline-block; vertical-align: middle; }
.ico--lg { width: 38px; height: 38px; color: var(--green-600); }
.ico--flip { transform: scaleX(-1); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 16px;
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--green-600);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.eyebrow--dark { color: var(--green-400); }

.section { position: relative; padding: clamp(72px, 11vw, 150px) 0; }
.section-head { max-width: 46rem; margin-bottom: clamp(32px, 5vw, 64px); }
.section-head__lead { margin-top: 16px; max-width: 40rem; color: var(--ink-2); font-size: clamp(1rem, 2.4vw, 1.15rem); }
.section-head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.fineprint { margin-top: 18px; font-size: 0.82rem; color: var(--ink-3); }

/* ---------- 3. Reveal + texto dividido (solo con JavaScript) ---------- */
.js [data-reveal] {
  opacity: 0;
  translate: 0 28px;
  transition: opacity 0.9s var(--ease), translate 0.9s var(--ease), scale 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}
.js [data-reveal="scale"] { scale: 0.93; translate: 0 18px; }
.js [data-reveal].is-in { opacity: 1; translate: 0 0; scale: 1; }
.reveal-all [data-reveal] { opacity: 1 !important; translate: 0 0 !important; scale: 1 !important; }

.js [data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.js [data-split] .wi {
  display: inline-block;
  transform: translateY(112%) rotate(4deg);
  transform-origin: left bottom;
  transition: transform 1s var(--ease);
  transition-delay: calc(var(--i, 0) * 55ms);
}
.js [data-split].is-in .wi { transform: none; }
.reveal-all [data-split] .wi { transform: none !important; }

/* ---------- 4. Cargador ---------- */
.loader {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center;
  background: radial-gradient(120% 90% at 50% 38%, #10296a 0%, var(--navy-900) 46%, var(--navy-950) 100%);
  color: #fff;
  transition: opacity 0.4s ease, visibility 0s linear 0.4s;
  /* Respaldo en CSS: se oculta solo aunque el JavaScript falle (termina en 2.5 s) */
  animation: loaderFallback 0.4s ease 2.1s forwards;
}
.loader.is-done { opacity: 0; visibility: hidden; }
@keyframes loaderFallback { to { opacity: 0; visibility: hidden; } }

.loader__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(60% 55% at 50% 45%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(60% 55% at 50% 45%, #000 20%, transparent 75%);
}
.loader__core { position: relative; display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 24px; }
.loader__mark {
  width: 124px; height: 134px; color: #fff; overflow: visible;
  animation: lmFloat 3s ease-in-out infinite alternate;
}
.loader__mark::after { content: ""; }
.lm-edges line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: lmDraw 0.7s var(--ease) forwards; animation-delay: calc(var(--i) * 0.045s + 0.1s); }
.lm-nodes circle {
  opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(0);
  animation: lmPop 0.5s var(--ease) forwards; animation-delay: calc(var(--i) * 0.06s + 0.25s);
}
.lm-leaf {
  stroke: var(--green-400); fill: rgba(79, 209, 127, 0);
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: lmDraw 0.8s var(--ease) 0.95s forwards, lmFill 0.6s ease 1.45s forwards;
}
.lm-stem { stroke-dasharray: 1; stroke-dashoffset: 1; animation: lmDraw 0.7s var(--ease) 1.1s forwards; }
@keyframes lmDraw { to { stroke-dashoffset: 0; } }
@keyframes lmPop { 60% { transform: scale(1.5); } to { opacity: 1; transform: scale(1); } }
@keyframes lmFill { to { fill: rgba(79, 209, 127, 0.32); } }
@keyframes lmFloat { to { transform: translateY(-6px); } }

.loader__brand { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.loader__brand span:first-child { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: 0.12em; }
.loader__brand span:last-child { font-family: var(--font-display); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.5em; color: rgba(255, 255, 255, 0.75); padding-left: 0.5em; }
.loader__bar { width: min(220px, 60vw); height: 2px; background: rgba(255, 255, 255, 0.16); border-radius: 2px; overflow: hidden; }
.loader__bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--green-500), var(--green-300)); transform-origin: left; transform: scaleX(0); }
.loader__meta { display: flex; align-items: baseline; gap: 6px; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255, 255, 255, 0.62); }
.loader__meta b { color: #fff; font-weight: 500; min-width: 2.4ch; text-align: right; }
.loader__tag { position: absolute; left: 0; right: 0; bottom: 28px; text-align: center; font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.3em; text-transform: uppercase; color: rgba(255, 255, 255, 0.4); padding: 0 16px; }

/* ---------- 5. Barra de progreso ---------- */
.progress { position: fixed; inset: 0 0 auto 0; z-index: 90; height: 3px; pointer-events: none; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--navy-700), var(--green-500)); transform-origin: left; transform: scaleX(var(--sp, 0)); }

/* ---------- 6. Encabezado y navegación ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 80; height: var(--header-h); color: var(--ink); transition: color 0.35s; }
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(247, 250, 253, 0.84);
  backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px);
  box-shadow: 0 1px 0 var(--line);
  opacity: 0; transition: opacity 0.35s, background 0.35s;
}
.site-header.is-stuck::before { opacity: 1; }
.site-header.on-dark { color: #fff; }
.site-header.on-dark::before { background: rgba(5, 13, 38, 0.72); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1); }
.site-header.menu-open { color: #fff; }
.site-header.menu-open::before { opacity: 0; }

.site-header__inner { width: min(100% - 2 * var(--gutter), var(--container)); height: 100%; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.brand { display: inline-flex; align-items: center; gap: 10px; position: relative; z-index: 2; }
.brand__mark { width: 36px; height: 39px; color: currentColor; transition: transform 0.6s var(--ease); }
.brand:hover .brand__mark { transform: rotate(60deg); }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__text strong { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.06em; }
.brand__text em { font-family: var(--font-display); font-style: normal; font-weight: 500; font-size: 0.56rem; letter-spacing: 0.34em; margin-top: 4px; opacity: 0.78; }

/* Menú móvil: panel completo (solo si hay JavaScript) */
.nav { display: none; }
.js .nav {
  position: fixed; inset: 0; z-index: 1;
  display: flex; flex-direction: column; justify-content: center; gap: 30px;
  padding: calc(var(--header-h) + 16px) var(--gutter) 40px;
  background: radial-gradient(120% 80% at 80% 0%, #10296a 0%, var(--navy-950) 70%);
  color: #fff;
  transform: translateY(-102%); visibility: hidden;
  transition: transform 0.6s var(--ease), visibility 0s linear 0.6s;
}
.js .nav.is-open { transform: none; visibility: visible; transition: transform 0.6s var(--ease); }
.nav__list { display: grid; gap: 6px; }
.nav__list a { display: block; padding: 6px 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.7rem, 8vw, 2.4rem); letter-spacing: -0.02em; opacity: 0.92; }
.nav__list a:hover { color: var(--green-400); }
.nav__cta { align-self: flex-start; }

.burger { position: relative; z-index: 2; width: 46px; height: 46px; display: grid; place-content: center; gap: 6px; background: transparent; border: 1px solid currentColor; border-color: rgba(11, 31, 74, 0.2); border-radius: 50%; }
.site-header.on-dark .burger, .site-header.menu-open .burger { border-color: rgba(255, 255, 255, 0.3); }
.burger span { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; transition: transform 0.4s var(--ease), opacity 0.3s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- 7. Botones ---------- */
.btn {
  --bg: var(--navy-800); --fg: #fff;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.75em;
  min-height: 48px; padding: 0.85em 1.4em;
  border-radius: 999px; border: 1px solid transparent;
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; line-height: 1.15; text-align: center;
  color: var(--fg); background: var(--bg);
  overflow: hidden; isolation: isolate;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.3s, color 0.3s, border-color 0.3s;
  will-change: transform;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.32) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform 0.8s var(--ease);
}
.btn:hover::before { transform: translateX(120%); }
.btn .ico { width: 1.2em; height: 1.2em; transition: transform 0.35s var(--ease); }
.btn:hover .ico { transform: translateX(3px); }
.btn--sm { min-height: 40px; padding: 0.6em 1.1em; font-size: 0.85rem; }
.btn--lg { min-height: 56px; padding: 1em 1.8em; font-size: 1.02rem; }

.btn--primary { box-shadow: 0 12px 30px -12px rgba(11, 31, 74, 0.6); }
.btn--primary .ico { width: 1.75em; height: 1.75em; padding: 0.3em; border-radius: 50%; background: var(--green-500); color: var(--navy-950); }
.btn--primary:hover { transform: translateY(-2px); background: var(--navy-700); box-shadow: 0 20px 40px -14px rgba(11, 31, 74, 0.65); }
.btn--primary.btn--sm .ico { width: 1.6em; height: 1.6em; }

.btn--ghost { --bg: rgba(255, 255, 255, 0.55); --fg: var(--ink); border-color: var(--line); backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: var(--navy-800); background: #fff; transform: translateY(-2px); }

.btn--card { --bg: var(--mist-100); --fg: var(--ink); width: 100%; justify-content: space-between; border-color: var(--line); }
.btn--card:hover { --bg: var(--navy-800); --fg: #fff; background: var(--navy-800); color: #fff; }
.btn--card:hover .ico { color: var(--green-400); }

.btn--wa { --bg: var(--green-500); --fg: var(--navy-950); width: 100%; box-shadow: 0 14px 34px -12px rgba(52, 180, 98, 0.75); }
.btn--wa:hover { transform: translateY(-2px); background: var(--green-400); }

/* Botones sobre fondos oscuros (secciones oscuras, encabezado oscuro y menú móvil abierto) */
.kit .btn--primary, .contact .btn--primary, .footer .btn--primary,
.site-header.on-dark .btn--primary, .site-header.menu-open .btn--primary { --bg: var(--green-500); --fg: var(--navy-950); box-shadow: 0 14px 34px -14px rgba(52, 180, 98, 0.8); }
.kit .btn--primary .ico, .contact .btn--primary .ico, .footer .btn--primary .ico,
.site-header.on-dark .btn--primary .ico, .site-header.menu-open .btn--primary .ico { background: var(--navy-950); color: var(--green-400); }
.kit .btn--primary:hover, .contact .btn--primary:hover, .footer .btn--primary:hover,
.site-header.on-dark .btn--primary:hover, .site-header.menu-open .btn--primary:hover { background: var(--green-400); }

/* ---------- 8. HERO ---------- */
.hero {
  position: relative; isolation: isolate;
  display: flex; align-items: center;
  min-height: 100vh; min-height: 100svh;
  padding: calc(var(--header-h) + 8px) 0 72px;
  background: linear-gradient(180deg, #fafcff 0%, #edf4fb 60%, var(--mist-50) 100%);
  overflow: clip;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(54px); will-change: transform; }
.blob--a { width: 74vw; height: 74vw; max-width: 640px; max-height: 640px; left: -22%; top: -10%; background: radial-gradient(circle at 35% 35%, rgba(52, 180, 98, 0.5), rgba(52, 180, 98, 0) 66%); animation: drift1 18s ease-in-out infinite alternate; }
.blob--b { width: 70vw; height: 70vw; max-width: 600px; max-height: 600px; right: -24%; top: 6%; background: radial-gradient(circle at 60% 40%, rgba(31, 68, 159, 0.38), rgba(31, 68, 159, 0) 66%); animation: drift2 22s ease-in-out infinite alternate; }
.blob--c { width: 60vw; height: 60vw; max-width: 520px; max-height: 520px; left: 24%; bottom: -26%; background: radial-gradient(circle, rgba(79, 209, 127, 0.32), rgba(79, 209, 127, 0) 66%); animation: drift3 26s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate3d(12vw, 8vh, 0) scale(1.15); } }
@keyframes drift2 { to { transform: translate3d(-14vw, 10vh, 0) scale(0.9); } }
@keyframes drift3 { to { transform: translate3d(10vw, -8vh, 0) scale(1.2); } }

.hero__dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(11, 31, 74, 0.2) 1.1px, transparent 0);
  background-size: 28px 28px;
  mask-image: radial-gradient(75% 65% at 62% 42%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(75% 65% at 62% 42%, #000 0%, transparent 78%);
}
.hero__glow { position: absolute; left: var(--mx, 70%); top: var(--my, 40%); width: 560px; height: 560px; margin: -280px 0 0 -280px; border-radius: 50%; background: radial-gradient(circle, rgba(52, 180, 98, 0.2), transparent 62%); pointer-events: none; transition: left 0.25s ease-out, top 0.25s ease-out; }
.hud { position: absolute; width: 18px; height: 18px; border: 0 solid rgba(11, 31, 74, 0.38); }
.hud--tl { left: 14px; top: calc(var(--header-h) + 10px); border-width: 1.5px 0 0 1.5px; }
.hud--tr { right: 14px; top: calc(var(--header-h) + 10px); border-width: 1.5px 1.5px 0 0; }
.hud--bl { left: 14px; bottom: 14px; border-width: 0 0 1.5px 1.5px; }
.hud--br { right: 14px; bottom: 14px; border-width: 0 1.5px 1.5px 0; }

.hero__layout { display: grid; gap: 4px; align-items: center; width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.hero__copy { order: 2; position: relative; z-index: 2; }
.hero__stage { order: 1; position: relative; width: min(76vw, 340px); aspect-ratio: 1; margin: 6px auto -6px; }

.hero .eyebrow { margin-bottom: 14px; padding: 7px 14px 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.7); border: 1px solid var(--line); backdrop-filter: blur(8px); font-size: 0.66rem; letter-spacing: 0.14em; }
.hero .eyebrow::before { display: none; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-500); box-shadow: 0 0 0 0 rgba(52, 180, 98, 0.6); animation: pulseDot 2s infinite; }
@keyframes pulseDot { 70% { box-shadow: 0 0 0 9px rgba(52, 180, 98, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 180, 98, 0); } }

.hero__title { font-size: clamp(2.15rem, 9.4vw, 3.2rem); line-height: 1.03; letter-spacing: -0.035em; }
.hero__title em { font-style: normal; color: var(--green-600); }
.hero__title em .wi { background: linear-gradient(100deg, var(--green-500) 0%, var(--navy-700) 85%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { margin-top: 18px; max-width: 34em; font-size: clamp(1rem, 2.7vw, 1.2rem); color: var(--ink-2); }
.hero__lead strong { color: var(--ink); font-weight: 700; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero__actions .btn { flex: 1 1 auto; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 24px; font-size: 0.85rem; font-weight: 500; color: var(--ink-2); }
.hero__trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero__trust .ico { color: var(--green-600); }
.hero__typer { display: flex; align-items: center; gap: 12px; margin-top: 22px; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.hero__typer span::after { content: "→"; margin-left: 12px; color: var(--green-600); }
.typer { font-weight: 500; color: var(--ink); min-width: 12ch; }
.typer::after { content: ""; display: inline-block; width: 2px; height: 1.05em; margin-left: 3px; vertical-align: -0.15em; background: var(--green-500); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Escenario 3D */
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__ring { position: absolute; inset: -6%; width: 112%; height: 112%; color: var(--navy-800); animation: spin 80s linear infinite; pointer-events: none; }
.hero__ring text { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.32em; fill: currentColor; opacity: 0.55; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero__core { position: absolute; left: 50%; top: 50%; width: 15%; aspect-ratio: 1; transform: translate(-50%, -50%); display: grid; place-items: center; pointer-events: none; }
.hero__core svg { width: 100%; height: auto; filter: drop-shadow(0 8px 16px rgba(52, 180, 98, 0.5)); animation: breathe 4s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.1) rotate(-4deg); } }
.ripple { position: absolute; inset: -34%; border-radius: 50%; border: 1.5px solid rgba(52, 180, 98, 0.6); opacity: 0; animation: ripple 3.8s ease-out infinite; }
.ripple--2 { animation-delay: 1.9s; }
@keyframes ripple { 0% { transform: scale(0.35); opacity: 0.8; } 100% { transform: scale(1.55); opacity: 0; } }

.chips { position: absolute; inset: 0; pointer-events: none; }
.chip {
  position: absolute; display: flex; flex-direction: column; gap: 1px;
  padding: 7px 11px 7px 22px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.82); border: 1px solid rgba(11, 31, 74, 0.1);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  animation: floatY 6s ease-in-out infinite alternate; animation-delay: var(--fd, 0s);
}
.chip::before { content: ""; position: absolute; left: 9px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--green-500); box-shadow: 0 0 0 3px rgba(52, 180, 98, 0.2); }
.chip b { font-family: var(--font-display); font-weight: 700; font-size: 0.74rem; letter-spacing: -0.01em; }
.chip small { font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.chip--a { left: -4%; top: 10%; }
.chip--b { right: -6%; top: 4%; --fd: -1.5s; }
.chip--c { left: -6%; bottom: 12%; --fd: -3s; }
.chip--d { right: -4%; bottom: 4%; --fd: -4.5s; }
@keyframes floatY { to { transform: translateY(-9px); } }

.scroll-cue { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: none; flex-direction: column; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-3); }
.scroll-cue__line { width: 1px; height: 34px; background: linear-gradient(var(--ink-3), transparent); transform-origin: top; animation: cue 2.2s ease-in-out infinite; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- 9. Cinta de movimiento ---------- */
.marquee { background: var(--navy-900); color: #fff; padding: 16px 0 14px; overflow: hidden; border-block: 1px solid rgba(255, 255, 255, 0.08); }
.marquee__row { overflow: hidden; white-space: nowrap; }
.marquee__row + .marquee__row { margin-top: 4px; }
.marquee__track { display: inline-flex; animation: marquee 40s linear infinite; will-change: transform; }
.marquee__track li { display: inline-flex; align-items: center; padding-inline: 0.7em; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.25rem, 4.4vw, 2.3rem); letter-spacing: -0.01em; }
.marquee__track li::after { content: ""; width: 0.3em; height: 0.3em; margin-left: 1.4em; border-radius: 50%; background: var(--green-500); }
.marquee__row--rev .marquee__track { animation-direction: reverse; animation-duration: 52s; }
.marquee__row--rev li { color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.38); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 10. La ciencia (escena fija) ---------- */
.story { position: relative; background: var(--navy-950); color: #fff; padding: 88px 0 72px; overflow: clip; }
.story__canvas { display: none; }
.story__vignette { display: none; }
.story__layout { position: relative; }
.story__head h2 { font-size: clamp(1.6rem, 5.6vw, 3.1rem); max-width: 15em; }
.story__steps { display: grid; gap: 14px; margin-top: 36px; }
.story-step { padding: 20px; border-radius: 18px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); }
.story-step__n { display: block; margin-bottom: 8px; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.2em; color: var(--green-400); }
.story-step h3 { font-size: 1.4rem; margin-bottom: 8px; }
.story-step p { color: #c4d2ee; font-size: 0.96rem; }
.story__rail { display: none; }

.js .story { height: 480vh; padding: 0; }
.js .story__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.js .story__canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
.js .story__vignette { display: block; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(90% 70% at 50% 45%, transparent 40%, rgba(5, 13, 38, 0.85) 100%), linear-gradient(180deg, rgba(5, 13, 38, 0.6) 0%, transparent 28%, transparent 60%, rgba(5, 13, 38, 0.85) 100%); }
.js .story__layout { height: 100%; display: flex; flex-direction: column; padding: calc(var(--header-h) + 22px) 0 22px; }
.js .story__steps { position: relative; display: block; margin-top: auto; height: 214px; }
.js .story-step { position: absolute; inset: auto 0 0 0; background: rgba(5, 13, 38, 0.6); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); opacity: 0; transform: translateY(26px); pointer-events: none; transition: opacity 0.6s var(--ease), transform 0.7s var(--ease); }
.js .story-step.is-active { opacity: 1; transform: none; pointer-events: auto; }
.js .story__rail { display: flex; position: relative; justify-content: space-between; margin-top: 16px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.story__rail-fill { position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: linear-gradient(90deg, var(--green-500), var(--green-300)); transform-origin: left; transform: scaleX(var(--p, 0)); box-shadow: 0 0 14px rgba(79, 209, 127, 0.7); }
.story__tick { position: relative; font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.4); transition: color 0.4s; }
.story__tick.is-active { color: #fff; }
.story__tick.is-active::before { content: ""; position: absolute; left: 0; top: -17px; width: 9px; height: 9px; border-radius: 50%; background: var(--green-400); box-shadow: 0 0 0 4px rgba(79, 209, 127, 0.25); }

/* ---------- 11. Línea de péptidos ---------- */
.catalog { background: radial-gradient(70% 40% at 80% 0%, rgba(52, 180, 98, 0.08), transparent 70%), var(--mist-50); }
.cards { display: grid; gap: 18px; grid-template-columns: 1fr; }

.card {
  --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 30%;
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.4s;
}
.card:hover { box-shadow: var(--shadow-md); border-color: rgba(52, 180, 98, 0.45); }
.card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(420px circle at var(--gx) var(--gy), rgba(52, 180, 98, 0.16), transparent 55%); opacity: 0; transition: opacity 0.4s; }
.card:hover::after { opacity: 1; }

.card__stage { position: relative; height: 232px; display: grid; place-items: center; overflow: hidden; background: radial-gradient(75% 75% at 50% 40%, #fff 0%, var(--mist-100) 72%); }
.card__stage::before { content: ""; position: absolute; width: 210px; height: 210px; border-radius: 50%; border: 1px dashed rgba(11, 31, 74, 0.2); animation: spin 40s linear infinite; }
.card__stage::after { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, 0.75) 50%, transparent 62%); transform: translateX(-130%); animation: shine 6s ease-in-out infinite; pointer-events: none; }
@keyframes shine { 0%, 55% { transform: translateX(-130%); } 100% { transform: translateX(130%); } }
.card__idx { position: absolute; left: 16px; top: 14px; z-index: 2; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.18em; color: var(--ink-3); }
.card__mg { position: absolute; right: 14px; bottom: 6px; z-index: 0; font-family: var(--font-display); font-weight: 800; font-size: 4.6rem; line-height: 1; letter-spacing: -0.05em; color: rgba(11, 31, 74, 0.07); }
.card__mg small { margin-left: 2px; font-size: 1.2rem; letter-spacing: 0; }
.vial { position: relative; z-index: 1; width: 92px; height: 153px; filter: drop-shadow(0 18px 22px rgba(11, 31, 74, 0.25)); animation: vialBob 5s ease-in-out infinite alternate; }
@keyframes vialBob { to { transform: translateY(-9px) rotate(1.5deg); } }
.vial__t1 { font-family: var(--font-display); font-weight: 600; font-size: 4.6px; letter-spacing: 0.16em; fill: #fff; }
.vial__t2 { font-family: var(--font-display); font-weight: 800; font-size: 8.4px; letter-spacing: -0.01em; fill: var(--navy-800); }
.vial__t3 { font-family: var(--font-mono); font-weight: 500; font-size: 6px; letter-spacing: 0.04em; fill: var(--ink-3); }

.card__body { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 20px 20px 22px; }
.card__body h3 { font-size: 1.45rem; }
.card__mech { font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green-600); }
.card__desc { font-size: 0.92rem; color: var(--ink-2); }
.spec { margin: 6px 0 8px; }
.spec div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.spec dt { font-size: 0.78rem; color: var(--ink-3); }
.spec dd { font-weight: 600; font-size: 0.9rem; text-align: right; }
.spec__price { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }
.card .btn { margin-top: auto; }

.ladder { position: relative; display: grid; gap: 28px; margin-top: clamp(40px, 6vw, 72px); padding: clamp(22px, 4vw, 48px); border-radius: var(--radius-lg); overflow: hidden; color: #fff; background: linear-gradient(135deg, var(--navy-900), var(--navy-800) 55%, #123277); }
.ladder::before { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(52, 180, 98, 0.35), transparent 65%); animation: drift1 14s ease-in-out infinite alternate; }
.ladder__text { position: relative; display: grid; gap: 14px; align-content: center; justify-items: start; }
.ladder__text .eyebrow { color: var(--green-400); margin-bottom: 0; }
.ladder__text h3 { font-size: clamp(1.45rem, 3.8vw, 2.2rem); }
.ladder__text p { color: #c4d2ee; max-width: 30rem; }
.ladder__text .btn--primary { --bg: var(--green-500); --fg: var(--navy-950); margin-top: 8px; }
.ladder__text .btn--primary .ico { background: var(--navy-950); color: var(--green-400); }
.ladder__bars { position: relative; display: flex; align-items: stretch; gap: clamp(8px, 2vw, 18px); height: 230px; }
.ladder__bars li { flex: 1; display: grid; grid-template-rows: 1fr auto auto; justify-items: center; gap: 2px; min-width: 0; }
.ladder__bar { align-self: end; display: block; position: relative; width: 100%; height: var(--h); border-radius: 12px 12px 5px 5px; overflow: hidden; background: linear-gradient(180deg, var(--green-400), rgba(79, 209, 127, 0.14)); transform-origin: bottom; transition: transform 1.1s var(--ease); }
.ladder__bar::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%); transform: translateY(-120%); animation: barScan 4s ease-in-out infinite; animation-delay: calc(var(--k, 0) * 0.35s); }
@keyframes barScan { 0% { transform: translateY(-120%); } 60%, 100% { transform: translateY(120%); } }
.ladder__bars li:nth-child(1) { --k: 0; } .ladder__bars li:nth-child(2) { --k: 1; } .ladder__bars li:nth-child(3) { --k: 2; }
.ladder__bars li:nth-child(4) { --k: 3; } .ladder__bars li:nth-child(5) { --k: 4; } .ladder__bars li:nth-child(6) { --k: 5; }
.ladder__bars b { margin-top: 8px; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; line-height: 1; }
.ladder__bars small { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.1em; color: rgba(255, 255, 255, 0.6); }
.js .ladder:not(.is-in) .ladder__bar { transform: scaleY(0.04); }

/* ---------- 12. Comparador ---------- */
.compare { background: var(--mist-100); }
.compare__panel { padding: clamp(14px, 3vw, 28px); border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.compare__tabs { position: relative; display: flex; width: min(100%, 420px); margin: 0 auto 18px; padding: 4px; border-radius: 999px; background: var(--mist-100); border: 1px solid var(--line); }
.compare__thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--navy-800); box-shadow: 0 8px 18px -8px rgba(11, 31, 74, 0.6); transition: transform 0.55s var(--ease); }
.compare__panel[data-active="rt"] .compare__thumb { transform: translateX(100%); }
.compare__tab { position: relative; z-index: 1; flex: 1; min-height: 46px; border: 0; border-radius: 999px; background: transparent; font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; color: var(--ink-2); transition: color 0.35s; }
.compare__tab[aria-selected="true"] { color: #fff; }

.compare__grid { display: grid; gap: 22px; align-items: center; }
.compare__viz { position: relative; padding: 14px; border-radius: var(--radius); background: radial-gradient(90% 80% at 50% 0%, #fff 0%, var(--mist-100) 80%); border: 1px solid var(--line); overflow: hidden; }
.compare__viz svg { width: 100%; height: auto; }
.compare__legend { display: flex; justify-content: center; gap: 8px 18px; flex-wrap: wrap; margin-top: 6px; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.dot { display: inline-block; width: 9px; height: 9px; margin-right: 6px; border-radius: 50%; vertical-align: -1px; }
.dot--on { background: var(--green-500); box-shadow: 0 0 0 3px rgba(52, 180, 98, 0.2); }
.dot--off { background: #fff; border: 1.5px dashed var(--mist-300); }

.rec__head { fill: #fff; stroke: var(--mist-300); stroke-width: 2; stroke-dasharray: 4 4; transition: fill 0.6s var(--ease), stroke 0.6s var(--ease); }
.rec__core { fill: var(--mist-300); transition: fill 0.6s var(--ease); }
.rec__stem { stroke: var(--mist-300); stroke-width: 4; stroke-linecap: round; transition: stroke 0.6s; }
.rec__label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; fill: var(--ink-3); transition: fill 0.5s; }
.rec .lig { fill: var(--mist-100); stroke: var(--navy-800); stroke-width: 2; opacity: 0; transition: opacity 0.6s; }
.rec .lig circle { fill: var(--green-500); stroke: none; }
.rec__link { stroke: var(--green-500); stroke-width: 2; stroke-dasharray: 3 5; opacity: 0; transition: opacity 0.6s; }
.rec__wave { fill: none; stroke: var(--green-500); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.rec.is-on .rec__head { fill: var(--green-100); stroke: var(--green-500); stroke-dasharray: none; }
.rec.is-on .rec__core { fill: var(--green-500); }
.rec.is-on .rec__stem { stroke: var(--navy-800); }
.rec.is-on .rec__label { fill: var(--navy-800); font-weight: 500; }
.rec.is-on .lig { opacity: 1; animation: ligBob 3s ease-in-out infinite alternate; }
.rec.is-on .rec__link { opacity: 1; animation: dashFlow 1s linear infinite; }
.rec.is-on .rec__wave { animation: wave 2.6s ease-out infinite; }
.rec.is-on .rec__wave--2 { animation-delay: 1.3s; }
@keyframes ligBob { to { transform: translateY(-7px); } }
@keyframes dashFlow { to { stroke-dashoffset: -16; } }
@keyframes wave { 0% { transform: scale(0.6); opacity: 0.7; } 100% { transform: scale(4.2); opacity: 0; } }

.compare__pane { animation: paneIn 0.7s var(--ease); }
@keyframes paneIn { from { opacity: 0; transform: translateY(14px); } }
.compare__kicker { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--green-600); margin-bottom: 8px; }
.compare__pane h3 { font-size: clamp(1.4rem, 3.4vw, 2rem); margin-bottom: 12px; }
.compare__pane p { color: var(--ink-2); }
.compare__facts { margin: 20px 0 24px; border-top: 1px solid var(--line); }
.compare__facts li { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.compare__facts span { color: var(--ink-3); }
.compare__facts b { text-align: right; font-weight: 600; }

/* ---------- 13. Kit ---------- */
.kit { background: radial-gradient(80% 50% at 15% 0%, #123277 0%, transparent 60%), var(--navy-900); color: #fff; overflow: clip; }
.kit__aurora { position: absolute; width: 560px; height: 560px; right: -200px; bottom: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(52, 180, 98, 0.32), transparent 65%); filter: blur(30px); animation: drift2 20s ease-in-out infinite alternate; pointer-events: none; }
.kit__layout { position: relative; display: grid; gap: 28px; }
.kit .section-head { margin-bottom: 0; }
.kit .section-head__lead { color: #c4d2ee; }
.kit__frame { position: relative; overflow: hidden; border-radius: var(--radius-lg); border: 1px solid rgba(255, 255, 255, 0.16); background: #000; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.75); }
.kit__frame img { width: 100%; height: auto; filter: contrast(1.1) saturate(1.05) brightness(1.12); }
.kit__frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(5, 13, 38, 0.1), rgba(5, 13, 38, 0.42)); }
.kit__scan { position: absolute; left: 0; right: 0; top: 0; z-index: 2; height: 2px; background: linear-gradient(90deg, transparent, var(--green-400), transparent); box-shadow: 0 0 18px 4px rgba(79, 209, 127, 0.5); animation: scanY 5s ease-in-out infinite; pointer-events: none; }
@keyframes scanY { 0% { top: 0; opacity: 0; } 10%, 90% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
.kit__cap { position: absolute; left: 14px; bottom: 12px; z-index: 3; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255, 255, 255, 0.8); }

.hotspot { position: absolute; z-index: 4; width: 40px; height: 40px; margin: -20px 0 0 -20px; padding: 0; border: 0; border-radius: 50%; background: transparent; }
.hotspot i { position: absolute; inset: 13px; border-radius: 50%; background: var(--green-400); box-shadow: 0 0 0 0 rgba(79, 209, 127, 0.7); animation: hsPulse 2.2s infinite; transition: background 0.3s; }
.hotspot::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.85); transition: transform 0.4s var(--ease), border-color 0.3s; }
.hotspot::before { content: attr(aria-label); position: absolute; left: 50%; bottom: calc(100% + 2px); transform: translate(-50%, 6px); padding: 5px 10px; border-radius: 8px; background: rgba(5, 13, 38, 0.9); color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 0.7rem; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.3s, transform 0.3s var(--ease); }
.hotspot.is-active i { background: #fff; }
.hotspot.is-active::after { transform: scale(1.3); border-color: var(--green-400); }
.hotspot.is-active::before { opacity: 1; transform: translate(-50%, 0); }
.hotspot[data-item="2"]::before, .hotspot[data-item="3"]::before { left: auto; right: -8px; transform: translate(0, 6px); }
.hotspot[data-item="2"].is-active::before, .hotspot[data-item="3"].is-active::before { transform: none; }
.hotspot[data-item="4"]::before, .hotspot[data-item="5"]::before { left: -8px; transform: translate(0, 6px); }
.hotspot[data-item="4"].is-active::before, .hotspot[data-item="5"].is-active::before { transform: none; }
@keyframes hsPulse { 70% { box-shadow: 0 0 0 12px rgba(79, 209, 127, 0); } 100% { box-shadow: 0 0 0 0 rgba(79, 209, 127, 0); } }

.kit__list { display: grid; gap: 10px; grid-template-columns: 1fr; }
.kit__item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); cursor: pointer; transition: background 0.35s, border-color 0.35s, transform 0.35s var(--ease); }
.kit__item:hover { transform: translateX(4px); }
.kit__item.is-active { background: rgba(79, 209, 127, 0.12); border-color: rgba(79, 209, 127, 0.55); }
.kit__ico { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 255, 255, 0.08); color: var(--green-400); font-size: 1.15rem; }
.kit__item.is-active .kit__ico { background: var(--green-500); color: var(--navy-950); }
.kit__item h3 { font-size: 1rem; margin-bottom: 2px; }
.kit__item p { font-size: 0.86rem; color: #b6c6e6; line-height: 1.4; }
.kit__cta { padding-top: 6px; }

/* ---------- 14. Imagen que se expande ---------- */
.expand { --e: 1; position: relative; background: var(--navy-950); color: #fff; }
.expand__pin { position: relative; min-height: 88vh; min-height: 88svh; display: grid; align-items: end; overflow: hidden; }
.expand__media { position: absolute; inset: 0; clip-path: inset(calc((1 - var(--e)) * 17%) calc((1 - var(--e)) * 9%) calc((1 - var(--e)) * 17%) calc((1 - var(--e)) * 9%) round calc((1 - var(--e)) * 34px)); }
.expand__media picture { display: block; width: 100%; height: 100%; }
.expand__media img { width: 100%; height: 100%; }
.expand__media img { object-fit: cover; transform: scale(calc(1.22 - var(--e) * 0.22)); }
.expand__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 13, 38, 0.1) 0%, rgba(5, 13, 38, 0.82) 100%); opacity: calc(0.25 + var(--e) * 0.75); }
.expand__copy { position: relative; z-index: 2; width: min(100% - 2 * var(--gutter), 760px); margin: 0 auto 0 max(var(--gutter), calc((100vw - var(--container)) / 2)); padding: 0 0 clamp(36px, 8vw, 90px); opacity: clamp(0, calc((var(--e) - 0.55) * 2.6), 1); transform: translateY(calc((1 - clamp(0, calc((var(--e) - 0.55) * 2.6), 1)) * 34px)); }
.expand__copy h2 { font-size: clamp(2.2rem, 7.6vw, 5rem); margin-bottom: 14px; letter-spacing: -0.035em; }
.expand__copy p { max-width: 30rem; color: #d2def5; font-size: clamp(1rem, 2.4vw, 1.2rem); }

.js .expand { --e: 0; height: 270vh; }
.js .expand__pin { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 0; }

/* ---------- 15. Proceso ---------- */
.process { background: linear-gradient(180deg, var(--mist-50), #fff 60%); }
.process__track { position: relative; padding-left: 36px; }
.process__line { position: absolute; left: 11px; top: 14px; bottom: 14px; width: 2px; border-radius: 2px; background: var(--mist-200); }
.process__line i { display: block; width: 100%; height: 100%; border-radius: inherit; background: linear-gradient(180deg, var(--green-500), var(--navy-700)); transform-origin: top; transform: scaleY(var(--lp, 0)); }
.process__steps { display: grid; gap: 16px; }
.step { position: relative; padding: 22px 22px 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: border-color 0.5s, box-shadow 0.5s, transform 0.5s var(--ease); }
.step::before { content: ""; position: absolute; left: -33px; top: 28px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid var(--mist-300); transition: all 0.5s var(--ease); }
.step.is-lit { border-color: rgba(52, 180, 98, 0.5); box-shadow: var(--shadow-md); }
.step.is-lit::before { background: var(--green-500); border-color: var(--green-500); box-shadow: 0 0 0 7px rgba(52, 180, 98, 0.18); }
.step__n { position: absolute; right: 18px; top: 10px; font-family: var(--font-display); font-weight: 800; font-size: 3.4rem; line-height: 1; letter-spacing: -0.05em; color: rgba(11, 31, 74, 0.06); }
.step__ico { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 14px; border-radius: 14px; background: var(--green-100); color: var(--green-600); font-size: 1.3rem; transition: background 0.5s, color 0.5s; }
.step.is-lit .step__ico { background: var(--navy-800); color: var(--green-400); }
.step h3 { margin-bottom: 8px; font-size: 1.15rem; }
.step p { color: var(--ink-2); font-size: 0.93rem; }

.process__facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: clamp(36px, 6vw, 64px); }
.fact { padding: 22px 18px; border-radius: var(--radius); background: var(--navy-800); color: #fff; overflow: hidden; position: relative; }
.fact::after { content: ""; position: absolute; right: -30px; bottom: -30px; width: 100px; height: 100px; border-radius: 50%; background: radial-gradient(circle, rgba(52, 180, 98, 0.45), transparent 70%); }
.fact b { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 6vw, 3rem); line-height: 1; letter-spacing: -0.04em; }
.fact span { display: block; margin-top: 8px; font-size: 0.85rem; color: #b6c6e6; }
.process__cta { margin-top: clamp(28px, 5vw, 48px); display: flex; justify-content: center; }

/* ---------- 16. Galería ---------- */
.gallery { padding-bottom: clamp(56px, 8vw, 110px); overflow: clip; }
.gallery .section-head { margin-bottom: 28px; }
.gallery__nav { display: none; gap: 10px; }
.gallery__btn { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 1.2rem; transition: background 0.3s, color 0.3s, transform 0.3s var(--ease); }
.gallery__btn:hover { background: var(--navy-800); color: #fff; transform: scale(1.06); }
.gallery__track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px var(--gutter) 26px max(var(--gutter), calc((100vw - var(--container)) / 2)); scrollbar-width: none; -webkit-overflow-scrolling: touch; cursor: grab; overscroll-behavior-x: contain; }
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__track.is-drag { cursor: grabbing; scroll-snap-type: none; }
.gallery__item { position: relative; flex: none; scroll-snap-align: center; height: clamp(300px, 70vw, 520px); border-radius: var(--radius-lg); overflow: hidden; background: var(--navy-900); cursor: zoom-in; box-shadow: var(--shadow-sm); user-select: none; -webkit-user-select: none; }
.gallery__item--wide { width: min(86vw, 720px); }
.gallery__item--tall { width: min(66vw, 380px); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.14) translateX(var(--gx, 0%)); transition: transform 0.9s var(--ease); pointer-events: none; -webkit-user-drag: none; }
.gallery__item:hover img { transform: scale(1.2) translateX(var(--gx, 0%)); }
.gallery__item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 56px 18px 16px; background: linear-gradient(0deg, rgba(5, 13, 38, 0.88), transparent); color: #fff; font-size: 0.9rem; font-weight: 500; pointer-events: none; }
.gallery__item figcaption span { display: block; margin-bottom: 2px; font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.18em; color: var(--green-400); }

.viewer { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; padding: 20px; background: rgba(5, 13, 38, 0.93); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.viewer__img { max-width: none; border-radius: 14px; object-fit: contain; background: #000; box-shadow: 0 40px 120px -20px rgba(0, 0, 0, 0.85); }
.viewer__cap { position: absolute; left: 0; right: 0; bottom: 20px; padding: 0 20px; text-align: center; font-size: 0.92rem; color: #c9d6f0; }
.viewer__close { position: absolute; top: 16px; right: 16px; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.28); background: rgba(255, 255, 255, 0.08); }
.viewer__close span { position: absolute; left: 14px; right: 14px; top: 50%; height: 2px; background: #fff; border-radius: 2px; }
.viewer__close span:first-child { transform: rotate(45deg); }
.viewer__close span:last-child { transform: rotate(-45deg); }

/* ---------- 17. Uso responsable ---------- */
.safety { background: #fff; }
.safety__grid { display: grid; gap: 16px; }
.safety__card { display: flex; flex-direction: column; gap: 12px; padding: 26px; border-radius: var(--radius-lg); background: var(--mist-50); border: 1px solid var(--line); }
.safety__card h3 { font-size: 1.2rem; }
.safety__card p { color: var(--ink-2); font-size: 0.95rem; }
.safety__note { font-size: 0.85rem !important; color: var(--ink-3) !important; }
.checklist li { position: relative; padding-left: 30px; margin-top: 10px; font-size: 0.94rem; color: var(--ink-2); }
.checklist li::before { content: ""; position: absolute; left: 0; top: 0.2em; width: 19px; height: 19px; border-radius: 50%; background: var(--green-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 12.5l3.8 3.8 7.2-8' fill='none' stroke='%23178040' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 72% no-repeat; }
.disclaimer { margin-top: 20px; padding: 22px 24px; border-radius: var(--radius); border-left: 4px solid var(--green-500); background: var(--mist-100); color: var(--ink-2); font-size: 0.93rem; }
.disclaimer strong { color: var(--ink); }

/* ---------- 18. Preguntas ---------- */
.faq { background: var(--mist-50); }
.faq__layout { display: grid; gap: 28px; }
.faq .section-head { margin-bottom: 0; }
.faq .section-head .btn { margin-top: 22px; }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 0; cursor: pointer; list-style: none; font-family: var(--font-display); font-weight: 600; font-size: 1.04rem; line-height: 1.3; transition: color 0.3s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--green-600); }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); font-size: 1.3rem; font-weight: 400; line-height: 1; transition: transform 0.4s var(--ease), background 0.3s, color 0.3s; }
.faq details[open] summary::after { transform: rotate(135deg); background: var(--navy-800); color: #fff; }
.faq__a { padding: 0 0 22px; color: var(--ink-2); max-width: 38rem; }
.faq details[open] .faq__a { animation: faqIn 0.5s var(--ease); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- 19. Contacto ---------- */
.contact { background: var(--navy-950); color: #fff; overflow: clip; }
.contact__aurora { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 50% at 90% 10%, rgba(52, 180, 98, 0.22), transparent 70%), radial-gradient(70% 60% at 0% 100%, rgba(31, 68, 159, 0.5), transparent 70%); }
.contact__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.55; pointer-events: none; }
.contact__layout { position: relative; display: grid; gap: 32px; }
.contact .section-head { margin-bottom: 0; }
.contact .section-head__lead { color: #c4d2ee; }
.contact__info { display: grid; gap: 18px; margin-top: 30px; }
.contact__info li { display: flex; gap: 14px; align-items: flex-start; }
.contact__info .ico { width: 46px; height: 46px; padding: 11px; border-radius: 14px; background: rgba(79, 209, 127, 0.14); color: var(--green-400); }
.contact__info h3 { font-size: 0.95rem; margin-bottom: 2px; }
.contact__info p, .contact__info address { color: #c4d2ee; font-size: 0.95rem; }
.link { display: inline-block; margin-top: 6px; font-weight: 600; font-size: 0.9rem; color: var(--green-400); border-bottom: 1px solid currentColor; }
.link:hover { color: #fff; }

.contact__box { padding: clamp(22px, 4vw, 38px); border-radius: var(--radius-lg); background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.16); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 40px 100px -40px rgba(0, 0, 0, 0.7); }
.form { display: grid; gap: 16px; }
.form__title { font-size: 1.4rem; margin-bottom: 2px; }
.field { display: grid; gap: 7px; }
.field-row { display: grid; gap: 16px; }
.field label { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: #aebfe2; }
.field input, .field select, .field textarea { width: 100%; padding: 0.85em 1em; border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.07); color: #fff; font-size: 1rem; transition: border-color 0.3s, background 0.3s, box-shadow 0.3s; }
.field input::placeholder, .field textarea::placeholder { color: rgba(255, 255, 255, 0.42); }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23aebfe2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.field option { color: var(--navy-800); background: #fff; }
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green-400); background: rgba(255, 255, 255, 0.1); box-shadow: 0 0 0 4px rgba(79, 209, 127, 0.18); }
.field .is-invalid { border-color: #ff8a8a; }
.form__error { padding: 10px 14px; border-radius: 12px; background: rgba(255, 120, 120, 0.14); color: #ffc9c9; font-size: 0.9rem; }
.form__note { text-align: center; font-size: 0.8rem; color: #98abd2; }
.contact__pending { display: grid; gap: 12px; justify-items: start; }
.contact__pending .ico--lg { color: var(--green-400); }
.contact__pending p { color: #c4d2ee; }

/* ---------- 20. Pie de página ---------- */
.footer { background: var(--navy-950); color: #aebcd8; padding: 64px 0 28px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.footer__grid { display: grid; gap: 36px; }
.footer__logo { max-width: 250px; padding: 10px; border-radius: 20px; background: #fff; }
.footer__logo img { width: 100%; height: auto; border-radius: 12px; }
.footer__brand p { margin-top: 16px; max-width: 26rem; font-size: 0.93rem; }
.footer h2 { margin-bottom: 14px; font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--green-400); }
.footer__nav li + li { margin-top: 8px; }
.footer__nav a { font-size: 0.95rem; transition: color 0.3s; }
.footer__nav a:hover { color: #fff; }
.footer__info address, .footer__info p { font-size: 0.95rem; margin-bottom: 8px; }
.footer__info .btn { margin-top: 10px; }
.footer__legal { display: grid; gap: 8px; margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.8rem; color: #8498c0; }

/* ---------- 21. WhatsApp flotante y navegación lateral ---------- */
.wa-float {
  position: fixed; z-index: 85;
  right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: 10px;
  height: 58px; min-width: 58px; padding: 0 17px;
  border-radius: 999px; background: var(--green-500); color: var(--navy-950);
  font-family: var(--font-display); font-weight: 700; font-size: 0.9rem;
  box-shadow: 0 16px 40px -12px rgba(52, 180, 98, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.35) inset;
  transition: transform 0.4s var(--ease), background 0.3s;
}
.wa-float:hover { transform: translateY(-3px) scale(1.03); background: var(--green-400); }
.wa-float .ico { width: 26px; height: 26px; }
.wa-float__ring { position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--green-500); opacity: 0; animation: waPulse 2.6s ease-out infinite; pointer-events: none; }
@keyframes waPulse { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(1.5); opacity: 0; } }
.wa-float__label { display: none; white-space: nowrap; }

.rail { position: fixed; right: 18px; top: 50%; z-index: 70; display: none; flex-direction: column; gap: 4px; transform: translateY(-50%); mix-blend-mode: difference; }
.rail a { position: relative; display: flex; align-items: center; justify-content: flex-end; height: 22px; }
.rail a::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; opacity: 0.45; transition: transform 0.4s var(--ease), opacity 0.3s; }
.rail a span { position: absolute; right: 22px; padding: 2px 0; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: #fff; white-space: nowrap; opacity: 0; transform: translateX(8px); transition: opacity 0.3s, transform 0.3s var(--ease); pointer-events: none; }
.rail a:hover span, .rail a.is-active span { opacity: 1; transform: none; }
.rail a:hover::after { opacity: 1; }
.rail a.is-active::after { opacity: 1; transform: scale(1.7); }

/* ---------- 22. Pantallas medianas (≥ 640 px) ---------- */
@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .field-row { grid-template-columns: 1fr 1fr; }
  .process__facts { grid-template-columns: repeat(4, 1fr); }
  .wa-float__label { display: inline; }
  .kit__list { grid-template-columns: repeat(2, 1fr); }
  .gallery__nav { display: flex; }
}

/* ---------- 23. Tabletas y escritorio (≥ 900 px) ---------- */
@media (min-width: 900px) {
  :root { --header-h: 76px; }
  .hud--tl, .hud--tr { top: calc(var(--header-h) + 14px); }

  .hero { padding-bottom: 96px; }
  .hero__layout { grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr); gap: 32px; }
  .hero__copy { order: 1; }
  .hero__stage { order: 2; width: min(100%, 640px); margin: 0 0 0 auto; }
  .hero__title { font-size: clamp(3rem, 5.2vw, 5.1rem); }
  .hero__actions .btn { flex: 0 0 auto; }
  .chip { padding: 9px 14px 9px 26px; }
  .chip b { font-size: 0.88rem; }
  .chip small { font-size: 0.64rem; }
  .chip::before { left: 11px; }
  .scroll-cue { display: flex; }

  .story__layout { flex-direction: column; }
  .js .story__layout { padding-top: calc(var(--header-h) + 34px); padding-bottom: 28px; }
  .js .story__steps { width: min(100%, 440px); height: 226px; }
  .story__head h2 { max-width: 12em; }
  .story__rail { max-width: 540px; }

  .cards { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .ladder { grid-template-columns: 1fr 1.1fr; align-items: center; }
  .ladder__bars { height: 270px; }

  .compare__grid { grid-template-columns: 1.05fr 0.95fr; gap: 40px; padding: 10px 10px 6px; }
  .compare__panel { padding-top: 28px; }

  .kit__layout { grid-template-columns: 1.02fr 0.98fr; grid-template-areas: "head frame" "list frame" "cta frame"; column-gap: clamp(32px, 5vw, 72px); align-items: start; }
  .kit .section-head { grid-area: head; }
  .kit__frame { grid-area: frame; position: sticky; top: 100px; }
  .kit__list { grid-area: list; grid-template-columns: 1fr 1fr; }
  .kit__cta { grid-area: cta; }

  .process__track { padding: 40px 0 0; }
  .process__line { left: 0; right: 0; top: 11px; bottom: auto; width: auto; height: 2px; }
  .process__line i { transform-origin: left; transform: scaleX(var(--lp, 0)); }
  .process__steps { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .step::before { left: 24px; top: -36px; }

  .safety__grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .faq__layout { grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
  .faq .section-head { position: sticky; top: 110px; }
  .contact__layout { grid-template-columns: 1fr 1fr; align-items: start; gap: clamp(32px, 6vw, 90px); }
  .footer__grid { grid-template-columns: 1.3fr 0.7fr 1fr; gap: 56px; }
  .footer__legal { grid-template-columns: 1fr auto; gap: 24px; }

  .gallery__item { height: clamp(360px, 38vw, 540px); }
}

/* ---------- 24. Escritorio amplio (≥ 1060 px) ---------- */
@media (min-width: 1060px) {
  .js .nav, .nav {
    position: static; inset: auto; z-index: auto;
    display: flex; flex-direction: row; align-items: center; justify-content: flex-end; gap: 26px;
    padding: 0; background: none; color: inherit;
    transform: none; visibility: visible; transition: none;
  }
  .nav__list { display: flex; gap: 22px; }
  .nav__list a { position: relative; padding: 6px 0; font-family: var(--font-body); font-weight: 600; font-size: 0.88rem; letter-spacing: 0; opacity: 1; }
  .nav__list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--green-500); transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease); }
  .nav__list a:hover { color: inherit; }
  .nav__list a:hover::after { transform: scaleX(1); }
  .nav__cta { align-self: auto; }
  .burger { display: none; }
}

/* ---------- 25. Escritorio grande (≥ 1180 px) ---------- */
@media (min-width: 1180px) {
  .cards { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .rail { display: flex; }
  .card__body h3 { font-size: 1.3rem; }
}

/* ---------- 26. Preferencias de movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js [data-reveal] { opacity: 1; translate: 0 0; scale: 1; }
  .js [data-split] .wi { transform: none; }
  .marquee__track { animation: none; }
  .js .story { height: auto; padding: 88px 0 72px; }
  .js .story__pin { position: relative; height: auto; overflow: visible; }
  .js .story__canvas, .js .story__vignette { display: none; }
  .js .story__layout { height: auto; padding: 0; }
  .js .story__steps { display: grid; height: auto; margin-top: 36px; gap: 14px; width: auto; }
  .js .story-step { position: static; opacity: 1; transform: none; pointer-events: auto; }
  .js .story__rail { display: none; }
  .js .expand { height: auto; --e: 1; }
  .js .expand__pin { position: relative; height: auto; min-height: 88vh; }
  .js .ladder:not(.is-in) .ladder__bar { transform: none; }
}
