/* =========================================================
   gonver estudio · web del estudio
   ========================================================= */

/* Fuente de puntos de Path to the Sanctuary */
@font-face {
  font-family: "Senda";
  src: url("../../games/path-to-the-sanctuary/assets/fuentes/senda_font.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #04070c;
  --bg-2: #070c13;
  --surface: #0a1119;
  --surface-2: #0e1721;
  --line: rgba(150, 210, 240, .1);
  --line-strong: rgba(150, 210, 240, .2);
  --ink: #ecf6fb;
  --ink-soft: #a9bac6;
  --ink-mute: #7a8e9e;

  /* Colores del logo */
  --cyan: #14c8f5;
  --aqua: #22e3dc;
  --brand-grad: linear-gradient(100deg, var(--aqua), var(--cyan));

  /* Paleta de Path to the Sanctuary */
  --senda-gold: #f2c462;
  --senda-gold-soft: #ffc65c;
  --senda-sun: #f4593a;
  --senda-red: #c1301f;
  --senda-cream: #fffbf2;
  --senda-night: #160d1c;

  /* Color de acento: cian del estudio salvo dentro de un juego */
  --accent: var(--cyan);
  --accent-2: var(--aqua);
  --on-accent: #02161f;

  --font-display: "Unbounded", "Segoe UI", system-ui, sans-serif;
  --font-body: "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-pixel: "Senda", "DotGothic16", ui-monospace, monospace;
  --font-kanji: "DotGothic16", "Senda", sans-serif;

  --header-h: 76px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 1.1rem;
  --ease: cubic-bezier(.77, 0, .18, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

.senda {
  --accent: var(--senda-sun);
  --accent-2: var(--senda-gold);
  --on-accent: #2a0e08;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
  overflow-x: clip;
}

body.menu-open,
body.dialog-open { overflow: hidden; }

img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--aqua); outline-offset: 3px; }
::selection { background: rgba(20, 200, 245, .35); color: #fff; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: fixed;
  top: -5rem;
  left: 1rem;
  z-index: 100;
  padding: .75rem 1.1rem;
  border-radius: .5rem;
  background: var(--brand-grad);
  color: var(--on-accent);
  font-weight: 800;
  text-decoration: none;
  transition: top .2s;
}

.skip:focus { top: 1rem; }

.wrap {
  width: min(1240px, 100% - 2 * var(--gutter));
  margin-inline: auto;
}

/* ---------- Botones ---------- */

/* Fondo inclinado en el ::before */
.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 3.1rem;
  padding: .85rem 1.65rem;
  border: 0;
  background: none;
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1.1;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: .35rem;
  transform: skewX(-12deg);
  transition: transform .35s var(--ease-out), box-shadow .35s, background .35s;
}

.btn svg { width: 1rem; height: 1rem; flex: none; transition: transform .35s var(--ease-out); }
.btn:hover svg:last-child:not(:first-child) { transform: translateX(3px); }

.btn-primary { color: var(--on-accent); }

.btn-primary::before {
  background: linear-gradient(100deg, var(--accent-2), var(--accent));
  box-shadow: 0 .5rem 1.75rem color-mix(in srgb, var(--accent) 35%, transparent);
}

.btn-primary:hover::before {
  transform: skewX(-12deg) scale(1.05);
  box-shadow: 0 .75rem 2.5rem color-mix(in srgb, var(--accent) 55%, transparent);
}

.btn-ghost::before {
  border: 1px solid color-mix(in srgb, var(--accent-2) 55%, transparent);
  background: rgba(255, 255, 255, .04);
  backdrop-filter: blur(6px);
}

.btn-ghost:hover::before { background: color-mix(in srgb, var(--accent) 18%, transparent); }

.round-btn {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  background: rgba(4, 7, 12, .5);
  backdrop-filter: blur(6px);
  cursor: pointer;
  transition: border-color .3s, background .3s, transform .3s var(--ease-out);
}

.round-btn svg { width: 1rem; height: 1rem; }

.round-btn:hover {
  border-color: var(--accent-2);
  background: color-mix(in srgb, var(--accent) 22%, rgba(4, 7, 12, .6));
  transform: scale(1.06);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
  font-size: .9rem;
  color: var(--ink);
  text-decoration: none;
}

.link-arrow svg {
  width: 1rem;
  height: 1rem;
  color: var(--accent-2);
  transition: transform .35s var(--ease-out);
}

.link-arrow span {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .35s var(--ease-out);
}

.link-arrow:hover span { background-size: 100% 1px; }
.link-arrow:hover svg { transform: translateX(4px); }
.link-arrow--up:hover svg { transform: translateY(-4px); }

/* ---------- Cabecera ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: border-color .4s;
}

/* Sombra suave para leer el menú sobre el vídeo */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 -3rem;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(4, 7, 12, .75), transparent);
  pointer-events: none;
  transition: opacity .4s;
}

/* Fondo en capa aparte: en la cabecera atraparía el panel fijo del menú móvil */
.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(4, 7, 12, .82);
  backdrop-filter: blur(14px) saturate(1.2);
  opacity: 0;
  transition: opacity .4s;
}

.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header.is-scrolled::after { opacity: 1; }
.site-header.is-scrolled::before { opacity: 0; }

.menu-open .site-header { border-bottom-color: transparent; }
.menu-open .site-header::after { opacity: 0; }

