/*
 * Páginas públicas (ficha de cada juego y categorías): HTML ya armado, sin la app. Mismo estilo violeta de la portada.
 * Lo copia seo/generar.mjs a /seo/paginas.css junto con las tipografías.
 */
@font-face { font-family: 'Lilita One'; font-display: swap; font-weight: 400; src: url(/seo/lilita-one.woff2) format('woff2'); }
@font-face { font-family: Jost; font-display: swap; font-weight: 400; src: url(/seo/jost-400.woff2) format('woff2'); }
@font-face { font-family: Jost; font-display: swap; font-weight: 600; src: url(/seo/jost-600.woff2) format('woff2'); }

:root {
  --oro: linear-gradient(180deg, #fff3a8, #ffd447 45%, #f0a612);
  --panel: linear-gradient(180deg, #6a2fd6, #3d1290);
  --titulo: 'Lilita One', 'Arial Rounded MT Bold', 'Trebuchet MS', sans-serif;
  --sans: Jost, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --max: 1180px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; color: #fff; font: 400 17px/1.55 var(--sans);
  background: #12042e radial-gradient(1100px 620px at 50% -120px, #4a1aa8 0%, #2a0c6b 45%, transparent 100%) no-repeat;
}
img { display: block; max-width: 100%; height: auto; }
a { color: #ffd447; }
:focus-visible { outline: 3px solid #ffe98a; outline-offset: 3px; border-radius: 6px; }
.ancho { width: min(100% - 32px, var(--max)); margin-inline: auto; }

/* ── Barra ── */
.barra { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; }
.barra__logo img { height: 46px; width: auto; }
.barra__acciones { display: flex; gap: 10px; }

/* ── Botones (los de la portada) ── */
.boton {
  --piso: #a8650a;
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 30px; border-radius: 999px;
  font: 400 20px/1 var(--titulo); letter-spacing: .03em; text-transform: uppercase; text-decoration: none; white-space: nowrap; color: #fff;
  background: var(--oro); text-shadow: 0 2px 0 #a35a00;
  box-shadow: 0 6px 0 var(--piso), 0 14px 24px rgba(8, 0, 30, .5), inset 0 3px 0 rgba(255, 255, 255, .6);
  transition: transform .12s ease, box-shadow .12s ease, filter .15s ease;
}
.boton:hover { filter: brightness(1.08); }
.boton:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--piso), 0 6px 12px rgba(8, 0, 30, .5), inset 0 3px 0 rgba(255, 255, 255, .6); }
.boton--violeta { --piso: #1b0748; background: linear-gradient(180deg, #5b22c4, #3a1190); text-shadow: 0 2px 0 #1b0748; box-shadow: 0 5px 0 var(--piso), inset 0 2px 0 rgba(255, 255, 255, .25), inset 0 0 0 2px rgba(255, 212, 71, .6); }
.boton--chico { min-height: 40px; padding: 0 18px; font-size: 16px; }
.boton--grande { min-height: 70px; padding: 0 52px; font-size: 30px; }

/* ── Migas ── */
.migas { display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 6px 0 0; padding: 0; list-style: none; font-size: 15px; color: #b9a8e6; }
.migas li + li::before { content: '›'; margin-right: 10px; color: #7d68b8; }
.migas a { color: #e3d7ff; text-decoration: none; }
.migas a:hover { text-decoration: underline; }

/* ── Títulos ── */
h1, h2 { margin: 0; font-family: var(--titulo); font-weight: 400; line-height: 1.05; }
h1 { font-size: clamp(38px, 6vw, 68px); color: #ffd447; -webkit-text-stroke: 3px #6b2a00; paint-order: stroke fill; text-shadow: 0 5px 0 #6b2a00; }
h2 { font-size: clamp(26px, 3.4vw, 38px); }
.chip {
  display: inline-block; margin: 0 0 14px; padding: 6px 16px; border-radius: 999px; font: 600 14px/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; color: #ffe98a; background: #170538; box-shadow: inset 0 0 0 2px rgba(255, 212, 71, .45);
}

/* ── Ficha del juego ── */
.ficha { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding: 28px 0 8px; }
.ficha__tarjeta { border-radius: 26px; overflow: hidden; aspect-ratio: 3 / 4; background: #170538; box-shadow: 0 0 0 4px #ffd447, 0 24px 48px rgba(8, 0, 30, .6); }
.ficha__tarjeta img { width: 100%; height: 100%; object-fit: cover; }
.ficha__tipo { margin: 12px 0 0; font: 600 20px/1.3 var(--sans); color: #e3d7ff; }
.ficha__tipo::first-letter { text-transform: uppercase; }
.ficha__texto { margin: 16px 0 0; max-width: 60ch; font-size: 18px; color: #efe8ff; }
.datos { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; }
.datos li { padding: 8px 16px; border-radius: 14px; font: 600 15px/1.25 var(--sans); background: var(--panel); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .22), 0 3px 0 #1b0748; }
.ficha__jugar { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 30px; }
.ficha__ya { font-size: 16px; color: #cdbdf5; }
.ficha__regalo { margin: 18px 0 0; font-size: 16px; color: #cdbdf5; }
.ficha__regalo strong { color: #ffd447; font-weight: 600; }

/* ── Encabezado de categoría ── */
.cabecera { padding: 28px 0 4px; }
.cabecera p { margin: 16px 0 0; max-width: 78ch; font-size: 18px; color: #efe8ff; }
.cabecera .boton { margin-top: 24px; }

/* ── Grilla de juegos ── */
.seccion { padding: 44px 0 0; }
.seccion__titulo { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; margin-bottom: 18px; }
.seccion__titulo a { font: 600 16px/1.2 var(--sans); text-decoration: none; }
.seccion__titulo a:hover { text-decoration: underline; }
.grilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.juego { display: block; height: 100%; border-radius: 20px; overflow: hidden; text-decoration: none; color: #fff; background: #170538; box-shadow: 0 0 0 2px rgba(255, 212, 71, .35), 0 10px 22px rgba(8, 0, 30, .5); transition: transform .15s ease, box-shadow .15s ease; }
.juego:hover { transform: translateY(-4px); box-shadow: 0 0 0 3px #ffd447, 0 16px 28px rgba(8, 0, 30, .6); }
.juego img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.juego__pie { display: grid; gap: 2px; padding: 10px 12px 12px; }
.juego__pie strong { font: 400 17px/1.15 var(--titulo); letter-spacing: .01em; }
.juego__pie small { font-size: 13px; line-height: 1.3; color: #b9a8e6; }
.juego__pie small::first-letter { text-transform: uppercase; }

/* ── Cierre y pie ── */
.cierre { display: grid; justify-items: center; gap: 18px; margin-top: 56px; padding: 34px 20px; border-radius: 28px; text-align: center; background: var(--panel); box-shadow: inset 0 3px 0 rgba(255, 255, 255, .22), 0 6px 0 #1b0748; }
.pie { display: grid; justify-items: center; gap: 12px; margin-top: 64px; padding: 36px 16px 44px; background: #0c0222; text-align: center; }
.pie img { height: 38px; width: auto; }
.pie nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; }
.pie nav a { color: #e3d7ff; text-decoration: none; font-weight: 600; }
.pie nav a:hover { text-decoration: underline; }
.pie p { margin: 0; max-width: 620px; font-size: 13px; line-height: 1.5; color: #8f7fbf; }

/* ── Página que no existe ── */
.perdida { display: grid; justify-items: center; gap: 18px; padding: 80px 0 20px; text-align: center; }
.perdida p { margin: 0; font-size: 18px; color: #e3d7ff; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .barra__logo img { height: 36px; }
  .boton--chico { min-height: 36px; padding: 0 12px; font-size: 14px; }
  .boton--grande { min-height: 60px; padding: 0 34px; font-size: 25px; }
  .ficha { grid-template-columns: 1fr; gap: 22px; padding-top: 18px; }
  .ficha__tarjeta { width: min(100%, 220px); margin-inline: auto; }
  .ficha__texto, .cabecera p { font-size: 17px; }
  .ficha__jugar { justify-content: center; text-align: center; }
  .ficha__jugar .boton { width: 100%; }
  .grilla { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  h1 { -webkit-text-stroke-width: 2px; text-shadow: 0 4px 0 #6b2a00; }
}
@media (prefers-reduced-motion: reduce) {
  .boton, .juego { transition: none; }
}
