/* =========================================================
   GZ Roleplay — sistema visual
   Tema: oscuro único (marca nocturna). Acento: morado del logo.
   Forma: esquinas rectas con chaflán diagonal (eco del tajo del logo).
   z-index: canvas 0 · contenido 1 · nav 30 · gate 50 · grain 60 · lightbox (top-layer)
   ========================================================= */

:root {
  color-scheme: dark;
  --bg: #0b0914;
  --bg-2: #110e1e;
  --bg-3: #181429;
  --navy: #1b1838;
  --ink: #ece9f5;
  --ink-2: #a8a2bf;
  --ink-3: #6f698a;
  --accent: #8b2cf5;
  --accent-hi: #b47cff;
  --accent-ink: #ffffff;
  --line: rgb(236 233 245 / 0.09);
  --line-2: rgb(236 233 245 / 0.16);

  --font: "Archivo", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --chamfer: 14px;
  --cut: polygon(0 0, calc(100% - var(--chamfer)) 0, 100% var(--chamfer), 100% 100%, var(--chamfer) 100%, 0 calc(100% - var(--chamfer)));

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1360px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; height: 100dvh; }

img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, ol { margin: 0; }
ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 3px; }

::selection { background: var(--accent); color: #fff; }

/* ---------- Fondo 3D ---------- */
#city {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
  opacity: 0;
  transition: opacity 1.4s ease;
  background:
    radial-gradient(120% 70% at 50% 110%, #2a1450 0%, transparent 60%),
    linear-gradient(#07060d, #0b0914 60%, #140d26);
}
#city.is-ready { opacity: 1; }
.no-webgl #city { opacity: 1; }
.bg-wrap {
  position: fixed;
  inset: -3% 0;
  z-index: 0;
  overflow: hidden;
  background: #1c1426 url("assets/hero.jpg") center / cover;
  transform: translateZ(0);
  backface-visibility: hidden;
}
.bg-media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- Botones ---------- */
.btn {
  --h: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--h);
  padding: 0 26px;
  border: 0;
  clip-path: var(--cut);
  font-family: var(--font);
  font-weight: 700;
  font-stretch: 112%;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.35s var(--ease-out), color 0.35s var(--ease-out), transform 0.2s var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn i { font-size: 17px; transition: transform 0.4s var(--ease-out); }
.btn:hover i { transform: translateX(4px); }

.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: #9d45ff; }

.btn--ghost {
  background: rgb(236 233 245 / 0.06);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.btn--ghost:hover { background: rgb(236 233 245 / 0.12); }
.btn--ghost:hover i { transform: none; }

.btn--sm { --h: 40px; padding: 0 18px; font-size: 13px; --chamfer: 10px; }
.btn--xl { --h: 64px; padding: 0 40px; font-size: 18px; --chamfer: 18px; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  background: rgb(236 233 245 / 0.06);
  box-shadow: inset 0 0 0 1px var(--line-2);
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px));
  cursor: pointer;
  font-size: 18px;
  transition: background-color 0.3s var(--ease-out);
}
.icon-btn:hover { background: rgb(236 233 245 / 0.14); }
.icon-btn:active { transform: scale(0.95); }

/* ---------- Gate ---------- */
#gate {
  position: fixed;
  inset: 0;
  z-index: 50;
  overflow: hidden;
}
.gate-face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: var(--gutter);
  background:
    radial-gradient(38% 42% at 50% 46%, rgb(11 9 20 / 0.62) 0%, rgb(11 9 20 / 0.25) 60%, rgb(11 9 20 / 0) 100%), radial-gradient(120% 90% at 50% 50%, transparent 55%, rgb(11 9 20 / 0.7) 100%);
}
.gate-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.gate-logo {
  width: min(46vmin, 420px);
  height: auto;
  margin-bottom: 8px;
  filter: drop-shadow(0 0 40px rgb(139 44 245 / 0.35));
  pointer-events: none;
  user-select: none;
}
.gate-title {
  font-weight: 800;
  font-style: italic;
  font-stretch: 125%;
  font-size: clamp(15px, 1.6vw, 19px);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 34px;
}
.sound-switch {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: none;
  border: 0;
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 13px;
  cursor: pointer;
  transition: color 0.3s;
}
.sound-switch:hover { color: var(--ink); }
.sound-switch i { font-size: 18px; }