.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex: none;
  border-radius: .75rem;
  color: inherit;
  text-decoration: none;
}

.brand-logo {
  width: auto;
  height: 1.7rem;
  transition: transform .5s var(--ease-out), filter .5s;
}

.brand:hover .brand-logo {
  transform: scale(1.05);
  filter: drop-shadow(0 0 .8rem rgba(34, 227, 220, .6));
}

.nav { margin-left: auto; }

.nav-list {
  display: flex;
  gap: clamp(1.25rem, 2.6vw, 2.4rem);
}

.nav-list a {
  position: relative;
  display: block;
  padding: .5rem 0;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  transition: color .25s;
}

.nav-list a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: .1rem;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--brand-grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease-out);
}

.nav-list a:hover,
.nav-list a.is-current { color: var(--ink); }

.nav-list a:hover::after,
.nav-list a.is-current::after { transform: scaleX(1); }

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

.lang-options {
  --idx: 0;
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 2.6rem;
  padding: .22rem;
  border: 1px solid rgba(34, 227, 220, .28);
  border-radius: 999px;
  background: rgba(7, 20, 38, .7);
}

.lang-options::before {
  content: "";
  position: absolute;
  top: .22rem;
  bottom: .22rem;
  left: .22rem;
  width: 2.6rem;
  border-radius: 999px;
  background: var(--brand-grad);
  box-shadow: 0 0 1rem rgba(20, 200, 245, .4);
  transform: translateX(calc(var(--idx) * 100%));
  transition: transform .45s var(--ease-out);
}

.lang-btn {
  position: relative;
  z-index: 1;
  height: 1.9rem;
  border: 0;
  border-radius: 999px;
  background: none;
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--ink-soft);
  cursor: pointer;
  transition: color .3s;
}

.lang-btn[aria-pressed="true"] { color: #032030; }
.lang-btn:hover:not([aria-pressed="true"]) { color: var(--ink); }

.menu-toggle {
  display: none;
  position: relative;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(4, 7, 12, .5);
  cursor: pointer;
}

.menu-toggle span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1.1rem;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .4s var(--ease-out);
}

.menu-toggle span:first-child { transform: translate(-50%, calc(-50% - 4px)); }
.menu-toggle span:last-child { transform: translate(-50%, calc(-50% + 4px)); }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translate(-50%, -50%) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translate(-50%, -50%) rotate(-45deg); }

/* ---------- Juego destacado ---------- */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: calc(var(--header-h) + 2rem);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--senda-night);
}

.hero-poster,
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-poster { animation: slow-zoom 22s ease-out both; }

@keyframes slow-zoom {
  from { transform: scale(1.12); }
}

/* Ampliado para dejar fuera del cuadro el HUD de la partida */
.hero-video {
  opacity: 0;
  transform: scale(1.32);
  transform-origin: 50% 62%;
  transition: opacity 1.2s;
}

.hero-video.is-ready { opacity: 1; }

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--bg) 0%, rgba(4, 7, 12, .7) 22%, rgba(4, 7, 12, .15) 55%, rgba(4, 7, 12, .55) 100%),
    linear-gradient(90deg, rgba(10, 6, 14, .9) 0%, rgba(10, 6, 14, .55) 42%, rgba(10, 6, 14, 0) 75%),
    radial-gradient(55% 45% at 18% 78%, rgba(244, 89, 58, .28), transparent 70%);
}

.hero-content {
  padding-bottom: clamp(2rem, 6vh, 4rem);
  animation: rise 1.1s var(--ease-out) .15s both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: 1.6rem;
  padding: .45rem .95rem .45rem .8rem;
  border: 1px solid rgba(242, 196, 98, .4);
  border-radius: 999px;
  background: rgba(22, 13, 28, .6);
  backdrop-filter: blur(8px);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--senda-gold);
}

.eyebrow-dot {
  width: .5rem;
  height: .5rem;
  flex: none;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 .7rem currentColor;
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  50% { opacity: .35; transform: scale(.7); }
}

.senda-kanji {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-family: var(--font-kanji);
  font-size: clamp(1rem, 1.7vw, 1.3rem);
  letter-spacing: .42em;
  color: var(--senda-gold-soft);
}

.senda-kanji::after {
  content: "";
  width: clamp(40px, 8vw, 110px);
  height: 2px;
  background: linear-gradient(to right, var(--senda-gold-soft), transparent);
}

/* Mismo rótulo que la portada del juego: letra de puntos con sombra bermellón */
.senda-title {
  font-family: var(--font-pixel);
  font-size: clamp(2.5rem, 8.2vw, 7rem);
  font-weight: 400;
  line-height: .98;
  letter-spacing: .06em;
  color: var(--senda-cream);
  text-shadow:
    .07em .085em 0 var(--senda-red),
    0 0 .2em rgba(244, 89, 58, .38),
    0 0 .38em rgba(244, 89, 58, .24),
    0 0 .6em rgba(244, 89, 58, .16);
}

.senda-line { display: block; }

/* PATH un poco más arriba: su sombra roja no debe rozar «TO THE» */
.senda-line:first-child { margin-bottom: .14em; }

.senda-link {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: .4em 0 .3em;
  font-size: clamp(.8rem, 1.3vw, 1.05rem);
  letter-spacing: .62em;
  color: var(--senda-gold-soft);
  text-shadow: none;
}

