/* tudesarrolloweb · hoja principal
   Tres ambientes (oscuro, claro, ácido) que el body cambia al hacer scroll.
   Sin JS cada sección pinta su propio fondo (ver .no-js al final). */

@font-face { font-family: "Geist"; src: url("../fonts/geist.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/geist-mono.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  /* Paleta «Menta»: se cambia AQUÍ y en ningún otro sitio (los lienzos y el WebGL leen estas variables) */
  --ink: #0d1012;           /* fondo oscuro */
  --ink-2: #151a1d;
  --paper: #eef1ed;         /* texto claro y fondo de las secciones claras */
  --accent: #8ee0bd;        /* botones, cursiva de portada, lupa, detalles */
  --accent-soft: #cfeee0;   /* fondos grandes: menú móvil y última carta del proceso */
  --accent-2: #a7a0ff;      /* secundario de los visuales */
  --c-ms: #7cb8f0;          /* categorías de tecnologías */
  --c-game: #f29a7f;
  --c-gen: #ecb3dc;          /* IA generativa */
  --danger: #ff8a7a;        /* errores del formulario y la terminal */

  --bg: var(--ink);
  --fg: var(--paper);
  --muted: color-mix(in srgb, var(--paper) 56%, var(--ink));
  --line: color-mix(in srgb, var(--paper) 14%, transparent);
  --card: color-mix(in srgb, var(--paper) 4%, transparent);

  --f-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-serif: "Instrument Serif", "Times New Roman", Georgia, serif;
  --f-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --pad: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.77, 0, .175, 1);
}

body[data-bg="light"] { --bg: var(--paper); --fg: var(--ink); --muted: color-mix(in srgb, var(--ink) 66%, var(--paper)); --line: color-mix(in srgb, var(--ink) 14%, transparent); --card: color-mix(in srgb, var(--ink) 4%, transparent); }
body[data-bg="accent"] { --bg: var(--accent-soft);  --fg: var(--ink); --muted: color-mix(in srgb, var(--ink) 62%, transparent); --line: color-mix(in srgb, var(--ink) 22%, transparent); --card: color-mix(in srgb, var(--ink) 6%, transparent); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  transition: background-color .7s var(--ease), color .7s var(--ease);
}
::selection { background: var(--accent); color: var(--ink); }
img, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.mono { font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .02em; text-transform: uppercase; }
.serif { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.accent { color: var(--accent); }
body[data-bg="light"] .accent, body[data-bg="accent"] .accent { color: inherit; }

.skip { position: fixed; left: 12px; top: -60px; z-index: 300; background: var(--accent); color: var(--ink); padding: 10px 14px; border-radius: 8px; font-weight: 600; text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
body[data-bg="accent"] :focus-visible, body[data-bg="light"] :focus-visible { outline-color: var(--ink); }

.label { display: flex; gap: .9em; align-items: center; color: var(--muted); margin-bottom: clamp(18px, 3vw, 32px); }
.label span { color: var(--fg); }
.h2 { font-size: clamp(2.3rem, 6.2vw, 6.4rem); line-height: .95; letter-spacing: -.045em; font-weight: 600; max-width: 14ch; }
.h2 .serif { font-weight: 400; letter-spacing: -.02em; }

/* ───────── Cargador ───────── */
.loader { position: fixed; inset: 0; z-index: 200; background: var(--ink); color: var(--paper); display: grid; grid-template-rows: 1fr auto auto; padding: var(--pad); clip-path: inset(0 0 0 0); }
.no-js .loader, .loader.is-done { display: none; }
.loader__mark { align-self: center; justify-self: center; font-family: var(--f-mono); font-size: clamp(14px, 2vw, 20px); letter-spacing: .1em; color: var(--muted); }
.loader__count { display: flex; align-items: flex-start; font-weight: 600; font-size: clamp(5rem, 22vw, 20rem); line-height: .8; letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.loader__pct { font-size: .3em; margin-left: .1em; color: var(--accent); }
.loader__bar { height: 2px; background: color-mix(in srgb, var(--paper) 12%, transparent); margin-top: 18px; }
.loader__bar i { display: block; height: 100%; width: 0; background: var(--accent); }

/* ───────── Cursor ───────── */
.cursor { position: fixed; left: 0; top: 0; z-index: 190; pointer-events: none; display: none; mix-blend-mode: difference; }
.has-cursor .cursor { display: block; }
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor label, .has-cursor canvas { cursor: none; }
.has-cursor input, .has-cursor textarea { cursor: text; }
.cursor__dot { position: absolute; left: 0; top: 0; transform: translate(var(--x, -100px), var(--y, -100px)); width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: #fff; }
.cursor__ring { position: absolute; left: 0; top: 0; transform: translate(var(--x, -100px), var(--y, -100px)) scale(var(--s, 1)); width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .7); display: grid; place-items: center; transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background-color .35s, border-color .35s, transform .0s; }
.cursor__label { font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #000; opacity: 0; transform: scale(.6); transition: opacity .25s, transform .35s var(--ease); white-space: nowrap; }
.cursor.is-hover .cursor__ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: transparent; background: rgba(255, 255, 255, .95); }
.cursor.is-label .cursor__ring { width: 92px; height: 92px; margin: -46px 0 0 -46px; border-color: transparent; background: #fff; }
.cursor.is-label .cursor__label { opacity: 1; transform: none; }
.cursor.is-hover .cursor__dot, .cursor.is-label .cursor__dot { opacity: 0; }
.cursor.is-down .cursor__ring { --s: .85; }
.cursor.is-hidden { opacity: 0; }

/* ───────── Grano y progreso ───────── */
.grain { position: fixed; inset: -50%; z-index: 150; pointer-events: none; opacity: .07; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); animation: grain 1.2s steps(6) infinite; }
body[data-bg="light"] .grain, body[data-bg="accent"] .grain { opacity: .1; mix-blend-mode: multiply; filter: invert(1); }
@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); } }
.progress { position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 120; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }
body[data-bg="accent"] .progress i { background: var(--ink); }

