/* ==========================================================================
   Anfi Games — hoja de estilos
   Concepto: packaging y catálogos de los 80 (rayas de cartucho, tipografía
   extendida con cortes de persiana, fichas técnicas) sobre una retícula de
   12 columnas con reglas duras. Un único tema claro, elegido a propósito.
   ========================================================================== */

:root {
  color-scheme: light;

  /* Color */
  --paper: #ECE8DF;
  --paper-deep: #E2DDD1;
  --ink: #17150F;
  --ink-soft: #5A554C;
  --hair: rgba(23, 21, 15, .18);
  --amber: #F2A516;
  --orange: #E5621C;
  --red: #CE2E24;
  --cobalt: #1F3A97;
  --night: #17150F;
  --night-2: #2A2720;
  --on-night: #ECE8DF;
  --on-night-soft: #ABA497;
  --hair-night: rgba(236, 232, 223, .2);

  /* Tipografía */
  --f-display: "Archivo", "Arial Black", Arial, sans-serif;
  --f-body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

  /* Retícula */
  --max: 1320px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 9vw, 120px);

  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

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

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

html {
  background: var(--night);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 120px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: .2em; }
button, input { font: inherit; color: inherit; }
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--f-display);
  font-stretch: 125%;
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -.02em;
  text-wrap: balance;
}
p, dl, dd, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; }
::selection { background: var(--amber); color: var(--ink); }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  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));
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--paper);
}
.skip:focus { left: 16px; top: 16px; }

/* Utilidades de texto ---------------------------------------------------- */

