/* El Pol Capture · estilos v2 (visor, movimiento, fullgas) */
:root {
  --bg: #0a0a09;
  --card: #1a1917;
  --ink: #efe8d8;
  --mute: #a29b8a;
  --line: #2b2a26;
  --blue: #4f86d9;
  --blue-ink: #8db2ee;
  --amber: #f5a81c;
  --red: #ff4d2e;
  --display: "Anton", "Oswald", "Bebas Neue", Impact, Haettenschweiler, "Arial Narrow Bold", "Roboto Condensed", sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --gap: clamp(10px, 1.4vw, 18px);
  --pad: clamp(18px, 4vw, 64px);
  --header: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 40px; background: var(--bg); }
html.lb-open, html.intro-on, html.intro-on body { overflow: hidden; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); line-height: 1.5; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
::selection { background: var(--blue); color: #fff; }

/* ---------- grano, progreso, cursor ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .075;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain .9s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 17% { transform: translate(-4%, 3%); } 33% { transform: translate(3%, -5%); }
  50% { transform: translate(-6%, -2%); } 67% { transform: translate(5%, 4%); } 83% { transform: translate(-2%, 6%); } 100% { transform: translate(0, 0); }
}
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 120; pointer-events: none;
  transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--blue), var(--amber));
}

.cursor {
  position: fixed; left: 0; top: 0; z-index: 300; pointer-events: none; opacity: 0;
  transition: opacity .25s; mix-blend-mode: difference; color: #fff; will-change: transform;
}
html.has-cursor .cursor { opacity: 1; }
html.has-cursor .cursor.off { opacity: 0; }
html.has-cursor, html.has-cursor * { cursor: none !important; }
.cur-box {
  position: absolute; left: 0; top: 0; width: 26px; height: 26px; margin: -13px 0 0 -13px;
  transition: width .4s var(--ease), height .4s var(--ease), margin .4s var(--ease), transform .4s var(--ease);
}
.cur-box i { position: absolute; width: 6px; height: 6px; border: 1.5px solid currentColor; }
.cur-box i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; }
.cur-box i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; }
.cur-box i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; }
.cur-box i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; }
.cur-dot { position: absolute; width: 3px; height: 3px; margin: -1.5px 0 0 -1.5px; background: currentColor; border-radius: 50%; transition: opacity .2s; }
.cur-label {
  position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); opacity: 0; white-space: nowrap;
  font: 500 .5rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; transition: opacity .2s;
}
.cursor.is-link .cur-box { width: 18px; height: 18px; margin: -9px 0 0 -9px; transform: rotate(45deg); }
.cursor.is-media .cur-box { width: 58px; height: 58px; margin: -29px 0 0 -29px; }
.cursor.is-media .cur-label { opacity: 1; }
.cursor.is-media .cur-dot { opacity: 0; }
.cursor.is-down .cur-box { transform: scale(.78); }

/* ---------- intro: diafragma ---------- */
.intro {
  position: fixed; inset: 0; z-index: 200; background: #070706;
  display: grid; place-items: center; color: var(--ink);
}
html:not(.js) .intro { display: none; }
.intro-ring { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.intro-ring polygon { fill: none; stroke: var(--amber); stroke-width: 2; stroke-linejoin: round; }
.intro-core { position: relative; display: grid; justify-items: center; gap: 16px; text-align: center; }
.intro-logo { border-radius: 50%; animation: intrologo 1.4s var(--ease) both; }
@keyframes intrologo { from { opacity: 0; transform: scale(.6) rotate(-30deg); } to { opacity: 1; transform: none; } }
.intro-word { margin: 0; font-family: var(--display); text-transform: uppercase; font-size: clamp(1.6rem, 5vw, 3rem); letter-spacing: .06em; line-height: 1; }
.intro-word em { font-family: var(--serif); text-transform: none; letter-spacing: 0; color: var(--blue-ink); font-size: 1.15em; }
.intro-count { margin: 0; font-family: var(--mono); font-size: .8rem; letter-spacing: .24em; color: var(--mute); }
.intro-count b { font-weight: 500; color: var(--ink); }

/* ---------- cabecera ---------- */
.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60; height: var(--header);
  display: flex; align-items: center; justify-content: space-between; padding: 0 var(--pad);
  transition: transform .55s var(--ease), background .4s, backdrop-filter .4s;
}
.top.scrolled { background: rgba(10, 10, 9, .66); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); }
.top.hide { transform: translateY(-110%); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 44px; height: 44px; border-radius: 50%; transition: transform .8s var(--ease); }
.brand:hover img { transform: rotate(360deg); }
.brand span { font-family: var(--serif); font-size: 1.3rem; letter-spacing: .01em; }
.main-nav { display: flex; gap: clamp(16px, 3vw, 38px); font-family: var(--mono); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; }
.main-nav a { display: block; height: 1.4em; overflow: hidden; text-decoration: none; color: var(--mute); line-height: 1.4; transition: color .25s; }
.roll { display: flex; flex-direction: column; transition: transform .5s var(--ease); }
.roll::after { content: attr(data-t); }
.main-nav a:hover .roll { transform: translateY(-50%); }
.main-nav a:hover, .main-nav a.on { color: var(--ink); }
.main-nav a.on { text-shadow: 0 0 0 currentColor; }
.main-nav .nav-fullgas:hover, .main-nav .nav-fullgas.on { color: var(--amber); }
.mag { transition: translate .35s var(--ease); }