.slash-wrap {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 170vmax;
  height: 0;
  transform: translate(-50%, -50%) rotate(-39.3deg);
  pointer-events: none;
}
.slash {
  position: absolute;
  left: 0;
  top: -2px;
  width: 100%;
  height: 4px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, transparent, var(--accent) 20%, #f1e6ff 50%, var(--accent) 80%, transparent);
  box-shadow: 0 0 18px 4px rgb(139 44 245 / 0.75), 0 0 60px 10px rgb(139 44 245 / 0.35);
  border-radius: 4px;
}
.flash {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgb(214 180 255 / 0.9), rgb(139 44 245 / 0.4) 40%, transparent 75%);
  opacity: 0;
  pointer-events: none;
}
.gate-half {
  position: absolute;
  inset: 0;
  will-change: transform;
}
.gate-half .gate-face { inset: 0; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 var(--gutter);
  opacity: 0;
  visibility: hidden;
  transition: background-color 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.nav.is-scrolled {
  background: rgb(11 9 20 / 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 var(--line);
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-style: italic;
  font-stretch: 125%;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav__brand img { width: 48px; height: 40px; object-fit: contain; }
.nav__links { display: flex; gap: 28px; }
.nav__links a {
  position: relative;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  transition: color 0.3s;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0) skewX(-30deg);
  transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1) skewX(-30deg); transform-origin: left; }
.nav__actions { display: flex; align-items: center; gap: 10px; }

@media (max-width: 1240px) {
  .nav__links { display: none; }
}

/* ---------- Main / secciones ---------- */
main { position: relative; z-index: 1; }

.h2 {
  font-weight: 800;
  font-stretch: 118%;
  font-size: clamp(34px, 4.6vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--ink-2); max-width: 58ch; }
.muted { color: var(--ink-2); }

/* Hero */
.hero {
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  padding: 120px var(--gutter) clamp(56px, 10vh, 120px);
  background:
    linear-gradient(90deg, rgb(11 9 20 / 0.82) 0%, rgb(11 9 20 / 0.55) 38%, transparent 70%),
    linear-gradient(180deg, rgb(11 9 20 / 0.5) 0%, transparent 22%, transparent 45%, rgb(11 9 20 / 0.55) 65%, rgb(11 9 20 / 0.92) 86%, var(--bg) 97%);
}
.hero__inner { max-width: var(--max); width: 100%; margin: 0 auto; }
.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  padding: 7px 14px 7px 12px;
  background: rgb(11 9 20 / 0.6);
  box-shadow: inset 0 0 0 1px var(--line-2);
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}
.status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgb(74 222 128 / 0.6);
  animation: pulse 2.4s infinite;
}
.status.is-off .status__dot { background: var(--ink-3); animation: none; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgb(74 222 128 / 0.55); }
  70% { box-shadow: 0 0 0 9px rgb(74 222 128 / 0); }
  100% { box-shadow: 0 0 0 0 rgb(74 222 128 / 0); }
}
.hero__title {
  font-weight: 900;
  font-stretch: 112%;
  font-size: clamp(38px, 5.6vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  margin-bottom: 26px;
}
.hero__title em {
  font-style: italic;
  color: var(--accent-hi);
}
.line-mask { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.line { display: block; will-change: transform; }
.hero__sub { font-size: clamp(17px, 1.5vw, 21px); color: var(--ink-2); max-width: 46ch; margin-bottom: 34px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* Historia */
.story {
  position: relative;
  overflow: hidden;
  background: var(--bg);
  padding: clamp(96px, 16vh, 180px) var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 96px);
  max-width: none;
}
.story::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent) 50%, transparent);
  opacity: 0.5;
}
.story__year {
  align-self: center;
  justify-self: end;
  font-weight: 900;
  font-style: italic;
  font-stretch: 125%;
  font-size: clamp(96px, 15vw, 260px);
  line-height: 0.8;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgb(180 124 255 / 0.55);
  user-select: none;
  padding-right: 0.06em;
}
.story__body { align-self: center; display: grid; gap: 28px; max-width: 640px; }
.story .h2 { font-size: clamp(30px, 3.6vw, 54px); }
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 16px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.stats dt { order: 2; font-size: 14px; color: var(--ink-2); }
.stats div { display: flex; flex-direction: column; gap: 4px; }
.stats dd {
  order: 1;
  font-family: var(--mono);
  font-weight: 600;
  font-size: clamp(26px, 2.8vw, 40px);
  letter-spacing: -0.02em;
  color: var(--ink);
}
@media (max-width: 860px) {
  .story { grid-template-columns: 1fr; }
  .story__year { justify-self: start; }
}
@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr 1fr; }
}

