@import url("tokens/colors.css");
@import url("tokens/typography.css");
@import url("tokens/spacing.css");
@import url("tokens/radius.css");
@import url("tokens/elevation.css");
@import url("tokens/motion.css");
@import url("tokens/base.css");

:root {
  --nav-h: 72px;
  --wrap: 1320px;
  --pad: clamp(20px, 5vw, 72px);
}

html { background: var(--void-black); }
[hidden] { display: none !important; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { overflow-x: hidden; font-weight: 400; }
::selection { background: rgba(255, 31, 200, .35); }
img, video { display: block; max-width: 100%; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }

/* ---------- escenario ---------- */
#stage { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; display: block; }
.fallback-bg { position: fixed; inset: 0; z-index: 0; display: none;
  background: linear-gradient(90deg, rgba(11,12,16,.92), rgba(11,12,16,.4)), url("../assets/img/mi-action-03-prism-fracture.jpg") center/cover; }
.no-gl #stage { display: none; }
.no-gl .fallback-bg { display: block; }
.grain { position: fixed; inset: -50%; z-index: 60; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></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(-4%,3%)} 40%{transform:translate(3%,-5%)} 60%{transform:translate(-2%,6%)} 80%{transform:translate(5%,-2%)} 100%{transform:translate(0,0)} }

main, .footer { position: relative; z-index: 2; }

/* ---------- tipografía ---------- */
.eyebrow { font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--text-muted);
  display: inline-flex; align-items: center; gap: 12px; margin: 0; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--spectrum-horizontal); }