/* ───────── Cabecera ───────── */
.nav { position: fixed; left: 0; right: 0; top: 0; z-index: 110; display: flex; align-items: center; gap: 24px; padding: 18px var(--pad); color: #fff; mix-blend-mode: difference; transition: transform .6s var(--ease); }
.nav.is-hidden { transform: translateY(-110%); }
.nav__logo { text-decoration: none; margin-right: auto; }
.logo { display: inline-flex; align-items: baseline; font-size: 19px; letter-spacing: -.03em; }
.logo b { font-weight: 600; }
.logo em { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: 1.14em; margin-left: .04em; }
.logo__caret { display: inline-block; width: .5em; height: 2px; background: currentColor; margin-left: .12em; animation: caret 1.05s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.nav__links { display: flex; gap: 28px; }
.nav__links a, .nav__cta { font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; }
.nav__links a { position: relative; padding: 6px 0; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px; border: 1px solid currentColor; border-radius: 999px; }
.nav__cta i { font-style: normal; transition: transform .4s var(--ease); }
.nav__cta:hover i { transform: translateX(4px); }
.nav__burger { display: none; width: 44px; height: 44px; border: 1px solid currentColor; border-radius: 50%; background: none; position: relative; }
.nav__burger i { position: absolute; left: 13px; right: 13px; height: 1.5px; background: currentColor; transition: transform .45s var(--ease), top .45s var(--ease); }
.nav__burger i:first-child { top: 18px; } .nav__burger i:last-child { top: 24px; }
.nav__burger[aria-expanded="true"] i:first-child { top: 21px; transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] i:last-child { top: 21px; transform: rotate(-45deg); }

.menu { position: fixed; inset: 0; z-index: 105; background: var(--accent-soft); color: var(--ink); display: flex; flex-direction: column; justify-content: flex-end; padding: 96px var(--pad) 32px; clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease-io); }
.menu[hidden] { display: flex; visibility: hidden; }
.menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; }
.menu nav { display: flex; flex-direction: column; }
.menu a { display: flex; align-items: baseline; gap: 14px; font-size: clamp(2.6rem, 12vw, 5rem); font-weight: 600; letter-spacing: -.05em; line-height: 1.05; text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--ink) 20%, transparent); padding: 8px 0; }
.menu a small { font-family: var(--f-mono); font-size: 12px; font-weight: 400; letter-spacing: 0; }
.menu__foot { margin-top: 28px; font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; }

/* ───────── Botones ───────── */
.btn { --b-bg: transparent; --b-fg: var(--fg); position: relative; display: inline-flex; align-items: center; gap: 14px; padding: 17px 26px; border-radius: 999px; border: 1px solid var(--fg); background: var(--b-bg); color: var(--b-fg); text-decoration: none; font-weight: 500; font-size: 16px; overflow: hidden; isolation: isolate; cursor: pointer; transition: color .45s var(--ease), border-color .45s; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--fg); border-radius: inherit; transform: translateY(101%); transition: transform .55s var(--ease); }
.btn:hover::before { transform: translateY(0); }
.btn:hover { color: var(--bg); }
.btn i { font-style: normal; transition: transform .5s var(--ease); }
.btn:hover i { transform: translate(3px, -3px) rotate(0deg); }
.btn--accent { --b-bg: var(--accent); --b-fg: var(--ink); border-color: var(--accent); }
.btn--accent::before { background: var(--paper); }
.btn--accent:hover { color: var(--ink); }
.btn--xl { padding: 22px 34px; font-size: 18px; }
.btn[disabled] { opacity: .55; pointer-events: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-family: var(--f-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .03em; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; }

/* ───────── Hero ───────── */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: 120px var(--pad) 28px; overflow: hidden; }
.hero__ascii { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(120% 90% at 0% 100%, color-mix(in srgb, var(--ink) 92%, transparent) 18%, color-mix(in srgb, var(--ink) 0%, transparent) 62%); }
.hero__inner { position: relative; z-index: 1; }
.hero__kicker { display: flex; align-items: center; gap: 10px; color: var(--paper); opacity: .8; margin-bottom: clamp(16px, 2.4vw, 28px); }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); animation: live 2s infinite; flex: none; }
@keyframes live { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); } 70% { box-shadow: 0 0 0 12px color-mix(in srgb, var(--accent) 0%, transparent); } 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 0%, transparent); } }
.hero__title { font-size: clamp(3.9rem, 14.2vw, 16.5rem); line-height: .86; letter-spacing: -.06em; font-weight: 600; margin-left: -.04em; }
.hero__title .serif { font-weight: 400; letter-spacing: -.035em; padding-right: .08em; }
.line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.line__in { display: inline-block; will-change: transform; }
.hero__bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-top: clamp(24px, 3.5vw, 48px); flex-wrap: wrap; }
.hero__lead { max-width: 46ch; font-size: clamp(16px, 1.35vw, 19px); color: color-mix(in srgb, var(--paper) 78%, transparent); }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .btn--ghost { --b-fg: var(--paper); border-color: color-mix(in srgb, var(--paper) 50%, transparent); }
.hero .btn--ghost::before { background: var(--paper); }
.hero .btn--ghost:hover { color: var(--ink); }
.hero__meta { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 16px; margin-top: clamp(28px, 4vw, 56px); padding-top: 16px; border-top: 1px solid color-mix(in srgb, var(--paper) 14%, transparent); color: color-mix(in srgb, var(--paper) 55%, transparent); }
.hero__meta b { color: var(--paper); font-weight: 400; font-variant-numeric: tabular-nums; }
.hero__scroll { display: inline-flex; align-items: center; gap: 10px; }
.hero__scroll i { width: 1px; height: 22px; background: color-mix(in srgb, var(--paper) 30%, transparent); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; left: 0; top: -100%; width: 100%; height: 100%; background: var(--accent); animation: drip 1.6s var(--ease) infinite; }
@keyframes drip { to { top: 100%; } }