/* Ciudad / bento */
.city {
  background: var(--bg);
  padding: clamp(80px, 12vh, 140px) var(--gutter);
}
.city__title { max-width: var(--max); margin: 0 auto 48px; max-width: 14ch; margin-left: max(0px, calc((100% - var(--max)) / 2)); }
.bento {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  grid-template-rows: repeat(2, minmax(260px, auto));
  gap: 14px;
}
.cell {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 28px;
  background: var(--bg-2);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
  isolation: isolate;
}
.cell::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px var(--line);
  pointer-events: none;
}
.cell__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--navy) center / cover no-repeat;
  transition: transform 1s var(--ease-out);
}
.cell__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(11 9 20 / 0.05) 20%, rgb(11 9 20 / 0.92) 100%);
}
.cell:hover .cell__media { transform: scale(1.05); }
.cell__body { display: grid; gap: 8px; max-width: 44ch; }
.cell__body i { font-size: 30px; color: var(--accent-hi); margin-bottom: 8px; }
.cell h3 { font-weight: 800; font-stretch: 112%; font-size: clamp(20px, 1.8vw, 26px); line-height: 1.1; }
.cell p { color: var(--ink-2); font-size: 15px; }

.cell--crime { grid-row: span 2; min-height: 540px; }
.cell--pd {
  background:
    radial-gradient(90% 120% at 100% 0%, rgb(59 130 246 / 0.22), transparent 60%),
    radial-gradient(90% 120% at 0% 0%, rgb(239 68 68 / 0.16), transparent 55%),
    var(--bg-2);
}
.cell--biz {
  background:
    repeating-linear-gradient(-39.3deg, rgb(139 44 245 / 0.07) 0 2px, transparent 2px 18px),
    var(--bg-2);
}
.cell--home { grid-column: span 1; }
.cell--cars {
  background:
    radial-gradient(120% 90% at 50% 120%, rgb(139 44 245 / 0.45), transparent 60%),
    var(--bg-3);
}
@media (max-width: 960px) {
  .bento { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .cell--crime { grid-column: span 2; grid-row: auto; min-height: 420px; }
  .cell { min-height: 240px; }
}
@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; }
  .cell--crime { grid-column: auto; min-height: 380px; }
}