.eyebrow--magenta { color: #ff8ee3; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 12px var(--c); margin-right: -2px; }
h1, h2, h3 { color: var(--text-strong); text-wrap: balance; }
h2 { font-size: clamp(2.3rem, 4.8vw, 4.4rem); letter-spacing: -0.03em; line-height: 1.02; }
.lead { font-size: clamp(1.05rem, 1.3vw, 1.2rem); line-height: 1.6; color: var(--text-muted); max-width: 48ch; font-weight: 300; }
.grad, .hot { background: var(--spectrum-horizontal); -webkit-background-clip: text; background-clip: text; color: transparent; }
.shadowed { text-shadow: 0 2px 30px rgba(11,12,16,.9); }

/* ---------- botones ---------- */
.btn { --h: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: var(--h); padding: 0 22px;
  border-radius: var(--radius-pill); font: 500 14.5px/1 var(--font-body); color: var(--text-strong); text-decoration: none; border: 0; cursor: pointer;
  transition: var(--transition-control), transform var(--dur-base) var(--ease-out); white-space: nowrap; }
.btn:hover { color: var(--text-strong); }
.btn--sm { --h: 36px; padding: 0 16px; font-size: 13.5px; }
.btn--lg { --h: 54px; padding: 0 28px; font-size: 15.5px; }
.btn--full { width: 100%; }
.btn--primary { background: var(--signal-magenta); color: #0b0c10; box-shadow: var(--glow-magenta); }
.btn--primary:hover { background: var(--accent-primary-hover); color: #0b0c10; }
.btn--primary:active { background: var(--accent-primary-press); }
.btn--spectrum { background: var(--spectrum); color: #fff; box-shadow: 0 10px 40px -10px rgba(139,47,245,.7); }
.btn--spectrum:hover { filter: brightness(1.12); }
.btn--secondary { background: rgba(245,243,240,.05); box-shadow: inset 0 0 0 1px var(--border-strong); backdrop-filter: blur(10px); }
.btn--secondary:hover { background: rgba(245,243,240,.1); }
.btn:disabled { opacity: .5; cursor: not-allowed; filter: none; }
.tag { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; padding: 5px 9px; border-radius: 4px; color: var(--neon-cyan);
  box-shadow: inset 0 0 0 1px rgba(24,220,255,.35); }

/* ---------- nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--nav-h); display: flex; align-items: center; gap: 32px;
  padding: env(safe-area-inset-top, 0) var(--pad) 0; background: linear-gradient(to bottom, rgba(11,12,16,.8), rgba(11,12,16,0));
  transition: background var(--dur-base), backdrop-filter var(--dur-base); }
.nav.is-solid { background: rgba(11,12,16,.72); backdrop-filter: blur(14px); box-shadow: inset 0 -1px 0 var(--border-hairline); }
.nav__logo img { height: 30px; width: auto; }
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a { font-size: 13.5px; color: var(--text-muted); text-decoration: none; position: relative; padding: 6px 0; }
.nav__links a:hover, .nav__links a.is-on { color: var(--text-strong); }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--spectrum-horizontal);
  transform: scaleX(0); transform-origin: left; transition: transform var(--dur-slow) var(--ease-out); }
.nav__links a.is-on::after { transform: scaleX(1); }
.nav__burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; position: relative; }
.nav__burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: #fff; transition: transform var(--dur-base) var(--ease-out); }
.nav__burger span:first-child { top: 17px; } .nav__burger span:last-child { top: 26px; }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
.menu { position: fixed; inset: 0; z-index: 45; background: rgba(5,6,9,.94); backdrop-filter: blur(20px); display: flex; flex-direction: column;
  justify-content: center; gap: 8px; padding: var(--pad); }
.menu a { font: 600 clamp(2rem, 9vw, 3rem)/1.15 var(--font-display); letter-spacing: -0.03em; color: var(--text-strong); text-decoration: none; }

/* lectura de capítulo */
.readout { position: fixed; left: var(--pad); bottom: 22px; z-index: 40; display: flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--text-subtle); pointer-events: none; }
.readout__bar { width: 90px; height: 1px; background: var(--fog-2); position: relative; overflow: hidden; }
.readout__bar i { position: absolute; inset: 0; background: var(--spectrum-horizontal); transform-origin: left; transform: scaleX(0); }
.readout__n { color: var(--text-strong); }

/* ---------- capítulos ---------- */
.ch { position: relative; }
.pin { height: 100vh; height: 100svh; }
.pin__stage { position: relative; height: 100%; overflow: hidden; }

/* HERO */
.hero { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding-top: var(--nav-h); }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,12,16,.75) 0%, rgba(11,12,16,.25) 50%, transparent 70%); pointer-events: none; }
.hero__inner { position: relative; padding-bottom: 90px; }
.hero__title { font-size: clamp(2.7rem, 6.2vw, 6rem); letter-spacing: -0.035em; line-height: 1; max-width: 13.5ch; margin: 22px 0 26px; }
.hero__title .ln { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero__title .ln > span { display: inline-block; }
.hero__cycle { display: inline-block; position: relative; }
.hero__word { display: inline-block; background: var(--spectrum-horizontal); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { max-width: 44ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.ticker { position: absolute; left: 0; right: 0; bottom: 0; height: 52px; overflow: hidden; border-top: 1px solid var(--border-hairline);
  display: flex; align-items: center; background: rgba(11,12,16,.35); backdrop-filter: blur(6px); }
.ticker__track { display: flex; gap: 56px; white-space: nowrap; animation: tick 38s linear infinite; padding-left: 56px; }
.ticker__track span { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-muted); display: inline-flex; align-items: center; gap: 56px; }
.ticker__track span::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--neon-cyan); box-shadow: 0 0 10px var(--neon-cyan); }
@keyframes tick { to { transform: translateX(-50%); } }
.scrollcue { position: absolute; right: var(--pad); bottom: 78px; width: 1px; height: 64px; background: var(--fog-2); overflow: hidden; }
.scrollcue i { position: absolute; left: 0; right: 0; top: 0; height: 40%; background: var(--spectrum-vertical); animation: cue 2.2s var(--ease-out) infinite; }
@keyframes cue { from { transform: translateY(-100%); } to { transform: translateY(260%); } }