.senda-link > span { margin-right: -.62em; }

.senda-link::before,
.senda-link::after {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  background: var(--senda-sun);
  transform: rotate(45deg);
}

.hero-tagline {
  max-width: 32em;
  margin-top: 1.6rem;
  font-size: clamp(1rem, .9rem + .45vw, 1.25rem);
  font-weight: 500;
  color: rgba(251, 238, 226, .9);
  text-shadow: 0 2px 10px rgba(0, 0, 0, .6);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem 1.1rem;
  margin-top: 2.2rem;
}

.hero-foot {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding-block: 1.1rem 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, .09);
}

.hero-credit {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .8rem;
  color: var(--ink-soft);
}

.hero-credit img { width: auto; height: 1.2rem; }

.scroll-cue {
  display: grid;
  place-items: start center;
  width: 1.6rem;
  height: 2.5rem;
  padding-top: .45rem;
  border: 1.5px solid rgba(255, 255, 255, .35);
  border-radius: 1rem;
}

.scroll-cue span {
  width: 3px;
  height: .5rem;
  border-radius: 2px;
  background: var(--senda-gold);
  animation: wheel 1.8s ease-in-out infinite;
}

@keyframes wheel {
  0% { opacity: 0; transform: translateY(-2px); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(.8rem); }
}

.hero-foot .round-btn { justify-self: end; }

/* ---------- Secciones ---------- */

.section {
  position: relative;
  padding-block: clamp(5rem, 11vw, 9rem);
}

.section-head {
  display: grid;
  gap: 1.1rem;
  max-width: 48rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.kicker {
  display: flex;
  align-items: center;
  gap: .8rem;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.kicker-num {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--accent-2);
}

.kicker-num::after {
  content: "";
  display: inline-block;
  width: 2rem;
  height: 1px;
  margin-left: .8rem;
  vertical-align: middle;
  background: currentColor;
  opacity: .6;
}

.kicker--center { justify-content: center; }

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 1.2rem + 3vw, 3.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.015em;
  text-wrap: balance;
}

.section-lead {
  max-width: 38rem;
  font-size: clamp(1rem, .95rem + .2vw, 1.12rem);
  color: var(--ink-soft);
}

/* Aparición al entrar en pantalla (solo con JavaScript) */
.js [data-reveal] {
  opacity: 0;
  translate: 0 28px;
  transition: opacity .9s var(--ease-out), translate .9s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 110ms);
}

.js [data-reveal].is-visible {
  opacity: 1;
  translate: 0 0;
}

/* ---------- Juegos: franjas diagonales ---------- */

/* A todo el ancho y pegadas a la sección Estudio */
.games {
  --track-h: clamp(26rem, 72vh, 40rem);
  /* Inclinación de 12°, como los botones: tan(12°) × alto */
  --slant: calc(var(--track-h) * .2126);
  /* Ancho visible de una franja plegada */
  --band-min: 3.5rem;
  position: relative;
  height: var(--track-h);
  overflow: hidden;
  overflow: clip;
  container-type: inline-size;
  background: var(--surface);
}

#juegos { padding-bottom: 0; }
#juegos + .studio { border-top: 0; }

/* Fundidos arriba y abajo, con una línea fina de la marca en cada borde */
.games::before,
.games::after {
  --brand-line: linear-gradient(90deg, transparent, color-mix(in srgb, var(--cyan) 55%, transparent) 30%, color-mix(in srgb, var(--aqua) 55%, transparent) 70%, transparent);
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  z-index: 9;
  pointer-events: none;
}

.games::before {
  top: 0;
  height: clamp(2.5rem, 6vh, 4rem);
  background:
    var(--brand-line) top / 100% 1px no-repeat,
    linear-gradient(to top, transparent, color-mix(in srgb, var(--bg) 70%, transparent) 65%, var(--bg));
}

.games::after {
  bottom: 0;
  height: clamp(3.5rem, 9vh, 5.5rem);
  background:
    var(--brand-line) bottom / 100% 1px no-repeat,
    linear-gradient(to bottom, transparent, color-mix(in srgb, var(--bg-2) 75%, transparent) 70%, var(--bg-2));
}

.track {
  --track-w: 100cqw;
  display: flex;
  width: 100%;
  height: 100%;
}

/* Paralelogramos con clip-path solapados --slant; los anchos suman siempre el 100 % */
.stripe {
  /* Distancia del borde inclinado para los degradados a 102deg: slant × cos(12°) */
  --edge: calc(var(--slant) * .9781);
  position: relative;
  flex: none;
  width: calc(100% / var(--n) + var(--slant));
  height: 100%;
  margin-right: calc(-1 * var(--slant));
  overflow: hidden;
  overflow: clip;
  isolation: isolate;
  clip-path: polygon(var(--slant) 0, 100% 0, calc(100% - var(--slant)) 100%, 0 100%);
  transition: width .85s var(--ease);
}

/* Entran escalonadas cuando la sección aparece en pantalla */
.games.is-visible .stripe {
  animation: stripe-in 1.1s var(--ease-out) both;
  animation-delay: calc(120ms + var(--i) * 80ms);
}

.stripe:first-child,
.stripe:last-child { width: calc(100% / var(--n) + var(--slant) / 2); }