/* Galería */
.gallery {
  background: var(--bg);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(80px, 12vh, 140px) 0;
  overflow: hidden;
}
.gallery__head {
  max-width: var(--max);
  margin: 0 auto 40px;
  padding: 0 var(--gutter);
  display: grid;
  gap: 10px;
}
.gallery__track {
  display: flex;
  gap: 18px;
  padding: 0 var(--gutter);
  width: max-content;
}
.shot {
  position: relative;
  flex: none;
  width: clamp(280px, 42vw, 640px);
  aspect-ratio: 16 / 10;
  padding: 0;
  border: 0;
  background: var(--navy);
  cursor: zoom-in;
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
}
.shot:nth-child(even) { width: clamp(240px, 30vw, 460px); aspect-ratio: 4 / 5; align-self: center; }
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-out), filter 0.6s;
  filter: saturate(0.9);
}
.shot:hover img { transform: scale(1.05); filter: saturate(1.1); }
.shot__caption {
  position: absolute;
  left: 18px;
  bottom: 14px;
  right: 18px;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  text-shadow: 0 1px 12px rgb(0 0 0 / 0.8);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.shot:hover .shot__caption, .shot:focus-visible .shot__caption { opacity: 1; transform: none; }
.shot--skeleton {
  background: linear-gradient(100deg, var(--bg-2) 40%, var(--bg-3) 50%, var(--bg-2) 60%) 0 0 / 300% 100%;
  animation: shimmer 1.6s linear infinite;
}
@keyframes shimmer { to { background-position: -150% 0; } }

/* Móvil / sin pin: scroll nativo con snap */
@media (max-width: 860px) {
  .gallery__track {
    width: auto;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 6px;
  }
  .gallery__track::-webkit-scrollbar { display: none; }
  .shot { scroll-snap-align: center; width: 82vw; }
  .shot:nth-child(even) { width: 66vw; }
}

/* Pasos */
.steps {
  position: relative;
  background: var(--bg);
  padding: clamp(80px, 12vh, 140px) var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) 2px minmax(0, 1.2fr);
  gap: 0 clamp(28px, 5vw, 72px);
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
}
.steps .h2 { align-self: start; position: sticky; top: 120px; }
.steps__rail { position: relative; background: var(--line); }
.steps__fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--accent-hi), var(--accent));
  transform: scaleY(0);
  transform-origin: top;
  box-shadow: 0 0 14px rgb(139 44 245 / 0.6);
}
.steps__list { display: grid; gap: clamp(48px, 8vh, 88px); }
.step { display: grid; gap: 10px; max-width: 48ch; }
.step i { font-size: 32px; color: var(--accent-hi); }
.step h3 { font-weight: 800; font-stretch: 112%; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.1; }
.step p { color: var(--ink-2); }
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin-top: 6px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  color: var(--accent-hi);
}
.link-arrow i { transition: transform 0.4s var(--ease-out); }
.link-arrow:hover i { transform: translate(3px, -3px); }
@media (max-width: 860px) {
  .steps { grid-template-columns: 2px minmax(0, 1fr); }
  .steps .h2 { grid-column: 1 / -1; position: static; margin-bottom: 48px; }
}

/* Final */
.final {
  position: relative;
  min-height: 120dvh;
  display: grid;
  place-items: center;
  padding: 160px var(--gutter);
  text-align: center;
  isolation: isolate;
  background:
    linear-gradient(180deg, var(--bg) 0%, rgb(11 9 20 / 0) 22%, rgb(11 9 20 / 0) 72%, var(--bg) 100%),
    radial-gradient(80% 60% at 50% 50%, rgb(11 9 20 / 0.2), rgb(11 9 20 / 0.75));
}
/* cortinilla diagonal: el vídeo reaparece por el ángulo del tajo */
.final__wipe {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--bg);
  pointer-events: none;
}

.final__inner { position: relative; z-index: 1; }
html:not(.has-motion) .final__wipe { display: none; }
.final__inner { display: grid; justify-items: center; gap: 32px; }
.final__title {
  font-weight: 900;
  font-style: italic;
  font-stretch: 125%;
  font-size: clamp(42px, 8vw, 120px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  padding-bottom: 0.06em;
}
.connect-box {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 18px;
  background: rgb(11 9 20 / 0.7);
  box-shadow: inset 0 0 0 1px var(--line-2);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  max-width: 100%;
}
.connect-box code { font-family: var(--mono); font-size: clamp(13px, 1.3vw, 16px); color: var(--ink); overflow-wrap: anywhere; text-align: left; }
.connect-box__toast {
  position: absolute;
  right: 56px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent-hi);
  opacity: 0;
  transition: opacity 0.3s;
}
.connect-box__toast.is-on { opacity: 1; }

