/* Humberto Garcés · web personal · dirección «Noche y fuego» (2026-10-10).
   Noche #0C0C0E, hueso #F5F2EC y fuego #FF5A2C.
   Tipos: Anton (titulares de impacto, siempre en mayúsculas), Schibsted Grotesk (texto) y Newsreader cursiva
   (lo que Humberto dice y las palabras clave).
   Idiomas: cada texto está dos veces (<span class="bi" lang="en|es">) y html[lang] decide cuál se ve.
   Estados en <html> (script en línea del <head> y hg.js):
     .js       hay JavaScript                    .in       ya entró en esta sesión o llegó con #ancla: sin portada
     .gate-js  hg.js maneja la portada            .open     la portada se abrió: arranca la entrada del héroe
     .cur      llega desde otra página del sitio  .leaving  se va a otra página: el telón cubre
     .gsap     movimiento con scroll activo       .rv       revelados al entrar en pantalla activos
     .snd      sonido encendido                   .has-cursor  cursor propio (solo ratón) */

@font-face { font-family: "Anton"; src: url("/assets/fonts/anton-c15b7417.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: block; }
@font-face { font-family: "Schibsted Grotesk"; src: url("/assets/fonts/schibsted-grotesk-57caea22.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/assets/fonts/newsreader-italic-6363610e.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "HG Sans Fallback"; src: local("Arial"), local("Helvetica Neue"), local("Helvetica"); size-adjust: 106.9%; ascent-override: 91.3%; descent-override: 24.1%; line-gap-override: 0%; }
@font-face { font-family: "HG Voice Fallback"; src: local("Times New Roman Italic"), local("TimesNewRomanPS-ItalicMT"), local("Georgia Italic"); font-style: italic; size-adjust: 100.6%; ascent-override: 73%; descent-override: 26.3%; line-gap-override: 0%; }

:root {
  --night: #0C0C0E;
  --night-2: #141417;
  --night-3: #1D1D21;
  --bone: #F5F2EC;
  --dim: #ABA69D;
  --faint: rgba(245, 242, 236, .13);
  --fire: #FF5A2C;
  --fire-hi: #FF7A4F;
  --ember: #C2391A;
  --display: "Anton", Impact, "Arial Narrow", sans-serif;
  --sans: "Schibsted Grotesk", "HG Sans Fallback", system-ui, sans-serif;
  --voice: "Newsreader", "HG Voice Fallback", Georgia, serif;
  --gut: clamp(16px, 4vw, 64px);
  --max: 1360px;
  --nav-h: 76px;
  --mq-h: clamp(46px, 4.6vw, 66px);
  --ease: cubic-bezier(.22, .8, .16, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; background: var(--night); }
body { margin: 0; background: var(--night); color: var(--bone); font: 400 1.0625rem/1.55 var(--sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip; }
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; text-align: inherit; }
h1, h2, h3, p, figure, blockquote, ol, ul, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }
em { font-style: normal; }
::selection { background: var(--fire); color: var(--night); }
:focus-visible { outline: 2px solid var(--focus, var(--fire)); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

/* Idioma: solo se ve el texto del idioma activo. */
html[lang="es"] .bi[lang="en"], html:not([lang="es"]) .bi[lang="es"] { display: none !important; }

.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: fixed; left: 12px; top: -80px; z-index: 400; background: var(--fire); color: var(--night); padding: 12px 18px; border-radius: 999px; text-decoration: none; font-weight: 700; }
.skip:focus { top: 12px; }
body:focus { outline: none; }
.wrap { width: min(var(--max), 100% - 2 * var(--gut)); margin-inline: auto; }

/* ---------- Botones ---------- */
.btn { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: .62em; min-height: 52px; padding: 0 1.5em; border-radius: 999px; border: 1.5px solid transparent; font: 700 .9375rem/1.1 var(--sans); letter-spacing: .01em; text-decoration: none; white-space: nowrap; transition: color .4s var(--ease), border-color .4s var(--ease), translate .5s var(--ease-out); }
.btn::before { content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; background: var(--bone); transform: translateY(102%); transition: transform .55s var(--ease-out); }
.btn:hover::before { transform: none; }
.btn-fire { background: var(--fire); color: var(--night); }
.btn-fire:hover { color: var(--night); }
.btn-line { border-color: rgba(245, 242, 236, .38); color: var(--bone); }
.btn-line:hover { color: var(--night); border-color: var(--bone); }
.btn-tri { flex: none; width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent currentColor; }
.btn-time { font-weight: 600; opacity: .7; }
.ext::after { content: ""; display: inline-block; width: .62em; height: .62em; margin-left: .45em; vertical-align: .06em; background: currentColor; -webkit-mask: url("/assets/img/brand/ext.svg") center / contain no-repeat; mask: url("/assets/img/brand/ext.svg") center / contain no-repeat; }

/* Barras de sonido (botón de entrada y control de la barra). */
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; flex: none; }
.eq i { --d: .9s; --dl: 0s; width: 2px; height: 100%; border-radius: 1px; background: currentColor; transform-origin: 50% 100%; transform: scaleY(.3); }
.eq i:nth-child(2) { --d: 1.15s; --dl: -.4s; transform: scaleY(.65); }
.eq i:nth-child(3) { --d: .75s; --dl: -.2s; transform: scaleY(.45); }
.eq i:nth-child(4) { --d: 1.3s; --dl: -.7s; transform: scaleY(.8); }
.snd .nav-sound .eq i, .gate-sound:hover .eq i, .gate-sound:focus-visible .eq i { animation: eq var(--d) ease-in-out var(--dl) infinite alternate; }
@keyframes eq { from { transform: scaleY(.2); } to { transform: scaleY(1); } }

/* ---------- Portada de entrada: firma, contador y elección de sonido ---------- */
.gate { position: fixed; inset: 0; z-index: 300; display: none; place-items: center; background: var(--night); color: var(--bone); overflow: hidden; }
html.js:not(.in) .gate { display: grid; animation: gate-auto .7s var(--ease) 9s forwards; }
html.gate-js:not(.in) .gate { animation: none; }
html.gate-js:not(.in):not(.open) { overflow: hidden; }
@keyframes gate-auto { to { opacity: 0; visibility: hidden; } }
/* Los brillos grandes se centran con márgenes (no con translate): así no cuentan como desplazamiento de diseño. */
.gate-glow { position: absolute; left: 50%; top: 64%; width: 130vmax; height: 130vmax; margin: -65vmax 0 0 -65vmax; background: radial-gradient(closest-side, rgba(255, 90, 44, .2), rgba(255, 90, 44, .07) 42%, transparent 70%); pointer-events: none; animation: breathe 6s ease-in-out infinite alternate; }
@keyframes breathe { from { opacity: .62; } to { opacity: 1; } }
.gate-in { position: relative; display: grid; justify-items: center; gap: clamp(20px, 3.2vh, 32px); padding: 0 var(--gut); text-align: center; transition: opacity .35s ease, translate .6s var(--ease-io); }
.gate-sig { width: min(640px, 80vw); color: var(--fire); }
.gate-sig svg { width: 100%; height: auto; aspect-ratio: 2135 / 683; fill: currentColor; -webkit-mask-image: linear-gradient(90deg, #000 40%, transparent 60%); mask-image: linear-gradient(90deg, #000 40%, transparent 60%); -webkit-mask-size: 250% 100%; mask-size: 250% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: 100% 0; mask-position: 100% 0; animation: write 2.1s var(--ease-io) .25s forwards; }
@keyframes write { to { -webkit-mask-position: 0 0; mask-position: 0 0; } }
.gate-place { font: 600 .8125rem/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--dim); animation: up .9s var(--ease-out) 1.15s both; }
.gate-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 26px; animation: up .9s var(--ease-out) 1.35s both; }
.gate-sound { min-height: 60px; padding: 0 1.9em; font-size: 1rem; }
.gate-silent { min-height: 48px; padding: 0 4px; font-weight: 600; text-decoration: underline; text-decoration-color: rgba(245, 242, 236, .35); text-underline-offset: .32em; transition: text-decoration-color .3s; }
.gate-silent:hover { text-decoration-color: var(--fire); }
.gate-hint { font-size: .8125rem; color: var(--dim); animation: up .9s var(--ease-out) 1.55s both; }
.gate-count { position: absolute; left: var(--gut); bottom: clamp(14px, 3vh, 36px); font: 400 clamp(4.4rem, 2rem + 9vw, 11rem)/.8 var(--display); color: transparent; -webkit-text-stroke: 1px rgba(245, 242, 236, .3); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.gate-coord { position: absolute; right: var(--gut); bottom: clamp(18px, 3.4vh, 40px); font: 600 .75rem/1.7 var(--sans); letter-spacing: .16em; color: var(--dim); text-align: right; }
.gate-coord i { display: inline-block; width: 28px; height: 1px; margin: 0 6px; vertical-align: middle; background: var(--fire); }
.gate-wipe { position: absolute; inset: 0; background: var(--fire); transform: translateY(101%); }
.gate.is-out { pointer-events: none; transform: translateY(-101%); border-bottom-left-radius: 50% 16vh; border-bottom-right-radius: 50% 16vh; transition: transform 1s var(--ease-io) .5s, border-radius 1s var(--ease-io) .5s; }
.gate.is-out .gate-wipe { transform: none; transition: transform .62s var(--ease-io); }
.gate.is-out .gate-in { opacity: 0; translate: 0 -40px; }
@keyframes up { from { opacity: 0; transform: translateY(18px); } }

/* ---------- Telón entre páginas, grano y cursor ---------- */
.curtain { position: fixed; inset: 0; z-index: 280; pointer-events: none; }
.curtain i { position: absolute; inset: 0; transform: translateY(101%); }
.curtain i:first-child { background: var(--fire); }
.curtain i:last-child { background: var(--night); }
html.leaving .curtain i { transform: none; transition: transform .62s var(--ease-io); }
html.leaving .curtain i:last-child { transition-delay: .1s; }
html.cur .curtain i { animation: curtain-out 1s var(--ease-io) both; }
html.cur .curtain i:first-child { animation-delay: .14s; }
@keyframes curtain-out { from { transform: none; } to { transform: translateY(-101%); } }

.grain { position: fixed; inset: -10%; z-index: 290; 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='.82' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); background-size: 220px; will-change: transform; animation: grain 1.1s steps(6) infinite; }
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-4%, 3%); } 40% { transform: translate(3%, -5%); } 60% { transform: translate(-6%, -2%); } 80% { transform: translate(5%, 4%); } 100% { transform: translate(0, 0); } }