.stripe:first-child { clip-path: polygon(0 0, 100% 0, calc(100% - var(--slant)) 100%, 0 100%); }

.stripe:last-child {
  margin-right: 0;
  clip-path: polygon(var(--slant) 0, 100% 0, 100% 100%, 0 100%);
}

.stripe:only-child {
  width: 100%;
  clip-path: none;
}

.track.has-active .stripe { width: calc(var(--slant) + var(--band-min)); }
.track.has-active .stripe.is-active { width: calc(100% - (var(--n) - 1) * var(--band-min)); }

@keyframes stripe-in {
  from { opacity: 0; transform: translateY(14%); }
}

/* Filo de luz sobre el borde inclinado, con el color de cada franja */
.stripe::before,
.stripe::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  transition: opacity .45s;
}

.stripe::before {
  background:
    linear-gradient(102deg,
      transparent var(--edge),
      color-mix(in srgb, var(--accent-2) 45%, transparent) var(--edge),
      transparent calc(var(--edge) + 1.25rem)),
    linear-gradient(102deg,
      transparent var(--edge),
      color-mix(in srgb, var(--accent) 26%, transparent) var(--edge),
      transparent calc(var(--edge) + 5rem));
  opacity: 0;
}

.stripe::after {
  background: linear-gradient(102deg,
    transparent calc(var(--edge) - 1px),
    color-mix(in srgb, var(--accent-2) 70%, #fff) var(--edge),
    var(--accent) calc(var(--edge) + 1.5px),
    transparent calc(var(--edge) + 2.5px));
  opacity: .35;
}

.stripe:first-child::before,
.stripe:first-child::after { display: none; }

.stripe.is-active::before,
.stripe.is-active::after,
.stripe.is-active + .stripe::after { opacity: 1; }

.stripe-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(90% 40% at 80% -6%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  transform: scale(1.08);
  transition: transform 1.2s var(--ease-out), filter .6s;
}

/* Brillo inferior que "respira", desfasado en cada franja */
.stripe-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(120% 55% at 35% 108%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 72%);
  animation: breathe 5s ease-in-out infinite alternate;
  animation-delay: calc(var(--i) * -.8s);
}

.stripe-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: repeating-linear-gradient(102deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 1.5rem);
}

.stripe-bg.has-cover { background: var(--bg) center / cover no-repeat; }
.stripe-bg.has-cover::before { opacity: .35; animation: none; }

.stripe-bg.has-cover::after {
  background: linear-gradient(to top, rgba(4, 7, 12, .85), rgba(4, 7, 12, .15) 55%, rgba(4, 7, 12, .45));
}

@keyframes breathe {
  from { opacity: .6; }
  to { opacity: 1; }
}

.stripe.is-active .stripe-bg {
  transform: scale(1);
  filter: brightness(1.1);
}

.track.has-active .stripe:not(.is-active) .stripe-bg { filter: brightness(.55) saturate(.75); }

.stripe-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(4, 7, 12, .9) 0%, rgba(4, 7, 12, .5) 40%, transparent 72%),
    linear-gradient(to right, rgba(4, 7, 12, .5), transparent 60%);
  opacity: 0;
  transition: opacity .6s;
}

.stripe.is-active .stripe-shade { opacity: 1; }

/* Cara plegada: número y título girado a lo largo de la franja */
.stripe-face {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  transition: opacity .5s .35s;
}

.stripe.is-active .stripe-face {
  opacity: 0;
  transition: opacity .25s;
}

.stripe-num {
  position: absolute;
  left: clamp(.9rem, 1.2vw, 1.35rem);
  bottom: clamp(2.25rem, 5vh, 3rem);
  display: flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--ink-mute);
  transition: color .4s;
}

.stripe-num::after {
  content: "";
  width: 1rem;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  opacity: .7;
  transition: width .5s var(--ease-out);
}

.stripe-label {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: calc(var(--track-h) * .74);
  padding: .5em;
  white-space: nowrap;
  transform: translate(-50%, -50%) rotate(-78deg);
  transition: opacity .4s, transform .7s var(--ease);
}

.stripe:first-child .stripe-label { left: calc(50% - var(--slant) / 4); }
.stripe:last-child .stripe-label { left: calc(50% + var(--slant) / 4); }
.stripe:only-child .stripe-label { left: 50%; }

.stripe-title {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--font-display);
  font-size: clamp(.9rem, 1.8vh + .4rem, 1.3rem);
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color .4s, letter-spacing .6s var(--ease-out);
}

.stripe-title.is-pixel {
  font-family: var(--font-pixel);
  font-weight: 400;
  letter-spacing: .12em;
  color: var(--senda-cream);
  text-shadow: .07em .085em 0 var(--senda-red);
}

.stripe-status {
  position: absolute;
  top: 100%;
  left: 50%;
  translate: -50% -.35em;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--accent-2);
  transition: opacity .3s;
}

.track.has-active .stripe:not(.is-active) .stripe-label {
  opacity: .55;
  transform: translate(-50%, -50%) rotate(-78deg) scale(.82);
}

.track.has-active .stripe:not(.is-active) .stripe-status { opacity: 0; }