/* ───────── Cintas ───────── */
.marquee { overflow: hidden; padding: clamp(18px, 2.4vw, 30px) 0; border-block: 1px solid var(--line); white-space: nowrap; user-select: none; }
.marquee__track { display: inline-flex; align-items: center; gap: clamp(20px, 3vw, 44px); padding-right: clamp(20px, 3vw, 44px); will-change: transform; font-size: clamp(1.6rem, 4.2vw, 3.8rem); font-weight: 500; letter-spacing: -.04em; }
.marquee__track i { font-style: normal; color: var(--accent); font-size: .6em; }
body[data-bg="light"] .marquee__track i, body[data-bg="accent"] .marquee__track i { color: inherit; }
.no-js .marquee__track, .reduce .marquee__track { animation: none; }

/* ───────── Manifiesto ───────── */
.manifesto { padding: clamp(96px, 16vw, 220px) var(--pad) clamp(80px, 12vw, 160px); }
.manifesto__text { font-size: clamp(1.9rem, 4.6vw, 4.6rem); line-height: 1.04; letter-spacing: -.04em; font-weight: 500; max-width: 22ch; }
.manifesto__text .serif { font-weight: 400; }
.manifesto__text .w { opacity: .14; transition: opacity .2s linear; }
.no-js .manifesto__text .w, .reduce .manifesto__text .w { opacity: 1; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 3vw, 40px); margin-top: clamp(64px, 10vw, 140px); border-top: 1px solid var(--line); }
.facts li { padding-top: 22px; display: grid; grid-template-columns: auto 1fr; align-items: start; column-gap: 4px; }
.facts strong { font-size: clamp(4rem, 9vw, 9rem); line-height: .85; letter-spacing: -.06em; font-weight: 600; font-variant-numeric: tabular-nums; }
.facts__plus { font-size: clamp(2rem, 4vw, 4rem); color: var(--accent); line-height: 1; font-weight: 600; }
.facts p { grid-column: 1 / -1; margin-top: 16px; color: var(--muted); max-width: 28ch; }