/* Lightbox */
.lightbox {
  padding: 0;
  border: 0;
  background: transparent;
  max-width: min(92vw, 1600px);
  max-height: 90dvh;
  overflow: visible;
}
.lightbox::backdrop { background: rgb(7 6 13 / 0.88); backdrop-filter: blur(6px); }
.lightbox img { max-width: 100%; max-height: 90dvh; object-fit: contain; }
.lightbox__close { position: absolute; top: -52px; right: 0; }

/* ---------- Movimiento: estados iniciales ---------- */
html.has-motion [data-motion-text],
html.has-motion [data-reveal],
html.has-motion [data-reveal-item] { visibility: hidden; }
html.has-motion [data-hero-fade] { opacity: 0; }
html.has-motion [data-hero-title] .line { transform: translateY(135%); }

.motion-word-mask { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.motion-word { display: inline-block; will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

@media (max-width: 520px) {
  .nav { height: 64px; }
  .nav__brand span { display: none; }
}

/* =========================================================
   v3: secciones nuevas
   ========================================================= */

/* Puerta: carga real del vídeo */
.gate-meta { display: grid; justify-items: center; gap: 14px; margin-top: 22px; }
.gate-meta .sound-switch { margin-top: 0; }
.loadbar {
  width: 160px;
  height: 2px;
  background: rgb(236 233 245 / 0.14);
  overflow: hidden;
  transition: opacity 0.6s ease 0.4s;
}
.loadbar__fill {
  display: block;
  height: 100%;
  background: var(--accent-hi);
  transform: scaleX(0.04);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}
.loadbar.is-done { opacity: 0; }

/* Nav: progreso y sección activa */
.nav__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; pointer-events: none; }
.nav__progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-hi));
  transform: scaleX(0);
  transform-origin: left;
}
.nav__links a.is-current { color: var(--ink); }
.nav__links a.is-current::after { transform: scaleX(1) skewX(-30deg); }
@media (max-width: 1100px) { .nav__links { gap: 20px; } }

.section-head { display: grid; gap: 14px; max-width: var(--max); margin: 0 auto 44px; }
.section-head .lead { max-width: 52ch; }

/* Manifiesto */
.manifesto { position: relative; height: 280vh; background: var(--bg); }
.manifesto__stage {
  position: sticky;
  top: 0;
  height: 100dvh;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: radial-gradient(60% 50% at 50% 45%, #1d1238 0%, var(--bg) 70%);
}
.manifesto__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.manifesto__stage::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 22vh;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, var(--bg), transparent);
}
.manifesto__lines { z-index: 2; }
.manifesto__fallback { width: min(50vmin, 420px); height: auto; opacity: 0.9; }
.manifesto.has-webgl .manifesto__fallback { display: none; }
.manifesto__lines {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(48px, 11vh, 120px);
  display: grid;
  justify-items: center;
  gap: 2px;
  text-align: center;
  pointer-events: none;
  padding: 0 var(--gutter);
}
.manifesto__line {
  font-weight: 900;
  font-stretch: 118%;
  text-transform: uppercase;
  font-size: clamp(26px, 4.2vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.025em;
}
.manifesto__line em { color: var(--accent-hi); }

/* Zonas */
.zones { background: var(--bg); padding: clamp(96px, 14vh, 160px) var(--gutter) clamp(64px, 10vh, 120px); }
.zones__rail {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  gap: 10px;
  height: min(72vh, 640px);
}
.zone {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  color: var(--ink);
  background: var(--bg-2);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  transition: flex-grow 0.8s var(--ease-out);
}
.zone.is-active { flex-grow: 5.5; }
.zone__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  filter: saturate(0.7) brightness(0.6);
  transition: transform 1.2s var(--ease-out), filter 0.8s;
}
.zone.is-active .zone__video { transform: scale(1); filter: none; }
.zone__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgb(11 9 20 / 0) 35%, rgb(11 9 20 / 0.88) 100%); }
.zone__label {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  font-weight: 800;
  font-stretch: 112%;
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: opacity 0.4s;
}
.zone.is-active .zone__label { opacity: 0; }
.zone__body {
  position: absolute;
  left: clamp(20px, 3vw, 40px);
  right: clamp(20px, 3vw, 40px);
  bottom: clamp(20px, 3vw, 36px);
  display: grid;
  gap: 6px;
  max-width: 46ch;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease-out), transform 0.6s var(--ease-out);
  pointer-events: none;
}
.zone.is-active .zone__body { opacity: 1; transform: none; transition-delay: 0.25s; }
.zone__area { font-size: 14px; font-weight: 600; color: rgb(236 233 245 / 0.7); }
.zone__name { font-weight: 900; font-stretch: 118%; font-size: clamp(30px, 3.6vw, 56px); line-height: 1; letter-spacing: -0.02em; text-transform: uppercase; }
.zone__text { color: rgb(236 233 245 / 0.82); font-size: 16px; }
.zone:focus-visible { outline-offset: -4px; }
@media (max-width: 860px) {
  .zones__rail {
    display: grid;
    height: auto;
    grid-template-rows: 380px repeat(5, 76px);
    transition: grid-template-rows 0.7s var(--ease-out);
  }
  .zone { flex: none; height: auto; min-height: 0; }
  .zone__label { writing-mode: horizontal-tb; transform: translateY(-50%); left: 20px; bottom: auto; top: 50%; }
}