/* DIAGNÓSTICO */
.diag__grid { height: 100%; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; padding-top: var(--nav-h); }
.diag__title { margin-top: 18px; max-width: 11ch; }
.meter { margin-top: 40px; max-width: 300px; }
.meter__row { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); }
.meter__row b { color: var(--text-strong); font-weight: 500; }
.meter__segs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 12px; }
.meter__segs i { height: 3px; border-radius: 2px; background: var(--fog-2); position: relative; overflow: hidden; }
.meter__segs i::after { content: ""; position: absolute; inset: 0; background: var(--spectrum-horizontal); transform: scaleX(var(--on, 0)); transform-origin: left; }
.diag__stack { position: relative; display: grid; isolation: isolate; }
.diag__stack::before { content: ""; position: absolute; inset: -18% -12%; z-index: -1; background: radial-gradient(closest-side, rgba(11,12,16,.78), rgba(11,12,16,.5) 60%, transparent); pointer-events: none; }
.symptom { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 18px; padding: clamp(16px, 2.6vh, 28px) 0; border-top: 1px solid var(--border-default); }
.symptom:last-child { border-bottom: 1px solid var(--border-default); }
.symptom__n { font: 500 12px var(--font-mono); letter-spacing: .18em; color: var(--neon-cyan); padding-top: .55em; grid-row: span 2; }
.symptom__q { font: 500 clamp(1.3rem, 2.2vw, 2rem)/1.14 var(--font-display); letter-spacing: -0.02em; color: var(--text-strong); margin: 0 0 8px; text-wrap: balance; }
.symptom__a { font-size: clamp(.95rem, 1.1vw, 1.05rem); color: var(--text-muted); max-width: 46ch; font-weight: 300; margin: 0; }
.verdict { position: absolute; inset: 0; margin: 0 auto; display: flex; flex-direction: column; justify-content: center; }
.verdict__a { font: 500 clamp(1.4rem, 2.4vw, 2.1rem)/1.2 var(--font-display); color: var(--text-muted); max-width: 26ch; letter-spacing: -0.02em; }
.verdict__b { font: 600 clamp(2.6rem, 6.4vw, 6rem)/1 var(--font-display); letter-spacing: -0.035em; color: var(--text-strong); margin-top: 22px; }

/* PRISMA */
.prisma__inner { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 12vh; }
.prisma__title { font-size: clamp(3rem, 8vw, 7.6rem); letter-spacing: -0.04em; line-height: .96; margin: 22px 0 26px; }
.prisma__title .w { display: inline-block; }
.prisma__scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(11,12,16,.85), transparent 55%); pointer-events: none; }
.prisma__inner { position: relative; }

/* SERVICIOS */
.svc__track { display: flex; height: 100%; width: max-content; }
.svc { width: 100vw; height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 6vw, 96px);
  padding: calc(var(--nav-h) + 20px) var(--pad) 110px calc(var(--pad) + 4vw); }
.svc__t { font-size: clamp(2.4rem, 5vw, 4.6rem); letter-spacing: -0.035em; line-height: 1; margin: 20px 0; }
.svc__d { font-size: clamp(1rem, 1.25vw, 1.15rem); color: var(--text-muted); max-width: 40ch; font-weight: 300; line-height: 1.6; }
.svc__list { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 0; max-width: 420px; }
.svc__list li { padding: 11px 0; border-top: 1px solid var(--border-hairline); font-size: 14.5px; color: var(--text-body); display: flex; align-items: center; gap: 12px; }
.svc__list li::before { content: ""; width: 14px; height: 1px; background: var(--c); box-shadow: 0 0 8px var(--c); }
.svc__media { position: relative; aspect-ratio: 1; max-height: 64vh; justify-self: center; width: min(100%, 64vh); border-radius: 20px; overflow: hidden;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 45%, transparent), 0 30px 120px -30px var(--c); }
.svc__media video { width: 100%; height: 100%; object-fit: cover; }
.svc__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(11,12,16,.5), transparent 40%); }
.svc__band { position: absolute; left: 0; right: 0; bottom: 26px; margin: 0 auto; display: flex; align-items: center; justify-content: flex-start; gap: 28px; }
.svc__band p { margin: 0; font: 500 15px var(--font-body); color: var(--text-strong); }
.svc__band p span { color: var(--text-muted); font-weight: 300; margin-left: 6px; }