.kicker {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .1em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.lead {
  font-size: clamp(19px, 1.7vw, 23px);
  line-height: 1.45;
  max-width: 38ch;
}

.prose { display: grid; gap: 1em; max-width: 62ch; }

.h2 {
  font-size: clamp(34px, 4.6vw, 62px);
  font-weight: 850;
  line-height: .98;
  letter-spacing: -.03em;
}

.h3 {
  font-size: clamp(20px, 1.8vw, 25px);
  font-weight: 800;
  line-height: 1.08;
}

/* Rayas de la marca ------------------------------------------------------ */

.stripes {
  height: 25px;
  background: linear-gradient(180deg,
    var(--amber) 0 4px, transparent 4px 7px,
    var(--orange) 7px 11px, transparent 11px 14px,
    var(--red) 14px 18px, transparent 18px 21px,
    var(--cobalt) 21px 25px);
}

/* Titular con cortes de persiana ----------------------------------------
   Cada fila mide exactamente 1em. El degradado de las letras y el de la
   estela usan los mismos porcentajes, así que las franjas quedan alineadas. */

.vtitle {
  --vt-size: clamp(40px, 13vw, 168px);
  --vb-color: var(--ink);
  display: grid;
  margin: 0;
  font-family: var(--f-display);
  font-size: var(--vt-size);
  font-stretch: 125%;
  font-style: italic;
  font-weight: 900;
  letter-spacing: -.045em;
  line-height: 1;
  text-transform: uppercase;
}

.vtitle__row {
  display: flex;
  align-items: stretch;
  gap: .12em;
  margin-top: -.14em;
}
.vtitle__row:first-child { margin-top: 0; }

/* Titulares largos ("Trabaja con nosotros") */
.vtitle--long { --vt-size: clamp(32px, 11vw, 128px); }
.vtitle__row--end { justify-content: flex-end; }

.vtitle__word {
  display: block;
  height: 1em;
  padding-inline: .04em .12em;
  white-space: nowrap;
  color: var(--vb-color);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .vtitle__word {
    background: linear-gradient(180deg,
      var(--vb-color) 0 49%, transparent 49% 51.5%,
      var(--vb-color) 51.5% 58%, transparent 58% 61.5%,
      var(--vb-color) 61.5% 67%, transparent 67% 71.5%,
      var(--vb-color) 71.5% 75.5%, transparent 75.5% 80.5%,
      var(--vb-color) 80.5%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

.vtitle__trail {
  flex: 1 1 0;
  min-width: .5em;
  height: 1em;
  background: linear-gradient(180deg,
    transparent 0 51.5%,
    var(--amber) 51.5% 58%, transparent 58% 61.5%,
    var(--orange) 61.5% 67%, transparent 67% 71.5%,
    var(--red) 71.5% 75.5%, transparent 75.5% 80.5%,
    var(--cobalt) 80.5% 83.5%, transparent 83.5%);
  transform-origin: left center;
}
.vtitle__row--end .vtitle__trail { transform-origin: right center; }

/* main.js añade .motion-ok cuando la página está visible; sin JS las estelas se ven quietas */
@media (prefers-reduced-motion: no-preference) {
  .motion-ok .vtitle__trail { animation: trail-in .7s cubic-bezier(.2, .7, .2, 1) both .1s; }
  .motion-ok .vtitle__row:nth-child(2) .vtitle__trail { animation-delay: .22s; }
  .motion-ok .vtitle__row:nth-child(3) .vtitle__trail { animation-delay: .34s; }
}

@keyframes trail-in {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* Barra superior --------------------------------------------------------- */

.util {
  background: var(--night);
  color: var(--on-night);
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.util__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 36px;
}

.util__inner > * { white-space: nowrap; }
.util a { text-decoration: none; }
@media (max-width: 900px) { .util__hide-sm { display: none; } }

.util__end { display: flex; align-items: center; gap: 20px; }

/* Selector de idioma (barra superior y pie) */
.lang { display: inline-flex; border: 1px solid var(--hair-night); }
.lang a { padding: 3px 8px 2px; text-decoration: none; }
.lang a[aria-current="true"] { background: var(--on-night); color: var(--night); }
.lang a:not([aria-current]):hover { color: var(--amber); }
.footer .lang a[aria-current="true"]:hover { color: var(--night); }

@media (max-width: 380px) {
  .util__inner { gap: 12px; }
  .util__end { gap: 12px; }
}
.util a:hover { color: var(--amber); }
.util__clock { font-variant-numeric: tabular-nums; }

.util__dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--amber);
  vertical-align: 1px;
}

@media (prefers-reduced-motion: no-preference) {
  .util__dot { animation: blink 1.6s steps(2, jump-none) infinite; }
}
@keyframes blink { 50% { opacity: .2; } }

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

.header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.logo__mark { width: 40px; height: auto; flex: none; }

.logo__type {
  font-family: var(--f-display);
  font-size: 19px;
  font-stretch: 125%;
  font-style: italic;
  font-weight: 900;
  letter-spacing: -.01em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.logo--light { color: var(--on-night); }

@media (max-width: 380px) {
  .header__inner { gap: 12px; }
  .logo { gap: 9px; }
  .logo__mark { width: 30px; }
  .logo__type { font-size: 15px; }
  .nav-toggle { padding: 8px 10px; }
}

.nav { display: flex; gap: 2px; }

.nav a {
  position: relative;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 1px;
  height: 7px;
  background: linear-gradient(180deg, var(--amber) 0 2px, transparent 2px 2.5px, var(--orange) 2.5px 4.5px, transparent 4.5px 5px, var(--red) 5px 7px);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}

.nav a:hover::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { font-weight: 600; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border: 2px solid var(--ink);
  background: transparent;
  cursor: pointer;
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    padding: 8px max(var(--gutter), env(safe-area-inset-right, 0px)) 28px max(var(--gutter), env(safe-area-inset-left, 0px));
    background: var(--paper);
    border-bottom: 2px solid var(--ink);
  }

  .header.is-open .nav { display: flex; }

  .nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--hair);
    font-family: var(--f-display);
    font-size: 28px;
    font-stretch: 125%;
    font-weight: 800;
    letter-spacing: -.02em;
  }

  .nav a::after { left: auto; right: 0; bottom: 50%; width: 40px; transform: translateY(50%) scaleX(0); transform-origin: right; }
  .nav a:hover::after,
  .nav a[aria-current="page"]::after { transform: translateY(50%) scaleX(1); }
}

/* Botones y enlaces ------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 15px 22px;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  font-family: var(--f-display);
  font-size: 14px;
  font-stretch: 125%;
  font-weight: 700;
  letter-spacing: .03em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color .15s, border-color .15s, color .15s;
}

.btn:hover { background: var(--red); border-color: var(--red); color: var(--paper); }
.btn__arrow { font-family: var(--f-body); font-weight: 400; transition: transform .15s; }
.btn:hover .btn__arrow { transform: translateX(3px); }

.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.btn--light { background: var(--on-night); border-color: var(--on-night); color: var(--ink); }
.btn--light:hover { background: var(--amber); border-color: var(--amber); color: var(--ink); }

.link {
  display: inline-flex;
  align-items: baseline;
  gap: .5em;
  padding-bottom: 2px;
  border-bottom: 2px solid currentColor;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  transition: color .15s;
}
.link:hover { color: var(--red); }

.tag {
  display: inline-block;
  padding: 3px 7px 2px;
  border: 1.5px solid currentColor;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  line-height: 1.3;
  text-transform: uppercase;
  white-space: nowrap;
}
.tag--live { background: var(--amber); border-color: var(--amber); color: var(--ink); }

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

.section { padding-block: var(--section); }
.section--flush { padding-top: 0; }

.band--night { background: var(--night); color: var(--on-night); }
.band--night .kicker { color: var(--on-night-soft); }
.band--night .link:hover { color: var(--amber); }
.band--amber { background: var(--amber); color: var(--ink); }
.band--amber .kicker { color: var(--ink); }
.band--deep { background: var(--paper-deep); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px 40px;
  align-items: end;
  margin-bottom: clamp(32px, 4vw, 56px);
  padding-top: 16px;
  border-top: 2px solid currentColor;
}
.section-head .kicker { grid-column: 1 / -1; }

.section-head__aside {
  display: grid;
  gap: 14px;
  justify-items: start;
  max-width: 40ch;
}
.section-head__aside p { color: var(--ink-soft); }
.band--night .section-head__aside p { color: var(--on-night-soft); }

@media (max-width: 760px) {
  .section-head { grid-template-columns: minmax(0, 1fr); }
}

/* Home: portada ---------------------------------------------------------- */

.hero { padding-block: clamp(24px, 3vw, 40px) clamp(56px, 7vw, 104px); }

.meta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ink);
}
@media (max-width: 600px) { .meta-row__opt { display: none; } }

