/* Zehiro Translations — estilos del sitio
   Barra y pie negros, fondo blanco, títulos en Ropa Sans y portadas grandes. */

:root {
  --negro: #000;
  --fondo: #fff;
  --fondo-2: #f3f4f6;
  --texto: #4b4f58;
  --titulo: #15161a;
  --suave: #7a7f8c;
  --linea: #e3e5ea;
  --azul: #2f56b5;
  --azul-oscuro: #22438f;
  --rojo: #d9333f;
  --verde: #2e9e5b;
  --ambar: #d9932b;
  --sombra: 0 2px 10px rgb(0 0 0 / .08);
  --ancho: 1140px;
  --alto-cabecera: 76px;
  --f-titulo: "Ropa Sans", "Arial Narrow", sans-serif;
  --f-texto: Roboto, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  color-scheme: light;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--fondo);
  color: var(--texto);
  font: 400 1rem/1.65 var(--f-texto);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
svg { display: block; }
a { color: var(--azul); }
a:hover { color: var(--azul-oscuro); }
:focus-visible { outline: 3px solid var(--azul); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--f-titulo);
  font-weight: 400;
  color: var(--titulo);
  line-height: 1.15;
  margin: 0 0 .5em;
}
p { margin: 0 0 1em; }

.saltar {
  position: absolute; left: 16px; top: -100px; z-index: 300;
  background: #fff; color: #000; padding: .6em 1em;
}
.saltar:focus { top: 12px; }

.contenedor { width: 100%; max-width: var(--ancho); margin-inline: auto; padding-inline: 16px; }
@media (min-width: 720px) { .contenedor { padding-inline: 24px; } }

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

.cabecera {
  position: sticky; top: 0; z-index: 100;
  background: var(--negro);
}
.cabecera__fila {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: var(--alto-cabecera);
}
.marca {
  display: inline-flex; align-items: center; gap: 12px;
  color: #fff; text-decoration: none;
  font: 400 1.6rem/1 var(--f-titulo);
}
.marca:hover { color: #fff; }
.marca img { width: 44px; height: 44px; }
.marca__sub { display: none; }
@media (min-width: 420px) { .marca__sub { display: inline; } }

.nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav a {
  position: relative; display: block;
  padding: 26px 14px;
  color: #fff; text-decoration: none;
  font: 500 .95rem/1 var(--f-texto);
}
.nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 14px;
  height: 3px; background: #fff; transform: scaleX(0); transition: transform .2s ease;
}
.nav a:hover::after, .nav a[aria-current="true"]::after { transform: scaleX(1); }
.nav a[aria-current="true"] { color: #8fb0ff; }
.nav a[aria-current="true"]::after { background: #8fb0ff; }

.menu-boton {
  display: none;
  background: none; border: 0; color: #fff; cursor: pointer;
  padding: 10px; margin-right: -10px;
}
.menu-boton svg { width: 28px; height: 28px; }

@media (max-width: 899px) {
  :root { --alto-cabecera: 64px; }
  .js .menu-boton { display: block; }
  .js .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #111; border-top: 1px solid #222;
    display: none;
  }
  .js .nav.abierto { display: block; }
  .js .nav ul { flex-direction: column; gap: 0; padding: 6px 0; }
  .js .nav a { padding: 15px 20px; font-size: 1.05rem; }
  .js .nav a::after { left: 20px; right: auto; width: 28px; bottom: 8px; }
  html:not(.js) .cabecera__fila { flex-wrap: wrap; }
  html:not(.js) .nav { width: 100%; overflow-x: auto; }
  html:not(.js) .nav a { padding: 12px 10px; }
}

/* ---------- Portada del sitio (Inicio) ---------- */

section[id] { scroll-margin-top: var(--alto-cabecera); }

.portada {
  position: relative;
  overflow: hidden;
  background: #1b1320;
  color: #fff;
  isolation: isolate;
}
.portada__fondo {
  position: absolute; inset: -40px; z-index: -1;
  background: url("imagenes/triple-pairing-banner.jpg") center / cover no-repeat;
  filter: blur(14px) saturate(1.2);
  opacity: .75;
}
.portada::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgb(0 0 0 / .25), rgb(0 0 0 / .55));
}
.portada__rejilla {
  display: grid; gap: 32px; align-items: center;
  padding-block: 40px 48px;
}
@media (min-width: 900px) {
  .portada__rejilla { grid-template-columns: 1fr 1.15fr; gap: 48px; padding-block: 64px; }
}
.portada__etiqueta {
  font: 500 .8rem/1 var(--f-texto); letter-spacing: .18em; text-transform: uppercase;
  color: #c9d6ff; margin-bottom: 14px;
}
.portada h1 {
  color: #fff;
  font-size: clamp(2.6rem, 7vw, 4.2rem);
  margin-bottom: .3em;
  text-shadow: 0 2px 12px rgb(0 0 0 / .4);
}
.portada__texto { font-size: 1.1rem; color: rgb(255 255 255 / .9); max-width: 46ch; }