.cursor { position: fixed; left: 0; top: 0; z-index: 310; pointer-events: none; display: none; transition: opacity .3s; }
html.has-cursor .cursor { display: block; }
html.has-cursor body, html.has-cursor a, html.has-cursor button, html.has-cursor summary, html.has-cursor [data-cursor] { cursor: none; }
.cursor.is-hidden { opacity: 0; }
.cursor-dot, .cursor-ring { position: absolute; left: 0; top: 0; will-change: transform; }
.cursor-dot { width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--fire); transition: scale .3s var(--ease); }
.cursor-ring { width: 0; height: 0; display: grid; place-items: center; }
.cr-c { position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; left: 0; top: 0; border-radius: 50%; border: 1px solid rgba(245, 242, 236, .55); transition: scale .45s var(--ease), background-color .35s, border-color .35s; }
.cursor-ring b { position: absolute; left: 0; top: 0; translate: -50% -50%; font: 700 .6875rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; color: var(--night); opacity: 0; scale: .6; transition: opacity .25s, scale .35s var(--ease); }
.cursor.is-link .cr-c { scale: 1.45; border-color: var(--fire); }
.cursor.is-link .cursor-dot { scale: 0; }
.cursor.is-label .cr-c { scale: 2.3; background: var(--fire); border-color: var(--fire); }
.cursor.is-label .cursor-dot { scale: 0; }
.cursor.is-label b { opacity: 1; scale: 1; }
.cursor.is-down .cr-c { scale: .8; }