.hero .vtitle {
  --vt-size: clamp(40px, 15.6vw, 222px);
  margin-top: clamp(28px, 4vw, 56px);
}

.hero__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 40px 24px;
  align-items: end;
  margin-top: clamp(36px, 5vw, 72px);
}

.hero__intro { grid-column: 1 / span 6; display: grid; gap: 28px; min-width: 0; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__feature { grid-column: 8 / span 5; min-width: 0; }

@media (max-width: 960px) {
  .hero__intro, .hero__feature { grid-column: 1 / -1; }
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature:hover { transform: translate(-4px, -4px); box-shadow: 8px 8px 0 var(--red); }

.feature__art {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-right: 2px solid var(--ink);
}

.feature__body {
  display: grid;
  align-content: space-between;
  gap: 18px;
  padding: 20px;
  min-width: 0;
}

.feature__title {
  font-size: clamp(26px, 2.5vw, 34px);
  font-style: italic;
  font-weight: 900;
  letter-spacing: -.025em;
  text-transform: uppercase;
}

.feature__text { font-size: 15px; line-height: 1.5; color: var(--ink-soft); }

.feature__date {
  display: grid;
  gap: 2px;
  padding-block: 10px;
  border-block: 1px solid var(--ink);
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.feature__date b { font-family: var(--f-display); font-size: 20px; font-stretch: 125%; font-weight: 800; letter-spacing: -.01em; }

@media (max-width: 480px) {
  .feature { grid-template-columns: minmax(0, 1fr); }
  .feature__art { aspect-ratio: 4 / 3; border-right: 0; border-bottom: 2px solid var(--ink); }
}

/* Cartuchos -------------------------------------------------------------- */

.carts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 32px);
}

@media (max-width: 980px) { .carts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.cart {
  display: block;
  color: var(--ink);
  text-decoration: none;
  transition: transform .2s ease, filter .2s ease;
}
.cart:hover { transform: translateY(-6px); filter: drop-shadow(6px 6px 0 var(--red)); }

.cart__shell {
  display: grid;
  padding: 10px 10px 0;
  background: var(--night);
  clip-path: polygon(0 16px, 16px 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
}

.cart__label { display: grid; background: var(--paper); }
.cart__art { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }

.cart__band {
  height: 13px;
  background: linear-gradient(180deg, var(--amber) 0 3px, var(--paper) 3px 4px, var(--orange) 4px 7px, var(--paper) 7px 8px, var(--red) 8px 11px, var(--paper) 11px 12px, var(--cobalt) 12px 13px);
}

.cart__info { display: grid; gap: 6px; padding: 12px 12px 14px; min-width: 0; }

.cart__cat {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.cart__title {
  font-size: clamp(16px, 1.55vw, 21px);
  font-style: italic;
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1;
  text-transform: uppercase;
}

.cart__genre { font-size: 14px; line-height: 1.35; color: var(--ink-soft); }

.cart__grip {
  height: 30px;
  margin-inline: -10px;
  background: repeating-linear-gradient(180deg, var(--night) 0 4px, var(--night-2) 4px 6px);
}

/* Un solo juego en portada: cartucho + texto y capturas */
.solo {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  gap: 32px clamp(24px, 4vw, 56px);
  align-items: start;
}
.carts--solo { grid-template-columns: minmax(0, 1fr); }
.solo__body { display: grid; gap: 28px; min-width: 0; }
.solo__body .lead { max-width: 52ch; }

@media (max-width: 760px) {
  .solo { grid-template-columns: minmax(0, 1fr); }
  .carts--solo { max-width: 280px; }
}

/* Ficha técnica ---------------------------------------------------------- */

.spec { display: grid; border-top: 1px solid currentColor; }

.spec__row {
  display: grid;
  grid-template-columns: minmax(96px, 34%) minmax(0, 1fr);
  gap: 16px;
  padding-block: 12px;
  border-bottom: 1px solid var(--hair);
}
.band--night .spec__row { border-bottom-color: var(--hair-night); }

.spec dt {
  padding-top: .3em;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .08em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.band--night .spec dt { color: var(--on-night-soft); }
.spec dd { font-variant-numeric: tabular-nums; min-width: 0; }

.spec__title {
  margin-bottom: 14px;
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* Home: estudio ---------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 48px 24px;
}
.split__main { grid-column: 1 / span 7; display: grid; gap: 28px; align-content: start; min-width: 0; }
.split__side { grid-column: 9 / span 4; min-width: 0; }

@media (max-width: 960px) {
  .split__main, .split__side { grid-column: 1 / -1; }
}

.statement {
  font-size: clamp(30px, 3.8vw, 52px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.03em;
}

.band--night .muted, .muted { color: var(--ink-soft); }
.band--night .muted { color: var(--on-night-soft); }

/* Noticias (lista corta) ------------------------------------------------- */

.news-rows { border-top: 2px solid var(--ink); }

.news-row {
  position: relative;
  display: grid;
  grid-template-columns: 124px 120px minmax(0, 1fr) 28px;
  gap: 8px 24px;
  align-items: baseline;
  padding-block: 22px;
  border-bottom: 1px solid var(--hair);
}

.news-row__date,
.cat {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.cat { display: inline-flex; align-items: center; gap: 8px; }
.cat::before { content: ""; width: 9px; height: 9px; background: var(--ink); flex: none; }
.cat--releases::before { background: var(--red); }
.cat--patches::before { background: var(--cobalt); }
.cat--events::before { background: var(--amber); }
.cat--studio::before { background: var(--ink); }

.news-row__title { font-size: clamp(19px, 1.7vw, 24px); font-weight: 750; line-height: 1.15; }
.news-row__title a { text-decoration: none; }
.news-row__title a::after { content: ""; position: absolute; inset: 0; }
.news-row:hover .news-row__title { color: var(--red); }
.news-row__arrow { justify-self: end; transition: transform .15s; }
.news-row:hover .news-row__arrow { transform: translateX(4px); }

@media (max-width: 720px) {
  .news-row { grid-template-columns: auto minmax(0, 1fr); }
  .news-row__title { grid-column: 1 / -1; }
  .news-row__arrow { display: none; }
}

/* Banda de empleo -------------------------------------------------------- */

.jobs {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 40px 24px;
  align-items: end;
}
.jobs__head { grid-column: 1 / span 6; display: grid; gap: 22px; justify-items: start; }
.jobs__list { grid-column: 8 / span 5; border-top: 2px solid var(--ink); }

.jobs__list li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  padding-block: 14px;
  border-bottom: 1px solid rgba(23, 21, 15, .35);
}
.jobs__list b { font-weight: 600; }
.jobs__list span { font-family: var(--f-mono); font-size: 13px; letter-spacing: .04em; }

@media (max-width: 960px) {
  .jobs__head, .jobs__list { grid-column: 1 / -1; }
}

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

.footer { background: var(--night); color: var(--on-night); }

.footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2.6fr));
  gap: 40px 24px;
  padding-block: 64px 48px;
}

.footer__brand { display: grid; gap: 18px; align-content: start; }
.footer__brand p { max-width: 30ch; color: var(--on-night-soft); }

.footer__h {
  margin-bottom: 16px;
  font-family: var(--f-mono);
  font-size: 12px;
  font-stretch: 100%;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--on-night-soft);
}

.footer ul { display: grid; gap: 8px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--amber); }
.footer__mail { display: grid; font-size: 15px; }
.footer__mail small { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--on-night-soft); }

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 20px;
  border-top: 1px solid var(--hair-night);
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--on-night-soft);
}
.footer__legal nav:not(.lang) { display: flex; flex-wrap: wrap; gap: 8px 20px; }

