/* La portada pública de juganimo.com.ar y la página de privacidad. Colores y letras de la app (theme.css):
   Fredoka para los títulos, Nunito para el texto. Las fuentes se sirven desde el sitio (publicar.py las
   copia de node_modules a /sitio/fuentes). Sin estilos en línea ni scripts: la CSP del sitio no los deja. */

@font-face { font-family: "Fredoka"; font-weight: 600; font-display: swap; src: url("/sitio/fuentes/fredoka-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Fredoka"; font-weight: 700; font-display: swap; src: url("/sitio/fuentes/fredoka-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 400; font-display: swap; src: url("/sitio/fuentes/nunito-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 600; font-display: swap; src: url("/sitio/fuentes/nunito-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 700; font-display: swap; src: url("/sitio/fuentes/nunito-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 800; font-display: swap; src: url("/sitio/fuentes/nunito-latin-800-normal.woff2") format("woff2"); }

:root {
  --page: #F6F9FD; --ink: #1D3557; --ink-2: #51627F; --line: #D6DFEA;
  --blue: #1F5FB8; --blue-soft: #E4EEFC; --sun: #F5B521; --sun-soft: #FFF6DC; --green: #27AE84; --green-ink: #FFFFFF;
  --stage: #EAF3FD; --card: #FFFFFF; --shadow: 0 1px 2px rgba(29, 53, 87, .05), 0 10px 30px rgba(29, 53, 87, .10);
  --f-disp: "Fredoka", "Nunito", "Segoe UI", system-ui, sans-serif;
  --f-ui: "Nunito", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: #121A28; --ink: #E6EDF7; --ink-2: #A9B7CB; --line: #2A3850;
    --blue: #8DB8F5; --blue-soft: #1E2F4B; --sun: #F5B521; --sun-soft: #3A3110; --green: #2FBF8F; --green-ink: #0E2418;
    --stage: #172238; --card: #1A2436; --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: var(--f-ui); font-size: 17px; line-height: 1.55; }
h1, h2, h3 { margin: 0; font-family: var(--f-disp); font-weight: 600; line-height: 1.12; text-wrap: balance; }
p, ul, ol { margin: 0; }
a { color: var(--blue); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; height: auto; display: block; }
strong { font-weight: 800; }
[hidden] { display: none !important; }

.wrap { max-width: 1080px; margin-inline: auto; padding-inline: 20px; padding-bottom: env(safe-area-inset-bottom, 0px); }

/* Cabecera */
/* En un celular la marca y los enlaces no entran en un renglón: los enlaces bajan al segundo, a la derecha.
   Medido el 24/09/2026: sin el wrap, el nav sobresalía 46 px y la página entera se movía de costado */
.head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding-block: 18px 6px; }
.head nav { margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--blue); font-family: var(--f-disp); font-weight: 700; font-size: 26px; line-height: 1; }
.brand img { width: 34px; height: 34px; }
.pivot { color: var(--sun); }
.head nav { display: flex; gap: 6px; }
.head nav a { font-weight: 800; font-size: 15px; text-decoration: none; padding: 8px 12px; border-radius: 999px; color: var(--ink-2); }
@media (hover: hover) and (pointer: fine) { .head nav a:hover { background: var(--blue-soft); color: var(--blue); } }

/* Portada */
.hero { display: grid; gap: 22px; padding-block: 34px 10px; }
.wordmark { font-family: var(--f-disp); font-weight: 700; font-size: clamp(64px, 17vw, 152px); line-height: .95; letter-spacing: -.01em; color: var(--blue); }
.thesis { font-family: var(--f-disp); font-weight: 600; font-size: clamp(26px, 4.6vw, 38px); line-height: 1.15; max-width: 22ch; text-wrap: balance; }
.lead { font-size: clamp(17px, 2.2vw, 21px); font-weight: 600; color: var(--ink-2); max-width: 52ch; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 12px 22px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font-weight: 800; font-size: 17px; line-height: 1.2; text-decoration: none; }
.btn-green { background: var(--green); border-color: var(--green); color: var(--green-ink); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { border-color: var(--blue); color: var(--blue); }
  .btn-green:hover { filter: brightness(1.06); color: var(--green-ink); border-color: var(--green); }
}
.btn .icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.actions .fine { flex: 1 1 100%; font-size: 15px; font-weight: 600; color: var(--ink-2); }
/* El código QR es para quien mira la portada en una computadora: en el celular no se muestra (y por ser
   diferido, tampoco se descarga). Lo dibuja _tools/qr.py */
.qr { display: none; margin: 0; }

/* Capturas: en el celular se pasan con el dedo (scroll con imán), en la PC se ven en fila */
.shots { margin-top: 30px; }
.shots-row { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 20px 22px; margin-inline: -20px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.shots-row::-webkit-scrollbar { display: none; }
/* Con mouse no hay dedo: la barra, fina, dice que hay más a la derecha */
@media (hover: hover) and (pointer: fine) {
  .shots-row { scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
  .shots-row::-webkit-scrollbar { display: block; height: 8px; }
  .shots-row::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
}
.shot { flex: 0 0 min(72vw, 250px); margin: 0; scroll-snap-align: center; display: grid; gap: 10px; }
.shot img { width: 100%; aspect-ratio: 780 / 1688; border-radius: 26px; box-shadow: var(--shadow); background: var(--stage); }
.shot figcaption { font-size: 15px; font-weight: 800; color: var(--ink-2); text-align: center; }
.shots .fine { font-size: 14px; font-weight: 600; color: var(--ink-2); text-align: center; }

/* Secciones: se separan con espacio y tamaño, sin recuadros */
.sec { padding-block: 56px 10px; display: grid; gap: 22px; }
.sec > h2 { font-size: clamp(30px, 5vw, 44px); max-width: 20ch; }
.sec > .lead { max-width: 60ch; }
.games { list-style: none; padding: 0; display: grid; gap: 18px 40px; grid-template-columns: 1fr; }
.game { display: grid; gap: 3px; padding-block: 12px; border-top: 1.5px solid var(--line); }
.game b { font-family: var(--f-disp); font-weight: 600; font-size: 24px; line-height: 1.15; }
.game span { color: var(--ink-2); font-weight: 600; }
.game small { font-size: 14px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }
.quiet { font-weight: 600; color: var(--ink-2); max-width: 60ch; }

.big { font-family: var(--f-disp); font-weight: 600; font-size: clamp(28px, 4.8vw, 46px); line-height: 1.15; max-width: 24ch; text-wrap: balance; }
.terms { display: grid; gap: 28px; }
.terms-group { display: grid; gap: 10px; }
.terms-group h3 { font-size: 14px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); font-family: var(--f-ui); }
.terms-group ul { padding-left: 22px; display: grid; gap: 8px; font-weight: 600; }
.terms-group li::marker { color: var(--sun); }

.costs { display: grid; gap: 16px; }
.costs ul { padding-left: 22px; display: grid; gap: 8px; font-weight: 600; font-size: 19px; }
.costs li::marker { color: var(--sun); }

.install { display: grid; gap: 22px; grid-template-columns: 1fr; }
.plat { display: grid; gap: 10px; }
.plat h3 { font-size: 22px; }
.plat ol { padding-left: 22px; display: grid; gap: 6px; font-weight: 600; }
.plat li::marker { font-weight: 800; color: var(--ink-2); }
.plat p { font-weight: 600; color: var(--ink-2); }

/* Pie */
.foot { margin-top: 64px; padding-block: 28px 40px; border-top: 1.5px solid var(--line); display: grid; gap: 18px; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.foot .who { display: grid; gap: 4px; }
.foot .who b { color: var(--ink); font-weight: 800; }
.foot ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot a { color: var(--ink-2); }
@media (hover: hover) and (pointer: fine) { .foot a:hover { color: var(--blue); } }
.mail { font-weight: 800; color: var(--ink); }

/* Privacidad */
.doc { max-width: 66ch; padding-block: 34px 20px; display: grid; gap: 30px; }
.doc header { display: grid; gap: 12px; }
.doc h1 { font-size: clamp(34px, 6vw, 52px); }
.doc .date { font-weight: 800; color: var(--ink-2); }
.doc section { display: grid; gap: 12px; }
.doc h2 { font-size: 26px; }
.doc ul { padding-left: 22px; display: grid; gap: 8px; }
.doc li::marker { color: var(--sun); }
.doc .aaip { padding: 16px 18px; border-left: 4px solid var(--sun); background: var(--sun-soft); font-size: 15px; font-weight: 600; }

/* Ancho de PC: dos o tres columnas donde ayuda */
@media (min-width: 720px) {
  .hero { padding-block: 48px 10px; }
  /* En columnas, cada una arranca arriba y mide lo suyo. Sin esto la más corta se estiraba hasta el alto de
     la más larga y repartía el sobrante entre sus renglones: "Qué es" empezaba 100 px más abajo que "Qué no
     es", y "En la computadora" 61 px más abajo que las otras dos (medido el 08/10/2026) */
  .games { grid-template-columns: 1fr 1fr; align-items: start; }
  .terms { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; align-items: start; }
  .install { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; align-items: start; }
  .shot { flex-basis: 236px; }
  .shots-row { padding-inline: 20px; }
  .foot { grid-template-columns: 1fr auto; align-items: end; }
  .foot ul { grid-column: 1 / -1; }
}
@media (min-width: 1000px) {
  .games { grid-template-columns: 1fr 1fr 1fr; }
}
/* Con mouse y ancho de computadora, el código QR va en el espacio libre de la derecha, a la altura del botón.
   La imagen trae su fondo blanco y lo conserva en modo oscuro: un lector necesita oscuro sobre claro. Se
   muestra a 4 px por módulo, la mitad exacta del archivo */
@media (min-width: 900px) and (hover: hover) and (pointer: fine) {
  .hero { grid-template-columns: minmax(0, 1fr) auto; column-gap: 48px; }
  .hero > .wordmark { grid-column: 1 / -1; }
  .hero > .thesis, .hero > .lead, .hero > .actions { grid-column: 1; }
  .qr { display: grid; gap: 10px; justify-items: center; grid-column: 2; grid-row: 2 / span 3; align-self: end; max-width: 170px; text-align: center; font-size: 15px; font-weight: 600; color: var(--ink-2); }
  .qr img { width: 132px; height: 132px; border-radius: 10px; }
}

/* La entrada de la portada: una sola vez, al cargar; sin movimiento si el sistema lo pide */
@media (prefers-reduced-motion: no-preference) {
  .hero > * { animation: rise .6s cubic-bezier(.2, .7, .2, 1) both; }
  .hero > :nth-child(2) { animation-delay: .08s; }
  .hero > :nth-child(3) { animation-delay: .16s; }
  .hero > :nth-child(4) { animation-delay: .24s; }
  .hero > :nth-child(5) { animation-delay: .32s; }
  @keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}