/* MOTOR */
.motor__head { position: absolute; top: calc(var(--nav-h) + 3vh); left: 0; right: 0; margin: 0 auto; }
.motor__head h2 { margin-top: 16px; max-width: 16ch; }
.motor__a { position: absolute; inset: 0; }
.motor__acopy { position: absolute; left: 0; right: 0; bottom: 8vh; margin: 0 auto; }
.motor__acopy h3, .motor__bcopy h3 { font-size: clamp(1.4rem, 2vw, 1.8rem); }
.motor__acopy p, .motor__bcopy p { color: var(--text-muted); margin-top: 10px; max-width: 46ch; font-weight: 300; line-height: 1.6; }
.gates { position: absolute; left: 0; right: 0; top: 50%; height: 0; }
.gate { position: absolute; top: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; text-align: center; width: 22vw; max-width: 240px; }
.gate:nth-child(1) { left: 17%; } .gate:nth-child(2) { left: 39%; } .gate:nth-child(3) { left: 61%; } .gate:nth-child(4) { left: 83%; }
.gate__tick { position: absolute; top: -34px; width: 1px; height: 68px; background: linear-gradient(to bottom, transparent, rgba(255,31,200,.9), transparent); }
.gate__tick::after { content: ""; position: absolute; left: -4px; top: 30px; width: 9px; height: 9px; border-radius: 50%; border: 1px solid #ff8ee3; background: #0b0c10; }
.gate__l { position: absolute; bottom: 46px; font: 500 11px var(--font-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--text-muted); white-space: nowrap; }
.gate__n { position: absolute; top: 46px; font: 600 clamp(2.4rem, 4.4vw, 4rem)/1 var(--font-display); letter-spacing: -0.03em; color: var(--text-strong); font-variant-numeric: tabular-nums; }
.gate__who { position: absolute; top: calc(46px + clamp(2.4rem, 4.4vw, 4rem) + 12px); font: 400 11px var(--font-mono); color: var(--text-subtle); white-space: nowrap; letter-spacing: .04em; }
.gate--won .gate__n { color: #ff8ee3; text-shadow: 0 0 30px rgba(255,31,200,.6); }
.motor__b { position: absolute; left: 0; right: 0; top: 0; bottom: 0; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 60px; align-items: end; padding-bottom: 7vh; padding-top: 30vh; }
.checks { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 10px; }
.checks li { display: flex; gap: 12px; align-items: center; font-size: 14.5px; }
.checks li::before { content: ""; width: 16px; height: 1px; background: var(--signal-magenta); box-shadow: 0 0 8px var(--signal-magenta); }
.chat { border-radius: 20px; background: rgba(16,18,23,.78); backdrop-filter: blur(16px); box-shadow: inset 0 0 0 1px var(--border-default), var(--shadow-raised); overflow: hidden; }
.chat__head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border-hairline); }
.chat__ava { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(24,220,255,.1); box-shadow: inset 0 0 0 1px rgba(24,220,255,.3); }
.chat__ava img { width: 17px; filter: invert(1); opacity: .9; }
.chat__who { display: flex; flex-direction: column; flex: 1; font-size: 14px; }
.chat__who span { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.live { width: 6px; height: 6px; border-radius: 50%; background: var(--neon-cyan); box-shadow: 0 0 8px var(--neon-cyan); }
.chat__body { padding: 18px 16px; display: flex; flex-direction: column; gap: 8px; min-height: 330px; justify-content: flex-end; }
.bubble { max-width: 82%; padding: 9px 13px 20px; border-radius: 14px; font-size: 14px; line-height: 1.42; position: relative; }
.bubble time { position: absolute; right: 10px; bottom: 5px; font: 10px var(--font-mono); color: var(--text-subtle); }
.bubble[data-from="them"] { align-self: flex-start; background: rgba(245,243,240,.07); border-bottom-left-radius: 4px; }
.bubble[data-from="bot"] { align-self: flex-end; background: linear-gradient(135deg, rgba(139,47,245,.34), rgba(255,31,200,.26)); box-shadow: inset 0 0 0 1px rgba(255,31,200,.25); border-bottom-right-radius: 4px; }
.chat__foot { padding: 12px 16px; border-top: 1px solid var(--border-hairline); font: 11px var(--font-mono); letter-spacing: .06em; color: var(--text-muted); }
.chat__foot b { color: var(--neon-cyan); font-weight: 500; }

/* IA */
.ia__inner { height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 5vh; padding-top: var(--nav-h); }
.ia__head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px 60px; align-items: end; }
.ia__head .eyebrow { grid-column: 1 / -1; }
.ia__head h2 { font-size: clamp(2.1rem, 4vw, 3.8rem); }
.ia__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.frame h3 { font-size: 1.15rem; margin-top: 8px; }
.frame > p:last-child { color: var(--text-muted); font-size: 14px; margin-top: 6px; font-weight: 300; }
.frame__media { position: relative; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--border-default); }
.frame__media img, .frame__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; clip-path: inset(0 0 var(--hide, 100%) 0); }
.frame__media video { opacity: 0; transition: opacity .8s; }
.frame__media video.is-on { opacity: 1; }
.frame__scan { position: absolute; left: 0; right: 0; height: 2px; top: calc(100% - var(--hide, 100%)); background: var(--spectrum-horizontal);
  box-shadow: 0 0 24px 4px rgba(24,220,255,.55); opacity: var(--scan, 0); }