/* ───────── Servicios (horizontal) ───────── */
.services { position: relative; }
.services__pin { position: relative; height: 100vh; height: 100svh; overflow: hidden; display: flex; align-items: center; }
.services__track { flex: none; display: flex; gap: clamp(16px, 2vw, 28px); padding: 0 var(--pad); will-change: transform; height: min(78vh, 760px); }
.svc { flex: none; width: min(78vw, 560px); height: 100%; border: 1px solid var(--line); border-radius: 28px; padding: clamp(22px, 2.6vw, 36px); display: flex; flex-direction: column; gap: 18px; background: var(--card); position: relative; overflow: hidden; transition: border-color .5s; }
.svc:hover { border-color: var(--fg); }
/* Tarjetas: foco de luz y borde que siguen al cursor (--mx/--my los pone app.js), número fantasma */
.svc:not(.svc--intro) { --mx: 50%; --my: 30%; will-change: transform; }
.svc > * { position: relative; z-index: 1; }
.svc:not(.svc--intro)::before { content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(420px circle at var(--mx) var(--my), color-mix(in srgb, var(--accent) 26%, transparent), transparent 62%); opacity: 0; transition: opacity .5s var(--ease); }
.svc:not(.svc--intro)::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; padding: 1px; pointer-events: none; background: radial-gradient(240px circle at var(--mx) var(--my), var(--fg), transparent 70%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .5s var(--ease); }
.svc:hover::before, .svc:hover::after { opacity: 1; }
.svc .svc__ghost { position: absolute; z-index: 0; right: -.04em; bottom: -.2em; font-size: clamp(8rem, 15vw, 15rem); font-weight: 600; letter-spacing: -.07em; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--line); pointer-events: none; user-select: none; transition: -webkit-text-stroke-color .6s; }
.svc:hover .svc__ghost { -webkit-text-stroke-color: color-mix(in srgb, var(--fg) 28%, transparent); }
.svc__vis { transition: transform .8s var(--ease), box-shadow .8s var(--ease); }
.svc:hover .svc__vis { transform: translateY(-4px) scale(1.025); box-shadow: 0 26px 50px -26px color-mix(in srgb, var(--ink) 70%, transparent); }
.svc .chips li { transition: border-color .35s, transform .45s var(--ease), background-color .35s; }
.svc:hover .chips li { border-color: color-mix(in srgb, var(--fg) 40%, transparent); }
.svc .chips li:hover { transform: translateY(-2px); background: color-mix(in srgb, var(--accent) 30%, transparent); }
.svc__n { transition: color .4s; }
.svc:hover .svc__n { color: var(--fg); }
.svc--intro { width: min(86vw, 720px); border: 0; background: none; padding-left: 0; justify-content: center; }
.svc__big { font-size: clamp(3rem, 7vw, 7.4rem); line-height: .9; letter-spacing: -.055em; font-weight: 600; }
.svc__intro-text { font-size: clamp(17px, 1.5vw, 21px); color: var(--muted); max-width: 34ch; margin-top: 12px; }
.svc__hint { margin-top: auto; display: inline-flex; gap: 10px; color: var(--muted); }
.svc__hint i { font-style: normal; animation: nudge 1.4s var(--ease) infinite; }
@keyframes nudge { 50% { transform: translateX(8px); } }
.svc__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex: 1; min-height: 0; }
.svc__n { color: var(--muted); }
.svc__vis { width: 100%; max-width: 330px; height: 100%; max-height: 300px; aspect-ratio: 1.1; margin-left: auto; border-radius: 18px; }
.svc__title { font-size: clamp(2rem, 3.4vw, 3.4rem); line-height: .95; letter-spacing: -.045em; font-weight: 600; }
.svc__desc { color: var(--muted); max-width: 42ch; }
.services__progress { position: absolute; left: var(--pad); right: var(--pad); bottom: 4vh; height: 2px; background: var(--line); }
.services__progress i { display: block; height: 100%; background: var(--fg); transform-origin: 0 50%; transform: scaleX(0); }