@media (max-width: 900px) {
  .footer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer__inner { grid-template-columns: minmax(0, 1fr); }
}

/* Cabecera de página interior ------------------------------------------- */

.page-head { padding-block: clamp(24px, 3vw, 40px) clamp(48px, 6vw, 88px); }
.page-head .vtitle { margin-top: clamp(28px, 4vw, 56px); }

.page-head__intro {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  align-items: end;
  margin-top: clamp(28px, 4vw, 56px);
}
.page-head__intro .lead { grid-column: 1 / span 7; }
.page-head__aside { grid-column: 9 / span 4; display: flex; flex-wrap: wrap; gap: 10px; }

@media (max-width: 860px) {
  .page-head__intro .lead, .page-head__aside { grid-column: 1 / -1; }
}

.jump {
  display: inline-flex;
  padding: 9px 14px;
  border: 2px solid var(--ink);
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: .06em;
  text-decoration: none;
  text-transform: uppercase;
}
.jump:hover { background: var(--ink); color: var(--paper); }

/* Filtros ---------------------------------------------------------------- */

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 2px solid var(--ink);
  background: transparent;
  cursor: pointer;
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.chip span { opacity: .55; font-variant-numeric: tabular-nums; }
.chip:hover { background: var(--paper-deep); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

/* Página de juegos ------------------------------------------------------- */

.game {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 32px 24px;
  padding-block: clamp(40px, 5vw, 64px);
  border-top: 2px solid var(--ink);
}
.game:last-child { border-bottom: 2px solid var(--ink); }

.game__art { grid-column: 1 / span 4; min-width: 0; }
.game__art img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border: 2px solid var(--ink); }