/* Nombre recto, centrado y en varias líneas (juegos con titleLines) */
.stripe-label.is-upright,
.stripe:first-child .stripe-label.is-upright,
.stripe:last-child .stripe-label.is-upright {
  top: calc(50% + .75rem);
  left: 50%;
  max-width: calc(100% - var(--slant) - 1rem);
  white-space: normal;
  text-align: center;
  transform: translate(-50%, -50%);
}

.stripe-label.is-upright .stripe-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: clamp(1.1rem, 1.9vw, 1.75rem);
  line-height: 1.6;
}

/* Estado en un botón de esquinas cortadas, como los del menú del juego */
.stripe-label.is-upright .stripe-status {
  --corte: 7px;
  position: relative;
  left: 0;
  isolation: isolate;
  margin-top: .9rem;
  padding: .7em 1em .7em 1.28em;
  font-family: var(--font-pixel);
  font-size: .72rem;
  font-weight: 400;
  letter-spacing: .28em;
  color: var(--senda-gold);
  background: #98753a;
  clip-path: polygon(var(--corte) 0, 100% 0, 100% calc(100% - var(--corte)),
    calc(100% - var(--corte)) 100%, 0 100%, 0 var(--corte));
  translate: none;
}

.stripe-label.is-upright .stripe-status::before {
  --c: calc(var(--corte) - 1px);
  content: "";
  position: absolute;
  inset: 2px;
  z-index: -1;
  background: var(--senda-night);
  clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)),
    calc(100% - var(--c)) 100%, 0 100%, 0 var(--c));
}

/* Plegada, la banda es demasiado estrecha para el nombre recto */
.track.has-active .stripe:not(.is-active) .stripe-label.is-upright {
  visibility: hidden;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.9);
}
.track.has-active .stripe:not(.is-active) .stripe-num::after { width: 0; opacity: 0; }

/* La versión sustituye a la rayita del número */
.stripe-num.has-version::after { content: none; }

.stripe-version {
  font-family: var(--font-pixel);
  font-size: .75rem;
  font-weight: 400;
  letter-spacing: .04em;
  color: var(--accent-2);
  transition: letter-spacing .5s var(--ease-out), opacity .3s;
}

.track.has-active .stripe:not(.is-active) .stripe-version { opacity: 0; }

/* Zona de clic: toda la franja */
.stripe-hit {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.stripe-hit:focus { outline: none; }

.stripe:has(.stripe-hit:focus-visible)::before,
.stripe:has(.stripe-hit:focus-visible)::after { opacity: 1; }
.stripe:has(.stripe-hit:focus-visible) .stripe-bg { filter: brightness(1.3); }
.stripe:has(.stripe-hit:focus-visible) .stripe-title { color: var(--accent); }

/* Logo del juego (o del estudio) en lugar del número */
.stripe-logo {
  width: auto;
  height: 2.1rem;
  opacity: .8;
  transition: opacity .4s;
}

/* El logo horizontal no cabe en las bandas estrechas con otra franja abierta */
@media (min-aspect-ratio: 1001/1000) {
  .track.has-active .stripe:not(.is-active) .stripe-logo:not(.is-pixel) { display: none; }
}

.is-pixel { image-rendering: pixelated; }
.stripe:hover .stripe-logo,
.stripe.is-active .stripe-logo { opacity: 1; }

/* Decoración del estado abierto */
.stripe-art {
  position: absolute;
  top: 9%;
  right: calc(var(--slant) * .6 + 4%);
  z-index: 2;
  width: auto;
  height: 46%;
  pointer-events: none;
  filter: drop-shadow(0 0 2rem color-mix(in srgb, var(--accent) 45%, transparent));
  transform: scale(.85) rotate(-4deg);
  opacity: 0;
  transition: opacity .4s, transform 1s var(--ease-out);
}

.stripe-art.is-pixel { top: 14%; height: 36%; }
.stripe-art.is-wordmark { top: 16%; height: auto; width: min(20rem, 36%); }

.stripe.is-active .stripe-art {
  transform: none;
  opacity: 1;
  transition-delay: .4s;
  animation: float 6s ease-in-out 1.2s infinite;
}

@keyframes float {
  50% { translate: 0 -.9rem; }
}

/* Panel inclinado con los hijos enderezados: filas escalonadas junto al borde */
.stripe-panel {
  position: absolute;
  left: clamp(1.25rem, 3vw, 3rem);
  bottom: clamp(3rem, 8vh, 4.5rem);
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(.6rem, 1.8vh, 1.1rem);
  width: max(15rem, min(36rem, calc(var(--track-w) - (var(--n) - 1) * var(--band-min) - var(--slant) - 6rem)));
  transform: skewX(-12deg);
  transform-origin: 0 100%;
  translate: 0 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s, translate .4s var(--ease-out), visibility 0s .2s;
}

.stripe-panel > * {
  transform: skewX(12deg);
  transform-origin: 0 100%;
}

.stripe.is-active .stripe-panel {
  translate: 0 0;
  opacity: 1;
  visibility: visible;
  transition: opacity .5s .45s, translate .9s .4s var(--ease-out), visibility 0s .4s;
}

.panel-tag {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.panel-tag::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: currentColor;
  opacity: .6;
}

.panel-kanji {
  margin-bottom: -.4rem;
  font-family: var(--font-kanji);
  font-size: 1rem;
  letter-spacing: .4em;
  color: var(--senda-gold-soft);
}

.panel-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1rem + 2.6vh, 2.8rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.015em;
  text-wrap: balance;
}