/* ───────── Stack ───────── */
.stack { padding: clamp(96px, 13vw, 180px) var(--pad) clamp(60px, 8vw, 110px); }
.stack__head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px 40px; }
.stack__head .label, .stack__head .h2 { grid-column: 1 / -1; }
.stack__head .h2 { max-width: 17ch; }
.stack__hint { color: var(--muted); }
.stack__filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.stack__filters button { font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .03em; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: none; cursor: pointer; transition: background-color .3s, color .3s, border-color .3s; }
.stack__filters button:hover { border-color: var(--fg); }
.stack__filters button.is-on { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.stack__box { position: relative; margin-top: clamp(28px, 4vw, 48px); height: clamp(420px, 62vh, 640px); border: 1px solid var(--line); border-radius: 28px; overflow: hidden; touch-action: pan-y; background: radial-gradient(80% 60% at 50% 100%, color-mix(in srgb, var(--accent) 6%, transparent), transparent 70%); }
.stack__list { display: flex; flex-wrap: wrap; gap: 10px; padding: 24px; align-content: flex-start; }
.stack__list li { font-size: clamp(15px, 1.35vw, 19px); font-weight: 500; letter-spacing: -.01em; padding: .62em 1.15em; border-radius: 999px; border: 1px solid var(--line); background: var(--ink-2); white-space: nowrap; user-select: none; transition: opacity .4s, background-color .4s, color .4s, border-color .4s; }
.stack__list li[data-cat="ms"]   { --c: var(--c-ms); }
.stack__list li[data-cat="web"]  { --c: var(--paper); }
.stack__list li[data-cat="ia"]   { --c: var(--accent-2); }
.stack__list li[data-cat="gen"]  { --c: var(--c-gen); }
.stack__list li[data-cat="game"] { --c: var(--c-game); }
.stack__list li[data-cat="perf"] { --c: var(--accent); }
.stack__list li::before { content: ""; display: inline-block; width: .45em; height: .45em; border-radius: 50%; background: var(--c); margin-right: .55em; vertical-align: .1em; }
.stack.is-physics .stack__list { position: absolute; inset: 0; padding: 0; }
.stack.is-physics .stack__list li { position: absolute; left: 0; top: 0; will-change: transform; visibility: hidden; }
.stack.is-physics .stack__list li.is-in { visibility: visible; }
/* Pantallas estrechas y movimiento reducido: nube ordenada, la caja crece con su contenido */
.stack.is-flow .stack__box { height: auto; }
.stack.is-static:not(.is-pop) .stack__list li { visibility: hidden; }
.stack.is-static.is-pop .stack__list li { animation: stack-pop .8s var(--ease) backwards; animation-delay: calc(var(--k, 0) * 20ms); }
@keyframes stack-pop { from { opacity: 0; transform: translateY(24px) scale(.6); } }
.stack__list li.is-dim { opacity: .18; }
.stack__list li.is-pick { background: var(--c); color: var(--ink); border-color: var(--c); }
.stack__list li.is-pick::before { background: var(--ink); }

/* ───────── Proyectos ───────── */
.work { position: relative; padding: clamp(96px, 13vw, 180px) var(--pad); }
.work__head { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: end; gap: 24px 48px; margin-bottom: clamp(40px, 6vw, 80px); }
.work__head .label { grid-column: 1 / -1; margin-bottom: 0; }
.work__note { color: var(--muted); max-width: 40ch; justify-self: end; }
.work__list { border-top: 1px solid var(--line); }
.wk { position: relative; }
.wk::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); transform: scaleX(var(--ln, 1)); transform-origin: left; pointer-events: none; }
.wk__row { width: 100%; display: grid; grid-template-columns: 56px minmax(0, 1fr) auto 28px; align-items: center; gap: 20px; padding: clamp(18px, 2.4vw, 30px) 0; background: none; border: 0; text-align: left; cursor: pointer; transition: opacity .5s var(--ease), padding .5s var(--ease); }
.wk__row { position: relative; isolation: isolate; }
.wk__row::before { content: ""; position: absolute; z-index: -1; inset: 0 calc(var(--pad) * -.5); border-radius: 18px; background: color-mix(in srgb, var(--accent) 7%, transparent); transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease); }
.wk__row::after { content: ""; position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .7s var(--ease); }
.wk__n { color: var(--muted); transition: color .4s; }
.wk__tags { transition: color .4s, transform .6s var(--ease); }
.wk__title .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .08em 0 .1em; margin: -.08em 0 -.1em; }
.wk__title .wi { display: inline-block; }
.wk__title .c { display: inline-block; text-shadow: 0 1.25em 0 var(--accent); transition: transform .6s var(--ease); transition-delay: calc(var(--i) * 10ms); }
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wk__title { font-size: clamp(1.45rem, 3.6vw, 3.6rem); line-height: 1; letter-spacing: -.045em; font-weight: 500; transition: transform .6s var(--ease); }
.wk__tags { color: var(--muted); text-align: right; }
.wk__plus { width: 22px; height: 22px; position: relative; justify-self: end; transition: transform .7s var(--ease), color .4s; }
.wk.is-open .wk__n { color: var(--accent); }
@media (hover: hover) {
  .wk__row:hover::before { transform: scaleY(1); }
  .wk__row:hover::after { transform: scaleX(1); transform-origin: left; }
  .wk__row:hover .wk__n, .wk__row:hover .wk__plus { color: var(--accent); }
  .wk__row:hover .wk__tags { color: var(--fg); transform: translateX(-10px); }
  .wk__row:hover .wk__plus { transform: rotate(180deg); }
  .wk__row:hover .wk__title .c { transform: translateY(-1.25em); }
}
.wk__plus::before, .wk__plus::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: currentColor; transition: transform .5s var(--ease); }
.wk__plus::after { transform: rotate(90deg); }
.wk.is-open .wk__plus::after { transform: rotate(0); }
.work__list:hover .wk__row { opacity: .38; }
.work__list:hover .wk__row:hover, .wk.is-open .wk__row { opacity: 1; }
.wk__row:hover .wk__title { transform: translateX(clamp(8px, 1.6vw, 28px)); }
.wk__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.wk.is-open .wk__body { grid-template-rows: 1fr; }
.wk__inner { overflow: hidden; display: grid; grid-template-columns: 56px minmax(0, 260px) minmax(0, 1fr); gap: 0 20px; align-items: start; }
.wk__inner > canvas { grid-column: 2; grid-row: 1 / span 2; width: 100%; aspect-ratio: 1.25; border-radius: 16px; margin-bottom: 28px; }
.wk__inner > p { grid-column: 3; grid-row: 1; color: var(--muted); max-width: 54ch; font-size: clamp(16px, 1.3vw, 19px); }
.wk__inner > .chips { grid-column: 3; grid-row: 2; align-self: start; margin: 18px 0 28px; }
.work__preview { position: fixed; left: 0; top: 0; z-index: 90; width: 340px; aspect-ratio: 1.25; pointer-events: none; border-radius: 22px; overflow: hidden; opacity: 0; transform: translate(-50%, -50%) scale(.7); transition: opacity .35s var(--ease); will-change: transform; }
.work__preview { clip-path: inset(50% 50% 50% 50% round 22px); transition: opacity .35s var(--ease), clip-path .8s var(--ease); background: var(--ink-2); }
.work__preview canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.work__preview.is-on { opacity: 1; clip-path: inset(0% 0% 0% 0% round 22px); }
.work__cap { position: absolute; z-index: 3; left: 12px; bottom: 12px; display: flex; align-items: center; gap: 8px; max-width: calc(100% - 24px); padding: 6px 11px 6px 7px; border-radius: 999px; font-size: 11px; letter-spacing: .03em; text-transform: uppercase; color: var(--paper); background: color-mix(in srgb, var(--ink) 72%, transparent); backdrop-filter: blur(6px); white-space: nowrap; overflow: hidden; }
.work__cap b { font-weight: 500; color: var(--ink); background: var(--accent); border-radius: 999px; padding: 2px 7px; }
.work__cap span { overflow: hidden; text-overflow: ellipsis; }

