/* Korinel · base compartida.
   Lenguaje: oscuro, imagen a sangre y producto primero (Epic), líneas finas y tipografía precisa (Vercel),
   ficha clara de juego (Steam). Nada de recuadros con borde para agrupar: el espacio, la imagen y alguna
   línea fina hacen ese trabajo. Esquinas moderadas: 8 px en botones, 10–14 px en imágenes.
   Cada página define su mundo (fondo, acento) en su CSS: korinel.css, savage.css, magora.css, inquisitio.css. */

@font-face {
  font-family: "Geist";
  src: url("../fuentes/geist-latin.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist";
  src: url("../fuentes/geist-latin-ext.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist Mono";
  src: url("../fuentes/geist-mono-latin.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist Mono";
  src: url("../fuentes/geist-mono-latin-ext.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inquisitio Pixel";
  src: url("../fuentes/inquisitio-pixel.woff") format("woff"), url("../fuentes/inquisitio-pixel.ttf") format("truetype");
  font-display: swap;
}

:root {
  color-scheme: dark;

  /* Mundo por defecto (Korinel). Las páginas de producto lo pisan. */
  --bg: #080b0f;
  --bg-2: #0d1117;
  --bg-3: #131920;
  --fg: #eef1f5;
  --fg-2: #9ba5b0;
  --fg-3: #67717c;
  --line: rgba(205, 220, 240, 0.09);
  --line-2: rgba(205, 220, 240, 0.16);
  --fill: rgba(255, 255, 255, 0.06);
  --fill-2: rgba(255, 255, 255, 0.11);
  --edge: rgba(255, 255, 255, 0.07);
  --focus: #6fb8ff;
  --accent: #18b76b;

  --k-green: #18b76b;
  --k-blue: #1663ac;
  --k-sky: #55b5eb;
  --k-navy: #142331;

  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 10px;
  --r-lg: 14px;

  --gutter: clamp(20px, 4.4vw, 64px);
  --max: 1360px;
  --header-h: 64px;
  --section: clamp(88px, 11vw, 168px);

  --f-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas, monospace;
  --f-pixel: "Inquisitio Pixel", "Consolas", ui-monospace, monospace;

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  /* El visor de imágenes y las intros son siempre negros. */
  --lb-bg: rgba(3, 4, 6, 0.96);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
  background: var(--bg);
}
/* Sin fondo propio: lo pinta html. Si el body también tuviera, taparía las capas de fondo con z-index
   negativo de las portadas (fuego y montaje de Magora, pantalla de Savage), que no pueden aislarse porque
   el logo de la intro vuela por encima de ellas. */
body {
  margin: 0;
  color: var(--fg);
  font: 400 1rem/1.6 var(--f-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
img, video, svg, canvas { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.05; letter-spacing: -0.03em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
figure { margin: 0; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
::selection { background: rgba(111, 184, 255, 0.35); color: #fff; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

/* Píxel nítido para el arte de los juegos (guardado a su resolución nativa). */
.px { image-rendering: crisp-edges; image-rendering: pixelated; }
.px[data-px-down] { image-rendering: auto; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 16px; top: -80px; z-index: 300; padding: 12px 16px; border-radius: var(--r-sm);
  background: #fff; color: #000; text-decoration: none; font: 500 0.875rem/1 var(--f-sans);
}
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 12px); }

/* ---------------------------------------------------------------- tipografía */

.display {
  font-size: clamp(2.75rem, 6.6vw, 6rem);
  line-height: 0.96; letter-spacing: -0.045em; font-weight: 600;
}
.h2 { font-size: clamp(2.125rem, 4.4vw, 3.75rem); line-height: 1; letter-spacing: -0.04em; }
.h3 { font-size: clamp(1.375rem, 1.9vw, 1.75rem); line-height: 1.12; letter-spacing: -0.025em; }
.lede { font-size: clamp(1.0625rem, 1.35vw, 1.25rem); line-height: 1.55; color: var(--fg-2); letter-spacing: -0.01em; max-width: 58ch; }
.muted { color: var(--fg-2); }
.kicker {
  font: 400 0.8125rem/1.3 var(--f-mono); letter-spacing: 0.01em; color: var(--fg-2);
  display: inline-flex; flex-wrap: wrap; align-items: center;
}
.kicker b { font-weight: 500; color: var(--fg); }
.dot-sep::before { content: "·"; margin-inline: 0.5em; color: var(--fg-3); }
.mono { font-family: var(--f-mono); letter-spacing: 0; }
.tnum { font-variant-numeric: tabular-nums; }

.section { padding-block: var(--section); }
.section + .section { padding-top: 0; }
.sec-head { display: grid; gap: 18px; margin-bottom: clamp(40px, 5.5vw, 80px); max-width: 880px; }
.sec-head--split {
  max-width: none; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: end; gap: 20px clamp(32px, 6vw, 96px);
}
.sec-head--split > p:first-child { grid-column: 1 / -1; }
.sec-head--split .lede { justify-self: start; }
@media (max-width: 860px) { .sec-head--split { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- botones y enlaces */

.btn {
  --btn-h: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: var(--btn-h); padding: 0 18px; border: 0; border-radius: var(--r-sm);
  font: 500 0.9375rem/1 var(--f-sans); letter-spacing: -0.006em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s, transform 0.15s var(--ease);
}
.btn:active { transform: scale(0.975); }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn--primary { background: #fff; color: #07090c; }
.btn--primary:hover { background: #dde3ea; }
.btn--secondary {
  background: rgba(255, 255, 255, 0.07); color: var(--fg);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.btn--secondary:hover { background: rgba(255, 255, 255, 0.13); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); }
.btn--lg { --btn-h: 52px; padding: 0 24px; font-size: 1rem; border-radius: var(--r-md); }
.btn--sm { --btn-h: 34px; padding: 0 13px; font-size: 0.875rem; border-radius: 7px; gap: 7px; }
.btn--sm svg { width: 14px; height: 14px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

.more {
  display: inline-flex; align-items: center; gap: 6px;
  font: 500 0.9375rem/1.2 var(--f-sans); color: var(--fg); text-decoration: none; letter-spacing: -0.006em;
}
.more svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.more:hover svg, a:hover > .more svg, a:focus-visible > .more svg { transform: translateX(3px); }
.more--ext:hover svg { transform: translate(2px, -2px); }
.link { color: var(--fg); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; text-decoration-thickness: 1px; transition: text-decoration-color 0.2s; }
.link:hover { text-decoration-color: currentColor; }

/* Correo con botón de copiar */
.mail { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.mail__addr { font: 500 clamp(1.25rem, 2.6vw, 2rem)/1.15 var(--f-sans); letter-spacing: -0.03em; color: var(--fg); user-select: all; overflow-wrap: anywhere; }
.mail__status { font: 400 0.8125rem/1.3 var(--f-mono); color: var(--fg-2); min-height: 1.3em; }

/* Etiquetas de datos (sin caja: texto con separadores) */
.facts { display: flex; flex-wrap: wrap; gap: 6px 0; font: 400 0.8125rem/1.4 var(--f-mono); color: var(--fg-2); }
.facts li + li::before { content: ""; display: inline-block; width: 3px; height: 3px; margin: 0 12px 2px; border-radius: 50%; background: var(--fg-3); vertical-align: middle; }

/* Lista de especificaciones: filas con línea fina, sin recuadro */
.spec { display: grid; }
.spec > div { display: grid; grid-template-columns: minmax(110px, 0.42fr) minmax(0, 1fr); gap: 16px; padding-block: 14px; border-top: 1px solid var(--line); }
.spec > div:last-child { border-bottom: 1px solid var(--line); }
.spec dt { font: 400 0.8125rem/1.5 var(--f-mono); color: var(--fg-3); }
.spec dd { font-size: 0.9375rem; line-height: 1.5; min-width: 0; overflow-wrap: anywhere; }

/* Imagen con borde de luz (no es una caja: es el canto de la imagen) */
.media { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--bg-2); isolation: isolate; }
.media::after { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--edge); pointer-events: none; }

/* Aparición al entrar en pantalla (sólo con JS; sin JS todo está visible). */
.js [data-reveal] {
  opacity: 0; transform: translate3d(0, 22px, 0);
  transition: opacity 1s var(--ease-out) var(--d, 0s), transform 1.1s var(--ease-out) var(--d, 0s);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- piezas de Inquisitio (inicio, Magora, Inquisitio) */

/* Botones del juego: esquinas escalonadas, como en el píxel, con la fuente del juego */
.btn-px {
  --step: 2px;
  --px-gold: #d9a94e; --px-gold-hover: #e8bb62; --px-gold-ink: #170f05; --px-bone: #e8dfcc;
  position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 2px 20px 0; border: 0; cursor: pointer; text-decoration: none; white-space: nowrap;
  font: 22px/24px var(--f-pixel); letter-spacing: 0;
  clip-path: polygon(0 calc(var(--step) * 2), var(--step) calc(var(--step) * 2), var(--step) var(--step), calc(var(--step) * 2) var(--step), calc(var(--step) * 2) 0, calc(100% - var(--step) * 2) 0, calc(100% - var(--step) * 2) var(--step), calc(100% - var(--step)) var(--step), calc(100% - var(--step)) calc(var(--step) * 2), 100% calc(var(--step) * 2), 100% calc(100% - var(--step) * 2), calc(100% - var(--step)) calc(100% - var(--step) * 2), calc(100% - var(--step)) calc(100% - var(--step)), calc(100% - var(--step) * 2) calc(100% - var(--step)), calc(100% - var(--step) * 2) 100%, calc(var(--step) * 2) 100%, calc(var(--step) * 2) calc(100% - var(--step)), var(--step) calc(100% - var(--step)), var(--step) calc(100% - var(--step) * 2), 0 calc(100% - var(--step) * 2));
  transition: background-color 0.15s, color 0.15s, transform 0.12s;
}
.btn-px:active { transform: translateY(2px); }
.btn-px:focus-visible { outline: none; box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 4px #000; }
.btn-px--gold { background: var(--px-gold); color: var(--px-gold-ink); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.24), inset 0 2px 0 rgba(255, 255, 255, 0.25); }
.btn-px--gold:hover { background: var(--px-gold-hover); }
.btn-px--bone { background: rgba(232, 223, 204, 0.42); color: var(--px-bone); }
.btn-px--bone::before {
  content: ""; position: absolute; inset: 2px; z-index: -1; background: #120f13;
  clip-path: polygon(0 2px, 2px 2px, 2px 0, calc(100% - 2px) 0, calc(100% - 2px) 2px, 100% 2px, 100% calc(100% - 2px), calc(100% - 2px) calc(100% - 2px), calc(100% - 2px) 100%, 2px 100%, 2px calc(100% - 2px), 0 calc(100% - 2px));
  transition: background-color 0.15s;
}
.btn-px--bone:hover { background: rgba(232, 223, 204, 0.85); }
.btn-px--bone:hover::before { background: #1b171c; }

/* Miniaturas de capturas (abren el visor) */
.shot { appearance: none; border: 0; padding: 0; margin: 0; background: none; color: inherit; cursor: zoom-in; display: grid; gap: 10px; text-align: left; width: 100%; border-radius: 8px; }
.shot img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; filter: brightness(0.82) saturate(0.95); transition: filter 0.35s, transform 0.6s var(--ease-out); outline: 1px solid rgba(255, 255, 255, 0.08); outline-offset: -1px; }
.shot:hover img, .shot:focus-visible img { filter: none; }
.shot__cap { font: 400 0.8125rem/1.35 var(--f-mono); color: rgba(232, 223, 204, 0.62); transition: color 0.2s; }
.shot:hover .shot__cap { color: #e8dfcc; }
@media (max-width: 760px) { .btn-px { min-height: 48px; padding-inline: 16px; } }

/* ---------------------------------------------------------------- el montaje de los juegos de Magora (inicio, Magora) */

/* La capa del video llena su caja y su ::after la oscurece (cada página pone cuánto). Mientras el montaje
   corre (.is-montaje, de montaje.js), el rótulo dice qué juego está en pantalla. */
.montaje { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.montaje video { display: block; width: 100%; height: 100%; object-fit: cover; }
.montaje::after { content: ""; position: absolute; inset: 0; }
.montaje-rotulo {
  display: inline-flex; align-items: center; gap: 10px; pointer-events: none;
  font: 500 0.75rem/1 var(--f-mono); letter-spacing: 0.02em; color: rgba(242, 236, 226, 0.82);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.7);
  opacity: 0; transform: translateY(6px); transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.montaje-rotulo::before {
  content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%;
  background: #e2402c; box-shadow: 0 0 0 3px rgba(226, 64, 44, 0.22);
  animation: montaje-latido 1.6s ease-in-out infinite;
}
.is-montaje .montaje-rotulo { opacity: 1; transform: none; }
@keyframes montaje-latido { 50% { box-shadow: 0 0 0 5px rgba(226, 64, 44, 0.06); } }

/* ---------------------------------------------------------------- encabezado */

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 60;
  padding-top: env(safe-area-inset-top, 0px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s, border-color 0.35s, opacity 0.6s ease 0.2s;
}
.site-header::before {
  content: ""; position: absolute; inset: 0 0 -48px; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
  transition: opacity 0.35s;
}
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: saturate(1.5) blur(16px); backdrop-filter: saturate(1.5) blur(16px);
}
.site-header.is-scrolled::before { opacity: 0; }
.site-header__bar { display: flex; align-items: center; gap: 8px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; color: #fff; text-decoration: none; flex: none; margin-right: 20px; border-radius: 4px; }
.brand__logo { height: 21px; width: auto; aspect-ratio: 967.27 / 208; }
.brand--mono { --k-green: currentColor; --k-blue: currentColor; --k-sky: currentColor; }

.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  display: inline-flex; align-items: center; height: 34px; padding: 0 12px; border-radius: 7px;
  color: rgba(255, 255, 255, 0.72); text-decoration: none; white-space: nowrap;
  font: 450 0.875rem/1 var(--f-sans); letter-spacing: -0.005em;
  transition: color 0.2s, background-color 0.2s;
}
.nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }
.nav a[aria-current="page"] { color: #fff; }
.nav a[aria-current="page"]::after { content: ""; width: 4px; height: 4px; margin-left: 7px; border-radius: 50%; background: var(--accent); }
.nav .nav__cta { display: none; }

.site-header__end { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang { display: inline-flex; align-items: center; padding: 3px; border-radius: 8px; background: rgba(255, 255, 255, 0.06); }
.lang button {
  appearance: none; border: 0; background: none; cursor: pointer; height: 26px; padding: 0 9px; border-radius: 6px;
  color: rgba(255, 255, 255, 0.55); font: 500 0.75rem/1 var(--f-mono); letter-spacing: 0.02em;
  transition: color 0.2s, background-color 0.2s;
}
.lang button:hover { color: #fff; }
.lang button[aria-pressed="true"] { color: #fff; background: rgba(255, 255, 255, 0.12); }

/* Cuenta Korinel: «Iniciar sesión» o, si ya entró, su avatar y su nombre (site.js). Aparece cuando
   site.js ya sabe cuál de los dos mostrar, para que no se vea uno y enseguida el otro. */
.cuenta-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px 0 7px; border-radius: 7px;
  color: rgba(255, 255, 255, 0.78); text-decoration: none; white-space: nowrap;
  font: 450 0.875rem/1 var(--f-sans); letter-spacing: -0.005em;
  transition: color 0.2s, background-color 0.2s, opacity 0.3s;
}
.cuenta-btn:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }
.js .cuenta-btn:not([data-marcado]) { opacity: 0; }
.cuenta-btn__ico { display: inline-grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); }
.cuenta-btn__ico svg { width: 13px; height: 13px; }
.cuenta-btn__txt { max-width: 14ch; overflow: hidden; text-overflow: ellipsis; }
.avatar {
  --tono: var(--k-blue);
  display: inline-grid; place-items: center; overflow: hidden; border-radius: 50%;
  background: color-mix(in srgb, var(--tono) 72%, #000); color: #fff; font: 600 0.6875rem/1 var(--f-sans);
}
.avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* En escritorios angostos no entra el nombre: queda sólo el ícono (el texto sigue para lectores de pantalla). */
@media (max-width: 1100px) {
  .cuenta-btn { padding: 0 6px; }
  .cuenta-btn__txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

.menu-btn {
  display: none; flex: none; appearance: none; cursor: pointer;
  width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: var(--r-sm);
  border: 0; background: rgba(255, 255, 255, 0.07); color: #fff;
}
.menu-btn svg { width: 18px; height: 18px; }
.menu-btn .menu-x { display: none; }
.site-header[data-open="true"] .menu-btn .menu-x { display: block; }
.site-header[data-open="true"] .menu-btn .menu-bars { display: none; }

@media (max-width: 900px) {
  .menu-btn { display: inline-flex; }
  .header-cta { display: none; }
  .cuenta-btn { width: 40px; height: 40px; padding: 0; justify-content: center; border-radius: var(--r-sm); background: rgba(255, 255, 255, 0.07); }
  .cuenta-btn__ico { width: 26px; height: 26px; background: none; }
  .cuenta-btn__ico svg { width: 17px; height: 17px; }
  .cuenta-btn.is-dentro .cuenta-btn__ico { font-size: 0.75rem; }
  .nav {
    position: fixed; inset: 0; z-index: -1; display: flex; flex-direction: column; align-items: stretch; gap: 0;
    padding: calc(env(safe-area-inset-top, 0px) + var(--header-h) + 16px) max(var(--gutter), env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 28px) max(var(--gutter), env(safe-area-inset-left, 0px));
    background: var(--bg);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.3s var(--ease), transform 0.4s var(--ease), visibility 0s linear 0.4s;
  }
  .site-header[data-open="true"] { background: var(--bg); border-bottom-color: var(--line); }
  .site-header[data-open="true"] .nav { opacity: 1; visibility: visible; transform: none; transition: opacity 0.3s var(--ease), transform 0.4s var(--ease); }
  .nav a {
    height: auto; padding: 18px 0; border-radius: 0; background: none !important;
    font-size: 1.75rem; font-weight: 550; letter-spacing: -0.03em; color: #fff;
    border-bottom: 1px solid var(--line);
  }
  .nav a[aria-current="page"]::after { width: 6px; height: 6px; margin-left: 12px; }
  .nav .nav__cta {
    display: inline-flex; justify-content: center; margin-top: auto; border: 0; height: 52px;
    font-size: 1rem; font-weight: 500; letter-spacing: -0.006em; border-radius: var(--r-md);
    background: #fff !important; color: #07090c;
  }
  .nav .nav__cta::after { display: none; }
}
body.menu-abierto { overflow: hidden; }

/* ---------------------------------------------------------------- pie */

.site-footer { position: relative; padding-block: clamp(64px, 8vw, 104px) 28px; color: var(--fg-2); font-size: 0.875rem; border-top: 1px solid var(--line); }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 2fr); gap: 48px; }
.footer-brand { display: grid; gap: 18px; align-content: start; max-width: 320px; }
.footer-brand .brand__logo { height: 24px; }
.footer-brand p { color: var(--fg-2); line-height: 1.55; }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-col { display: grid; gap: 12px; align-content: start; }
.footer-h { font: 500 0.8125rem/1.2 var(--f-mono); letter-spacing: 0.01em; color: var(--fg-3); margin-bottom: 4px; }
.footer-col a { color: var(--fg-2); text-decoration: none; width: fit-content; transition: color 0.2s; display: inline-flex; align-items: center; gap: 6px; }
.footer-col a:hover { color: var(--fg); }
.footer-col a svg { width: 12px; height: 12px; opacity: 0.7; }
.footer-legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px;
  margin-top: clamp(56px, 7vw, 88px); padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 0.8125rem; color: var(--fg-3);
}
@media (max-width: 760px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------------------------------------------------------------- visor de capturas */

.lightbox {
  width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: transparent; color: #f2f2ee;
}
.lightbox::backdrop { background: var(--lb-bg); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lightbox__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(env(safe-area-inset-top, 0px) + 14px) max(18px, env(safe-area-inset-right, 0px)) 12px max(18px, env(safe-area-inset-left, 0px));
  font: 400 0.8125rem/1.3 var(--f-mono); color: rgba(242, 242, 238, 0.7);
}
.lightbox__stage { display: grid; place-items: center; min-height: 0; overflow: hidden; padding-inline: 8px; }
.lightbox__img { max-width: none; border-radius: 6px; }
.lightbox__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px max(18px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 18px) max(18px, env(safe-area-inset-left, 0px));
}
.lightbox__cap { font-size: 0.9375rem; line-height: 1.4; min-width: 0; }
.lightbox button {
  appearance: none; cursor: pointer; flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 40px; height: 40px; padding: 0 14px; border: 0; border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.08); color: #f2f2ee; font: 500 0.875rem/1 var(--f-sans);
  transition: background-color 0.2s;
}
.lightbox button:hover { background: rgba(255, 255, 255, 0.16); }
.lightbox button svg { width: 16px; height: 16px; }
.lightbox__nav { display: flex; gap: 8px; }

/* ---------------------------------------------------------------- intros a pantalla completa (Savage, Magora) */

.intro { display: none; }
.con-intro body { overflow: hidden; }
.con-intro .intro {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  background: var(--intro-bg, #000); color: #f2f2ee;
  transition: background-color 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.45s ease;
}
.con-intro .site-header { opacity: 0; }
.intro__tools {
  position: absolute; display: flex; gap: 8px;
  right: max(18px, env(safe-area-inset-right, 0px)); bottom: max(18px, env(safe-area-inset-bottom, 0px));
  transition: opacity 0.3s;
}
.intro__btn {
  appearance: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 14px; border-radius: var(--r-sm); border: 0;
  background: rgba(255, 255, 255, 0.08); color: rgba(242, 242, 238, 0.86);
  font: 500 0.8125rem/1 var(--f-sans);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: background-color 0.2s, color 0.2s;
}
.intro__btn:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }
.intro__btn svg { width: 15px; height: 15px; }
.intro__btn kbd { font: 400 0.6875rem/1 var(--f-mono); padding: 3px 5px; border-radius: 4px; background: rgba(255, 255, 255, 0.1); color: rgba(242, 242, 238, 0.6); }
.intro.se-abre { background-color: transparent; pointer-events: none; }
.intro.se-abre .intro__tools { opacity: 0; }
.intro.is-leaving { opacity: 0; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}