/* ---------- Barra de navegación ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h); display: flex; align-items: center; gap: 28px; padding: 0 var(--gut); color: var(--bone); transition: background-color .45s var(--ease), transform .6s var(--ease-io), opacity .4s; }
.nav.is-solid { background: rgba(12, 12, 14, .74); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); }
.nav.is-hidden { transform: translateY(-100%); }
html.js:not(.in):not(.open) [data-page="home"] .nav { opacity: 0; }
html.open .nav { animation: up .9s var(--ease-out) .9s both; }
.nav-brand { display: block; width: 132px; flex: none; color: var(--fire); transition: opacity .3s; }
.nav-brand:hover { opacity: .8; }
.nav-sig { width: 100%; height: auto; aspect-ratio: 2135 / 683; fill: currentColor; }
.nav-links { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 34px); margin-left: auto; font-weight: 500; font-size: .9375rem; }
.nav-links a { position: relative; padding: 10px 0; text-decoration: none; color: rgba(245, 242, 236, .82); transition: color .3s; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1.5px; background: var(--fire); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--bone); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav-tools { display: flex; align-items: center; gap: 10px; }
.nav-tool { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 10px; border-radius: 999px; border: 1.5px solid rgba(245, 242, 236, .22); font-weight: 700; font-size: .8125rem; letter-spacing: .04em; transition: border-color .3s, color .3s, background-color .3s; }
.nav-tool:hover { border-color: var(--bone); }
.snd .nav-sound { color: var(--fire); border-color: var(--fire); }
.nav-cta { min-height: 44px; padding: 0 1.2em; font-size: .875rem; }
.nav-menu { display: none; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid rgba(245, 242, 236, .3); font-weight: 700; font-size: .875rem; }
.nav.menu-open { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; transform: none; }
.nav.menu-open .nav-menu { background: var(--bone); color: var(--night); border-color: var(--bone); }
.nav-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; pointer-events: none; }
.nav-progress i { display: block; height: 100%; background: var(--fire); transform-origin: 0 50%; transform: scaleX(0); }

.menu { position: fixed; inset: 0; z-index: 45; background: var(--night); padding: calc(var(--nav-h) + 24px) var(--gut) 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; overflow-y: auto; clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease-io); }
.menu.is-open { clip-path: inset(0 0 0 0); }
.menu-links a { display: flex; align-items: baseline; gap: 16px; padding: 4px 0; font: 400 clamp(2.6rem, 11.5vw, 4.8rem)/1.04 var(--display); text-transform: uppercase; text-decoration: none; opacity: 0; transform: translateY(44px); transition: transform .7s var(--ease-out), opacity .5s, color .3s; }
.menu-links a:hover, .menu-links a[aria-current="page"] { color: var(--fire); }
.menu.is-open .menu-links a { opacity: 1; transform: none; }
.menu.is-open .menu-links a:nth-child(2) { transition-delay: .05s; }
.menu.is-open .menu-links a:nth-child(3) { transition-delay: .1s; }
.menu.is-open .menu-links a:nth-child(4) { transition-delay: .15s; }
.menu.is-open .menu-links a:nth-child(5) { transition-delay: .2s; }
.menu.is-open .menu-links a:nth-child(6) { transition-delay: .25s; }
.mi-n { min-width: 2.4em; font: 700 .8125rem/1 var(--sans); letter-spacing: .12em; color: var(--fire); }
.menu-foot { display: grid; gap: 12px; color: var(--dim); font-size: .9375rem; }

/* ---------- Héroe: nombre gigante, retrato entre las dos líneas y marquesina de fuego ---------- */
.hero { position: relative; height: 100svh; min-height: 620px; max-height: 1400px; overflow: clip; background: var(--night); }
.hero-stage { position: absolute; inset: 0 0 var(--mq-h); --hn: min(19.4vw, calc((100svh - var(--nav-h) - var(--mq-h) - 300px) / 1.84)); }
.hero-glow { --gs: min(78vw, 1200px); position: absolute; left: 64%; top: 52%; width: var(--gs); height: var(--gs); margin: calc(var(--gs) / -2) 0 0 calc(var(--gs) / -2); border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 90, 44, .3), rgba(255, 90, 44, .11) 46%, transparent 72%); pointer-events: none; }
.hero-name { position: absolute; left: calc(var(--gut) - .03em); top: calc(var(--nav-h) + 4px); font: 400 var(--hn)/.86 var(--display); letter-spacing: .005em; text-transform: uppercase; white-space: nowrap; }
.hn { position: relative; display: block; overflow: hidden; padding: .12em .06em .04em 0; margin: -.12em -.06em -.04em 0; }
.hn-1 { z-index: 1; color: var(--bone); }
.hn-2 { z-index: 3; margin-top: 0; color: var(--fire); }
.hn-in { display: block; }
.hn i { position: relative; display: inline-block; font-style: normal; }
/* Tilde de GARCÉS dibujada aplanada para que quepa entre las dos líneas sin chocar con HUMBERTO. */
.hn i.acc::after { content: ""; position: absolute; left: 23%; top: -.095em; width: .23em; height: .068em; background: currentColor; clip-path: polygon(0 100%, 64% 0, 100% 0, 36% 100%); }
.embers { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; }
.hero-portrait { position: absolute; z-index: 2; right: clamp(0px, 6.5vw, 150px); bottom: 0; height: calc(100% - var(--nav-h) * .45); max-height: 1060px; aspect-ratio: 1036 / 1100; margin: 0; pointer-events: none; transform-origin: 50% 100%; }
.hero-portrait picture { display: block; height: 100%; }
.hero-portrait img { width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; }
.hero-tag { position: absolute; z-index: 4; right: max(10px, calc(var(--gut) * .3)); top: 50%; display: flex; align-items: center; gap: 12px; writing-mode: vertical-rl; transform: translateY(-50%) rotate(180deg); font: 600 .6875rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--dim); white-space: nowrap; }
.hero-tag i { width: 1px; height: 36px; background: var(--fire); }
.hero-tag b { color: var(--fire); font-weight: 700; }
.hero-badge { position: absolute; z-index: 6; right: clamp(16px, 6vw, 120px); bottom: calc(var(--mq-h) * -.62); width: clamp(104px, 9.6vw, 156px); aspect-ratio: 1; }
.hero-badge svg { width: 100%; height: 100%; overflow: visible; animation: spin 26s linear infinite; }
.hero-badge text { font: 400 16px/1 var(--display); fill: var(--bone); }
.badge-en { letter-spacing: 5.26px; }
.badge-es { letter-spacing: 5.64px; }
.badge-core { position: absolute; inset: 25%; display: grid; place-items: center; border-radius: 50%; background: var(--fire); color: var(--night); font: 400 clamp(1.15rem, 1.5vw, 1.9rem)/1 var(--display); letter-spacing: .02em; box-shadow: 0 0 0 6px var(--night); }
.hero-copy { position: absolute; z-index: 4; left: var(--gut); bottom: clamp(22px, 4vh, 50px); width: min(580px, 42vw); display: grid; gap: 14px; }
.hero-head { font: 400 clamp(1.6rem, 1rem + 1.25vw, 2.4rem)/1.02 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.hero-head em { color: var(--fire); }
.hero-sub { max-width: 46ch; color: var(--dim); font-size: 1rem; line-height: 1.5; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 6px; }
.marquee { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; height: var(--mq-h); display: flex; align-items: center; overflow: hidden; background: var(--fire); color: var(--night); }
.mq-track { display: flex; width: max-content; will-change: transform; }
.mq-set { display: flex; align-items: center; gap: clamp(18px, 2.3vw, 40px); padding-right: clamp(18px, 2.3vw, 40px); font: 400 clamp(1.15rem, .7rem + 1.3vw, 2rem)/1 var(--display); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.mq-set i { flex: none; width: .62em; height: .62em; background: currentColor; clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); }
html:not(.gsap) .mq-track { animation: mq 38s linear infinite; }
@keyframes mq { to { transform: translateX(-50%); } }
@keyframes spin { to { transform: rotate(1turn); } }

/* Entrada del héroe (CSS puro): espera a que se abra la portada; sin portada (.in) arranca al cargar.
   Sin JavaScript, la portada se retira sola a los 9 s y el héroe entra detrás. */
html.js:not(.in):not(.open) .hn i { transform: translateY(130%); }
html.js:not(.in):not(.open) .hero-portrait picture, html.js:not(.in):not(.open) .hero-glow, html.js:not(.in):not(.open) .hero-copy > *, html.js:not(.in):not(.open) .hero-badge, html.js:not(.in):not(.open) .hero-tag, html.js:not(.in):not(.open) .marquee { opacity: 0; }
html.in .hn i, html.open .hn i { animation: letter 1.15s var(--ease-out) both; }
/* Respaldo si hg.js no corre: la portada se retira sola a los 9 s y el héroe aparece (fotogramas explícitos, porque el estado oculto sigue aplicado). */
html.js:not(.gate-js):not(.in) .hn i { animation: letter-show 1.15s var(--ease-out) 9.2s both !important; }
.hn i:nth-child(2) { animation-delay: .04s; } .hn i:nth-child(3) { animation-delay: .08s; } .hn i:nth-child(4) { animation-delay: .12s; }
.hn i:nth-child(5) { animation-delay: .16s; } .hn i:nth-child(6) { animation-delay: .2s; } .hn i:nth-child(7) { animation-delay: .24s; } .hn i:nth-child(8) { animation-delay: .28s; }
.hn-2 i { animation-delay: .16s; }
.hn-2 i:nth-child(2) { animation-delay: .2s; } .hn-2 i:nth-child(3) { animation-delay: .24s; } .hn-2 i:nth-child(4) { animation-delay: .28s; } .hn-2 i:nth-child(5) { animation-delay: .32s; } .hn-2 i:nth-child(6) { animation-delay: .36s; }
html.in .hero-portrait picture, html.open .hero-portrait picture { animation: portrait 1.6s var(--ease-out) .05s both; }
html.in .hero-glow, html.open .hero-glow { animation: fade 2.2s ease .1s both; }
html.in .hero-copy > *, html.open .hero-copy > * { animation: up 1s var(--ease-out) .55s both; }
html.in .hero-copy > :nth-child(2), html.open .hero-copy > :nth-child(2) { animation-delay: .65s; }
html.in .hero-copy > :nth-child(3), html.open .hero-copy > :nth-child(3) { animation-delay: .75s; }
html.in .hero-badge, html.open .hero-badge { animation: badge 1.2s var(--ease-out) .9s both; }
html.in .hero-tag, html.open .hero-tag { animation: fade 1.4s ease 1s both; }
html.in .marquee, html.open .marquee { animation: mq-in 1s var(--ease-io) .35s both; }
html.js:not(.gate-js):not(.in) :is(.hero-portrait picture, .hero-glow, .hero-copy > *, .hero-badge, .hero-tag, .marquee, .nav) { animation: show 1s ease 9.2s both !important; }
@keyframes letter { from { transform: translateY(130%); } }
@keyframes letter-show { from { transform: translateY(130%); } to { transform: none; } }
@keyframes show { from { opacity: 0; } to { opacity: 1; } }
@keyframes portrait { from { opacity: 0; transform: translateY(7%) scale(1.05); } }
@keyframes fade { from { opacity: 0; } }
@keyframes badge { from { opacity: 0; transform: scale(.3) rotate(-120deg); } }
@keyframes mq-in { from { transform: translateY(100%); } }

/* ---------- Piezas de sección ---------- */
.eyebrow { display: flex; align-items: center; gap: 14px; font: 700 .75rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }
.eb-n { font: 400 1.05rem/1 var(--display); letter-spacing: .06em; color: var(--fire); }
.eyebrow::after { content: ""; flex: 0 0 56px; height: 1px; background: currentColor; opacity: .5; }
.sec-head { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 26px clamp(32px, 5vw, 88px); align-items: end; margin-bottom: clamp(48px, 6vw, 100px); }
.sec-head > .eyebrow { grid-column: 1 / -1; }
.h2 { font: 400 clamp(3rem, 1rem + 6.6vw, 8.6rem)/.92 var(--display); text-transform: uppercase; letter-spacing: .004em; text-wrap: balance; }
html[lang="es"] .h2 { line-height: .98; }
.sec-intro { display: grid; gap: 18px; justify-items: start; padding-bottom: .4rem; }
.sec-epic { font: 400 clamp(1.45rem, .95rem + 1.5vw, 2.5rem)/1.04 var(--display); text-transform: uppercase; letter-spacing: .01em; color: var(--fire); text-wrap: balance; }
.lede { max-width: 44ch; font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); line-height: 1.52; color: var(--dim); }