/* ───────── Proceso (cartas apiladas) ───────── */
.process { padding: clamp(96px, 13vw, 180px) var(--pad) clamp(60px, 10vw, 140px); }
.process__head { margin-bottom: clamp(40px, 6vw, 80px); }
.process__cards { display: grid; gap: 0; }
.pcard { position: sticky; top: calc(96px + var(--i, 0) * 22px); padding-bottom: 22px; }
.pcard__in { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: clamp(20px, 4vw, 64px); align-items: start; min-height: clamp(260px, 38vh, 380px); padding: clamp(24px, 3.4vw, 48px); border-radius: 28px; background: var(--ink); color: var(--paper); transform-origin: 50% 0; will-change: transform; box-shadow: 0 -20px 60px color-mix(in srgb, var(--ink) 12%, transparent); }
.pcard:nth-child(2) .pcard__in { background: color-mix(in srgb, var(--ink) 92%, var(--paper)); }
.pcard:nth-child(3) .pcard__in { background: color-mix(in srgb, var(--ink) 85%, var(--paper)); }
.pcard:nth-child(4) .pcard__in { background: var(--accent-soft); color: var(--ink); }
.pcard__n { font-size: clamp(4rem, 10vw, 10rem); line-height: .8; letter-spacing: -.06em; font-weight: 600; }
.pcard h3 { font-size: clamp(2rem, 4vw, 4rem); letter-spacing: -.045em; line-height: .95; font-weight: 600; margin-bottom: 18px; }
.pcard p { max-width: 44ch; opacity: .72; font-size: clamp(16px, 1.3vw, 19px); }
.pcard__k { opacity: .55; }

/* ───────── Terminal ───────── */
.term { padding: clamp(96px, 13vw, 180px) var(--pad); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.term__sub { color: var(--muted); margin-top: 22px; }
.term__sub code { font-family: var(--f-mono); color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); padding: 2px 8px; border-radius: 6px; }
.term__win { border: 1px solid var(--line); border-radius: 18px; background: var(--ink); overflow: hidden; box-shadow: 0 40px 120px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .02) inset; }
.term__bar { display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-bottom: 1px solid var(--line); color: var(--muted); }
.term__bar i { flex: none; width: 11px; height: 11px; border-radius: 50%; background: #2a2a31; }
.term__bar i:nth-child(1) { background: #ff5f57; } .term__bar i:nth-child(2) { background: #febc2e; } .term__bar i:nth-child(3) { background: #28c840; }
.term__bar span { margin-left: 10px; text-transform: none; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.term__out { height: 340px; overflow-y: auto; padding: 18px 20px 4px; text-transform: none; font-size: 13.5px; line-height: 1.65; color: #cfcfd4; white-space: pre-wrap; overscroll-behavior: contain; }
.term__out .t-cmd { color: var(--paper); }
.term__out .t-ps { color: var(--accent); }
.term__out .t-dim { color: #8d8d96; }
.term__out .t-hi { color: var(--accent); }
.term__out .t-err { color: var(--danger); }
.term__line { display: flex; gap: 10px; align-items: center; padding: 6px 20px 18px; text-transform: none; font-size: 13.5px; }
.term__ps { color: var(--accent); white-space: nowrap; }
.term__win.is-playing .term__out, .term__win.is-playing .term__line { display: none; }
.term__game { position: relative; height: 386px; background: var(--ink); }
.term__game canvas { display: block; width: 100%; height: 100%; image-rendering: pixelated; outline: none; touch-action: manipulation; }
.term__game canvas:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); }
.term__exit { flex: none; white-space: nowrap; margin-left: auto; padding: 4px 11px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--paper) 30%, transparent); background: color-mix(in srgb, var(--ink) 70%, transparent); color: var(--paper); text-transform: none; cursor: pointer; transition: border-color .3s, color .3s; }
.term__exit:hover { border-color: var(--accent); color: var(--accent); }
.term__line input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--paper); font: inherit; caret-color: var(--accent); padding: 4px 0; }