/* ---------- portada ---------- */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 600px; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 90% at 50% 40%, #15130f 0, var(--bg) 70%);
}
.hero-stage { position: absolute; inset: 0; --fh: min(60svh, 40vw); }
.hero-floats .fl { position: absolute; width: var(--w); aspect-ratio: 3 / 4; z-index: 1; will-change: transform; }
.fl-in { width: 100%; height: 100%; overflow: hidden; border-radius: 2px; background: var(--card); animation: float var(--fd, 9s) ease-in-out infinite alternate; }
.fl-in img { width: 100%; height: 100%; object-fit: cover; }
@keyframes float { from { transform: translateY(-9px) rotate(-1.2deg); } to { transform: translateY(11px) rotate(1.4deg); } }
.fl.f1 { --w: clamp(110px, 13vw, 240px); left: 6%; top: 17%; }
.fl.f2 { --w: clamp(92px, 10vw, 190px); right: 7%; top: 14%; --fd: 11s; }
.fl.f3 { --w: clamp(100px, 11vw, 210px); left: 15%; bottom: 25%; --fd: 8s; }
.fl.f4 { --w: clamp(88px, 9vw, 170px); right: 13%; bottom: 27%; --fd: 10s; }
html:not(.hero-in) .hero-floats .fl { opacity: 0; }
.hero-floats .fl { transition: opacity 1.2s ease .5s; }

.hero-frame {
  position: absolute; left: 50%; top: 43%; z-index: 2; height: var(--fh); aspect-ratio: 4 / 5;
  margin: calc(var(--fh) * -.5) 0 0 calc(var(--fh) * -.4); overflow: hidden; background: var(--card);
  border-radius: 2px; will-change: transform; box-shadow: 0 50px 120px -40px rgba(0, 0, 0, .8);
}
html:not(.hero-in) .hero-frame { clip-path: inset(0 0 100% 0); }
html.hero-in .hero-frame { clip-path: inset(0); transition: clip-path 1.2s var(--ease); }
.hero-slides { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; overflow: hidden; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide.on img { animation: kb 8s linear both; }
@keyframes kb { from { transform: scale(1.16); } to { transform: scale(1); } }
.af { position: absolute; left: 50%; top: 50%; width: 86px; height: 86px; margin: -43px 0 0 -43px; opacity: 0; pointer-events: none; z-index: 3; }
.af i { position: absolute; width: 18px; height: 18px; border: 2px solid #fff; }
.af i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; }
.af i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; }
.af i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; }
.af i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; }
.af.lock { animation: aflock 1s var(--ease) both; }
@keyframes aflock {
  0% { opacity: 0; transform: scale(2.6); } 35% { opacity: 1; transform: scale(.85); } 50% { transform: scale(1.12); }
  62% { transform: scale(.96); } 82% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1); }
}