/* Caminos */
.paths { background: var(--bg); padding: clamp(80px, 12vh, 140px) var(--gutter); }
.paths__grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.paths__side { display: grid; gap: 36px; }
.paths__tabs { display: grid; gap: 6px; }
.path-tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 0;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  text-align: left;
  font-weight: 800;
  font-stretch: 112%;
  font-size: clamp(20px, 2vw, 28px);
  letter-spacing: -0.01em;
  transition: color 0.35s, background-color 0.35s;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}
.path-tab i { font-size: 26px; transition: color 0.35s, transform 0.5s var(--ease-out); }

.path-tab:hover { color: var(--ink); }
.path-tab.is-active { color: var(--ink); background: rgb(139 44 245 / 0.1); }
.path-tab.is-active i { color: var(--accent-hi); transform: rotate(-8deg) scale(1.08); }
.paths__panel { display: grid; gap: 28px; }
.path-card {
  position: relative;
  aspect-ratio: 16 / 9;
  transform-style: preserve-3d;
  will-change: transform;
}
.path-card__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--navy);
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 26px 100%, 0 calc(100% - 26px));
}
.path-card__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.path-card__sheen {
  position: absolute;
  inset: 0;
  pointer-events: none;
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 26px 100%, 0 calc(100% - 26px));
  background: radial-gradient(40% 50% at var(--mx, 50%) var(--my, 50%), rgb(255 255 255 / 0.14), transparent 70%);
  mix-blend-mode: screen;
}
.path-info { display: grid; gap: 18px; min-height: 110px; align-content: start; }
.path-info__tagline { font-size: clamp(20px, 1.8vw, 26px); font-weight: 600; }
.path-info__roles { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.path-info__roles li {
  padding: 7px 14px;
  font-size: 14px;
  font-weight: 600;
  background: rgb(236 233 245 / 0.06);
  box-shadow: inset 0 0 0 1px var(--line-2);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}
.path-info__tip { color: var(--ink-2); max-width: 56ch; }
.path-info__tip strong { color: var(--ink); font-weight: 700; }
@media (max-width: 960px) {
  .paths__grid { grid-template-columns: 1fr; }
  .paths__tabs { grid-template-columns: 1fr 1fr; }
  .path-tab { font-size: 17px; padding: 14px; }
}

/* Bento: foco que sigue al puntero */
.cell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
  background: radial-gradient(320px circle at var(--sx, 50%) var(--sy, 50%), rgb(139 44 245 / 0.22), transparent 65%);
}
.bento:hover .cell::before { opacity: 1; }
.cell__body { position: relative; z-index: 1; }

/* Galería 3D */
.shot { will-change: transform; }