/* ───────── Contacto ───────── */
.contact { padding: clamp(40px, 6vw, 80px) 0 clamp(96px, 12vw, 160px); }
.contact__marquee { overflow: hidden; white-space: nowrap; padding: 0 0 clamp(40px, 6vw, 90px); }
.contact__marquee .marquee__track { font-size: clamp(4.5rem, 16vw, 17rem); font-weight: 600; letter-spacing: -.065em; line-height: .9; }
.contact__marquee .marquee__track i { font-size: .32em; }
.contact__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: clamp(32px, 6vw, 96px); padding: 0 var(--pad); }
.contact__side .h2 { font-size: clamp(2.1rem, 4.4vw, 4.4rem); max-width: 12ch; margin-bottom: 22px; }
.contact__side > p:not(.label) { color: var(--muted); max-width: 38ch; }
.contact__list { margin-top: 32px; display: grid; gap: 12px; color: var(--muted); }
.contact__list span { color: var(--accent); margin-right: 8px; }
.form { display: grid; gap: 22px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { position: relative; }
.field input, .field textarea { width: 100%; background: none; border: 0; border-bottom: 1px solid var(--line); color: var(--fg); font: inherit; font-size: clamp(17px, 1.4vw, 21px); padding: 26px 0 12px; outline: none; border-radius: 0; transition: border-color .4s; resize: vertical; }
.field textarea { min-height: 140px; }
.field label { position: absolute; left: 0; top: 26px; color: var(--muted); pointer-events: none; transform-origin: 0 0; transition: transform .45s var(--ease), color .3s; font-size: clamp(17px, 1.4vw, 21px); }
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-24px) scale(.62); color: var(--fg); }
.field.is-bad input, .field.is-bad textarea { border-color: var(--danger); }
.form__chips { border: 0; padding: 0; margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.form__chips legend { font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; padding: 0; }
.form__chips label { position: relative; }
.form__chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.form__chips span { display: inline-block; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); font-size: 15px; transition: background-color .3s, color .3s, border-color .3s; }
.form__chips input:hover + span { border-color: var(--fg); }
.form__chips input:checked + span { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.form__chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); font-size: 14.5px; }
.check input { appearance: none; -webkit-appearance: none; flex: none; width: 20px; height: 20px; margin-top: 2px; border: 1px solid var(--muted); border-radius: 6px; display: grid; place-items: center; cursor: pointer; }
.check input::after { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--accent); transform: scale(0); transition: transform .3s var(--ease); }
.check input:checked { border-color: var(--accent); }
.check input:checked::after { transform: scale(1); }
.check.is-bad input { border-color: var(--danger); }
.check a { color: var(--fg); }
.form__foot { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 6px; }
.form__status { font-family: var(--f-mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: .02em; color: var(--muted); }
.form__status.is-ok { color: var(--accent); }
.form__status.is-err { color: var(--danger); }

/* ───────── Pie ───────── */
.foot { padding: clamp(60px, 8vw, 120px) var(--pad) 22px; border-top: 1px solid var(--line); overflow: hidden; }
.foot__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.foot__claim { font-size: clamp(1.3rem, 2.2vw, 2rem); letter-spacing: -.03em; line-height: 1.15; max-width: 22ch; }
.foot__claim a { color: var(--accent); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); }
.foot__claim a:hover { background-size: 100% 1px; }
.foot__links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot__links a, .foot__up { text-decoration: none; color: var(--muted); transition: color .3s; }
.foot__links a:hover, .foot__up:hover { color: var(--fg); }
.foot__word { font-weight: 600; letter-spacing: -.06em; line-height: .78; white-space: nowrap; font-size: 11.6vw; margin: clamp(48px, 8vw, 110px) 0 0 -.03em; user-select: none; }
.foot__word span { display: inline-block; font-variation-settings: "wght" var(--w, 600); font-weight: var(--w, 600); transition: color .3s; }
.foot__word span:hover { color: var(--accent); }
.foot__copy { color: var(--muted); margin-top: 22px; text-transform: none; }

/* ───────── Páginas legales y 404 ───────── */
.page .nav { mix-blend-mode: normal; color: var(--fg); background: linear-gradient(var(--bg) 60%, transparent); }
.page__back { font-family: var(--f-mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; text-decoration: none; color: var(--muted); transition: color .3s; }
.page__back:hover { color: var(--fg); }
.legal { padding: clamp(120px, 16vw, 180px) var(--pad) clamp(80px, 10vw, 120px); max-width: 920px; }
.legal h1 { font-size: clamp(2.8rem, 8vw, 6.4rem); line-height: .92; letter-spacing: -.055em; font-weight: 600; margin-bottom: 18px; }
.legal__upd { color: var(--muted); margin-bottom: 48px; }
.legal h2 { font-size: clamp(1.35rem, 2.2vw, 1.9rem); letter-spacing: -.03em; line-height: 1.15; font-weight: 600; margin: 52px 0 14px; }
.legal p, .legal li { color: color-mix(in srgb, var(--paper) 80%, transparent); max-width: 68ch; }
.legal p + p, .legal p + ul, .legal ul + p { margin-top: 12px; }
.legal ul { list-style: disc; padding-left: 1.25em; display: grid; gap: 6px; }
.legal a { color: var(--accent); }
.legal dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; margin: 0; }
.legal dt { color: var(--muted); font-family: var(--f-mono); font-size: 12.5px; text-transform: uppercase; padding-top: 3px; }
.legal dd { margin: 0; }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; margin-top: 12px; }
.legal th, .legal td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; color: var(--muted); font-weight: 400; }
mark.rellenar { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); padding: 0 .35em; border-radius: 4px; }
.legal__nota { border: 1px dashed color-mix(in srgb, var(--accent) 50%, transparent); border-radius: 14px; padding: 16px 20px; color: var(--accent); font-size: 15px; margin-bottom: 40px; }
.page .foot { padding-top: 40px; }
.e404 { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 120px var(--pad) 60px; overflow: hidden; }
.e404 canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.e404__in { position: relative; z-index: 1; }
.e404 h1 { font-size: clamp(6rem, 26vw, 24rem); line-height: .8; letter-spacing: -.07em; font-weight: 600; }
.e404 p { font-size: clamp(1.2rem, 2.4vw, 2rem); letter-spacing: -.03em; margin: 18px 0 32px; max-width: 26ch; }
.e404 code { font-family: var(--f-mono); color: var(--accent); font-size: .7em; }
@media (max-width: 640px) { .legal dl { grid-template-columns: 1fr; gap: 2px; } .legal dd { margin-bottom: 12px; } }