.hero-title {
  position: absolute; left: 0; right: 0; bottom: clamp(14px, 3.4svh, 40px); z-index: 5; margin: 0;
  padding: 0 var(--pad); pointer-events: none; mix-blend-mode: difference; color: #f4efe4;
  will-change: transform;
}
.ht { display: block; }
.ht-1 { font-family: var(--display); text-transform: uppercase; font-size: clamp(5.2rem, 22vw, 27rem); line-height: .8; letter-spacing: .005em; }
.ht-2 { font-family: var(--serif); font-style: italic; text-align: right; font-size: clamp(4.4rem, 19vw, 23rem); line-height: .86; margin-top: -.04em; letter-spacing: -.01em; }
.ln { display: block; overflow: hidden; padding-bottom: .08em; white-space: nowrap; }
.ch { display: inline-block; transform: translateY(108%); will-change: transform; }
html.hero-in .ch { transform: none; transition: transform 1.05s var(--ease) calc(var(--i) * 55ms + var(--d, 0ms)); }
.ht-2 .ch { --d: 380ms; }
html.hero-in .ln.done .ch { transition: none; }

.vf {
  position: absolute; inset: calc(var(--header) + 4px) clamp(14px, 2vw, 28px) clamp(14px, 2.4vw, 28px);
  z-index: 6; pointer-events: none; color: var(--ink);
  font-family: var(--mono); font-size: .66rem; letter-spacing: .15em; text-transform: uppercase;
}
html:not(.hero-in) .vf { opacity: 0; }
.vf { transition: opacity 1s ease .8s; }
.vf-c { position: absolute; width: 26px; height: 26px; border: 2px solid currentColor; opacity: .75; }
.vf-c.tl { left: 0; top: 0; border-right: 0; border-bottom: 0; }
.vf-c.tr { right: 0; top: 0; border-left: 0; border-bottom: 0; }
.vf-c.bl { left: 0; bottom: 0; border-right: 0; border-top: 0; }
.vf-c.br { right: 0; bottom: 0; border-left: 0; border-top: 0; }
.vf-t { position: absolute; margin: 0; display: flex; align-items: center; gap: .7em; white-space: nowrap; }
.vf-t em { font-style: normal; color: var(--mute); }
.vf-rec { left: 40px; top: 4px; }
.vf-rec .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); animation: blink 1.1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.vf-id { right: 40px; top: 4px; }
.vf-exp { text-transform: none; left: 3px; top: 50%; writing-mode: vertical-rl; transform: translateY(-50%) rotate(180deg); }
.vf-scroll { right: 3px; top: 50%; writing-mode: vertical-rl; transform: translateY(-50%); gap: 1em; }
.vf-line { display: block; width: 1px; height: 54px; background: currentColor; transform-origin: top; animation: vline 2s var(--ease) infinite; }
@keyframes vline { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- cintas ---------- */
.bands { position: relative; height: clamp(170px, 21vw, 290px); overflow: hidden; margin-top: -1px; z-index: 3; }
.band {
  position: absolute; left: -6%; width: 112%; overflow: hidden; white-space: nowrap;
  font-family: var(--display); text-transform: uppercase; font-size: clamp(2.2rem, 6.2vw, 5.8rem);
  line-height: 1.18; color: #0a0a09; user-select: none;
}
.band.b1 { background: var(--blue); transform: rotate(-2.2deg); top: 24%; z-index: 1; }
.band.b2 { background: var(--ink); transform: rotate(1.5deg); top: 40%; z-index: 2; }
.band-track { display: flex; width: max-content; will-change: transform; }
.band-set { display: flex; flex: none; align-items: center; }
.band-set span { padding: 0 .28em; }
.band-set span.o { color: transparent; -webkit-text-stroke: 1.6px #0a0a09; }
.band-set i { font-style: normal; font-family: var(--serif); font-size: .8em; padding: 0 .2em; }

/* ---------- manifiesto y cifras ---------- */
.manifesto { max-width: 1560px; margin: 0 auto; padding: clamp(80px, 12vw, 190px) var(--pad) clamp(30px, 4vw, 60px); }
.mf { margin: 0; font-family: var(--display); text-transform: uppercase; font-size: clamp(2rem, 5.8vw, 5.8rem); line-height: 1.04; letter-spacing: .005em; }
.mf .w { opacity: .16; transition: opacity .5s ease; }
.mf .w.on { opacity: 1; }
.mf em { font-family: var(--serif); font-style: italic; text-transform: none; letter-spacing: -.01em; color: var(--blue-ink); font-size: 1.14em; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: clamp(40px, 6vw, 96px); border-top: 1px solid var(--line); }
.stat { display: flex; flex-direction: column; gap: 4px; padding-top: 20px; }
.stat b { font-family: var(--display); font-weight: 400; font-size: clamp(3.2rem, 10vw, 9rem); line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { font-family: var(--mono); font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--mute); }

/* ---------- cabeceras de sección ---------- */
.block, .colls { padding: clamp(64px, 10vw, 150px) var(--pad) 0; }
.block-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 40px; margin-bottom: clamp(18px, 2.4vw, 32px); }
.block h2, .colls h2 { margin: 0; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(3rem, 9vw, 8.6rem); line-height: .92; letter-spacing: .005em; }
.sec-n { font-family: var(--mono); font-size: .68rem; letter-spacing: .2em; color: var(--blue-ink); margin-right: .9em; position: relative; top: -.2em; vertical-align: top; }
.block h2 small, .sub-head h3 small { margin-left: .8em; font-family: var(--mono); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--mute); vertical-align: middle; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(18px, 2.4vw, 30px); }
.chip {
  appearance: none; cursor: pointer; padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; color: var(--mute); font-size: .82rem; transition: color .25s, border-color .25s, background .25s, transform .3s var(--ease);
}
.chip:hover { color: var(--ink); border-color: var(--mute); transform: translateY(-2px); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip .n { margin-left: .5em; opacity: .55; font-family: var(--mono); font-size: .7rem; }
.seg { display: inline-flex; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .02); }
.seg button { appearance: none; cursor: pointer; border: 0; background: transparent; color: var(--mute); padding: 8px 16px; border-radius: 999px; font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; transition: background .3s, color .3s; }
.seg button.on { background: var(--ink); color: var(--bg); }
.nojs { color: var(--mute); }