/* Revelados: titulares palabra por palabra y bloques que suben (solo con .rv; sin JavaScript todo se ve). */
.rv .h2 .w { display: inline-block; clip-path: inset(-.34em -.12em -.16em -.12em); }
.rv .h2 .wi { display: inline-block; transform: translateY(135%); transition: transform 1.1s var(--ease-out); transition-delay: calc(var(--wi, 0) * 55ms); }
.rv .h2.is-in .wi { transform: none; }
.rv [data-rv] { transition: opacity 1s var(--ease-out), transform 1.15s var(--ease-out); }
.rv [data-rv]:not(.is-in) { opacity: 0; transform: translateY(34px); }

/* ---------- Cita con su voz (componente generado por tools/build_interview.py) ---------- */
.vq { display: grid; gap: 16px; max-width: 34rem; }
.vq-q { display: grid; gap: 10px; }
.vq-en, html[lang="es"] .vq-es { font: italic 400 clamp(1.45rem, 1.1rem + 1.15vw, 2.2rem)/1.18 var(--voice); letter-spacing: -.01em; color: var(--bone); text-wrap: balance; }
.vq-es { font: italic 400 1rem/1.45 var(--voice); color: var(--dim); }
.vq-es span { transition: color .16s linear; }
.vq.is-live .vq-es span { color: rgba(245, 242, 236, .28); }
.vq.is-live .vq-es span.said { color: var(--bone); }
.vq.is-live .vq-es span.now { color: var(--fire); }
.vq-cap { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.vq-play { display: inline-flex; align-items: center; gap: 12px; min-height: 46px; padding: 5px 18px 5px 5px; border-radius: 999px; background: rgba(245, 242, 236, .07); font-weight: 700; font-size: .9375rem; transition: background-color .25s; }
.vq-play:hover { background: rgba(245, 242, 236, .14); }
.vq-icon { position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--fire); display: grid; place-items: center; }
.vq-icon::before { content: ""; margin-left: 3px; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent var(--night); }
.vq.is-live .vq-icon::before { margin: 0; width: 10px; height: 10px; border: 0; border-radius: 2px; background: var(--night); }
.vq.is-live:not(.is-loading) .vq-icon { animation: ping 1.6s ease-out infinite; }
.vq.is-loading .vq-icon::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--fire); animation: spin .8s linear infinite; }
.vq-stop { display: none; }
.vq.is-live .vq-label { display: none; }
.vq.is-live .vq-stop { display: inline; }
.vq-time { font-weight: 600; color: var(--dim); }
.vq-err { font-size: .875rem; color: var(--dim); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255, 90, 44, .55); } 100% { box-shadow: 0 0 0 14px rgba(255, 90, 44, 0); } }

/* ---------- Manifiesto ---------- */
.manifesto { position: relative; padding: clamp(110px, 14vw, 230px) 0 clamp(80px, 10vw, 170px); }
.mf-text { max-width: 25ch; font: 700 clamp(2rem, .85rem + 3.9vw, 5.1rem)/1.07 var(--sans); letter-spacing: -.038em; text-wrap: pretty; }
.mf-text em { font: italic 400 1.1em/1 var(--voice); letter-spacing: -.012em; color: var(--fire); }
.mf-voice { display: grid; gap: 18px; width: min(560px, 100%); margin: clamp(56px, 7vw, 110px) 0 0 auto; padding-left: clamp(18px, 2vw, 28px); border-left: 2px solid var(--fire); }
.mf-label { font: 700 .75rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }

/* ---------- Entrevista ---------- */
.iv { position: relative; padding: clamp(110px, 13vw, 210px) 0 clamp(80px, 9vw, 150px); overflow: clip; }
.bgword { position: absolute; left: 0; top: clamp(20px, 3vw, 56px); z-index: 0; white-space: nowrap; pointer-events: none; user-select: none; }
.bgw-in { display: block; font: 400 clamp(7rem, 25vw, 30rem)/.8 var(--display); text-transform: uppercase; color: transparent; -webkit-text-stroke: 1px rgba(245, 242, 236, .09); }
.iv .sec-head, .iv-stage, .iv-below { position: relative; z-index: 1; }
.iv-stage { padding: 0 var(--gut); }
.iv-player { display: block; }
.iv-frame { position: relative; width: min(100%, calc((100svh - 40px) * 16 / 9)); aspect-ratio: 16 / 9; margin-inline: auto; overflow: hidden; border-radius: clamp(12px, 1.4vw, 22px); background: #000; isolation: isolate; }
.iv-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.iv-frame video::cue { background: rgba(12, 12, 14, .82); color: var(--bone); font-family: var(--sans); font-size: 1.05em; line-height: 1.35; }
.iv-poster { position: absolute; inset: 0; z-index: 1; transition: opacity .5s var(--ease); }
.iv-poster img { width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 50%; }
.iv-poster::after { content: ""; position: absolute; inset: 0; background: radial-gradient(closest-side, rgba(12, 12, 14, .15), rgba(12, 12, 14, .55)), linear-gradient(180deg, rgba(12, 12, 14, 0) 55%, rgba(12, 12, 14, .7)); }
.iv-play { position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; justify-items: center; gap: 16px; text-align: center; color: var(--bone); }
.iv-disc { position: relative; display: grid; place-items: center; width: clamp(84px, 9vw, 132px); aspect-ratio: 1; border-radius: 50%; background: var(--fire); color: var(--night); animation: ping-big 2.6s ease-out infinite; transition: scale .5s var(--ease-out); }
.iv-play:hover .iv-disc { scale: 1.08; }
.iv-disc .btn-tri { margin-left: 6px; border-width: 12px 0 12px 20px; }
.iv-label { font: 400 clamp(1.1rem, .8rem + .9vw, 1.7rem)/1 var(--display); text-transform: uppercase; letter-spacing: .05em; }
.iv-play .btn-time { margin-top: -6px; font-size: .9375rem; }
@keyframes ping-big { 0% { box-shadow: 0 0 0 0 rgba(255, 90, 44, .5); } 70%, 100% { box-shadow: 0 0 0 34px rgba(255, 90, 44, 0); } }
.iv-player[data-state="playing"] .iv-poster, .iv-player[data-state="paused"] .iv-poster, .iv-player[data-state="loading"] .iv-poster { opacity: 0; pointer-events: none; }
.iv-player[data-state="playing"] .iv-play, .iv-player[data-state="paused"] .iv-play { display: none; }
.iv-player[data-state="loading"] .iv-disc { animation: none; }
.iv-player[data-state="loading"] .iv-disc .btn-tri { margin: 0; width: 28px; height: 28px; border: 3px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
.iv-below { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 36px clamp(32px, 5vw, 88px); margin-top: clamp(40px, 4.4vw, 64px); align-items: start; }
.iv-chapters h3 { margin-bottom: 10px; font: 700 .75rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }
.ch { width: 100%; display: grid; grid-template-columns: 3.4em minmax(0, 1fr); column-gap: 14px; padding: 14px 2px 16px; border-top: 1px solid var(--faint); text-align: left; }
.ch-t { padding-top: 2px; font-size: .9375rem; font-weight: 600; color: var(--dim); }
.ch-n { font-weight: 600; font-size: 1.0625rem; line-height: 1.3; transition: color .25s; }
.ch-bar { grid-column: 2; display: block; width: calc(var(--len, 1) * 100%); height: 2px; margin-top: 10px; border-radius: 2px; overflow: hidden; background: var(--faint); }
.ch-bar::before { content: ""; display: block; height: 100%; background: var(--fire); transform-origin: left; transform: scaleX(var(--p, 0)); }
.ch:hover .ch-n, .ch.is-on .ch-n { color: var(--fire); }
.iv-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; min-height: 44px; }
.iv-cc { display: inline-flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 16px 0 10px; border-radius: 999px; border: 1.5px solid var(--faint); font-weight: 700; font-size: .9375rem; transition: border-color .25s; }
.iv-cc::before { content: "CC"; display: grid; place-items: center; width: 30px; height: 20px; border-radius: 4px; border: 1.5px solid currentColor; font-size: .6875rem; font-weight: 800; letter-spacing: .02em; }
.iv-cc[aria-pressed="true"] { border-color: var(--fire); }
.iv-cc[aria-pressed="true"]::before { background: var(--fire); border-color: var(--fire); color: var(--night); }
.iv-note { color: var(--dim); font-size: .9375rem; }
.iv-tx { margin-top: 18px; border-top: 1px solid var(--faint); }
.iv-tx > summary { display: flex; align-items: center; gap: 12px; width: fit-content; padding: 20px 0; cursor: pointer; list-style: none; font-weight: 700; font-size: 1.0625rem; }
.iv-tx > summary::-webkit-details-marker { display: none; }
.iv-tx > summary::before { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--fire); border-bottom: 2px solid var(--fire); transform: rotate(-45deg); transition: transform .3s var(--ease); }
.iv-tx[open] > summary::before { transform: rotate(45deg); }
.tx-note { margin: -4px 0 20px; font-size: .9375rem; color: var(--dim); }
.tx { padding-bottom: 8px; }
.tx-ch { margin-bottom: 24px; }
.tx-h { display: flex; align-items: baseline; gap: 12px; margin-bottom: 6px; font-size: 1rem; font-weight: 700; }
.tx-t { font-weight: 700; color: var(--fire); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; }
.tx p { max-width: 62ch; color: #D9D4CB; }

/* ---------- Historia: recorrido (vertical por defecto; horizontal fijado en escritorio con .is-h) ---------- */
.story { position: relative; padding: clamp(110px, 13vw, 210px) 0 0; }
.story-voice { margin-bottom: clamp(40px, 5vw, 80px); display: flex; justify-content: flex-end; }
.tl-pin { position: relative; }
.tl-track { width: min(var(--max), 100% - 2 * var(--gut)); margin: 0 auto; display: grid; }
.tl-panel { position: relative; display: grid; gap: 14px; padding: 34px 0 44px; border-top: 1px solid var(--faint); overflow: hidden; }
.tl-n { font: 400 1.05rem/1 var(--display); letter-spacing: .06em; color: var(--fire); }
.tl-big { display: block; font: 400 clamp(3.6rem, 17vw, 9.5rem)/.84 var(--display); text-transform: uppercase; color: transparent; -webkit-text-stroke: 1px rgba(245, 242, 236, .3); white-space: nowrap; transition: -webkit-text-stroke-color .6s ease; }
.tl-key .tl-big { color: var(--fire); -webkit-text-stroke: 0; }
.tl-now .tl-big { -webkit-text-stroke-color: var(--fire); }
.tl-img { width: min(100%, 440px); }
.tl-img img { width: 100%; border-radius: 14px; aspect-ratio: 4 / 5; object-fit: cover; background: var(--night-3); }
.tl-now .tl-img img { aspect-ratio: 720 / 620; }
.tl-when { font: 700 .75rem/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--fire); }
.tl-what { margin-top: 10px; font: 400 clamp(1.7rem, 1.15rem + 2vw, 3.1rem)/1.02 var(--display); text-transform: uppercase; letter-spacing: .005em; text-wrap: balance; }
.tl-why { margin-top: 12px; max-width: 44ch; color: var(--dim); }
.tl-progress { display: none; }