.panel-title.is-pixel {
  font-family: var(--font-pixel);
  font-weight: 400;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--senda-cream);
  text-shadow: .07em .085em 0 var(--senda-red);
}

.panel-desc {
  max-width: 34rem;
  font-size: clamp(.92rem, .8rem + .45vh, 1.05rem);
  line-height: 1.6;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}

.panel-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.panel-platforms li {
  padding: .3rem .75rem;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
}

.panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1rem;
  margin-top: .35rem;
}

.panel-soon {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .6rem 1.1rem;
  border: 1px dashed color-mix(in srgb, var(--accent) 55%, transparent);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}

.panel-soon::before {
  content: "";
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 .75rem currentColor;
  animation: pulse 1.8s ease-in-out infinite;
}

/* Mismo botón redondo que el de pausa del vídeo */
.stripe-close {
  position: absolute;
  top: clamp(2.75rem, 6.5vh, 4.25rem);
  right: calc(var(--slant) * .1 + clamp(.9rem, 2vw, 1.75rem));
  z-index: 7;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  background: rgba(4, 7, 12, .5);
  backdrop-filter: blur(6px);
  cursor: pointer;
  transform: scale(.6) rotate(-90deg);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s, transform .4s var(--ease-out), visibility 0s .2s, border-color .3s, background .3s;
}

.stripe.is-active .stripe-close {
  transform: none;
  opacity: 1;
  visibility: visible;
  transition: opacity .4s .5s, transform .6s .5s var(--ease-out), visibility 0s .5s, border-color .3s, background .3s;
}

.stripe-close svg {
  width: 1.1rem;
  height: 1.1rem;
  transition: transform .4s var(--ease-out);
}

.stripe-close:hover {
  border-color: var(--accent-2);
  background: color-mix(in srgb, var(--accent) 22%, rgba(4, 7, 12, .6));
}

.stripe-close:hover svg { transform: rotate(90deg); }

@media (hover: hover) {
  .stripe:hover::after,
  .stripe:hover + .stripe::after,
  .stripe:not(.is-active):hover::before { opacity: 1; }

  .stripe:not(.is-active):hover .stripe-bg {
    transform: scale(1.04);
    filter: brightness(1.3) saturate(1.15);
  }

  .track.has-active .stripe:not(.is-active):hover .stripe-bg { filter: brightness(.9); }
  .track.has-active .stripe:not(.is-active):hover .stripe-label { opacity: 1; }

  .stripe:not(.is-active):hover .stripe-title { color: var(--ink); letter-spacing: .26em; }
  .stripe:not(.is-active):hover .stripe-title.is-pixel { color: var(--senda-cream); letter-spacing: .18em; }
  .stripe:not(.is-active):hover .stripe-num { color: var(--ink); }
  .track:not(.has-active) .stripe:hover .stripe-num::after { width: 2.25rem; }
  .track:not(.has-active) .stripe:hover .stripe-version { letter-spacing: .32em; }
}

.is-resizing .stripe,
.is-resizing .stripe * { transition: none !important; }

/* Pantallas bajas o estrechas en horizontal */
@media (min-aspect-ratio: 1001/1000) and (max-width: 1000px) {
  .games { --band-min: 2.6rem; }
}

@media (min-aspect-ratio: 1001/1000) and (max-height: 620px) {
  .panel-desc { -webkit-line-clamp: 2; }
  .panel-platforms { display: none; }
  .stripe-art { height: 40%; }
}