/* ---------- colecciones ---------- */
.colls { padding-inline: 0; }
.colls .block-head { padding: 0 var(--pad); }
.coll-ctrl { display: flex; gap: 10px; }
.arrow { appearance: none; cursor: pointer; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--ink); font-size: 1.2rem; transition: background .3s, color .3s, border-color .3s; }
.arrow:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.coll-track { display: flex; gap: var(--gap); overflow-x: auto; padding: 6px var(--pad) 22px; scroll-snap-type: x proximity; scroll-padding-inline: var(--pad); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.coll-track::-webkit-scrollbar { display: none; }
.coll-track.drag { scroll-snap-type: none; scroll-behavior: auto; user-select: none; }
.coll {
  position: relative; flex: none; width: clamp(236px, 25vw, 380px); aspect-ratio: 3 / 4.1; overflow: hidden; border-radius: 3px;
  background: var(--card); scroll-snap-align: start; text-decoration: none; color: var(--ink); -webkit-user-drag: none;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease);
}
.coll.tilting { transition: transform .08s linear; }
.coll img { position: absolute; top: 0; left: -12%; width: 124%; height: 100%; max-width: none; object-fit: cover; translate: calc(var(--p, 0) * -7%) 0; transition: scale 1s var(--ease); pointer-events: none; }
.coll::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0, 0, 0, .35) 0, transparent 28%, transparent 46%, rgba(0, 0, 0, .82) 100%); }
.coll::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .22), transparent 55%); }
.coll.tilting::after { opacity: 1; }
.coll:hover img { scale: 1.07; }
.coll-n { position: absolute; z-index: 3; left: 16px; top: 14px; font: 500 .7rem var(--mono); letter-spacing: .2em; }
.coll-name { position: absolute; z-index: 3; left: 16px; right: 64px; bottom: 44px; font-family: var(--display); text-transform: uppercase; font-size: clamp(1.8rem, 3vw, 2.7rem); line-height: .95; }
.coll-ct { position: absolute; z-index: 3; left: 16px; bottom: 16px; font: 500 .68rem var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink); opacity: .8; }
.coll-go { position: absolute; z-index: 3; right: 14px; bottom: 14px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--ink); display: grid; place-items: center; font-size: 1.1rem; transition: background .35s, color .35s, rotate .5s var(--ease); }
.coll:hover .coll-go { background: var(--ink); color: var(--bg); rotate: -45deg; }
.coll.fg { box-shadow: inset 0 0 0 2px var(--amber); }
.coll.fg .coll-n, .coll.fg .coll-ct { color: var(--amber); }
.coll-bar { height: 2px; margin: 4px var(--pad) 0; background: var(--line); overflow: hidden; }
.coll-bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--blue), var(--amber)); transform-origin: 0 50%; transform: scaleX(.1); }