.game__body { grid-column: 6 / span 7; display: grid; gap: 22px; align-content: start; min-width: 0; }
.game__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

.game__title {
  font-size: clamp(38px, 5.4vw, 76px);
  font-style: italic;
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: .95;
  text-transform: uppercase;
}

.game__tagline { font-size: clamp(19px, 1.7vw, 23px); font-weight: 500; line-height: 1.35; max-width: 34ch; }
.game__text { max-width: 58ch; }
.game__actions { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 860px) {
  .game__art, .game__body { grid-column: 1 / -1; }
  .game__art { max-width: 380px; }
}

/* Ficha de juego real (Turbo Monkey): icono cuadrado, lista de rasgos y capturas */
.game__art--icon img { aspect-ratio: 1; }

.tag--soon { background: var(--cobalt); border-color: var(--cobalt); color: var(--paper); }

.btn--soon,
.btn--soon:hover {
  border-style: dashed;
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
  cursor: default;
}

.features { display: grid; gap: 10px; }
.features li { position: relative; padding-left: 20px; }
.features li::before { content: ""; position: absolute; left: 0; top: .72em; width: 10px; height: 3px; background: var(--orange); }
.features b { font-weight: 600; }

.shots {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.shots figure { display: grid; gap: 8px; min-width: 0; }
.shots img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 2px solid var(--ink); }
.shots figcaption { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }

@media (max-width: 860px) {
  .shots {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 82%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
  }
  .shots figure { scroll-snap-align: start; }
}

/* Tarjeta destacada con imagen apaisada (portada) */
.feature--wide { grid-template-columns: minmax(0, 1fr); }
.feature--wide .feature__art { aspect-ratio: 1024 / 500; border-right: 0; border-bottom: 2px solid var(--ink); }

/* Textos legales (políticas de privacidad) */
.legal { display: grid; gap: 1em; max-width: 68ch; }
.legal h2 { margin-top: 1.4em; font-size: clamp(21px, 2vw, 26px); }
.legal ul { display: grid; gap: 8px; }
.legal li { position: relative; padding-left: 20px; }
.legal li::before { content: ""; position: absolute; left: 0; top: .78em; width: 9px; height: 2px; background: var(--red); }
.legal a { font-weight: 500; }
.legal a:hover { color: var(--red); }
.legal code { font-family: var(--f-mono); font-size: .9em; padding: 1px 5px; background: var(--paper-deep); }
.legal__meta { font-family: var(--f-mono); font-size: 13px; letter-spacing: .04em; color: var(--ink-soft); }

.vault {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 2px solid var(--ink);
  background: var(--night);
  color: var(--on-night);
}
.vault .vtitle { --vt-size: clamp(110px, 16vw, 200px); --vb-color: var(--amber); }
.vault__label {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  display: flex;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--on-night-soft);
}
.vault__label:first-child { top: 14px; bottom: auto; }

.redact {
  padding-inline: .1em;
  background: var(--ink);
  color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  user-select: none;
}

/* About ------------------------------------------------------------------ */

.rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }

.rule {
  display: grid;
  gap: 12px;
  align-content: start;
  padding-block: 28px 36px;
  border-top: 2px solid var(--ink);
}
.rule p { max-width: 50ch; color: var(--ink-soft); }

@media (max-width: 760px) { .rules { grid-template-columns: minmax(0, 1fr); } }

.timeline { border-top: 2px solid var(--ink); }

.timeline li {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  gap: 8px 24px;
  align-items: baseline;
  padding-block: 22px;
  border-bottom: 1px solid var(--hair);
}
.timeline p { max-width: 60ch; }

.timeline__year {
  font-family: var(--f-display);
  font-size: clamp(34px, 4vw, 54px);
  font-stretch: 125%;
  font-style: italic;
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 600px) { .timeline li { grid-template-columns: minmax(0, 1fr); } }

.team-bar { display: flex; gap: 4px; height: 76px; }
.team-bar > span { flex-basis: 0; }
.team-legend { display: flex; gap: 4px; margin-top: 14px; }
.team-legend li { flex-basis: 0; display: grid; gap: 2px; min-width: 0; padding-top: 10px; border-top: 1px solid var(--ink); }
.team-legend b { font-family: var(--f-display); font-size: clamp(28px, 3vw, 40px); font-stretch: 125%; font-weight: 900; font-style: italic; line-height: 1; }
.team-legend span { font-size: 14px; overflow-wrap: anywhere; }