/* Novedades */
.news { background: var(--bg); padding: clamp(80px, 12vh, 140px) var(--gutter); }
.news .h2 { max-width: var(--max); margin: 0 auto 44px; }
.news__grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
}
.news-card {
  position: relative;
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  background: var(--bg-2);
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  transition: background-color 0.4s;
}
.news-card:hover { background: var(--bg-3); }
.news-card--lead { grid-row: span 2; grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
.news-card__media { overflow: hidden; min-height: 180px; }
.news-card--lead .news-card__media { min-height: 300px; }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease-out); }
.news-card:hover .news-card__media img { transform: scale(1.05); }
.news-card__body { display: grid; align-content: start; gap: 10px; padding: 24px; }
.news-card__meta { font-size: 14px; color: var(--ink-3); white-space: nowrap; }
.news-card h3 { font-weight: 800; font-stretch: 112%; font-size: clamp(19px, 1.7vw, 24px); line-height: 1.15; }
.news-card--lead h3 { font-size: clamp(24px, 2.4vw, 34px); }
.news-card p:not(.news-card__meta) { color: var(--ink-2); font-size: 15px; }
@media (max-width: 860px) {
  .news__grid { grid-template-columns: 1fr; }
  .news-card--lead { grid-row: auto; }
  .news-card { grid-template-columns: 1fr; }
}

/* FAQ */
.faq {
  background: var(--bg);
  padding: clamp(80px, 12vh, 140px) var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
  gap: clamp(32px, 5vw, 80px);
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
}
.faq .h2 { align-self: start; }
.faq__list { display: grid; gap: 10px; }
.faq-item {
  background: var(--bg-2);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}
.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 17px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i { font-size: 20px; color: var(--accent-hi); transition: transform 0.45s var(--ease-out); flex: none; }
.faq-item.is-open summary i, .faq-item[open] summary i { transform: rotate(45deg); }
.faq-item__a { overflow: hidden; }
.faq-item__a p { padding: 0 22px 22px; color: var(--ink-2); max-width: 62ch; }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } }

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 56px var(--gutter) 32px;
}
.footer__top {
  max-width: var(--max);
  margin: 0 auto 48px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  align-self: start;
  font-weight: 800;
  font-style: italic;
  font-stretch: 125%;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.footer__brand img { width: 58px; height: 48px; object-fit: contain; }
.footer__cols { display: grid; grid-template-columns: repeat(3, auto); gap: 24px 64px; }
.footer__cols div { display: grid; gap: 10px; align-content: start; }
.footer__cols h3 { font-size: 13px; font-family: var(--mono); font-weight: 600; color: var(--ink-3); margin-bottom: 4px; }
.footer__cols a { color: var(--ink-2); text-decoration: none; font-size: 15px; transition: color 0.3s; }
.footer__cols a:hover { color: var(--ink); }
.footer__bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: 13px;
  color: var(--ink-3);
}
@media (max-width: 760px) {
  .footer__top { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: repeat(2, auto); }
}

/* Lightbox con navegación */
.lightbox__caption { margin-top: 12px; text-align: center; color: var(--ink-2); font-size: 14px; }
.lightbox__nav { position: fixed; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 22px; }
.lightbox__prev { left: 20px; }
.lightbox__next { right: 20px; }

/* Tienda en la barra */
.nav__store i { font-size: 15px; }
.nav__store:hover i { transform: none; }
@media (max-width: 640px) { .nav__store span { display: none; } .nav__store { padding: 0 12px; } }

/* Enlaces legales: presentes pero discretos */
.footer__legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer__legal a { color: var(--ink-3); text-decoration: none; font-size: 13px; }
.footer__legal a:hover { color: var(--ink-2); text-decoration: underline; }

/* Menú móvil */
.nav__menu-btn { display: none; }
@media (max-width: 1240px) { .nav__menu-btn { display: inline-grid; } }
.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: grid;
  padding: 12px var(--gutter) 24px;
  background: rgb(11 9 20 / 0.96);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 24px 40px rgb(0 0 0 / 0.4);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a {
  padding: 14px 0;
  font-weight: 800;
  font-stretch: 112%;
  font-size: 22px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.mobile-menu a:last-child { border-bottom: 0; }
.mobile-menu a:hover { color: var(--accent-hi); }