.story.is-h .tl-pin { height: 100svh; overflow: hidden; }
.story.is-h .tl-track { position: absolute; left: 0; top: 0; width: max-content; height: 100%; margin: 0; display: flex; padding: 0 14vw 0 var(--gut); will-change: transform; }
.story.is-h .tl-track::before { content: ""; position: absolute; left: 0; right: 0; top: calc(var(--nav-h) + 7vh); height: 1px; background: var(--faint); }
.story.is-h .tl-panel { flex: none; width: 54vw; height: 100%; padding: calc(var(--nav-h) + 7vh + 26px) 4vw 13vh 3vw; border-top: 0; border-left: 1px solid var(--faint); grid-template-rows: auto 1fr auto; overflow: visible; gap: 0; }
.story.is-h .tl-panel::before { content: ""; position: absolute; left: -6px; top: calc(var(--nav-h) + 7vh - 5px); width: 11px; height: 11px; border-radius: 50%; background: var(--night); border: 1.5px solid var(--fire); transition: background-color .4s, box-shadow .4s; }
.story.is-h .tl-panel.is-on::before { background: var(--fire); box-shadow: 0 0 0 7px rgba(255, 90, 44, .18); }
.story.is-h .tl-panel.is-on .tl-big { -webkit-text-stroke-color: rgba(255, 90, 44, .75); }
.story.is-h .tl-photo { width: 82vw; grid-template-columns: minmax(0, 1fr) auto; column-gap: 4vw; }
.story.is-h .tl-n { grid-row: 1; grid-column: 1; }
.story.is-h .tl-big { position: absolute; z-index: 0; left: 3vw; top: calc(var(--nav-h) + 13vh); font-size: clamp(8rem, 24vh + 6vw, 26rem); }
.story.is-h .tl-copy { position: relative; z-index: 2; grid-row: 3; grid-column: 1; align-self: end; max-width: 34rem; }
.story.is-h .tl-img { position: relative; z-index: 1; grid-column: 2; grid-row: 1 / 4; align-self: center; width: auto; height: min(60svh, 620px); }
.story.is-h .tl-img img { width: auto; height: 100%; }
.story.is-h .tl-progress { display: block; position: absolute; left: var(--gut); right: var(--gut); bottom: 5vh; height: 2px; background: var(--faint); }
.story.is-h .tl-progress i { display: block; height: 100%; background: var(--fire); transform-origin: 0 50%; transform: scaleX(0); }