/* ───────── Revelados ───────── */
.wm { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.wi { display: inline-block; will-change: transform; }
.hero.is-static { background: radial-gradient(70% 60% at 80% 20%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 60%), var(--ink); }
.js [data-reveal] { opacity: 0; transform: translateY(24px); }
.reduce [data-reveal], .no-gsap [data-reveal] { opacity: 1 !important; transform: none !important; }

/* ───────── Responsive ───────── */
@media (max-width: 1100px) {
  .term { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  body { font-size: 16px; }
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .hero__meta span:first-child, .hero__coords { display: none; }
  .hero__title { font-size: 19.5vw; }
  .hero::after { background: linear-gradient(to top, color-mix(in srgb, var(--ink) 95%, transparent) 30%, color-mix(in srgb, var(--ink) 0%, transparent) 75%); }
  .hero__meta { justify-content: flex-start; }
  .facts { grid-template-columns: 1fr; }
  .facts li { border-top: 1px solid var(--line); }
  .facts li:first-child { border-top: 0; }
  /* servicios en vertical */
  .services__pin { height: auto; overflow: visible; display: block; padding: clamp(80px, 14vw, 120px) 0 40px; }
  .services__track { flex-direction: column; width: 100%; height: auto; transform: none !important; }
  .svc, .svc--intro { width: 100%; height: auto; min-height: 0; }
  .svc__head { min-height: 0; }
  .svc__vis { max-width: 190px; height: auto; }
  .services__progress { display: none; }
  .stack__head { grid-template-columns: 1fr; }
  .stack__filters { justify-content: flex-start; }
  .work__head { grid-template-columns: 1fr; }
  .work__note { justify-self: start; }
  .wk__row { grid-template-columns: 34px minmax(0, 1fr) 22px; gap: 14px; }
  .wk__tags { display: none; }
  .wk__inner { grid-template-columns: 1fr; }
  .wk__inner > canvas, .wk__inner > p, .wk__inner > .chips { grid-column: 1; grid-row: auto; }
  .wk__inner > canvas { max-width: 320px; margin-bottom: 18px; }
  .work__preview { display: none; }
  .contact__grid { grid-template-columns: 1fr; }
  .pcard__in { grid-template-columns: 1fr; gap: 18px; }
  .pcard__k { display: none; }
}
@media (max-width: 640px) {
  .form__row { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; justify-content: space-between; }
  .term__ps { display: none; }
  .term__line::before { content: "$"; color: var(--accent); }
  .term__out { height: 300px; font-size: 12.5px; }
  .term__game { height: 300px; }
  .stack__list { gap: 6px; padding: 16px; }
  .stack__list li { font-size: 13px; padding: .5em .85em; }
  .pcard { top: calc(76px + var(--i, 0) * 14px); }
  .foot__word { font-size: 12.4vw; }
}

/* Movimiento reducido: sin cursor, sin grano animado, sin fijados */
@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
  .logo__caret, .dot-live, .hero__scroll i::after, .svc__hint i { animation: none; }
  * { transition-duration: .01ms !important; }
}

/* Movimiento reducido o sin GSAP: servicios en vertical */
.reduce .services__pin, .no-gsap .services__pin { height: auto; overflow: visible; display: block; padding: 120px 0 60px; }
.reduce .services__track, .no-gsap .services__track { flex-wrap: wrap; width: 100%; height: auto; }
.reduce .svc, .no-gsap .svc { height: auto; min-height: 460px; }
.reduce .services__progress, .no-gsap .services__progress { display: none; }

/* Sin JavaScript: cada sección pinta su fondo y todo queda visible */
.no-js [data-section-bg="light"] { background: var(--paper); color: var(--ink); --fg: var(--ink); --muted: color-mix(in srgb, var(--ink) 66%, var(--paper)); --line: color-mix(in srgb, var(--ink) 14%, transparent); }
.no-js [data-section-bg="accent"] { background: var(--accent-soft); color: var(--ink); --fg: var(--ink); --muted: color-mix(in srgb, var(--ink) 62%, transparent); --line: color-mix(in srgb, var(--ink) 22%, transparent); }
.no-js .services__pin { height: auto; display: block; padding: 96px 0; }
.no-js .services__track { flex-wrap: wrap; height: auto; }
.no-js .svc { height: auto; min-height: 420px; }
.no-js .wk__body { grid-template-rows: 1fr; }
.no-js .stack__box { height: auto; }
.no-js .wk__plus, .no-js .nav__burger, .no-js .term, .no-js .svc__vis, .no-js .wk__vis, .no-js .stack__hint { display: none; }
.no-js .hero { background: radial-gradient(70% 60% at 80% 20%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 60%), var(--ink); }