.sw-1 { background: var(--ink); }
.sw-2 { background: var(--red); }
.sw-3 { background: var(--orange); }
.sw-4 { background: var(--amber); }
.sw-5 { background: var(--cobalt); }

@media (max-width: 640px) {
  .team-legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
  .team-legend li { border-top: 0; padding-top: 0; padding-left: 14px; border-left: 6px solid var(--ink); }
  .team-legend li.sw-l2 { border-left-color: var(--red); }
  .team-legend li.sw-l3 { border-left-color: var(--orange); }
  .team-legend li.sw-l4 { border-left-color: var(--amber); }
  .team-legend li.sw-l5 { border-left-color: var(--cobalt); }
}

/* Work with us ----------------------------------------------------------- */

.roles { border-top: 2px solid var(--ink); }
.role { border-bottom: 1px solid var(--ink); }

.role__summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 32px;
  gap: 10px 32px;
  align-items: center;
  padding-block: 24px;
  cursor: pointer;
  list-style: none;
}
.role__summary::-webkit-details-marker { display: none; }
.role__summary:hover .role__title { color: var(--red); }

.role__title { font-family: var(--f-display); font-size: clamp(21px, 2.1vw, 29px); font-stretch: 125%; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }

.role__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 28px;
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.role__toggle { position: relative; width: 32px; height: 32px; border: 2px solid var(--ink); }
.role__toggle::before,
.role__toggle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; background: var(--ink); transform: translate(-50%, -50%); transition: transform .2s; }
.role__toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.role[open] .role__toggle { background: var(--ink); }
.role[open] .role__toggle::before { background: var(--paper); }
.role[open] .role__toggle::after { background: var(--paper); transform: translate(-50%, -50%) rotate(0deg); }

.role__body {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 32px;
  padding-bottom: 36px;
}
.role__body h3 { margin-bottom: 12px; font-family: var(--f-mono); font-size: 12px; font-stretch: 100%; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.role__body li { position: relative; padding-left: 20px; }
.role__body li + li { margin-top: 8px; }
.role__body li::before { content: ""; position: absolute; left: 0; top: .78em; width: 9px; height: 2px; background: var(--red); }
.role__apply { display: grid; gap: 14px; align-content: start; }

@media (max-width: 860px) {
  .role__summary { grid-template-columns: minmax(0, 1fr) 32px; }
  .role__facts { grid-row: 2; grid-column: 1; gap: 4px 18px; }
  .role__toggle { grid-row: 1; grid-column: 2; }
  .role__body { grid-template-columns: minmax(0, 1fr); }
}

.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 2px solid var(--ink);
}

.step {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 22px 20px 26px;
  border-right: 1px solid var(--hair);
}
.step:first-child { padding-left: 0; }
.step:last-child { border-right: 0; }
.step p { font-size: 15px; line-height: 1.5; color: var(--ink-soft); }

.step__n {
  font-family: var(--f-display);
  font-size: 44px;
  font-stretch: 125%;
  font-style: italic;
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1;
  color: var(--red);
}

@media (max-width: 960px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step { grid-template-columns: 64px minmax(0, 1fr); padding: 18px 0; border-right: 0; border-bottom: 1px solid var(--hair); }
  .step__n { grid-row: span 2; font-size: 36px; }
}

.perks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.perks .spec { border-top-width: 2px; }
@media (max-width: 760px) {
  .perks { grid-template-columns: minmax(0, 1fr); }
  .perks .spec + .spec { border-top: 0; }
}

.apply {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  margin-top: 32px;
  padding: 20px 24px;
  border: 2px solid var(--ink);
  background: var(--paper);
}
.apply p { max-width: 52ch; }
.apply--night { border-color: var(--on-night); background: transparent; }
.note { margin-top: 28px; max-width: 62ch; color: var(--ink-soft); }