.stats-band { position: relative; margin-top: clamp(64px, 8vw, 130px); padding: clamp(48px, 6vw, 96px) 0; background: var(--fire); color: var(--night); overflow: hidden; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.stats li { display: grid; align-content: start; gap: 12px; padding-left: 18px; border-left: 1.5px solid rgba(12, 12, 14, .3); }
.stats b { font: 400 clamp(4.2rem, 1.8rem + 7.5vw, 10rem)/.84 var(--display); letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.stats span { max-width: 20ch; font-weight: 700; line-height: 1.3; }
.facts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: 20px 56px; padding: clamp(56px, 7vw, 110px) 0 clamp(20px, 3vw, 40px); }
.facts h3 { font: 700 .75rem/1.6 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }
.facts ul { columns: 2 300px; column-gap: 48px; }
.facts li { padding: 11px 0; border-top: 1px solid var(--faint); break-inside: avoid; }

/* ---------- Empresas: tarjetas apiladas, cada una con los colores de su marca ---------- */
.cos { position: relative; padding: clamp(110px, 13vw, 210px) 0 clamp(60px, 7vw, 120px); }
.cos .sec-intro p:last-child { margin-top: 4px; }
.co-stack { display: grid; gap: clamp(22px, 3vw, 40px); }
.co-card { position: sticky; top: 92px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 28px clamp(28px, 4vw, 72px); min-height: min(74svh, 700px); padding: clamp(24px, 3.6vw, 60px); border-radius: clamp(20px, 2.4vw, 34px); background: var(--c-bg); color: var(--c-ink); text-decoration: none; overflow: hidden; transform-origin: 50% 0; box-shadow: 0 -24px 60px -28px rgba(0, 0, 0, .7); --focus: var(--c-ink); }
.co-card:nth-child(2) { top: 112px; }
.co-card:nth-child(3) { top: 132px; }
.co-card:nth-child(4) { top: 152px; }
.co-n { grid-column: 1; grid-row: 1; font: 400 clamp(3rem, 2rem + 3vw, 5.4rem)/.8 var(--display); color: transparent; -webkit-text-stroke: 1.5px var(--c-ink); opacity: .7; }
.co-n::before { content: attr(data-n); }
.co-logo { grid-column: 1; grid-row: 2; align-self: center; display: block; }
.co-logo img { width: min(100%, 520px); height: auto; transition: transform 1s var(--ease-out); }
.co-gc .co-logo img { width: min(78%, 400px); }
.co-card:hover .co-logo img { transform: scale(1.045); }
.co-info { grid-column: 2; grid-row: 1 / 3; display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; padding-top: 72px; }
.co-line { font: 400 clamp(2.1rem, 1.2rem + 2.6vw, 4rem)/.98 var(--display); text-transform: uppercase; letter-spacing: .005em; text-wrap: balance; }
.co-name { margin-top: 6px; font-weight: 800; font-size: clamp(1.125rem, 1rem + .3vw, 1.375rem); letter-spacing: -.01em; }
.co-what { max-width: 40ch; color: var(--c-dim); line-height: 1.45; }
.co-status { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: .9375rem; }
.co-status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c-dot); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-dot) 22%, transparent); }
.co-go { position: absolute; right: clamp(20px, 3vw, 48px); top: clamp(20px, 3vw, 48px); display: grid; place-items: center; width: clamp(54px, 5vw, 76px); aspect-ratio: 1; border-radius: 50%; background: var(--c-acc); color: var(--c-acc-ink); transition: transform .6s var(--ease-out); }
.co-go svg { width: 42%; height: 42%; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.co-card:hover .co-go, .co-card:focus-visible .co-go { transform: rotate(45deg) scale(1.08); }
.co-shade { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; }
.co-gc { --c-bg: #F2F1EC; --c-ink: #16180F; --c-dim: #4F5446; --c-acc: #CDF52C; --c-acc-ink: #16180F; --c-dot: #3E8E52; }
.co-wa { --c-bg: #2E221B; --c-ink: #F4F0E9; --c-dim: #CDBFB1; --c-acc: #F4F0E9; --c-acc-ink: #2E221B; --c-dot: #E9D9C2; }
.co-sa { --c-bg: #E7DECF; --c-ink: #3B2219; --c-dim: #7A4A3A; --c-acc: #A73F28; --c-acc-ink: #FFF6EE; --c-dot: #A73F28; }
/* Qora: su noche con tinte violeta (núcleo máquina), tinta cristal (lo humano: el punto de su cargo) y lima solo en la acción. */
.co-qo { --c-bg: #07060B; --c-ink: #FEFFFC; --c-dim: #A7A1B8; --c-acc: #D0FF00; --c-acc-ink: #07060B; --c-dot: #FEFFFC; background: radial-gradient(75% 95% at 96% 108%, rgba(129, 22, 224, .5), rgba(129, 22, 224, .14) 46%, transparent 72%), radial-gradient(46% 60% at 0% 0%, rgba(254, 255, 252, .05), transparent 70%), var(--c-bg); box-shadow: inset 0 0 0 1px rgba(254, 255, 252, .1), 0 -24px 60px -28px rgba(0, 0, 0, .7); }
.co-qo .co-logo img { width: min(80%, 430px); }

/* ---------- Servicio y comunidad ---------- */
.svc { position: relative; padding: clamp(110px, 13vw, 210px) 0; overflow: clip; }
.svc-words { display: grid; gap: .02em; padding: 0 var(--gut); margin: 0 0 clamp(56px, 7vw, 120px); }
.sw { display: block; width: fit-content; font: 400 clamp(4rem, 15.5vw, 18.5rem)/.88 var(--display); text-transform: uppercase; letter-spacing: .004em; color: transparent; -webkit-text-fill-color: transparent; -webkit-text-stroke: 1.5px rgba(245, 242, 236, .26); background-image: linear-gradient(90deg, var(--fire) 50%, transparent 50%); background-size: 200% 100%; background-repeat: no-repeat; background-position: 0 0; -webkit-background-clip: text; background-clip: text; }
.sw:nth-child(2) { margin-left: 9vw; }
.sw:nth-child(3) { margin-left: 18vw; }
.svc-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6.5vw, 116px); align-items: start; }
.svc-aside { position: sticky; top: 110px; }
.roles li { display: grid; gap: 6px; padding: 26px 0 28px; border-top: 1px solid var(--faint); }
.role-r { font: 700 .75rem/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--fire); }
.role-o { font: 400 clamp(1.6rem, 1.15rem + 1.5vw, 2.6rem)/1.02 var(--display); text-transform: uppercase; letter-spacing: .005em; }
.role-b { max-width: 52ch; color: var(--dim); }
.give { position: relative; margin-top: 22px; padding: clamp(24px, 3vw, 40px); border-radius: 18px; background: var(--night-2); border: 1px solid var(--faint); overflow: hidden; }
.give::before { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 90, 44, .28), transparent); }
.give h3 { position: relative; margin-bottom: 8px; font: 400 clamp(1.6rem, 1.2rem + 1.2vw, 2.4rem)/1 var(--display); text-transform: uppercase; color: var(--fire); }
.give p { position: relative; max-width: 48ch; color: #D9D4CB; }

/* ---------- Agenda (Cal.com) ---------- */
.meet { position: relative; padding: clamp(110px, 13vw, 210px) 0 clamp(90px, 10vw, 160px); }
.meet-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.meet-copy { position: sticky; top: 110px; display: grid; gap: 26px; }
.meet-facts li { display: grid; gap: 2px; padding: 14px 0; border-top: 1px solid var(--faint); }
.meet-facts b { font-weight: 700; }
.meet-facts span { font-size: .9375rem; color: var(--dim); }
.meet-alt { font-size: .9375rem; color: var(--dim); }
.meet-alt a { color: var(--bone); }
.meet-card { position: relative; overflow: hidden; border-radius: 22px; background: var(--night-2); border: 1px solid var(--faint); box-shadow: 0 40px 90px -40px rgba(255, 90, 44, .28); }
.meet-host { display: flex; align-items: center; gap: 14px; padding: 18px 22px; border-bottom: 1px solid var(--faint); }
.meet-avatar img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; }
.meet-host p { display: grid; line-height: 1.3; }
.meet-host b { font-weight: 700; }
.meet-host span { font-size: .9375rem; color: var(--dim); }
.meet-len { margin-left: auto; padding: 6px 12px; border-radius: 999px; background: rgba(255, 90, 44, .14); color: var(--fire); font-size: .8125rem; font-weight: 700; white-space: nowrap; }
.meet-stage { position: relative; min-height: 560px; }
.meet-embed { position: relative; z-index: 1; min-height: 560px; }
.meet-skel { position: absolute; inset: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; transition: opacity .4s; }
.meet-skel span { border-radius: 12px; background: linear-gradient(100deg, rgba(245, 242, 236, .04) 30%, rgba(245, 242, 236, .09) 50%, rgba(245, 242, 236, .04) 70%) 0 0 / 300% 100%; animation: shimmer 1.6s linear infinite; }
.meet-skel .ms-month { grid-column: 1 / -1; height: 28px; width: 40%; }
.meet-skel .ms-days, .meet-skel .ms-slots { height: 300px; }
.meet-card[data-state="ready"] .meet-skel, .meet-card[data-state="failed"] .meet-skel { opacity: 0; pointer-events: none; }
.meet-status { position: absolute; left: 24px; right: 24px; bottom: 20px; z-index: 2; display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: .9375rem; color: var(--dim); }
.meet-card[data-state="ready"] .meet-status { display: none; }
.meet-fallback { display: none; font-weight: 700; color: var(--fire); }
.meet-card[data-state="slow"] .meet-fallback, .meet-card[data-state="failed"] .meet-fallback { display: inline; }
@keyframes shimmer { to { background-position: -150% 0; } }