.frame__prompt { margin: 14px 0 0; font: 11.5px/1.5 var(--font-mono); color: var(--text-muted); min-height: 3em; }
.frame__prompt b { color: #ff8ee3; font-weight: 500; margin-right: 6px; text-transform: uppercase; letter-spacing: .12em; font-size: 10.5px; }
.frame__prompt span::after { content: "▍"; color: var(--neon-cyan); margin-left: 2px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* CTA */
.cta__inner { height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 48px; padding-top: var(--nav-h); }
.cta__statement { font-size: clamp(2.4rem, 5.6vw, 5.6rem); letter-spacing: -0.035em; line-height: 1.02; max-width: 17ch; }
.cta__statement .word { display: inline-block; opacity: .14; }
.cta__foot { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.cta__foot p { color: var(--text-muted); max-width: 42ch; margin: 0; font-weight: 300; }
.cta::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,12,16,.8) 10%, transparent 70%); pointer-events: none; }

/* PROCESO */
.proceso__head { position: absolute; top: calc(var(--nav-h) + 3vh); left: 0; right: 0; margin: 0 auto; }
.proceso__head h2 { margin-top: 16px; }
.steps { position: absolute; inset: 0; }
.step { position: absolute; width: min(270px, 24vw); padding: 18px 20px; border-radius: 14px; background: rgba(16,18,23,.72); backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px var(--border-default); transform: translate(-50%, 0); }
.step[data-below="false"] { transform: translate(-50%, -100%); }
.step__n { font: 500 11px var(--font-mono); letter-spacing: .18em; color: var(--c); }
.step h3 { font-size: 1.2rem; margin: 8px 0 6px; }
.step p { font-size: 13.5px; color: var(--text-muted); line-height: 1.5; font-weight: 300; }

/* RESULTADOS */
.res__head { position: absolute; top: calc(var(--nav-h) + 3vh); left: 0; right: 0; margin: 0 auto; }
.res__head h2 { margin-top: 16px; }
.bars { position: absolute; inset: 0; }
.bar { position: absolute; transform: translate(-50%, calc(-100% - 18px)); display: flex; flex-direction: column; align-items: center; text-align: center; width: 20vw; max-width: 240px; }
.bar__v { font: 600 clamp(2.2rem, 4.6vw, 4.4rem)/1 var(--font-display); letter-spacing: -0.035em; color: var(--text-strong); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bar__l { font: 500 11px var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--text-body); margin-top: 12px; }
.bar__s { font-size: 12.5px; color: var(--text-muted); margin-top: 6px; line-height: 1.4; font-weight: 300; }

.quotes { padding: 18vh 0; }
.quotes .wrap { display: grid; gap: 14vh; }
.quote { margin: 0; max-width: min(100%, 980px); }
.quote--r { justify-self: end; text-align: right; }
.quote--r blockquote { margin-left: auto; }
.quote blockquote { margin: 0; max-width: 30ch; font: 500 clamp(1.8rem, 3.6vw, 3.4rem)/1.1 var(--font-display); letter-spacing: -0.025em; color: var(--text-strong); }
.quote figcaption { margin-top: 20px; font: 500 11px var(--font-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--text-muted); }
.quote--r figcaption { display: flex; justify-content: flex-end; }

/* FORMACIÓN */
.formacion { padding: 14vh 0; }
.formacion::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,12,16,.85) 20%, rgba(11,12,16,.4)); pointer-events: none; }
.form__head h2 { margin: 18px 0 20px; max-width: 16ch; }
.learn { list-style: none; padding: 0; margin: 60px 0 0; }
.learn li { display: grid; grid-template-columns: 80px minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px; align-items: baseline; padding: 30px 0; border-top: 1px solid var(--border-default); position: relative; }
.learn li::before { content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 100%; background: var(--spectrum-horizontal); transform: scaleX(var(--w, 0)); transform-origin: left; }
.learn__n { font: 500 12px var(--font-mono); letter-spacing: .18em; color: var(--text-subtle); }
.learn h3 { font-size: clamp(1.5rem, 2.6vw, 2.3rem); letter-spacing: -0.025em; }
.learn p { color: var(--text-muted); font-weight: 300; }