.portadas-fila {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 1fr);
  gap: 18px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 6px;
}
.portada-juego {
  scroll-snap-align: start;
  display: block; color: #fff; text-decoration: none;
}
.portada-juego img {
  width: 100%; aspect-ratio: 2 / 3; object-fit: cover;
  box-shadow: 0 12px 30px rgb(0 0 0 / .45);
  transition: transform .2s ease;
}
.portada-juego:hover { color: #fff; }
.portada-juego:hover img { transform: translateY(-4px); }
.portada-juego__titulo {
  display: block; margin-top: 10px;
  font: 400 1.3rem/1.2 var(--f-titulo);
}
.portada-juego__estado { display: block; font-size: .9rem; color: rgb(255 255 255 / .8); }

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

.acciones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: .55em 1.3em;
  border: 1px solid transparent;
  font: 500 .95rem/1.2 var(--f-texto);
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.boton svg { width: 18px; height: 18px; flex: none; }
.boton--blanco { background: #fff; color: #000; }
.boton--blanco:hover { background: #e9ecf3; color: #000; }
.boton--contorno-blanco { border-color: rgb(255 255 255 / .8); color: #fff; }
.boton--contorno-blanco:hover { background: rgb(255 255 255 / .12); color: #fff; }
.boton--contorno { border-color: #33363d; color: #22252b; background: #fff; }
.boton--contorno:hover { background: #22252b; color: #fff; }
.boton--azul { background: var(--azul); color: #fff; }
.boton--azul:hover { background: var(--azul-oscuro); color: #fff; }
.boton--apagado { background: var(--fondo-2); color: var(--suave); border-color: var(--linea); cursor: not-allowed; }

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

.seccion { padding-block: 56px; }
.seccion--gris { background: var(--fondo-2); }
.seccion__titulo {
  font-size: clamp(1.7rem, 4vw, 2.1rem);
  text-transform: uppercase;
  letter-spacing: .02em;
  margin-bottom: 8px;
}
.seccion__intro { color: var(--suave); margin-bottom: 32px; max-width: 70ch; }

.sobre { display: grid; gap: 24px; align-items: center; }
@media (min-width: 800px) { .sobre { grid-template-columns: 120px 1fr; gap: 36px; } }
.sobre img { width: 120px; height: 120px; }
.sobre p { font-size: 1.08rem; margin: 0; }

/* Novedades */
.noticias { display: grid; gap: 22px; }
@media (min-width: 640px) { .noticias { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .noticias { grid-template-columns: repeat(3, 1fr); } }
.noticia {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--linea);
  box-shadow: var(--sombra);
}
.noticia__imagen { aspect-ratio: 460 / 215; object-fit: cover; width: 100%; }
.noticia__imagen--logo {
  display: grid; place-items: center;
  background: linear-gradient(135deg, #0a0a1f, #1d1a4a);
}
.noticia__imagen--logo img { width: 30%; }
.noticia__cuerpo { padding: 16px 18px 20px; }
.noticia h3 { font-size: 1.35rem; margin-bottom: .35em; }
.noticia h3 a { color: var(--titulo); text-decoration: none; }
.noticia h3 a:hover { color: var(--azul); }
.noticia__meta {
  display: flex; flex-wrap: wrap; gap: 4px 14px;
  font-size: .82rem; color: var(--suave); margin-bottom: 10px;
}
.noticia__meta span { display: inline-flex; align-items: center; gap: 5px; }
.noticia__meta svg { width: 13px; height: 13px; }
.noticia p { font-size: .93rem; margin: 0; }

/* Proyectos */
.proyectos { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.proyecto { display: flex; flex-direction: column; background: var(--fondo-2); }
.proyecto img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.proyecto__pie {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 18px 16px 22px; text-align: center; flex: 1;
}
.proyecto__pie h3 { font-size: 1.55rem; margin: 0; }
.proyecto__estado { font-size: .92rem; color: var(--texto); }
.proyecto__pie .boton { margin-top: 12px; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font: 700 .72rem/1 var(--f-texto); letter-spacing: .04em;
  padding: .45em .65em;
  background: var(--fondo-2); color: var(--texto);
  white-space: nowrap;
}
.chip--adultos { background: var(--rojo); color: #fff; }
.chip--verde { background: #dff3e7; color: #1d6b3d; }
.chip--ambar { background: #fbefd9; color: #8a5a12; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }

/* Progresos */
.progreso {
  background: #fff;
  border: 1px solid var(--linea);
  border-left: 5px solid var(--azul);
  padding: 20px 20px 18px;
}
.progreso + .progreso { margin-top: 20px; }
.progreso h3 { font-size: 1.6rem; margin-bottom: 14px; }
.barras { display: grid; gap: 14px 40px; }
@media (min-width: 720px) { .barras { grid-template-columns: 1fr 1fr; } }
.barra__nombre { display: block; font-size: .9rem; color: var(--titulo); margin-bottom: 4px; }
.barra { height: 22px; background: #ececec; overflow: hidden; }
.barra__relleno {
  display: flex; align-items: center; justify-content: flex-end;
  height: 100%; width: var(--avance, 0%); min-width: 42px;
  padding-right: 8px;
  background: var(--azul); color: #fff;
  font: 700 .72rem/1 var(--f-texto);
}
.barra__relleno--curso {
  width: 100%; justify-content: center; padding: 0;
  background: repeating-linear-gradient(-45deg, var(--azul) 0 14px, #4a72d1 14px 28px);
  background-size: 40px 40px;
  animation: avanzar 1.4s linear infinite;
}
@keyframes avanzar { to { background-position: 40px 0; } }
.progreso__pie { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; margin-top: 16px; font-size: .9rem; }
.progreso__pie a { font-weight: 700; }
.progreso__nota { color: var(--suave); }

/* Parches */
.parche {
  display: grid; gap: 20px;
  background: #fff;
  border: 1px solid var(--linea);
  box-shadow: var(--sombra);
  padding: 20px;
}
.parche + .parche { margin-top: 24px; }
@media (min-width: 720px) { .parche { grid-template-columns: 170px 1fr; gap: 28px; padding: 24px; } }
.parche__portada img { width: 100%; max-width: 170px; aspect-ratio: 2 / 3; object-fit: cover; }
@media (max-width: 719px) { .parche__portada { display: none; } }
.parche h3 { font-size: 1.7rem; margin-bottom: 4px; }
.parche__sub { color: var(--suave); margin-bottom: 10px; }
.parche .chips { justify-content: flex-start; margin-bottom: 16px; }
.datos { margin: 0 0 18px; display: grid; gap: 0; border-top: 1px solid var(--linea); }
.datos > div { display: grid; gap: 2px 16px; padding: 9px 0; border-bottom: 1px solid var(--linea); }
@media (min-width: 560px) { .datos > div { grid-template-columns: 180px 1fr; } }
.datos dt { color: var(--suave); font-size: .92rem; }
.datos dd { margin: 0; color: var(--titulo); }
.parche__descarga { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 14px; }
.parche__nota { font-size: .9rem; color: var(--suave); margin: 0; }
.ruta { font-weight: 500; background: var(--fondo-2); padding: .05em .4em; overflow-wrap: anywhere; }

details.plegable { border-top: 1px solid var(--linea); }
details.plegable:last-child { border-bottom: 1px solid var(--linea); }
details.plegable summary {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 2px; cursor: pointer; list-style: none;
  font: 400 1.15rem/1.2 var(--f-titulo); text-transform: uppercase; color: var(--titulo);
}
details.plegable summary::-webkit-details-marker { display: none; }
details.plegable summary::before {
  content: ""; width: 0; height: 0; flex: none;
  border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 8px solid currentColor;
  transition: transform .2s ease;
}
details.plegable[open] summary::before { transform: rotate(90deg); }
.plegable__cuerpo { padding: 0 2px 16px 18px; }
.plegable__cuerpo ol, .plegable__cuerpo ul { margin: 0 0 .8em; padding-left: 1.2em; }
.plegable__cuerpo li { margin-bottom: .35em; }
.plegable__cuerpo > :last-child { margin-bottom: 0; }

/* Contacto */
.contacto { display: grid; gap: 28px; }
@media (min-width: 860px) { .contacto { grid-template-columns: 1fr 1fr; gap: 48px; } }
.contacto ul.motivos { margin: 0; padding-left: 1.2em; }
.contacto ul.motivos li { margin-bottom: .4em; }
.canales { display: grid; gap: 12px; list-style: none; margin: 0; padding: 0; }
.canal {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px;
  background: #fff; border: 1px solid var(--linea);
  color: var(--titulo); text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.canal:hover { color: var(--titulo); border-color: #b9bfcc; box-shadow: var(--sombra); }
.canal__icono { width: 44px; height: 44px; flex: none; display: grid; place-items: center; color: #fff; }
.canal__icono svg { width: 22px; height: 22px; }
.canal__texto { display: grid; min-width: 0; line-height: 1.35; }
.canal__nombre { font: 400 1.2rem/1.2 var(--f-titulo); }
.canal__dato { font-size: .9rem; color: var(--suave); overflow-wrap: anywhere; }
.icono-correo { background: #3d4250; }
.icono-facebook { background: #1877f2; }

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

.pie { background: var(--negro); color: #c8cad0; text-align: center; padding-block: 30px 26px; }
.pie__nombre { font: 400 1.9rem/1.2 var(--f-titulo); color: #fff; margin: 0 0 14px; }
.pie__redes { display: flex; justify-content: center; gap: 10px; margin-bottom: 20px; }
.pie__redes a { width: 40px; height: 40px; display: grid; place-items: center; color: #fff; }
.pie__redes svg { width: 20px; height: 20px; }
.pie__legal { border-top: 1px solid #2a2a2a; padding-top: 16px; font-size: .8rem; line-height: 1.6; }
.pie__legal p { max-width: 900px; margin: 0 auto .5em; }

/* ---------- Página de cada proyecto ---------- */

.ficha { background: var(--tema, #5a4a6e); color: #fff; padding-block: 28px 40px; }
.ficha a { color: #fff; }
.ficha__rejilla { display: grid; gap: 24px; }
@media (min-width: 900px) { .ficha__rejilla { grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); gap: 28px; align-items: start; } }
.ficha__banner { width: 100%; aspect-ratio: 1600 / 517; object-fit: cover; box-shadow: 0 10px 30px rgb(0 0 0 / .3); }
.ficha h1 { color: #fff; font-size: clamp(2rem, 5vw, 2.8rem); margin: 22px 0 6px; }
.ficha__sub { color: rgb(255 255 255 / .85); margin-bottom: 16px; }
.ficha details.plegable { border-color: rgb(255 255 255 / .3); }
.ficha details.plegable summary { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.ficha .plegable__cuerpo { color: rgb(255 255 255 / .92); }
.ficha .ruta { background: rgb(0 0 0 / .2); }

.lateral { display: grid; gap: 12px; }
.lateral__portada { width: 100%; max-width: 340px; margin-inline: auto; aspect-ratio: 2 / 3; object-fit: cover; box-shadow: 0 10px 30px rgb(0 0 0 / .3); }
.lateral .boton { width: 100%; background: rgb(255 255 255 / .16); color: #fff; border-color: rgb(255 255 255 / .35); }
.lateral .boton:hover { background: rgb(255 255 255 / .28); color: #fff; }
.lateral .boton--apagado, .lateral .boton--apagado:hover { background: rgb(0 0 0 / .18); color: rgb(255 255 255 / .75); }
.info-juego { background: rgb(255 255 255 / .14); padding: 18px; text-align: center; }
.info-juego h2 { color: #fff; font-size: 1.6rem; margin-bottom: 10px; }
.info-juego dl { margin: 0; font-size: .9rem; }
.info-juego dt { color: rgb(255 255 255 / .75); }
.info-juego dd { margin: 0 0 8px; }
.advertencia { background: var(--rojo); padding: 14px 16px; }
.advertencia strong { display: block; font: 400 1.5rem/1.2 var(--f-titulo); }
.advertencia p { margin: 0; font-size: .9rem; }
.ficha__credito { font-size: .75rem; color: rgb(255 255 255 / .7); text-align: center; }

.staff { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); text-align: center; }
.staff__inicial {
  width: 96px; height: 96px; margin: 0 auto 10px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgb(255 255 255 / .18); border: 3px solid rgb(255 255 255 / .6);
  font: 400 2.2rem/1 var(--f-titulo); color: #fff;
}
.staff__nombre { display: block; font: 400 1.35rem/1.2 var(--f-titulo); }
.staff__rol { display: block; font-size: .9rem; color: rgb(255 255 255 / .85); }
.ficha-seccion { padding-block: 40px; }
.ficha-seccion h2 { text-align: center; text-transform: uppercase; font-size: 1.9rem; }
.ficha-seccion--tema { background: var(--tema, #5a4a6e); color: #fff; border-top: 1px solid rgb(255 255 255 / .2); }
.ficha-seccion--tema h2 { color: #fff; }

/* ---------- Ventana de mayoría de edad ---------- */

.edad {
  position: fixed; inset: 0; z-index: 400;
  display: grid; place-items: center; padding: 16px;
  background: rgb(0 0 0 / .75);
}
.edad[hidden] { display: none; }
.edad__caja {
  width: 100%; max-width: 440px;
  background: #fff; color: var(--texto);
  border-top: 6px solid var(--rojo);
  padding: 26px 22px 22px; text-align: center;
  box-shadow: 0 20px 60px rgb(0 0 0 / .5);
}
.edad__marca {
  display: inline-grid; place-items: center;
  width: 62px; height: 62px; border-radius: 50%;
  background: var(--rojo); color: #fff;
  font: 400 1.6rem/1 var(--f-titulo); margin-bottom: 12px;
}
.edad__caja h2 { font-size: 1.6rem; }
.edad__acciones { display: grid; gap: 10px; margin-top: 18px; }
.edad__acciones .boton--azul { width: 100%; }
.edad__acciones .boton--contorno { width: 100%; }

/* La ficha se oculta hasta confirmar la edad (solo con JS) */
.js.requiere-edad:not(.edad-ok) main { visibility: hidden; }