/* ---------- Pie ---------- */
.foot { position: relative; padding: clamp(100px, 12vw, 190px) 0 28px; overflow: hidden; border-top: 1px solid var(--faint); }
.foot-glow { position: absolute; left: 50%; bottom: -40vw; width: 110vw; height: 110vw; margin-left: -55vw; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 90, 44, .22), rgba(255, 90, 44, .06) 50%, transparent 72%); pointer-events: none; }
.foot .wrap { position: relative; }
.foot-cta { max-width: 11ch; font: 400 clamp(3.2rem, .8rem + 9.4vw, 12.5rem)/.9 var(--display); text-transform: uppercase; letter-spacing: .004em; text-wrap: balance; }
html[lang="es"] .foot-cta { max-width: 12ch; }
.foot-book { margin-top: clamp(28px, 3vw, 44px); min-height: 58px; padding: 0 1.9em; font-size: 1rem; }
.foot-sig { width: min(720px, 88%); margin-top: clamp(64px, 8vw, 130px); color: var(--fire); }
.foot-sig svg { width: 100%; height: auto; aspect-ratio: 2135 / 683; fill: currentColor; }
.rv .foot-sig svg { -webkit-mask-image: linear-gradient(90deg, #000 40%, transparent 60%); mask-image: linear-gradient(90deg, #000 40%, transparent 60%); -webkit-mask-size: 250% 100%; mask-size: 250% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: 100% 0; mask-position: 100% 0; }
.rv .foot-sig.is-in svg { animation: write 2.4s var(--ease-io) .2s forwards; }
.rv .foot-sig[data-rv]:not(.is-in) { transform: none; }
.foot-cols { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, .7fr); gap: 32px 40px; margin-top: clamp(48px, 6vw, 80px); padding-top: 32px; border-top: 1px solid var(--faint); }
.foot-id p:first-child { font: 400 1.6rem/1 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.foot-id p + p { margin-top: 8px; color: var(--dim); }
.foot h2 { margin-bottom: 12px; font: 700 .75rem/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }
.foot li { padding: 4px 0; overflow-wrap: anywhere; }
.foot a { text-decoration: none; transition: color .25s; }
.foot a:hover { color: var(--fire); }
.foot .soon { color: var(--dim); }
.foot-est { margin-top: clamp(36px, 4vw, 52px); padding-top: 22px; border-top: 1px solid var(--faint); color: var(--dim); }
.foot-est a { color: var(--bone); text-decoration: underline; }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 28px; font-size: .875rem; color: var(--dim); }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 320; padding: 14px 22px; border-radius: 999px; background: var(--bone); color: var(--night); font-weight: 700; transform: translate(-50%, 24px); opacity: 0; visibility: hidden; pointer-events: none; transition: transform .45s var(--ease), opacity .3s, visibility 0s .45s; }
.toast.is-on { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition: transform .45s var(--ease), opacity .3s; }

/* ---------- Página de empresas ---------- */
.cp-hero { position: relative; min-height: min(100svh, 980px); display: grid; align-content: end; padding: calc(var(--nav-h) + clamp(40px, 7vw, 100px)) 0 clamp(56px, 7vw, 110px); overflow: clip; }
.cp-glow { position: absolute; right: -20vw; top: -10vw; width: 80vw; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 90, 44, .24), rgba(255, 90, 44, .07) 48%, transparent 72%); pointer-events: none; }
.cp-hero .wrap { position: relative; }
.cp-title { margin-top: clamp(22px, 2.6vw, 40px); font: 400 clamp(4.6rem, 1rem + 15vw, 19rem)/.84 var(--display); text-transform: uppercase; letter-spacing: .004em; }
.cp-title .w { display: inline-block; clip-path: inset(-.3em -.1em -.12em -.1em); }
.cp-title .wi { display: inline-block; animation: letter 1.2s var(--ease-out) .25s both; }
.cp-title .w:nth-of-type(2) .wi { animation-delay: .37s; }
.cp-title .w:nth-of-type(3) .wi { animation-delay: .49s; }
.cp-title .w:nth-of-type(4) .wi { animation-delay: .61s; }
html.cur .cp-title .w .wi { animation-delay: .75s; }
html.cur .cp-title .w:nth-of-type(2) .wi { animation-delay: .87s; }
html.cur .cp-title .w:nth-of-type(3) .wi { animation-delay: .99s; }
html.cur .cp-title .w:nth-of-type(4) .wi { animation-delay: 1.11s; }
/* Cuatro palabras (una por empresa): en escritorio van en dos renglones, del tamaño que deja entrar el más largo
   («CONCRETE. CODE.» 6,25 em; «CONCRETO. CÓDIGO.» 7,11 em, medidos en Anton). En el teléfono se apilan solas. */