/* ---------- mosaico ---------- */
.masonry { display: flex; align-items: flex-start; gap: var(--gap); }
.mcol { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: var(--gap); }
.masonry > .sgrid { flex: 1 1 0; min-width: 0; }
.tile {
  position: relative; display: block; width: 100%; padding: 0; border: 0; margin: 0; overflow: hidden;
  border-radius: 2px; background: var(--card); cursor: zoom-in; text-decoration: none; color: inherit;
}
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s, scale .9s var(--ease); }
.tile img.ld { opacity: 1; }
.tile.par img { inset: -9% 0 auto 0; height: 118%; translate: 0 var(--ty, 0px); }
.tile:hover img { scale: 1.05; }
.tile .tag {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 34px 12px 10px; z-index: 2;
  background: linear-gradient(transparent, rgba(0, 0, 0, .78)); font: 500 .66rem var(--mono); letter-spacing: .14em; text-transform: uppercase; text-align: left;
  opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .4s var(--ease); pointer-events: none;
}
.tile:hover .tag, .tile:focus-visible .tag { opacity: 1; transform: none; }
.tile .tag em { font-style: normal; text-transform: none; color: var(--amber); letter-spacing: .06em; }

/* hoja de contactos */
.sgrid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(112px, 14vw, 190px), 1fr)); gap: 8px; padding: 12px;
  background: #100e0b; border: 1px solid #2a2418; position: relative;
}
.sgrid .tile { aspect-ratio: 3 / 2; border-radius: 0; outline: 1px solid #000; background: #1c1912; }
.sgrid .tile img { filter: saturate(.92) contrast(1.04); }
.fn { position: absolute; left: 6px; bottom: 4px; z-index: 3; font: 500 .58rem var(--mono); letter-spacing: .12em; color: var(--amber); text-shadow: 0 1px 2px #000; pointer-events: none; }
.gp { position: absolute; inset: 7%; width: 86%; height: 86%; z-index: 4; overflow: visible; pointer-events: none; }
.gp ellipse { fill: none; stroke: var(--red); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .7s var(--ease); }
.sgrid .tile:hover .gp ellipse, .sgrid .tile:focus-visible .gp ellipse { stroke-dashoffset: 0; }
.sgrid .tile .tag { display: none; }

/* tarjetas de diseño */
.card { margin: 0; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease); }
.card.tilting { transition: transform .08s linear; }
.card .tile::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .2), transparent 55%); }
.card.tilting .tile::after { opacity: 1; }
.card .cap { display: flex; flex-direction: column; gap: 1px; padding: 12px 2px 2px; }
.card .t1 { font-size: .92rem; color: var(--ink); }
.card .t2 { font-size: .8rem; color: var(--mute); }
.badge { position: absolute; z-index: 4; top: 10px; right: 10px; padding: 5px 11px; border-radius: 999px; background: var(--amber); color: #0a0a09; font: 500 .66rem var(--mono); letter-spacing: .14em; animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(245, 168, 28, .55); } 50% { box-shadow: 0 0 0 9px rgba(245, 168, 28, 0); } }

/* ---------- fullgas ---------- */
.fullgas { position: relative; margin-top: clamp(80px, 11vw, 170px); padding-bottom: 10px; overflow: hidden; background: linear-gradient(180deg, #07101f 0, #0a0a09 900px); }
.fg-flag { height: 30px; border-block: 2px solid var(--blue); background: conic-gradient(#f2eee4 25%, #0a0a09 0 50%, #f2eee4 0 75%, #0a0a09 0) 0 0 / 30px 30px; animation: flag 1.4s linear infinite; }
@keyframes flag { to { background-position: 60px 0; } }
.fg-speed { position: absolute; left: 0; right: 0; top: 32px; height: min(900px, 100%); pointer-events: none; overflow: hidden; }
.sk { position: absolute; left: 0; height: var(--h, 2px); width: var(--w, 20vw); border-radius: 2px; background: linear-gradient(90deg, transparent, var(--c, var(--blue))); transform: translateX(-130%); animation: sk var(--dur, 2s) linear var(--del, 0s) infinite paused; }
.fullgas.on .sk { animation-play-state: running; }
@keyframes sk { to { transform: translateX(calc(100vw + 130%)); } }
.fg-wrap { position: relative; padding: 0 var(--pad); }
.fg-top {
  display: grid; align-items: end; gap: clamp(16px, 3vw, 44px); padding: clamp(46px, 7vw, 100px) 0 clamp(36px, 5vw, 70px);
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(190px, 250px);
  grid-template-areas: "tag tag tag" "title title title" "lede video gauge";
}
.fg-main { display: contents; }
.fg-tag { grid-area: tag; margin: 0; font-family: var(--mono); font-size: clamp(.68rem, 1.2vw, .84rem); letter-spacing: .2em; text-transform: uppercase; color: var(--blue-ink); }
.fg-tag .sec-n { color: var(--amber); }
.fg-title { grid-area: title; margin: 0; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(4.6rem, 21vw, 22rem); line-height: .84; letter-spacing: .005em; }
.fg-skew { display: block; transform: skewX(-8deg); transform-origin: 0 100%; will-change: transform; }
.fg-title .ln { padding-right: .1em; }
.fg-title .ch { transform: translateY(108%); }
.fullgas .fg-title.in .ch { transform: none; transition: transform 1s var(--ease) calc(var(--i) * 60ms); }
.fg-title .ch:nth-child(n+5) { color: var(--amber); }
.fg-main .lede { grid-area: lede; align-self: center; margin: 0; max-width: 30ch; color: var(--mute); font-size: 1.1rem; }
.fg-video { grid-area: video; position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 8px; background: #08070a; border: 1px solid rgba(245, 168, 28, .22); box-shadow: 0 30px 90px -30px rgba(245, 168, 28, .45), 0 0 0 1px rgba(0, 0, 0, .4); }
.fg-video video { display: block; width: 100%; height: 100%; object-fit: cover; }
.fg-gauge { grid-area: gauge; position: relative; }
.fg-gauge svg { display: block; width: 100%; height: auto; overflow: visible; }
#g-ticks line { stroke: var(--ink); stroke-linecap: round; opacity: .85; }
#g-ticks line.min { opacity: .35; }
#g-ticks text { fill: var(--ink); font: 500 11px var(--mono); text-anchor: middle; dominant-baseline: central; }
#g-red { stroke: var(--red); stroke-width: 6; opacity: .9; }
#g-needle { transform-origin: 120px 120px; will-change: transform; }
#g-needle line { stroke: var(--amber); stroke-width: 3; stroke-linecap: round; filter: drop-shadow(0 0 5px rgba(245, 168, 28, .8)); }
#g-needle circle { fill: #0a0a09; stroke: var(--amber); stroke-width: 3; }
.g-read { position: absolute; left: 0; right: 0; bottom: 4%; text-align: center; display: grid; gap: 2px; font-family: var(--mono); }
.g-read b { font-family: var(--display); font-weight: 400; font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.g-read span { font-size: .6rem; letter-spacing: .18em; text-transform: uppercase; color: var(--mute); }
.fg-gauge.red .g-read b { color: var(--red); }

.sub-head { margin: clamp(30px, 4vw, 56px) 0 clamp(14px, 2vw, 24px); display: flex; align-items: center; gap: 18px; }
.sub-head h3 { margin: 0; font-family: var(--mono); font-weight: 500; font-size: .8rem; letter-spacing: .26em; text-transform: uppercase; color: var(--amber); white-space: nowrap; }
.sub-head::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(245, 168, 28, .6), transparent); }

.cars { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: center; }
.cars .tile { aspect-ratio: auto; will-change: translate; translate: 0 var(--cy, 0px); }
.cars .tile:hover { z-index: 2; }
.js .cars .rvt { clip-path: polygon(0 0, 0 0, -14% 100%, -14% 100%); transform: none; }
.js .cars .rvt.in { clip-path: polygon(0 0, 114% 0, 100% 100%, -14% 100%); transform: none; }

/* ---------- pie ---------- */
.foot { position: relative; margin-top: clamp(90px, 13vw, 200px); overflow: hidden; }
.foot-band { height: 3px; background: linear-gradient(90deg, var(--blue), var(--amber), var(--blue)); background-size: 200% 100%; animation: band 4s linear infinite; }
@keyframes band { to { background-position: -200% 0; } }
.foot-word {
  margin: 0; padding: clamp(28px, 5vw, 80px) var(--pad) 0; text-align: center; white-space: nowrap; text-transform: uppercase;
  font-family: var(--display); font-size: clamp(3.2rem, 14.2vw, 18rem); line-height: .9; letter-spacing: .005em;
}
.foot-word .ch { transition: transform .6s var(--ease), color .3s; cursor: default; transform: none; }
.foot-word .ch:hover { transform: translateY(-.1em) rotate(-4deg); color: var(--blue); }
.foot-contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 14px; padding: 30px var(--pad) 0; }
.foot-contact a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--mono); font-size: .8rem; letter-spacing: .08em; padding: 14px 22px; border: 1px solid var(--line); border-radius: 999px; transition: background .3s, color .3s, border-color .3s; }
.foot-contact a small { color: var(--amber); font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; transition: color .3s; }
.foot-contact a:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.foot-contact a:hover small { color: var(--bg); }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 26px var(--pad) 44px; color: var(--mute); font-size: .86rem; }
.foot-row p { margin: 0; font-family: var(--mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; }
.foot-row .brand span { color: var(--ink); font-size: 1.05rem; }
.foot-row .brand img { width: 40px; height: 40px; }
.foot-row .up { text-decoration: none; font-family: var(--mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; padding: 12px 18px; border: 1px solid var(--line); border-radius: 999px; transition: background .3s, color .3s; display: inline-block; }
.foot-row .up:hover { background: var(--ink); color: var(--bg); }

/* ---------- visor ---------- */
.lb[hidden] { display: none; }
.lb { position: fixed; inset: 0; z-index: 150; display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.lb-bg { position: absolute; inset: 0; background: rgba(6, 6, 5, .965); animation: lbbg .4s ease both; }
@keyframes lbbg { from { opacity: 0; } to { opacity: 1; } }
.lb-stage { position: relative; margin: 0; min-height: 0; display: flex; align-items: center; justify-content: center; padding: clamp(56px, 8vh, 80px) clamp(10px, 7vw, 110px) 6px; }
.lb-img { flex: none; display: block; max-width: none; border-radius: 2px; object-fit: contain; transform-origin: 0 0; will-change: transform; transition: filter .4s; }
.lb-img.loading { filter: blur(7px); }
.lb-bar { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; padding: 10px clamp(14px, 3vw, 32px) 18px; font: 500 .7rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.lb-cap { color: var(--ink); }
.lb-exp { color: var(--amber); text-align: center; text-transform: none; }
.lb-count { text-align: right; font-variant-numeric: tabular-nums; }
.lb-btn {
  position: absolute; z-index: 2; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(20, 20, 18, .7); color: var(--ink); font-size: 1.7rem; line-height: 1; cursor: pointer;
  transition: background .25s, border-color .25s, color .25s;
}
.lb-btn[hidden] { display: none; }
.lb-btn:hover { background: var(--ink); color: var(--bg); }
.lb-close { top: 14px; right: clamp(12px, 2.4vw, 28px); }
.lb-prev { left: clamp(8px, 2vw, 28px); top: 50%; margin-top: -25px; }
.lb-next { right: clamp(8px, 2vw, 28px); top: 50%; margin-top: -25px; }

/* ---------- aparición ---------- */
.js .rv { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }
.js .rvt { opacity: 0; clip-path: inset(14% 0 0 0); transform: translateY(28px) scale(.97); transition: opacity .8s var(--ease), clip-path 1s var(--ease), transform 1s var(--ease); transition-delay: var(--rd, 0ms); }
.js .rvt.in { opacity: 1; clip-path: inset(0); transform: none; }

/* ---------- adaptación ---------- */
@media (max-width: 1000px) {
  .fg-top { grid-template-columns: minmax(0, 1fr) minmax(170px, 230px); grid-template-areas: "tag tag" "title title" "video video" "lede gauge"; align-items: center; }
  .fg-main .lede { max-width: 44ch; }
}
@media (max-width: 820px) {
  .hero-stage { --fh: min(52svh, 92vw); }
  .hero-frame { top: 42%; }
  .ht-1 { font-size: clamp(5rem, 31vw, 15rem); }
  .ht-2 { font-size: clamp(4.4rem, 27vw, 13rem); }
  .fl.f1 { --w: 26vw; left: 3%; top: 15%; }
  .fl.f2 { --w: 22vw; right: 3%; top: 12%; }
  .fl.f3 { --w: 24vw; left: 4%; bottom: 31%; }
  .fl.f4 { --w: 20vw; right: 5%; bottom: 33%; }
  .vf-exp, .vf-scroll { display: none; }
}
@media (max-width: 560px) {
  :root { --header: 62px; }
  .brand span { display: none; }
  .foot-row .brand span { display: inline; }
  .main-nav { font-size: .66rem; letter-spacing: .1em; gap: 15px; }
  .vf-rec { left: 34px; } .vf-id { right: 34px; }
  .stats { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .stat span { font-size: .56rem; letter-spacing: .12em; }
  .block-head { display: block; }
  .block-head .head-tools { margin-top: 16px; }
  .seg button { padding: 8px 12px; font-size: .62rem; }
  .coll-ctrl { display: none; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--pad)); padding: 0 var(--pad) 2px; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; white-space: nowrap; }
  .fg-top { grid-template-columns: 1fr; grid-template-areas: "tag" "title" "lede" "video" "gauge"; }
  .fg-gauge { max-width: 270px; }
  .cars { grid-template-columns: 1fr 1fr; }
  .cars .tile { grid-column: auto !important; }
  .lb-prev, .lb-next { top: auto; bottom: 64px; margin-top: 0; }
  .lb-stage { padding-inline: 8px; }
  .lb-bar { grid-template-columns: 1fr auto; }
  .lb-exp { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain, .fg-flag, .foot-band, .sk, .fl-in, .badge, .vf-rec .dot, .vf-line, .slide.on img { animation: none; }
  .js .rv, .js .rvt, .js .cars .rvt { opacity: 1; transform: none; clip-path: none; transition: none; }
  .ch, html.hero-in .ch, .fg-title .ch { transform: none; transition: none; }
  html:not(.hero-in) .hero-frame { clip-path: none; }
  .intro { display: none; }
  .mf .w { opacity: 1; }
}
