/* ==========================================================================
   DISYDE — Rediseño 2026
   Tokens · Base · Loader · Nav · Hero · Marquee · Manifiesto · Servicios
   Método · Trayectoria · Lab · Contacto · Footer · Cursor · Responsive
   ========================================================================== */

:root {
  --bg: #050505;
  --bg-2: #0b0b0d;
  --panel: rgba(14, 14, 17, .62);
  --fg: #f4f1ea;
  --muted: rgba(244, 241, 234, .56);
  --dim: rgba(244, 241, 234, .32);
  --line: rgba(244, 241, 234, .1);
  --line-2: rgba(244, 241, 234, .2);

  --green: #8BC53F;
  --orange: #F5821F;
  --blue: #00AEEF;
  --grad: linear-gradient(90deg, var(--green), var(--orange) 50%, var(--blue));
  --grad-loop: linear-gradient(90deg, var(--green), var(--orange), var(--blue), var(--orange), var(--green));

  --font: 'Google Sans Flex', 'Google Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in: cubic-bezier(.7, 0, .84, 0);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --ease-soft: cubic-bezier(.45, 0, .25, 1);

  --pad: clamp(1rem, 4vw, 3.5rem);
  --nav-h: 4.75rem;
  --radius: 1.5rem;

  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::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; }