.offers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.offer { display: grid; gap: 12px; align-content: start; padding-top: 20px; border-top: 2px solid var(--on-night); }
.offer p { color: var(--on-night-soft); }
@media (max-width: 860px) { .offers { grid-template-columns: minmax(0, 1fr); } }

/* Copiar dirección ------------------------------------------------------- */

.copy {
  display: inline-flex;
  align-items: stretch;
  max-width: 100%;
  border: 2px solid currentColor;
}

.copy__value {
  min-width: 0;
  padding: 10px 14px;
  font-family: var(--f-mono);
  font-size: 15px;
  overflow-wrap: anywhere;
  user-select: all;
}

.copy__btn {
  flex: none;
  padding: 10px 14px;
  border: 0;
  border-left: 2px solid currentColor;
  background: transparent;
  cursor: pointer;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.copy__btn:hover, .copy__btn.is-done { background: var(--ink); color: var(--paper); }
.band--night .copy__btn:hover, .band--night .copy__btn.is-done { background: var(--on-night); color: var(--ink); }
.band--amber .copy__btn:hover, .band--amber .copy__btn.is-done { background: var(--ink); color: var(--amber); }

/* Noticias --------------------------------------------------------------- */

.posts { border-top: 2px solid var(--ink); }

.post {
  display: grid;
  grid-template-columns: 124px 120px minmax(0, 1fr);
  gap: 10px 24px;
  align-items: baseline;
  padding-block: 30px;
  border-bottom: 1px solid var(--hair);
}

.post__main { display: grid; gap: 12px; min-width: 0; }
.post__title { font-size: clamp(22px, 2.2vw, 30px); font-weight: 800; line-height: 1.08; letter-spacing: -.025em; }
.post__excerpt { max-width: 62ch; color: var(--ink-soft); }
.post__time { font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }

.post__more summary {
  display: inline-flex;
  gap: .5em;
  padding-bottom: 2px;
  border-bottom: 2px solid currentColor;
  cursor: pointer;
  font-weight: 600;
  line-height: 1.3;
  list-style: none;
}
.post__more summary::-webkit-details-marker { display: none; }
.post__more summary:hover { color: var(--red); }
.post__more summary .is-open-label { display: none; }
.post__more[open] summary .is-open-label { display: inline; }
.post__more[open] summary .is-closed-label { display: none; }
.post__body { display: grid; gap: 1em; max-width: 62ch; margin-top: 18px; padding-left: 18px; border-left: 3px solid var(--amber); }
.post__body a { font-weight: 600; }
.post__body a:hover { color: var(--red); }

.post--feature {
  grid-template-columns: 124px 120px minmax(0, 1fr) minmax(0, 300px);
  align-items: start;
}
.post--feature .post__title { font-size: clamp(28px, 3.4vw, 46px); line-height: 1.02; }
.post__art { border: 2px solid var(--ink); }
.post__art img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 30%; }

@media (max-width: 960px) {
  .post--feature { grid-template-columns: 124px 120px minmax(0, 1fr); }
  .post__art { grid-column: 1 / -1; grid-row: 1; max-width: 520px; }
}

@media (max-width: 720px) {
  .post, .post--feature { grid-template-columns: auto minmax(0, 1fr); }
  .post__main { grid-column: 1 / -1; }
}

.newsletter {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 32px 24px;
  align-items: end;
}
.newsletter__head { grid-column: 1 / span 6; display: grid; gap: 18px; }
.newsletter__form { grid-column: 8 / span 5; display: grid; gap: 10px; }
.newsletter__form label { font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }

.field { display: flex; border: 2px solid var(--ink); background: var(--paper); }
.field input { flex: 1; min-width: 0; padding: 14px 16px; border: 0; background: transparent; }
.field input:focus { outline: none; }
.field:focus-within { outline: 3px solid var(--cobalt); outline-offset: 3px; }
.field .btn { border-width: 0; }
.form-note { font-size: 14px; }

@media (max-width: 960px) {
  .newsletter__head, .newsletter__form { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
  .field { flex-direction: column; }
  .field .btn { justify-content: center; }
}

/* Pequeños ajustes de movimiento ---------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