/* CONTACTO */
.contacto { padding: calc(var(--nav-h) + 12vh) 0 14vh; }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 64px; align-items: start; }
.contact__copy h2 { margin: 18px 0 20px; max-width: 14ch; }
.chans { margin-top: 38px; display: grid; }
.chan { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-top: 1px solid var(--border-hairline); color: var(--text-body); text-decoration: none; }
.chan:last-child { border-bottom: 1px solid var(--border-hairline); }
.chan img { width: 18px; filter: invert(1); opacity: .8; }
.chan span { display: flex; flex-direction: column; flex: 1; }
.chan small { color: var(--text-muted); font-size: 13px; }
.chan i { font-style: normal; color: var(--text-muted); transition: transform var(--dur-base) var(--ease-out), color var(--dur-fast); }
.chan:hover { color: var(--text-strong); } .chan:hover i { transform: translateX(6px); color: var(--signal-magenta); }
.card { background: rgba(22,24,29,.66); backdrop-filter: blur(18px); border-radius: var(--radius-card); box-shadow: inset 0 0 0 1px var(--border-default), var(--shadow-card); padding: 30px; }
.form { display: flex; flex-direction: column; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field > span { font-size: 12px; font-weight: 500; color: var(--text-muted); }
.field input, .field select, .field textarea { font: 400 15px var(--font-body); color: var(--text-strong); background: var(--surface-input); border: 1px solid var(--border-default);
  border-radius: var(--radius-field); padding: 12px 14px; outline: none; transition: var(--transition-control); width: 100%; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #aaa 50%), linear-gradient(135deg, #aaa 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.field select option { background: #16181d; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-disabled); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--neon-cyan); box-shadow: 0 0 0 3px rgba(24,220,255,.14); }
.field.is-bad input { border-color: var(--signal-magenta); }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.check input { appearance: none; width: 18px; height: 18px; margin: 2px 0 0; border-radius: 5px; border: 1px solid var(--border-strong); flex: none; display: grid; place-items: center; cursor: pointer; }
.check input:checked { background: var(--signal-magenta); border-color: var(--signal-magenta); }
.check input:checked::after { content: ""; width: 8px; height: 4px; border: 2px solid #0b0c10; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.check span { display: flex; flex-direction: column; font-size: 14px; } .check small { color: var(--text-muted); font-size: 12.5px; }
.form__error { margin: 0; font-size: 13.5px; color: #ff8ee3; }
.form__ok b { font: 600 1.6rem var(--font-display); color: var(--text-strong); }
.form__ok p { color: var(--text-muted); margin-top: 10px; }
.form__ok::before { content: ""; display: block; width: 44px; height: 3px; background: var(--spectrum-horizontal); margin-bottom: 20px; }

/* FOOTER */
.footer { padding: 70px 0 110px; background: rgba(5,6,9,.9); box-shadow: inset 0 1px 0 var(--border-hairline); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
.footer__logo { height: 30px; width: auto; margin-bottom: 18px; }
.footer p { color: var(--text-subtle); font-size: 13.5px; max-width: 38ch; }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col span { font: 500 11px var(--font-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--text-subtle); margin-bottom: 4px; }
.footer__col a { color: var(--text-muted); font-size: 14px; text-decoration: none; } .footer__col a:hover { color: var(--signal-magenta); }
.rule { height: 1px; background: var(--spectrum-horizontal); opacity: .6; margin: 44px 0 20px; }
.footer__bar { display: flex; justify-content: space-between; font: 11px var(--font-mono); letter-spacing: .1em; color: var(--text-subtle); }

.fab { position: fixed; right: 20px; bottom: 20px; z-index: 55; display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 20px 0 16px;
  border-radius: var(--radius-pill); background: var(--signal-magenta); color: #0b0c10; font: 600 14px var(--font-body); text-decoration: none; box-shadow: var(--glow-magenta);
  transition: transform var(--dur-slow) var(--ease-out), opacity var(--dur-base); }
.fab img { width: 18px; }
.fab:hover { color: #0b0c10; background: var(--accent-primary-hover); }
.fab[data-hidden="true"] { transform: translateY(140%); opacity: 0; pointer-events: none; }

/* ---------- móvil ---------- */
@media (max-width: 900px) {
  :root { --nav-h: 62px; }
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .readout { display: none; }
  .hero { align-items: flex-end; }
  .hero::before { background: linear-gradient(to top, rgba(11,12,16,.92) 30%, rgba(11,12,16,.2) 75%, transparent); }
  .hero__inner { padding-bottom: 88px; }
  .hero__title { font-size: clamp(2.3rem, 10.5vw, 3.6rem); }
  .hero__cta .btn { flex: 1 1 auto; }
  .scrollcue { display: none; }

  .diag__grid { grid-template-columns: 1fr; gap: 0; align-content: center; padding-top: calc(var(--nav-h) + 16px); }
  .meter { margin-top: 20px; }
  .diag__title { font-size: 2.2rem; }
  .symptom { grid-template-columns: 34px minmax(0, 1fr); padding: 12px 0; }
  .symptom__q { font-size: 1.15rem; } .symptom__a { font-size: .88rem; }
  .verdict__b { font-size: 2.6rem; }

  .servicios.pin { height: auto; }
  .servicios .pin__stage { overflow: visible; }
  .svc__track { flex-direction: column; width: 100%; }
  .svc { width: 100%; height: auto; grid-template-columns: 1fr; padding: 12vh var(--pad) 4vh; gap: 28px; }
  .svc__media { order: -1; width: 100%; max-height: none; }
  .svc__band { position: relative; bottom: auto; flex-direction: column; align-items: flex-start; padding-block: 4vh 12vh; }

  .gate { width: 25vw; }
  .gate:nth-child(1) { left: 12.5%; } .gate:nth-child(2) { left: 37.5%; } .gate:nth-child(3) { left: 62.5%; } .gate:nth-child(4) { left: 87.5%; }
  .gate__l { font-size: 9px; letter-spacing: .1em; }
  .gate__n { font-size: 2rem; }
  .gate__who { display: none; }
  .motor__head h2 { font-size: 2.2rem; }
  .motor__b { grid-template-columns: 1fr; gap: 20px; padding-top: calc(var(--nav-h) + 16px); align-content: end; align-items: end; }
  .motor__bcopy .checks, .motor__bcopy .btn { display: none; }
  .chat__body { min-height: 0; }
  .bubble { font-size: 13px; }

  .ia.pin { height: auto; }
  .ia .pin__stage { overflow: visible; }
  .ia__inner { padding-block: 14vh; }
  .ia__head, .ia__grid { grid-template-columns: 1fr; }
  .ia__grid { gap: 48px; }

  .cta__statement { font-size: 2.5rem; }

  .step { width: 44vw; padding: 12px 14px; }
  .step h3 { font-size: 1rem; } .step p { font-size: 12px; }
  .bar { width: 24vw; }
  .bar__v { font-size: 1.7rem; }
  .bar__l { font-size: 8.5px; letter-spacing: .08em; }
  .bar__s { display: none; }

  .learn li { grid-template-columns: 1fr; gap: 8px; }
  .contact__grid, .footer__grid { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .card { padding: 22px; }
  .footer__bar { flex-direction: column; gap: 8px; }
}

/* ---------- movimiento reducido ---------- */
.rm .pin { height: auto; }
.rm .pin__stage { overflow: visible; }
.rm .diag__stack { padding-block: 8vh; }
.rm .symptom, .rm .verdict { position: static; }
.rm .grain, .rm .ticker__track, .rm .scrollcue i { animation: none; }
.rm .svc__track { flex-direction: column; width: 100%; }
.rm .svc { width: 100%; }
.rm .motor__head, .rm .motor__a, .rm .motor__acopy, .rm .proceso__head, .rm .res__head { position: relative; top: auto; bottom: auto; }
.rm .motor__b { position: relative; padding-block: 6vh; }
.rm .gates, .rm .bars { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; height: auto; padding: 60px var(--pad); }
.rm .gate, .rm .bar { position: relative; left: auto !important; top: auto !important; transform: none; width: auto; }
.rm .gate > *, .rm .gate__tick { position: static; }
.rm .steps { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; padding: 40px var(--pad) 80px; }
.rm .step { position: static; transform: none; width: auto; }
.rm .frame__media { --hide: 0%; }
.rm .cta__statement .word { opacity: 1; }