.cp-br { display: none; }
@media (min-width: 901px) and (min-aspect-ratio: 5/6) {
  .cp-br { display: inline; }
  .cp-title { font-size: min(14.4vw, 212px); }
  html[lang="es"] .cp-title { font-size: min(12.6vw, 187px); }
}
.cp-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px clamp(32px, 6vw, 100px); align-items: end; margin-top: clamp(28px, 4vw, 56px); }
.cp-epic { font: 400 clamp(1.6rem, 1rem + 1.8vw, 2.9rem)/1.02 var(--display); text-transform: uppercase; color: var(--fire); text-wrap: balance; }
.cp-hero .lede { margin-top: 14px; }
.cp-jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.cp-jump a { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 18px; border-radius: 999px; border: 1.5px solid rgba(245, 242, 236, .24); font-weight: 700; font-size: .9375rem; text-decoration: none; transition: border-color .25s, background-color .25s, color .25s; }
.cp-jump a::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--fire); }
.cp-jump a:hover { border-color: var(--fire); color: var(--fire); }
.cp-hero .vq { margin-top: 8px; }
.brand { position: relative; padding: clamp(80px, 10vw, 160px) 0; color: var(--b-ink); background: var(--b-bg); overflow: clip; --focus: var(--b-ink); }
.brand-n { position: absolute; right: var(--gut); top: clamp(24px, 3vw, 48px); font: 400 clamp(6rem, 3rem + 12vw, 17rem)/.8 var(--display); color: transparent; -webkit-text-stroke: 1.5px var(--b-ink); opacity: .16; pointer-events: none; }
.brand-grid { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 104px); align-items: center; }
.brand-rev .brand-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.brand-rev .brand-mark { order: 2; }
.brand-mark { display: grid; gap: 22px; justify-items: start; }
.brand-mark img { width: 100%; max-width: 540px; height: auto; }
.brand-gc .brand-mark img { max-width: 420px; }
.brand-kind { font: 700 .75rem/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--b-dim); }
.brand-body { display: grid; gap: 26px; }
.brand-epic { font: 400 clamp(2.3rem, 1.1rem + 3.4vw, 4.8rem)/.95 var(--display); text-transform: uppercase; letter-spacing: .005em; text-wrap: balance; }
.brand-body h2 { margin-top: -10px; font: 800 clamp(1.25rem, 1rem + .6vw, 1.625rem)/1.2 var(--sans); letter-spacing: -.012em; }
.brand-desc { max-width: 46ch; font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); line-height: 1.5; }
.brand-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; max-width: 40rem; }
.brand-facts div { padding: 12px 0; border-top: 1px solid var(--b-rule); }
.brand-facts dt { font: 700 .75rem/1.5 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--b-dim); }
.brand-facts dd { font-weight: 700; }
.brand-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.brand-cta { background: var(--b-accent); color: var(--b-accent-ink); }
.brand-cta::before { background: var(--b-ink); }
.brand-cta:hover { color: var(--b-bg); }
.brand-soon { display: inline-flex; align-items: center; gap: .6em; min-height: 48px; font-weight: 700; color: var(--b-dim); }
.brand-soon::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid currentColor; }
.brand-ask { font-weight: 700; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .22em; }
.brand .vq-en, html[lang="es"] .brand .vq-es { color: var(--b-ink); }
.brand .vq-es, .brand .vq-time { color: var(--b-dim); }
.brand .vq.is-live .vq-es span { color: var(--b-mute); }
.brand .vq.is-live .vq-es span.said { color: var(--b-ink); }
.brand .vq.is-live .vq-es span.now { color: var(--b-accent); }
.brand .vq-play { background: var(--b-chip); }
.brand .vq-play:hover { background: var(--b-chip-hover); }
.brand .vq-icon { background: var(--b-accent); }
.brand .vq-icon::before { border-left-color: var(--b-accent-ink); }
.brand .vq.is-live .vq-icon::before { background: var(--b-accent-ink); }
.brand-gc { --b-bg: #F2F1EC; --b-ink: #16180F; --b-dim: #4F5446; --b-mute: rgba(22, 24, 15, .3); --b-rule: rgba(22, 24, 15, .14); --b-chip: rgba(22, 24, 15, .06); --b-chip-hover: rgba(22, 24, 15, .12); --b-accent: #16180F; --b-accent-ink: #F2F1EC; }
.brand-gc .brand-cta { background: #CDF52C; color: #16180F; }
.brand-gc .brand-cta:hover { color: #F2F1EC; }
.brand-wa { --b-bg: #2E221B; --b-ink: #F4F0E9; --b-dim: #CDBFB1; --b-mute: rgba(244, 240, 233, .32); --b-rule: rgba(244, 240, 233, .16); --b-chip: rgba(244, 240, 233, .08); --b-chip-hover: rgba(244, 240, 233, .15); --b-accent: #F4F0E9; --b-accent-ink: #2E221B; }
.brand-sa { --b-bg: #E7DECF; --b-ink: #3B2219; --b-dim: #7A4A3A; --b-mute: rgba(59, 34, 25, .3); --b-rule: rgba(59, 34, 25, .14); --b-chip: rgba(59, 34, 25, .06); --b-chip-hover: rgba(59, 34, 25, .12); --b-accent: #A73F28; --b-accent-ink: #FFF6EE; }
.brand-qo { --b-bg: #07060B; --b-ink: #FEFFFC; --b-dim: #A7A1B8; --b-mute: rgba(254, 255, 252, .3); --b-rule: rgba(254, 255, 252, .13); --b-chip: rgba(254, 255, 252, .07); --b-chip-hover: rgba(254, 255, 252, .14); --b-accent: #D0FF00; --b-accent-ink: #07060B; border-block: 1px solid rgba(254, 255, 252, .08); }
.brand-qo::before { content: ""; position: absolute; right: -18vw; top: -22vw; width: 72vw; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(129, 22, 224, .4), rgba(129, 22, 224, .12) 48%, transparent 72%); pointer-events: none; }
.brand-qo .brand-mark img { max-width: 460px; }
.cp-meet { position: relative; padding: clamp(100px, 12vw, 190px) 0; overflow: clip; }
.cp-meet .wrap { position: relative; display: grid; gap: 30px; justify-items: start; }
.cp-meet .h2 { max-width: 14ch; font-size: clamp(3.4rem, 1rem + 9vw, 11rem); }
.cp-meet .cp-glow { right: auto; left: -25vw; top: auto; bottom: -40vw; }
.cp-meet .lede { margin-top: 4px; }

/* ---------- 404 ---------- */
.nf { position: relative; min-height: 100svh; display: grid; align-content: center; gap: 24px; padding: calc(var(--nav-h) + 40px) var(--gut) 60px; overflow: clip; }
.nf-code { font: 400 clamp(9rem, 4rem + 26vw, 30rem)/.8 var(--display); color: transparent; -webkit-text-stroke: 1.5px rgba(245, 242, 236, .2); letter-spacing: .01em; }
.nf .cp-glow { right: -30vw; top: -20vw; }
.nf > * { position: relative; }
.nf > .cp-glow { position: absolute; }
.nf h1 { max-width: 14ch; font: 400 clamp(2.6rem, 1.2rem + 5vw, 6.4rem)/.94 var(--display); text-transform: uppercase; }
.nf h1 em { color: var(--fire); }
.nf p { max-width: 42ch; color: var(--dim); }
.nf .btn { justify-self: start; }

/* ---------- Movimiento reducido: todo quieto y visible ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .grain { animation: none; }
  html.js:not(.in):not(.gate-js) .gate { animation-duration: .7s !important; animation-delay: 9s !important; }
  .gate.is-out { transform: none; opacity: 0; }
  .rv [data-rv]:not(.is-in) { opacity: 1; transform: none; }
  .rv .h2 .wi { transform: none; }
}

/* ---------- Pantallas medianas ---------- */
@media (max-width: 1180px) {
  .nav-links { gap: 20px; }
  .nav-brand { width: 116px; }
}
@media (max-width: 1040px) {
  .nav-links { display: none; }
  .nav-menu { display: inline-flex; align-items: center; }
  .nav-tools { margin-left: auto; }
  .iv-below { grid-template-columns: 1fr; }
  .meet-grid { grid-template-columns: 1fr; }
  .meet-copy { position: static; }
  .foot-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-id { grid-column: 1 / -1; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
}

/* ---------- Héroe apilado: móviles y tabletas verticales ---------- */
@media (max-width: 900px), (max-aspect-ratio: 5/6) {
  :root { --nav-h: 64px; }
  .hero { height: auto; min-height: 0; max-height: none; }
  .hero-stage { position: relative; inset: auto; height: min(1180px, max(560px, calc(100svh - var(--mq-h)))); display: flex; flex-direction: column; padding: calc(var(--nav-h) + 6px) var(--gut) 0; --hn: calc((100vw - 2 * var(--gut)) / 4.03); --ph: calc(min(1180px, max(560px, 100svh - var(--mq-h))) * .62); }
  .hero-name { position: relative; left: -.02em; top: auto; }
  .hero-portrait { right: auto; left: 50%; height: var(--ph); width: calc(var(--ph) * 1036 / 1100); margin-left: calc(var(--ph) * -518 / 1100); max-height: none; }
  .hero-glow { --gs: 150vw; left: 50%; top: 58%; }
  .hero-tag { display: none; }
  .hero-badge { right: var(--gut); bottom: auto; top: calc(var(--nav-h) + var(--hn) * 1.98 + 10px); width: clamp(86px, 22vw, 124px); }
  .hero-copy { position: relative; left: auto; bottom: auto; width: auto; margin-top: auto; padding: 0 0 26px; isolation: isolate; }
  .hero-copy::before { content: ""; position: absolute; z-index: -1; left: calc(var(--gut) * -1); right: calc(var(--gut) * -1); top: -90px; bottom: 0; background: linear-gradient(180deg, rgba(12, 12, 14, 0), rgba(12, 12, 14, .82) 90px, var(--night) 150px); }
  .marquee { position: relative; }
  .sec-head { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr; }
  .svc-aside { position: static; }
  .co-card { grid-template-columns: 1fr; grid-template-rows: auto auto 1fr; min-height: 0; top: 76px; }
  .co-card:nth-child(2) { top: 90px; }
  .co-card:nth-child(3) { top: 104px; }
  .co-card:nth-child(4) { top: 118px; }
  .co-logo { grid-row: 2; padding: 12px 0 6px; }
  .co-logo img { width: min(86%, 420px); }
  .co-gc .co-logo img { width: min(62%, 320px); }
  .co-qo .co-logo img { width: min(74%, 340px); }
  .co-info { grid-column: 1; grid-row: 3; padding-top: 10px; }
  .cp-grid { grid-template-columns: 1fr; }
  .brand-grid, .brand-rev .brand-grid { grid-template-columns: 1fr; }
  .brand-rev .brand-mark { order: 0; }
  .brand-mark img { max-width: 380px; }
  .brand-gc .brand-mark img { max-width: 300px; }
  .brand-qo .brand-mark img { max-width: 330px; }
  .facts { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .nav-cta { display: none; }
  .nav-brand { width: 104px; }
  .hero-head { font-size: 1.7rem; }
  .hero-sub { font-size: .9375rem; }
  .hero-cta .btn { min-height: 48px; padding: 0 1.2em; }
  .mf-voice { margin-left: 0; }
  .stats { grid-template-columns: 1fr 1fr; gap: 32px 18px; }
  .stats li { padding-left: 12px; }
  .foot-cols { grid-template-columns: 1fr; gap: 26px; }
  .brand-facts { grid-template-columns: 1fr; }
  .meet-host { flex-wrap: wrap; }
  .meet-len { margin-left: 66px; }
  .sw:nth-child(2) { margin-left: 5vw; }
  .sw:nth-child(3) { margin-left: 10vw; }
  .gate-count { font-size: 4.2rem; }
}
@media (hover: none) {
  .grain { animation: none; }
}