/* Móvil / vertical: bandas horizontales apiladas */
@media (max-aspect-ratio: 1/1) {
  .games {
    --track-h: max(30rem, calc(100svh - var(--header-h) - 4rem));
    /* Desplazamiento vertical de cada banda: 12 % del ancho (≈ 6,84°) */
    --slant: calc(100vw * .12);
    --band-min: 2.75rem;
  }

  .track { flex-direction: column; }

  /* La primera banda es baja: el fundido de arriba, más corto */
  .games::before { height: 1.75rem; }

  .stripe {
    /* slant × cos(6,84°) para los degradados a 173.16deg */
    --edge: calc(var(--slant) * .9929);
    width: 100%;
    height: calc(100% / var(--n) + var(--slant));
    margin: 0 0 calc(-1 * var(--slant));
    clip-path: polygon(0 var(--slant), 100% 0, 100% calc(100% - var(--slant)), 0 100%);
    transition: height .85s var(--ease);
  }

  .stripe:first-child,
  .stripe:last-child {
    width: 100%;
    height: calc(100% / var(--n) + var(--slant) / 2);
  }

  .stripe:first-child { clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--slant)), 0 100%); }

  .stripe:last-child {
    margin-bottom: 0;
    clip-path: polygon(0 var(--slant), 100% 0, 100% 100%, 0 100%);
  }

  .stripe:only-child {
    height: 100%;
    clip-path: none;
  }

  .track.has-active .stripe {
    width: 100%;
    height: calc(var(--slant) + var(--band-min));
  }

  .track.has-active .stripe.is-active {
    width: 100%;
    height: calc(100% - (var(--n) - 1) * var(--band-min));
  }

  @keyframes stripe-in {
    from { opacity: 0; transform: translateX(-12%); }
  }

  .stripe::before {
    background:
      linear-gradient(173.16deg,
        transparent var(--edge),
        color-mix(in srgb, var(--accent-2) 45%, transparent) var(--edge),
        transparent calc(var(--edge) + 1rem)),
      linear-gradient(173.16deg,
        transparent var(--edge),
        color-mix(in srgb, var(--accent) 34%, transparent) var(--edge),
        transparent calc(var(--edge) + 4rem));
  }

  .stripe::after {
    background: linear-gradient(173.16deg,
      transparent calc(var(--edge) - 1px),
      color-mix(in srgb, var(--accent-2) 70%, #fff) var(--edge),
      var(--accent) calc(var(--edge) + 1.5px),
      transparent calc(var(--edge) + 2.5px));
  }

  .stripe-bg::before {
    background: radial-gradient(70% 120% at -5% 60%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 72%);
  }

  .stripe-bg::after {
    background: repeating-linear-gradient(173.16deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 1.25rem);
  }

  .stripe-num {
    left: auto;
    right: 1.1rem;
    top: 1.4rem;
    bottom: auto;
    flex-direction: row-reverse;
  }

  .stripe-label,
  .stripe:first-child .stripe-label,
  .stripe:last-child .stripe-label {
    left: 1.25rem;
    top: calc(50% + var(--slant) / 2);
    align-items: flex-start;
    max-width: 72vw;
    padding: .4em 0;
    transform: translateY(-50%) rotate(-6.84deg);
    transform-origin: 0 50%;
  }

  .stripe:first-child .stripe-label { top: 50%; }

  .stripe-title {
    font-size: clamp(.85rem, 3.4vw + .1rem, 1.15rem);
    letter-spacing: .16em;
  }

  .stripe-status {
    left: 0;
    translate: 0 -.25em;
  }

  .track.has-active .stripe:not(.is-active) .stripe-label {
    transform: translateY(-50%) rotate(-6.84deg) scale(.9);
  }

  .stripe-label.is-upright,
  .stripe:first-child .stripe-label.is-upright,
  .stripe:last-child .stripe-label.is-upright {
    left: 50%;
    align-items: center;
    padding: 0;
    transform: translate(-50%, -50%);
    transform-origin: 50% 50%;
  }

  .stripe-label.is-upright .stripe-title { font-size: clamp(.95rem, 4.2vw, 1.3rem); }
  .stripe-label.is-upright .stripe-status { margin-top: .5rem; }

  .stripe-art {
    top: 16%;
    right: -6%;
    height: 58%;
  }

  .stripe-art.is-wordmark { right: 8%; height: auto; width: 46%; }
  .stripe.is-active .stripe-art { opacity: .3; }

  .stripe-panel {
    left: 1.25rem;
    right: 1.25rem;
    bottom: calc(var(--slant) + 1rem);
    width: auto;
    transform: none;
  }

  .stripe-panel > * { transform: none; }
  .stripe:last-child .stripe-panel { bottom: 3.5rem; }

  .panel-title { font-size: clamp(1.5rem, 6.5vw, 2.3rem); }
  .panel-desc { -webkit-line-clamp: 3; }
  /* En vertical la banda abierta es más baja: fuera lo accesorio */
  .panel-kanji,
  .panel-platforms { display: none; }
  .panel-actions .btn { flex: 1 1 auto; }

  .stripe-close {
    top: 2rem;
    right: 1rem;
  }
}

/* ---------- Estudio ---------- */

.studio {
  overflow: hidden;
  background:
    radial-gradient(50% 60% at 85% 30%, rgba(20, 200, 245, .09), transparent 70%),
    var(--bg-2);
  border-block: 1px solid var(--line);
}

.studio-flame {
  position: absolute;
  top: 50%;
  right: -4%;
  width: auto;
  height: min(42rem, 90%);
  opacity: .07;
  filter: blur(1px);
  transform: translateY(-50%) rotate(8deg);
  pointer-events: none;
}

.studio .section-head { max-width: 58rem; }

.section .manifesto {
  font-size: clamp(1.55rem, 1rem + 2.4vw, 2.9rem);
  font-weight: 600;
  line-height: 1.2;
}

.manifesto em {
  font-style: normal;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pillars {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.pillar {
  position: relative;
  display: grid;
  align-content: start;
  gap: .8rem;
  padding: 1.75rem 1.6rem 1.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(14, 23, 33, .9), rgba(10, 17, 25, .6));
  transition: border-color .4s, translate .4s var(--ease-out);
}

.pillar::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 1.6rem;
  right: 1.6rem;
  height: 2px;
  background: var(--brand-grad);
  transform: scaleX(.25);
  transform-origin: left;
  transition: transform .6s var(--ease-out);
}

.pillar:hover { border-color: var(--line-strong); }
.pillar:hover::before { transform: scaleX(1); }

.pillar-num {
  position: absolute;
  top: 1.4rem;
  right: 1.5rem;
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 600;
  color: var(--ink-mute);
}

.pillar-icon {
  width: 2rem;
  height: 2rem;
  color: var(--cyan);
}

.pillar h3 {
  margin-top: .4rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
}

.pillar p { color: var(--ink-soft); }

/* ---------- Comunidad ---------- */

.community {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(5rem, 12vw, 9rem);
  text-align: center;
}