html.is-loading, html.menu-open { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: clamp(1rem, .96rem + .18vw, 1.125rem);
  line-height: 1.55;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
main, footer { position: relative; z-index: 2; overflow-x: clip; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--orange); color: #050505; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; top: 1rem; left: 1rem; z-index: 999; padding: .75rem 1rem; background: var(--fg); color: var(--bg); border-radius: .5rem; transform: translateY(-200%); transition: transform .3s; }
.skip:focus { transform: none; }
.mono { font-family: var(--mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 400; }
.muted { color: var(--muted); }
code { font-family: var(--mono); font-size: .9em; padding: .1em .4em; border-radius: .35em; background: rgba(255,255,255,.08); color: var(--green); }

.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.grad {
  background: var(--grad-loop);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: .08em;
  animation: grad-shift 9s linear infinite;
}
@keyframes grad-shift { to { background-position: 150% 0; } }

/* Wordmark (punto de la i = rombo verde/azul del logo) */
.wm { --ls: -.035em; font-weight: 700; letter-spacing: var(--ls); font-variation-settings: "ROND" 100; line-height: 1; }
/* Métricas Google Sans Flex: ascent .97 / descent .29 → con line-height 1 la caja empieza .84em sobre la línea base;
   el punto de la i está centrado ~.685em sobre la base → .155em desde arriba */
.wm-i { position: relative; display: inline-block; line-height: 1; }
.wm-i::before {
  content: "";
  position: absolute;
  left: calc(50% - var(--ls, 0em) / 2);   /* el letter-spacing negativo desplaza el centro de la caja a la izquierda */
  top: .08em;
  width: .15em;
  height: .15em;
  transform: translateX(-50%) rotate(45deg);
  background: linear-gradient(45deg, var(--green) 50%, var(--blue) 50%);  /* tras rotar 45°: verde izq. / azul dcha. */
  border-radius: .02em;
}

/* Secciones */
section { position: relative; padding: clamp(5rem, 14vh, 11rem) var(--pad); }
.sec-head {
  display: flex; align-items: center; gap: 1rem;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  margin-bottom: clamp(1.5rem, 4vh, 3rem);
}
.sec-head::after { content: ""; flex: 1; height: 1px; background: var(--line); transform-origin: left; }
.js .sec-head::after { transform: scaleX(0); transition: transform 1.4s var(--ease-out) .2s; }
.js .sec-head.is-in::after { transform: none; }

h2 { font-weight: 560; letter-spacing: -.045em; line-height: .95; font-size: clamp(2.6rem, 6.4vw, 6.75rem); }

/* ---------- Botones ---------- */
.btn {
  --h: 3.6rem;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .75rem;
  height: var(--h); padding: 0 1.75rem;
  border-radius: 999px; border: 1px solid var(--line-2);
  font-weight: 600; font-size: .95rem; letter-spacing: .005em; text-decoration: none; white-space: nowrap;
  transition: color .5s var(--ease-out), border-color .5s, transform .6s var(--ease-out);
}
.btn::before {
  content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit;
  transform: translateY(102%); transition: transform .65s var(--ease-out);
}
.btn--primary { background: var(--fg); color: #050505; border-color: transparent; }
.btn--primary::before { background: var(--grad); }
.btn--ghost { color: var(--fg); background: rgba(255,255,255,.02); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn--ghost::before { background: var(--fg); }
.btn--ghost:hover { color: #050505; border-color: transparent; }
.btn:hover::before { transform: none; }
.btn--sm { --h: 2.6rem; padding: 0 1.15rem; font-size: .85rem; }
.btn--xl { --h: 4.2rem; padding: 0 2.2rem; font-size: 1.05rem; }
.btn__arrow { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(4px); }
[data-magnetic] { will-change: transform; }

/* ---------- Fondos fijos ---------- */
#universe { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.vignette { position: fixed; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(120% 90% at 50% 45%, transparent 45%, rgba(5,5,5,.75) 100%); }
.fallback-bg { display: none; position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.no-webgl .fallback-bg { display: block; }
.fallback-bg i { position: absolute; width: 50vmax; height: 50vmax; border-radius: 50%; filter: blur(90px); opacity: .28; animation: blob 18s ease-in-out infinite alternate; }
.fallback-bg i:nth-child(1) { background: var(--green); left: -10vmax; top: -10vmax; }
.fallback-bg i:nth-child(2) { background: var(--orange); right: -12vmax; top: 20vh; animation-delay: -6s; }
.fallback-bg i:nth-child(3) { background: var(--blue); left: 20vw; bottom: -20vmax; animation-delay: -12s; }
@keyframes blob { to { transform: translate(8vw, -6vh) scale(1.15); } }

.grain {
  position: fixed; inset: -100%; width: 300%; height: 300%; z-index: 80; pointer-events: none; opacity: .055;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -1%); } 80% { transform: translate(3%, 3%); }
}

.progress { position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 61; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--grad); transform-origin: left; transform: scaleX(0); }

/* ---------- Loader ---------- */
.loader { display: none; position: fixed; inset: 0; z-index: 100; }
.js .loader { display: block; }
.loader.is-done, .fallback .loader { display: none !important; }
.loader__panel { position: absolute; inset: 0; background: var(--bg); transition: transform 1.35s var(--ease-io); will-change: transform; }
.loader__panel--a { clip-path: polygon(0 0, 100.4% 0, 0 100.4%); }
.loader__panel--b { clip-path: polygon(100% -.4%, 100% 100%, -.4% 100%); }
.loader.is-out .loader__panel--a { transform: translate(-100%, -100%); }
.loader.is-out .loader__panel--b { transform: translate(100%, 100%); }
.loader__cut { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0; overflow: visible; }
.loader__cut line { stroke: url(#g-brand); stroke-width: 2; stroke-linecap: round; stroke-dasharray: var(--len, 4000); stroke-dashoffset: var(--len, 4000); }
.loader.is-cut .loader__cut { opacity: 1; }
.loader.is-cut .loader__cut line { transition: stroke-dashoffset .5s var(--ease-io); stroke-dashoffset: 0; }
.loader.is-out .loader__cut { opacity: 0; transition: opacity .5s .25s; }

.loader__inner { position: absolute; inset: 0; display: grid; place-items: center; transition: opacity .5s var(--ease-out), transform .9s var(--ease-out); }
.loader.is-cut .loader__inner { opacity: 0; transform: scale(.94); }
.loader__lockup { display: flex; align-items: center; gap: clamp(.6rem, 1.6vw, 1.4rem); font-size: clamp(1.9rem, 7vw, 6.5rem); }
.loader__mark { width: 1.15em; height: 1.15em; overflow: visible; flex: none; }
.lm-stroke { fill: none; stroke: var(--orange); stroke-width: 7.5; stroke-miterlimit: 10; stroke-dasharray: 1; stroke-dashoffset: 1; }
.loader.is-start .lm-stroke { transition: stroke-dashoffset 1.6s var(--ease-io) .1s; stroke-dashoffset: 0; }
.lm-g, .lm-b { transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform .8s var(--ease-out); }
.lm-g { fill: var(--green); } .lm-b { fill: var(--blue); }
.loader.is-mark .lm-g { transform: none; }
.loader.is-mark .lm-b { transform: none; transition-delay: .08s; }

/* Máscara de entrada holgada (padding + margen negativo) para que el brillo de las letras no se recorte */
.loader__word { --ls: -.045em; font-weight: 640; letter-spacing: var(--ls); line-height: 1; overflow: hidden; padding: .5em .6em .55em; margin: -.5em -.6em -.55em; font-variation-settings: "ROND" 100; }
.lw { display: inline-block; white-space: nowrap; transform: translateY(185%); transition: transform 1.2s var(--ease-out) .25s; }
.loader.is-start .lw { transform: none; }
.lw .k, .lw .c { display: inline-block; vertical-align: bottom; }
/* Ola de izquierda a derecha: cada letra (--n) cambia cuando la ola pasa por ella */
.lw { --step: 45ms; --dur: 1.1s; }
.loader.is-fast .lw { --step: 18ms; --dur: .5s; }
.lw .k, .lw .cl { color: var(--fg); transition: color var(--dur) var(--ease-soft) calc(var(--n, 0) * var(--step)), text-shadow calc(var(--dur) * 1.3) var(--ease-soft) calc(var(--n, 0) * var(--step)); }
.lw .c { white-space: pre; overflow: hidden; max-width: var(--w, 8em); transition: max-width .95s var(--ease-io), opacity .55s var(--ease-out); }
/* El acrónimo se enciende: Dis (verde) · y (naranja) · de (azul); el resto se apaga */
.loader.is-lit .lw .cl { color: rgba(244, 241, 234, .2); }
.loader.is-lit .lw .k--g { color: var(--green); text-shadow: 0 0 .45em rgba(139, 197, 63, .35); }
.loader.is-lit .lw .k--o { color: var(--orange); text-shadow: 0 0 .45em rgba(245, 130, 31, .35); }
.loader.is-lit .lw .k--b { color: var(--blue); text-shadow: 0 0 .45em rgba(0, 174, 239, .35); }
.loader.is-collapse .lw .c { max-width: 0; opacity: 0; }
.lw .li::before { transform: translateX(-50%) rotate(45deg) scale(0); transition: transform .7s var(--ease-out) .55s; }
.loader.is-collapse .lw .li::before { transform: translateX(-50%) rotate(45deg) scale(1); }

.loader__foot { position: absolute; left: var(--pad); right: var(--pad); bottom: calc(var(--pad) + 1rem); display: flex; justify-content: space-between; align-items: flex-end; color: var(--muted); }
.loader__count { font-size: clamp(1rem, 2vw, 1.4rem); color: var(--fg); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.loader__bar { position: absolute; left: var(--pad); right: var(--pad); bottom: var(--pad); height: 1px; background: var(--line); overflow: hidden; }
.loader__bar i { display: block; height: 100%; background: var(--grad); transform-origin: left; transform: scaleX(0); }

/* ---------- Navegación ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 0 var(--pad);
  transition: transform .7s var(--ease-out), background-color .5s, border-color .5s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(5,5,5,.55); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-color: var(--line); }
.nav.is-hidden { transform: translateY(-105%); }
.js .nav { opacity: 0; transform: translateY(-30%); }
.js.is-ready .nav { opacity: 1; transform: none; transition: transform 1.1s var(--ease-out) .5s, opacity 1.1s var(--ease-out) .5s, background-color .5s, border-color .5s; }
.js.is-ready .nav.is-hidden { transform: translateY(-105%); transition: transform .7s var(--ease-out), background-color .5s, border-color .5s; }
.nav__brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; font-size: 1.45rem; }
.nav__brand .mark { width: 2rem; height: 2rem; transition: transform .8s var(--ease-out); }
.nav__brand:hover .mark { transform: rotate(180deg); }
.nav__links { display: flex; gap: clamp(1rem, 2.4vw, 2.4rem); font-size: .92rem; font-weight: 500; }
.nav__links a { position: relative; text-decoration: none; color: var(--muted); transition: color .3s; padding: .4rem 0; }
.nav__links a:hover, .nav__links a.is-active { color: var(--fg); }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--grad); transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease-out); }
.nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }
/* Texto que "rueda": el original sube y el duplicado entra desde abajo */
.roll { display: inline-block; overflow: hidden; vertical-align: top; height: 1.3em; line-height: 1.3; }
.roll > span { position: relative; display: inline-block; transition: transform .55s var(--ease-out); }
.roll > span::after { content: attr(data-text); position: absolute; left: 0; top: 100%; }
a:hover .roll > span { transform: translateY(-100%); }

.nav__actions { display: flex; align-items: center; gap: .75rem; }

.burger { display: none; width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 1px solid var(--line-2); place-items: center; }
.burger__lines { position: relative; width: 16px; height: 8px; }
.burger__lines i { position: absolute; left: 0; right: 0; height: 1.5px; background: var(--fg); transition: transform .5s var(--ease-out), top .5s var(--ease-out); }
.burger__lines i:first-child { top: 0; } .burger__lines i:last-child { top: 6.5px; }
.menu-open .burger__lines i:first-child { top: 3.25px; transform: rotate(45deg); }
.menu-open .burger__lines i:last-child { top: 3.25px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 55; padding: calc(var(--nav-h) + 2rem) var(--pad) var(--pad);
  display: flex; flex-direction: column; justify-content: space-between;
  background: rgba(5,5,5,.92); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  clip-path: inset(0 0 100% 0); transition: clip-path .9s var(--ease-io); visibility: hidden;
}
.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; }
.menu__links { display: flex; flex-direction: column; }
.menu__links a { display: flex; align-items: baseline; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: clamp(2.4rem, 11vw, 4.5rem); font-weight: 560; letter-spacing: -.04em; line-height: 1.05; opacity: 0; transform: translateY(30px); transition: opacity .6s, transform .8s var(--ease-out); }
.menu__links a .mono { color: var(--orange); font-size: .75rem; }
.menu-open .menu__links a { opacity: 1; transform: none; }
.menu-open .menu__links a:nth-child(1) { transition-delay: .25s; } .menu-open .menu__links a:nth-child(2) { transition-delay: .3s; }
.menu-open .menu__links a:nth-child(3) { transition-delay: .35s; } .menu-open .menu__links a:nth-child(4) { transition-delay: .4s; }
.menu-open .menu__links a:nth-child(5) { transition-delay: .45s; }
.menu__foot { display: flex; justify-content: space-between; color: var(--muted); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-rows: auto 1fr auto;
  padding-top: calc(var(--nav-h) + 1.25rem); padding-bottom: clamp(1.5rem, 4vh, 2.5rem);
}
.hero__meta { display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); }
.hero__loc { display: inline-flex; align-items: center; gap: .6rem; }
.pulse { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(139,197,63,.6); animation: pulse 2.2s infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(139,197,63,.55); } 70% { box-shadow: 0 0 0 10px rgba(139,197,63,0); } 100% { box-shadow: 0 0 0 0 rgba(139,197,63,0); } }

.hero__title {
  align-self: center;
  margin: clamp(2rem, 6vh, 5rem) 0;
  font-size: clamp(3.4rem, 10.2vw, 12.5rem);
  font-weight: 520;
  line-height: .86;
  letter-spacing: -.058em;
}
.hl { display: block; overflow: hidden; padding: 0 .05em .09em; margin: 0 -.05em -.09em; }
.hl__in { display: inline-block; }
.js .hl__in { transform: translateY(112%); }
.js.is-ready .hl__in { transform: none; transition: transform 1.5s var(--ease-out); transition-delay: calc(.15s + var(--d) * .11s); }
.hl--2 { padding-left: 10.5vw; }
.hl--3 { text-align: right; }
.hero__title .serif { font-size: 1.1em; line-height: .8; letter-spacing: -.035em; }
[data-prox] > span { font-variation-settings: "wght" var(--w, 520), "ROND" var(--r, 0); }

.hero__foot { display: grid; grid-template-columns: minmax(0, 30rem) 1fr auto; gap: 2rem 3rem; align-items: end; }
.hero__lead { color: var(--muted); font-size: clamp(1rem, .95rem + .3vw, 1.2rem); line-height: 1.5; }
.hero__lead strong { color: var(--fg); font-weight: 500; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero__scroll { display: flex; flex-direction: column; align-items: center; gap: .75rem; text-decoration: none; color: var(--muted); }
.hero__scroll-line { position: relative; width: 1px; height: 4.5rem; background: var(--line); overflow: hidden; }
.hero__scroll-line::after { content: ""; position: absolute; inset: 0; background: linear-gradient(var(--green), var(--orange), var(--blue)); animation: scrolline 2.4s var(--ease-io) infinite; }
@keyframes scrolline { 0% { transform: translateY(-100%); } 50% { transform: none; } 100% { transform: translateY(100%); } }

.js .fade-up { opacity: 0; transform: translateY(24px); }
.js.is-ready .fade-up { opacity: 1; transform: none; transition: opacity 1.2s var(--ease-out), transform 1.2s var(--ease-out); transition-delay: calc(.3s + var(--d) * .1s); }

/* ---------- Marquee ---------- */
.marquee { padding: clamp(2rem, 6vh, 4rem) 0; border-block: 1px solid var(--line); background: rgba(5,5,5,.35); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); overflow: hidden; }
.marquee__row { --skew: 0deg; display: flex; overflow: hidden; transform: skewX(var(--skew)); }
.marquee__track { display: flex; align-items: center; gap: clamp(1.5rem, 3vw, 3rem); padding-right: clamp(1.5rem, 3vw, 3rem); white-space: nowrap; will-change: transform; flex: none; }
.marquee__row:first-child .marquee__track { font-size: clamp(3rem, 8vw, 8.5rem); font-weight: 700; letter-spacing: -.05em; line-height: 1.1; }
.marquee__row:first-child span { color: transparent; -webkit-text-stroke: 1px rgba(244,241,234,.55); transition: color .4s, -webkit-text-stroke-color .4s; }
.marquee__row:first-child span:hover { color: var(--fg); -webkit-text-stroke-color: transparent; }
.marquee__row:first-child i { font-style: normal; font-size: .35em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.marquee__row--alt { margin-top: 1rem; }
.marquee__row--alt .marquee__track { font-family: var(--mono); font-size: clamp(.8rem, 1.2vw, 1rem); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.marquee__row--alt i { font-style: normal; color: var(--orange); }

/* ---------- Manifiesto ---------- */
.manifesto { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }
.manifesto__text { font-size: clamp(1.9rem, 4.1vw, 4.6rem); font-weight: 480; letter-spacing: -.035em; line-height: 1.06; max-width: 19em; }
.manifesto__text .mw { opacity: .13; transition: opacity .45s ease, color .45s ease; }
.manifesto__text .mw.is-lit { opacity: 1; }
.manifesto__text .mk.is-lit .mw, .manifesto__text .mk .mw.is-lit { opacity: 1; }
.mk--g .mw.is-lit { color: var(--green); } .mk--o .mw.is-lit { color: var(--orange); } .mk--b .mw.is-lit { color: var(--blue); }
.manifesto__name { margin-top: clamp(3rem, 10vh, 7rem); margin-left: auto; max-width: 28rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--muted); }
.name-decode { margin: .9rem 0 .7rem; font-size: clamp(2rem, 3.4vw, 3.2rem); font-weight: 560; letter-spacing: -.04em; line-height: 1; color: var(--dim); }
.name-decode b { color: var(--fg); font-weight: 700; }
.name-decode b:nth-of-type(1) { color: var(--green); } .name-decode b:nth-of-type(2) { color: var(--orange); } .name-decode b:nth-of-type(3) { color: var(--blue); }
.manifesto__note { font-size: 1rem; }

/* Reveal genérico */
.js [data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 1.1s var(--ease-out), transform 1.3s var(--ease-out); transition-delay: calc(var(--d, 0) * .12s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Split por palabras */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .07em .1em; margin: 0 -.07em -.1em; }
.w__in { display: inline-block; }
.js [data-split] .w__in { transform: translateY(108%); transition: transform 1.2s var(--ease-out); transition-delay: calc(var(--i) * 45ms + .05s); }
.js [data-split].is-in .w__in { transform: none; }

/* ---------- Servicios ---------- */
.services { height: 600vh; height: 600svh; padding: 0; }
.services__pin {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); grid-template-rows: auto 1fr auto;
  column-gap: 3rem;
  padding: calc(var(--nav-h) + 1rem) var(--pad) clamp(1.25rem, 3vh, 2rem);
}
.services__head { grid-column: 1; grid-row: 1; }
.services__head .sec-head { margin-bottom: 1.25rem; }
.services__title { font-size: clamp(1.6rem, 2.6vw, 2.6rem); font-weight: 500; letter-spacing: -.03em; line-height: 1.05; max-width: 16em; }
.services__panels { grid-column: 1; grid-row: 2; position: relative; min-height: 0; }
.svc { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 1.25rem; visibility: hidden; pointer-events: none; transition: visibility 0s 1s; }
.svc.is-active { visibility: visible; pointer-events: auto; transition-delay: 0s; }
.svc__line { display: block; overflow: hidden; padding: 0 .06em .08em; margin: 0 -.06em -.08em; }
.svc__line > * { display: block; transform: translateY(108%); transition: transform .95s var(--ease-out); }
.svc.from-top .svc__line > * { transform: translateY(-108%); transition: none !important; }
.svc.is-active .svc__line > * { transform: none; }
.svc.is-active .svc__name .svc__line:nth-child(1) > * { transition-delay: .06s; }
.svc.is-active .svc__name .svc__line:nth-child(2) > * { transition-delay: .13s; }
.svc.is-active .svc__desc > * { transition-delay: .2s; }
.svc.is-active > .svc__line:last-child > * { transition-delay: .27s; }
.svc.no-tr .svc__line > * { transition: none !important; }
.svc.is-out-up .svc__line > * { transform: translateY(-108%); transition: transform .7s var(--ease-io); }
.svc__num { color: var(--orange); }
.svc__name { font-size: clamp(3rem, 5.6vw, 6.8rem); font-weight: 600; font-stretch: 86%; font-variation-settings: "wdth" 86; letter-spacing: -.045em; line-height: .92; }
.svc__name .serif { font-weight: 400; letter-spacing: -.03em; }
.svc__desc { color: var(--muted); max-width: 31rem; font-size: clamp(1rem, .95rem + .25vw, 1.15rem); }
.svc__tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.svc__tags li { font-family: var(--mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; padding: .45rem .8rem; border: 1px solid var(--line-2); border-radius: 999px; color: var(--fg); background: rgba(5,5,5,.4); }

.services__hud { grid-column: 2; grid-row: 1 / 3; position: relative; margin: 1rem 0 1.5rem; pointer-events: none; color: var(--dim); }
.hud-c { position: absolute; width: 22px; height: 22px; border: 1px solid var(--line-2); }
.hud-c--tl { top: 0; left: 0; border-right: 0; border-bottom: 0; } .hud-c--tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.hud-c--bl { bottom: 0; left: 0; border-right: 0; border-top: 0; } .hud-c--br { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.hud-t { position: absolute; font-size: .65rem; }
.hud-t--tl { top: .4rem; left: 2rem; } .hud-t--tr { top: .4rem; right: 2rem; }
.hud-t--bl { bottom: .4rem; left: 2rem; color: var(--orange); } .hud-t--br { bottom: .4rem; right: 2rem; }

.services__index { grid-column: 1 / -1; grid-row: 3; border-top: 1px solid var(--line); padding-top: 1rem; }
.services__index ol { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.services__index button { position: relative; display: flex; align-items: baseline; gap: .6rem; width: 100%; padding: .35rem 0 .6rem; text-align: left; color: var(--dim); font-size: .9rem; font-weight: 500; transition: color .4s; }
.services__index button .mono { font-size: .68rem; }
.services__index button i { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--line); overflow: hidden; }
.services__index button i::after { content: ""; position: absolute; inset: 0; background: var(--grad); transform-origin: left; transform: scaleX(var(--p, 0)); }
.services__index button:hover { color: var(--muted); }
.services__index button.is-active { color: var(--fg); }

/* ---------- Método (horizontal) ---------- */
.method { padding: 0; }
.method__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.method__track { display: flex; align-items: stretch; gap: clamp(1rem, 2vw, 2rem); padding: 0 var(--pad); width: max-content; will-change: transform; }
.method__intro { flex: 0 0 min(36rem, 42vw); display: flex; flex-direction: column; justify-content: center; padding-right: 4vw; }
.method__title { font-size: clamp(3.5rem, 9vw, 9.5rem); line-height: .9; }
.method__lead { margin-top: 1.5rem; color: var(--muted); max-width: 28rem; }
.method__hint { margin-top: 2rem; color: var(--orange); }
.step {
  --mx: 50%; --my: 50%;
  position: relative; isolation: isolate; overflow: hidden;
  flex: 0 0 min(28rem, 32vw); min-height: min(68vh, 36rem);
  display: flex; flex-direction: column; padding: clamp(1.5rem, 2.4vw, 2.25rem);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  transition: border-color .5s, transform .8s var(--ease-out);
}
.step::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(245,130,31,.16), transparent 60%); opacity: 0; transition: opacity .5s; }
.step::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: radial-gradient(300px circle at var(--mx) var(--my), rgba(255,255,255,.5), transparent 60%); -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; pointer-events: none; }
.step:hover::before, .step:hover::after { opacity: 1; }
.step__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: auto; }
.step__num { font-size: clamp(4.5rem, 8vw, 8rem); font-weight: 700; letter-spacing: -.06em; line-height: .8; color: transparent; -webkit-text-stroke: 1px rgba(244,241,234,.28); transition: color .6s, -webkit-text-stroke-color .6s; }
.step.is-in .step__num { -webkit-text-stroke-color: rgba(244,241,234,.5); }
.step__icon { width: clamp(3rem, 4.5vw, 4rem); height: auto; fill: none; stroke: url(#g-brand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.step__icon > * { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease-io); }
.step.is-in .step__icon > * { stroke-dashoffset: 0; }
.step.is-in .step__icon > *:nth-child(2) { transition-delay: .2s; } .step.is-in .step__icon > *:nth-child(3) { transition-delay: .4s; }
.step.is-in .step__icon > *:nth-child(4) { transition-delay: .55s; } .step.is-in .step__icon > *:nth-child(5) { transition-delay: .7s; } .step.is-in .step__icon > *:nth-child(6) { transition-delay: .8s; }
.step h3 { margin-top: 2.5rem; font-size: clamp(2.2rem, 3.4vw, 3.4rem); font-weight: 600; letter-spacing: -.045em; line-height: 1; }
.step p { margin-top: .9rem; color: var(--muted); }
.step__list { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin-top: 1.5rem; padding-top: 1.1rem; border-top: 1px solid var(--line); color: var(--fg); font-size: .68rem; }
.step__list li::before { content: "◆ "; color: var(--orange); font-size: .8em; }
.method__bar { position: absolute; left: var(--pad); right: var(--pad); bottom: clamp(1.5rem, 4vh, 3rem); height: 1px; background: var(--line); }
.method__bar i { display: block; height: 100%; background: var(--grad); transform-origin: left; transform: scaleX(0); }

/* ---------- Trayectoria ---------- */
.stats { overflow: hidden; }
.stats__title { max-width: 14em; }
.stats__line { position: absolute; left: 0; right: 0; bottom: 18%; width: 100%; height: 40%; pointer-events: none; opacity: .5; }
.stats__line path { fill: none; stroke: url(#g-brand); stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 3s var(--ease-io); }
.stats.is-in .stats__line path { stroke-dashoffset: 0; }
.stats__grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(3rem, 10vh, 7rem); border-top: 1px solid var(--line); }
.stat { padding: 2rem 2rem 0 0; }
.stat + .stat { padding-left: 2rem; border-left: 1px solid var(--line); }
.stat__num { font-size: clamp(4.2rem, 10.5vw, 11rem); font-weight: 640; letter-spacing: -.06em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat--g .stat__num { color: var(--green); } .stat--o .stat__num { color: var(--orange); } .stat--b .stat__num { color: var(--blue); }
.stat__label { margin-top: 1rem; color: var(--fg); }
.stat__text { margin-top: .5rem; color: var(--muted); max-width: 20rem; }
.odo { display: inline-flex; align-items: flex-start; }
.odo__col { display: inline-block; height: 1em; overflow: hidden; line-height: 1; }
.odo__strip { display: flex; flex-direction: column; transition: transform 2.6s var(--ease-out); }
.odo__strip span, .odo__fix { display: block; height: 1em; line-height: 1; }
.odo__fix { font-size: .62em; line-height: 1.55; margin-right: .04em; }

/* ---------- Lab ---------- */
.lab { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.lab__title { font-size: clamp(2.6rem, 5.4vw, 5.8rem); }
.lab__lead { margin-top: 1.5rem; color: var(--muted); max-width: 30rem; }
.lab__chips { margin-top: 2rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { position: relative; display: inline-flex; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.chip > span { display: inline-flex; align-items: center; height: 2.6rem; padding: 0 1.1rem; border: 1px solid var(--line-2); border-radius: 999px; font-size: .88rem; font-weight: 500; color: var(--fg); background: rgba(5,5,5,.35); transition: background .35s, color .35s, border-color .35s, transform .35s var(--ease-out); }
.chip:hover > span { border-color: var(--fg); }
.chip:active > span { transform: scale(.96); }
.chip input:checked + span, .chip.is-on > span { background: var(--fg); color: #050505; border-color: var(--fg); }
.chip input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 3px; }

.lab__term { display: flex; flex-direction: column; gap: 1.25rem; align-items: flex-start; }
.term { width: 100%; border: 1px solid var(--line-2); border-radius: 1.1rem; background: rgba(8,8,10,.82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 40px 120px -30px rgba(0,174,239,.25), 0 30px 80px -40px rgba(245,130,31,.3); overflow: hidden; }
.term__bar { display: flex; align-items: center; gap: .45rem; padding: .85rem 1rem; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.02); }
.term__bar > span { width: 11px; height: 11px; border-radius: 50%; background: #2a2a2e; }
.term__bar > span:nth-child(1) { background: var(--orange); } .term__bar > span:nth-child(2) { background: var(--green); } .term__bar > span:nth-child(3) { background: var(--blue); }
.term__bar p { margin-left: auto; margin-right: auto; color: var(--dim); font-size: .66rem; transform: translateX(-1.5rem); text-transform: none; letter-spacing: .02em; }
.term__body { font-family: var(--mono); font-size: clamp(.74rem, .7rem + .2vw, .86rem); line-height: 1.7; padding: 1rem 1.15rem 1.1rem; cursor: text; }
.term__out { height: clamp(15rem, 40vh, 22rem); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #333 transparent; }
.tl { white-space: pre-wrap; word-break: break-word; color: var(--muted); }
.tl.cmd { color: var(--fg); margin-top: .35rem; }
.tl .tp, .term__prompt { color: var(--green); }
.tl.ok::before { content: "✓ "; color: var(--green); }
.tl.warn { color: var(--orange); }
.tl.info { color: var(--dim); }
.tl.acc, .tl .acc { color: var(--blue); }
.tl.big { color: var(--fg); }
.tl.end { color: var(--fg); margin-top: .35rem; }
.tl.end::before { content: "→ "; color: var(--orange); }
.term__line { display: flex; align-items: center; gap: .65rem; margin-top: .3rem; }
.term__line input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--fg); font: inherit; caret-color: var(--orange); padding: 0; }
.term__line input::placeholder { color: var(--dim); }
.term__cta[hidden] { display: none; }
.term__cta { animation: pop .8s var(--ease-out); }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.96); } }

/* ---------- Contacto ---------- */
.contact__title { font-size: clamp(3rem, 8.4vw, 9.5rem); line-height: .9; max-width: 11em; }
.contact__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 6rem); margin-top: clamp(3rem, 8vh, 6rem); align-items: start; }
.contact__lead { font-size: clamp(1.2rem, 1.1rem + .5vw, 1.6rem); line-height: 1.35; letter-spacing: -.015em; }
.contact__steps { margin-top: 2.5rem; border-top: 1px solid var(--line); }
.contact__steps li { display: flex; gap: 1.25rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.contact__steps .mono { color: var(--orange); padding-top: .25rem; }
.contact__where { display: flex; align-items: center; gap: .6rem; margin-top: 2rem; color: var(--muted); }

.form { position: relative; padding: clamp(1.5rem, 3vw, 2.75rem); border: 1px solid var(--line); border-radius: 2rem; background: var(--panel); backdrop-filter: blur(22px) saturate(130%); -webkit-backdrop-filter: blur(22px) saturate(130%); overflow: hidden; }
.form__group { border: 0; padding: 0; margin: 0 0 1.75rem; min-width: 0; }
.form__group legend { padding: 0; margin-bottom: .9rem; color: var(--muted); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.5rem; }
.field { position: relative; margin-bottom: 1.4rem; }
.field input, .field textarea {
  width: 100%; padding: 1.5rem 0 .6rem; background: none; border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0;
  color: var(--fg); font: inherit; font-size: 1.05rem; outline: none; resize: vertical; transition: border-color .3s;
}
.field textarea { min-height: 7rem; }
.field label { position: absolute; left: 0; top: 1.45rem; color: var(--muted); pointer-events: none; transform-origin: left top; transition: transform .45s var(--ease-out), color .3s; }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-1.3rem) scale(.78); color: var(--fg); }
.field::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease-out); }
.field:has(textarea)::after { bottom: 6px; }
.field:not(:has(textarea))::after { bottom: 0; }
.field:focus-within::after { transform: none; }
.field__err { display: block; height: 0; overflow: hidden; color: var(--orange); font-size: .8rem; transition: height .3s; }
.field.is-invalid .field__err { height: 1.4rem; padding-top: .35rem; }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--orange); }
.check { display: flex; align-items: flex-start; gap: .75rem; color: var(--muted); font-size: .9rem; cursor: pointer; margin: .5rem 0 1.75rem; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check__box { flex: none; width: 1.2rem; height: 1.2rem; margin-top: .1rem; border: 1px solid var(--line-2); border-radius: .35rem; display: grid; place-items: center; transition: background .3s, border-color .3s; }
.check__box::after { content: ""; width: .55rem; height: .3rem; border-left: 2px solid #050505; border-bottom: 2px solid #050505; transform: rotate(-45deg) scale(0); margin-top: -.15rem; transition: transform .3s var(--ease-out); }
.check input:checked + .check__box { background: var(--green); border-color: var(--green); }
.check input:checked + .check__box::after { transform: rotate(-45deg) scale(1); }
.check input:focus-visible + .check__box { outline: 2px solid var(--blue); outline-offset: 3px; }
.check.is-invalid .check__box { border-color: var(--orange); }
.check a { color: var(--fg); }
.form__submit { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.form__status { color: var(--orange); font-size: .9rem; }
.btn__spin { display: none; width: 1.1rem; height: 1.1rem; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
.btn.is-loading .btn__spin { display: block; } .btn.is-loading .btn__arrow { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.form__done { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .75rem; padding: 2rem; background: rgba(8,8,10,.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--muted); opacity: 0; visibility: hidden; transition: opacity .6s, visibility 0s .6s; }
.form.is-sent .form__done { opacity: 1; visibility: visible; transition-delay: 0s; }
.form__done svg { width: 4.5rem; height: 4.5rem; fill: none; stroke: var(--green); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: .5rem; }
.form__done svg * { stroke-dasharray: 1; stroke-dashoffset: 1; }
.form.is-sent .form__done svg circle { transition: stroke-dashoffset 1s var(--ease-io) .2s; stroke-dashoffset: 0; }
.form.is-sent .form__done svg path { transition: stroke-dashoffset .6s var(--ease-out) .9s; stroke-dashoffset: 0; }
.form__done-title { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 600; letter-spacing: -.04em; color: var(--fg); line-height: 1; }
.form__done .btn { margin-top: 1rem; }

.contact__mail { margin-top: 1.75rem; color: var(--muted); }
.contact__mail a { color: var(--fg); text-decoration-color: var(--orange); text-underline-offset: .2em; }
.form__done-alt { font-size: .9rem; }
.form__done-alt a { color: var(--fg); }

/* ---------- Footer ---------- */
.footer { padding: clamp(5rem, 12vh, 9rem) var(--pad) 1.5rem; border-top: 1px solid var(--line); background: linear-gradient(transparent, rgba(5,5,5,.85) 40%); }
.footer__top { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.4fr); gap: 2rem; }
.footer__col .mono { color: var(--dim); margin-bottom: 1rem; }
.footer__col li + li { margin-top: .35rem; }
.footer__col a { color: var(--muted); text-decoration: none; transition: color .3s; }
.footer__col a:hover { color: var(--fg); }
.footer__col--cta { justify-self: end; text-align: right; }
.footer__big { display: inline-flex; align-items: center; gap: .3em; font-size: clamp(2.4rem, 4.6vw, 4.8rem); font-weight: 600; letter-spacing: -.05em; line-height: 1; color: var(--fg) !important; }
.footer__big svg { width: .7em; height: .7em; fill: none; stroke: var(--orange); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .6s var(--ease-out); }
.footer__big:hover svg { transform: translate(6px, -6px) rotate(45deg); }

.footer__brand { --x: 50%; --y: 50%; margin: clamp(3rem, 8vh, 6rem) -.04em 0; text-align: center; line-height: .78; user-select: none; }
.footer__wm {
  --ls: -.07em; display: inline-block; font-size: clamp(6rem, 27vw, 30rem); font-weight: 760; letter-spacing: var(--ls); font-variation-settings: "ROND" 100;
  background: radial-gradient(32vw circle at var(--x) var(--y), var(--orange), var(--green) 28%, var(--blue) 52%, rgba(244,241,234,.07) 78%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding: 0 .04em .1em;
}
/* La "ı" va como texto normal: WebKit (Safari y todos los navegadores de iPhone) no aplica el
   background-clip: text a letras dentro de cajas inline-block. El rombo es un elemento aparte que
   main.js coloca midiendo la letra entre los dos marcadores de ancho cero. */
.footer__wm { position: relative; }
.footer__mk { display: inline-block; width: 0; height: 0; vertical-align: baseline; }
.footer__dot { position: absolute; left: var(--dot-x, 0); top: var(--dot-y, 0); width: .15em; height: .15em; transform: translate(-50%, -50%) rotate(45deg); background: linear-gradient(45deg, var(--green) 50%, var(--blue) 50%); border-radius: .02em; opacity: 0; transition: opacity .4s; }
.footer__wm.has-dot .footer__dot { opacity: 1; }
.js .footer__wm { clip-path: inset(100% 0 0 0); transform: translateY(18%); transition: clip-path 1.6s var(--ease-io), transform 1.6s var(--ease-out); }
.js .footer__brand.is-in .footer__wm { clip-path: inset(-10% 0 -10% 0); transform: none; }

.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--dim); font-size: .66rem; }
.footer__bottom nav { display: flex; gap: 1.5rem; }
.footer__bottom a { text-decoration: none; transition: color .3s; }
.footer__bottom a:hover, .to-top:hover { color: var(--fg); }
.to-top { font: inherit; letter-spacing: inherit; text-transform: inherit; color: var(--dim); transition: color .3s; }

/* ---------- Cursor ---------- */
.cursor { display: none; }
.has-cursor .cursor { display: block; }
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor label, .has-cursor .chip { cursor: none; }
.has-cursor input, .has-cursor textarea { cursor: text; }
.cursor__dot, .cursor__ring { position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; border-radius: 50%; mix-blend-mode: difference; }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: #fff; }
.cursor__ring { width: 40px; height: 40px; margin: -20px 0 0 -20px; display: grid; place-items: center; }
.cursor__ring::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(255,255,255,.9); transition: transform .45s var(--ease-out), background-color .35s, border-color .35s; }
.cursor.is-hover .cursor__ring::before { transform: scale(1.75); background: #fff; }
.cursor.is-label .cursor__ring::before { transform: scale(2.4); background: #fff; }
.cursor.is-hidden .cursor__ring, .cursor.is-hidden .cursor__dot { opacity: 0; }
.cursor.is-text .cursor__ring::before { transform: scale(.4); }
.cursor__label { position: relative; color: #000; font-family: var(--mono); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; opacity: 0; transition: opacity .3s; white-space: nowrap; }
.cursor.is-label .cursor__label { opacity: 1; }
.cursor.is-hover .cursor__dot, .cursor.is-label .cursor__dot { opacity: 0; }

/* ---------- 404 ---------- */
.lost { position: relative; z-index: 2; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--nav-h) + 2rem) var(--pad) 3.5rem; overflow: hidden; }
.lost__copy { position: relative; max-width: 38rem; }
.lost__copy > * { animation: lost-in 1.1s var(--ease-out) both; }
.lost__copy > :nth-child(2) { animation-delay: .08s; } .lost__copy > :nth-child(3) { animation-delay: .16s; }
.lost__copy > :nth-child(4) { animation-delay: .24s; } .lost__copy > :nth-child(5) { animation-delay: .32s; }
.lost__copy > :nth-child(6) { animation-delay: .4s; }
@keyframes lost-in { from { opacity: 0; transform: translateY(26px); } }
.lost__code { color: var(--orange); }
.lost__title { margin-top: 1.25rem; font-size: clamp(2.7rem, 6vw, 6.2rem); font-weight: 560; letter-spacing: -.045em; line-height: .95; }
.lost__lead { margin-top: 1.5rem; max-width: 30rem; color: var(--muted); font-size: clamp(1rem, .95rem + .3vw, 1.2rem); }
.lost__term { margin-top: 2rem; max-width: 31rem; padding: 1rem 1.15rem; border: 1px solid var(--line-2); border-radius: 1rem; background: rgba(8, 8, 10, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); font-family: var(--mono); font-size: .8rem; line-height: 1.75; color: var(--muted); }
.lost__term .tp { color: var(--green); } .lost__term .warn { color: var(--orange); } .lost__term .dim { color: var(--dim); }
.lost__path { color: var(--fg); word-break: break-all; }
.lost__ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.lost__links { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.lost__links a { display: inline-flex; align-items: baseline; gap: .5rem; color: var(--muted); text-decoration: none; transition: color .3s; }
.lost__links a:hover { color: var(--fg); }
.lost__links .mono { color: var(--orange); font-size: .65rem; }
.lost__hint { position: absolute; right: var(--pad); bottom: 2rem; color: var(--dim); animation: lost-in 1.2s var(--ease-out) 1.2s both; }
/* Sin WebGL: un 404 tipográfico ocupa el sitio de las partículas */
.lost__ghost { display: none; position: absolute; right: var(--pad); top: 50%; transform: translateY(-50%); margin: 0; font-size: clamp(8rem, 26vw, 26rem); font-weight: 800; letter-spacing: -.06em; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--line-2); pointer-events: none; }
.no-webgl .lost__ghost { display: block; }

/* ---------- Fallback (sin JS principal) ---------- */
.fallback .hl__in, .fallback .w__in, .fallback .fade-up, .fallback [data-reveal], .fallback .footer__wm, .fallback .nav { transform: none !important; opacity: 1 !important; clip-path: none !important; }
.fallback .svc .svc__line > * { transform: none !important; }
.fallback .services { height: auto; } .fallback .services__pin { position: static; height: auto; display: block; }
.fallback .svc { position: static; visibility: visible; margin: 3rem 0; }
.fallback .services__hud, .fallback .services__index { display: none; }
.fallback .method__pin { position: static; height: auto; overflow: visible; }
.fallback .method__track { flex-direction: column; width: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav__links { display: none; }
  .burger { display: grid; }
  .footer__top { grid-template-columns: repeat(3, 1fr); }
  .footer__col--cta { grid-column: 1 / -1; justify-self: start; text-align: left; }
}

@media (max-width: 899px) {
  :root { --nav-h: 4.25rem; }
  .nav__cta { display: none; }

  .hero__title { font-size: clamp(3rem, 15.5vw, 6.5rem); line-height: .9; margin: 0; align-self: end; padding-bottom: 2rem; }
  .hl--2 { padding-left: 0; }
  .hero__meta { flex-direction: column; gap: .4rem; }
  .hero__foot { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero__scroll { display: none; }

  .manifesto__text { font-size: clamp(1.7rem, 7.4vw, 2.6rem); }

  .services { height: 550vh; height: 550svh; }
  .services__pin { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto auto; padding-top: calc(var(--nav-h) + .75rem); }
  .services__title { font-size: clamp(1.25rem, 5.4vw, 1.6rem); }
  .services__hud { display: none; }
  .services__panels { grid-row: 3; height: 46svh; min-height: 18rem; }
  .svc { justify-content: flex-end; gap: .85rem; padding-bottom: 1rem; }
  .svc__name { font-size: clamp(2.6rem, 12.5vw, 4.2rem); }
  .svc__desc { font-size: .95rem; }
  .services__index { grid-row: 4; }
  .services__index ol { gap: .4rem; }
  .services__index-name { display: none; }
  .services__index button { justify-content: center; }

  .method { height: auto !important; padding: clamp(5rem, 12vh, 8rem) 0; }
  .method__pin { position: static; height: auto; overflow: visible; }
  .method__track { flex-direction: column; width: auto; transform: none !important; }
  .method__intro { flex: auto; padding: 0 0 1rem; }
  .step { flex: auto; min-height: 24rem; }
  .method__bar, .method__hint { display: none; }

  .stats__grid { grid-template-columns: 1fr; }
  .stat, .stat + .stat { padding: 2rem 0; border-left: 0; border-bottom: 1px solid var(--line); }

  .lab { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .form { border-radius: 1.5rem; }

  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 899px) {
  .lost { align-items: flex-end; padding-top: 46svh; }
  .lost__hint { display: none; }
  .lost__ghost { top: 26svh; right: 50%; transform: translate(50%, -50%); }
}

@media (max-width: 520px) {
  .hero__ctas .btn { flex: 1 1 100%; }
  .footer__top { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .grain { display: none; }
  /* Sin scroll horizontal secuestrado: el método se apila */
  .method { height: auto !important; padding: clamp(5rem, 12vh, 8rem) 0; }
  .method__pin { position: static; height: auto; overflow: visible; }
  .method__track { flex-wrap: wrap; width: auto; transform: none !important; }
  .method__intro { flex: 1 1 100%; }
  .step { flex: 1 1 18rem; min-height: 24rem; }
  .method__bar, .method__hint { display: none; }
}