.community-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--senda-night);
}

.community-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .35;
  filter: saturate(.8);
}

/* Cielo de atardecer del juego */
.community-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, var(--bg) 0%, rgba(22, 13, 28, .55) 25%, rgba(64, 32, 76, .45) 55%, rgba(139, 44, 78, .5) 80%, rgba(207, 74, 52, .55) 100%),
    radial-gradient(60% 50% at 50% 100%, rgba(255, 143, 61, .35), transparent 70%);
}

.community-inner {
  display: grid;
  justify-items: center;
  gap: 1.2rem;
  max-width: 46rem;
}

.community-icon {
  width: 5.5rem;
  height: 5.5rem;
  margin-bottom: .5rem;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 1.75rem rgba(255, 198, 92, .45));
  animation: float 6s ease-in-out infinite;
}

.community .kicker { color: rgba(251, 238, 226, .8); }

.community h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 1.2rem + 3vw, 3.4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.015em;
  text-wrap: balance;
}

.community-text {
  max-width: 36rem;
  font-size: 1.08rem;
  color: rgba(251, 238, 226, .88);
}

.community-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .9rem 1.1rem;
  margin-top: 1rem;
}

/* ---------- Pie ---------- */

.site-footer {
  position: relative;
  overflow: hidden;
  padding-top: clamp(4rem, 8vw, 6rem);
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer-brand {
  display: grid;
  align-content: start;
  gap: 1.1rem;
}

.footer-brand .brand { justify-self: start; }

.footer-claim {
  max-width: 18rem;
  color: var(--ink-soft);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  gap: 2rem;
}

.footer-cols h3 {
  margin-bottom: 1rem;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.footer-cols ul {
  display: grid;
  gap: .6rem;
}

.footer-cols a {
  font-weight: 600;
  text-decoration: none;
  color: var(--ink-soft);
  transition: color .25s;
}

.footer-cols a:hover { color: var(--ink); }

.footer-note {
  margin-bottom: 1.1rem;
  font-size: .9rem;
  color: var(--ink-soft);
}

.footer-cols .btn { color: var(--ink); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: .85rem;
  color: var(--ink-mute);
}

/* Logotipo gigante recortado al pie de la página */
.footer-wordmark {
  margin-bottom: -.32em;
  font-family: var(--font-display);
  font-size: 16.5vw;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
  text-align: center;
  white-space: nowrap;
  background: linear-gradient(to bottom, rgba(34, 227, 220, .2), rgba(20, 200, 245, 0) 75%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  pointer-events: none;
  user-select: none;
}

/* ---------- Aviso ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  z-index: 70;
  max-width: calc(100% - 2rem);
  padding: .8rem 1.25rem;
  border: 1px solid rgba(20, 200, 245, .35);
  border-radius: 999px;
  background: rgba(10, 17, 25, .95);
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, .5);
  font-size: .9rem;
  font-weight: 700;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 1rem);
  transition: opacity .3s, transform .4s var(--ease-out);
}

.toast:empty { padding: 0; border: 0; }

.toast.is-shown {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- Tráiler ---------- */

.trailer[open] {
  display: grid;
  place-items: center;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: var(--gutter);
  border: 0;
  background: transparent;
}

.trailer::backdrop {
  background: rgba(2, 4, 8, .88);
  backdrop-filter: blur(6px);
}

.trailer-box {
  position: relative;
  width: min(1120px, 100%, (100vh - 8rem) * 16 / 9);
  animation: rise .5s var(--ease-out) both;
}

.trailer-box video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: .75rem;
  background: #000;
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, .6);
}

.trailer-close {
  position: absolute;
  top: -3.5rem;
  right: 0;
}

/* ---------- Pantallas medianas ---------- */

@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr; }
}

/* ---------- Móvil ---------- */

@media (max-width: 860px) {
  :root { --header-h: 64px; }

  .brand-logo { height: 1.4rem; }
  .menu-toggle { display: block; }
  .header-tools { margin-left: auto; }

  .nav {
    position: fixed;
    inset: 0;
    z-index: -1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: calc(var(--header-h) + 2rem) var(--gutter) 3rem;
    background:
      radial-gradient(70% 50% at 100% 0%, rgba(20, 200, 245, .14), transparent 70%),
      var(--bg);
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s, visibility 0s .35s;
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transition: opacity .35s;
  }

  .nav-list {
    flex-direction: column;
    gap: .4rem;
  }

  .nav-list a {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 8vw, 2.4rem);
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: var(--ink);
  }

  .nav-list a::after { bottom: .3rem; }

  .nav.is-open .nav-list li { animation: rise .6s var(--ease-out) both; }
  .nav.is-open .nav-list li:nth-child(2) { animation-delay: .05s; }
  .nav.is-open .nav-list li:nth-child(3) { animation-delay: .1s; }
  .nav.is-open .nav-list li:nth-child(4) { animation-delay: .15s; }

  .pillars { grid-template-columns: 1fr; }
  .studio-flame { right: -30%; opacity: .05; }
}

@media (max-width: 640px) {
  .hero-foot { grid-template-columns: 1fr auto; }
  .scroll-cue { display: none; }

  .hero-actions .btn,
  .community-actions .btn { flex: 1 1 100%; }
}

/* ---------- Movimiento reducido ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
}
