/* Landing de PinguyPlay: mismo lenguaje que la app (cielo, nieve, títulos pegatina, Nunito, botones en píldora). */
@font-face {
  font-family: 'Nunito';
  src: url('/fonts/nunito-latin.woff2') format('woff2');
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --sky: #bde4f5;
  --sky-2: #e6f5fc;
  --snow: #f7fcff;
  --ice: #bfe0f0;
  --ice-2: #86bcdc;
  --ink: #1e3a5f;
  --ink-soft: #35557c;
  --navy: #2c3358;
  --gold: #ffc83d;
  --teal: #2fa79a;
  /* Un naranja más oscuro que el de la app: el texto blanco encima pasa AA */
  --orange: #c94620;
  --orange-deep: #9f3516;
  --radius: 1.75rem;
  --wrap: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; overflow-x: clip; }
body {
  margin: 0;
  font-family: 'Nunito', ui-rounded, 'Segoe UI', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.55;
  color: var(--ink);
  background: linear-gradient(180deg, var(--sky) 0%, var(--sky-2) 480px, var(--snow) 900px);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 0.75rem; }

.skip { position: absolute; left: -999px; top: 0.5rem; background: var(--ink); color: #fff; padding: 0.5rem 1rem; border-radius: 999px; z-index: 10; }
.skip:focus { left: 0.5rem; }

/* Título pegatina: letras blancas con contorno grueso */
.sticker {
  color: #fff;
  font-weight: 900;
  letter-spacing: -0.01em;
  -webkit-text-stroke: 6px var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 3px 0 rgb(30 58 95 / 0.25);
}

/* ---- Cabecera ---- */
.top {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; gap: 1rem;
  max-width: var(--wrap); margin: 0 auto; padding: 0.75rem 1.25rem;
  background: color-mix(in oklab, var(--sky) 88%, transparent);
  backdrop-filter: blur(8px);
  border-radius: 0 0 1.25rem 1.25rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; font-weight: 900; font-size: 1.25rem; }
.top-nav { display: none; margin-left: auto; gap: 1.25rem; }
.top-nav a { text-decoration: none; color: var(--ink-soft); font-weight: 800; }
.top-nav a:hover { color: var(--ink); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 5px; }
.top .btn { margin-left: auto; }

/* ---- Botones ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.5rem; padding: 0 2.25rem;
  border-radius: 999px;
  background: var(--orange); color: #fff;
  font-weight: 900; font-size: 1.2rem; text-decoration: none;
  box-shadow: 0 6px 0 var(--orange-deep);
  transition: transform 0.1s, box-shadow 0.1s;
}
.btn:hover { transform: translateY(1px); box-shadow: 0 5px 0 var(--orange-deep); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--orange-deep); }
.btn-small { min-height: 2.75rem; padding: 0 1.25rem; font-size: 1rem; box-shadow: 0 4px 0 var(--orange-deep); }
.text-link { font-weight: 900; text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 5px; }

/* ---- Estructura ---- */
main, .foot { max-width: var(--wrap); margin: 0 auto; padding-inline: 1.25rem; }
.block { padding: 3.5rem 0; }
.block > h2 { font-size: clamp(1.9rem, 6vw, 2.9rem); text-align: center; }
.intro { max-width: 40rem; margin: 1rem auto 0; text-align: center; color: var(--ink-soft); font-size: 1.1rem; }
.alt { position: relative; }
.alt::before {
  /* Franja a todo el ancho de la ventana, aunque el contenido esté centrado en una columna */
  content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 100vw; translate: -50% 0; z-index: -1;
  background: rgb(255 255 255 / 0.6);
}

/* ---- Héroe ---- */
.hero { display: grid; gap: 2rem; padding: 2.5rem 0 3rem; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 9vw, 4.4rem); -webkit-text-stroke-width: 8px; }
.lead { margin-top: 1.25rem; font-size: 1.2rem; color: var(--ink-soft); max-width: 34rem; }
.badges { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.25rem 0 0; padding: 0; }
.badges li { background: #fff; border-radius: 999px; padding: 0.3rem 0.9rem; font-size: 0.95rem; font-weight: 900; box-shadow: 0 3px 0 var(--ice-2); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; margin-top: 1.75rem; }
.cta-row.center { justify-content: center; margin-top: 2.5rem; }
.fine { margin-top: 1rem; font-size: 0.95rem; color: var(--ink-soft); }
.hero-art { position: relative; display: grid; place-items: center; min-height: 28rem; }
.hero-pinguy { position: absolute; left: 0; bottom: 0; width: clamp(8rem, 28vw, 13rem); height: auto; z-index: 2; }
.hero-art .phone { transform: rotate(3deg); }

/* ---- Móvil (marco de las capturas) ---- */
.phone { margin: 0; width: 260px; max-width: 100%; }
.phone img {
  display: block; width: 100%;
  border: 8px solid var(--navy); border-radius: 2.2rem;
  box-shadow: 0 14px 0 rgb(44 51 88 / 0.18), 0 24px 40px rgb(30 58 95 / 0.25);
  background: var(--snow);
}
.phone figcaption { margin-top: 1.25rem; text-align: center; font-weight: 800; color: var(--ink-soft); }

/* ---- Juegos ---- */
.games { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); }
.game {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem;
  background: #fff; border-radius: var(--radius); padding: 1.25rem 1.25rem 1.1rem;
  box-shadow: 0 6px 0 var(--ice-2);
}
.game-icon { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 1rem; background: rgb(255 200 61 / 0.7); font-size: 1.9rem; }
.game h3 { font-size: 1.3rem; }
.game p { color: var(--ink-soft); }
.tag { margin-top: auto; padding: 0.15rem 0.7rem; border-radius: 999px; background: rgb(191 224 240 / 0.7); color: var(--ink-soft); font-size: 0.78rem; font-weight: 900; }
.tag-levels { background: rgb(255 200 61 / 0.75); color: var(--ink); }
.note { max-width: 44rem; margin: 2rem auto 0; text-align: center; color: var(--ink-soft); }

/* ---- Con amigos ---- */
.together { display: grid; gap: 3rem; margin-top: 2.5rem; }
.together-item { display: grid; gap: 1.75rem; justify-items: center; align-items: center; text-align: left; }
.together-item h3 { font-size: 1.7rem; margin-bottom: 0.75rem; }
.together-item p + p { margin-top: 0.75rem; }
.together-item p { color: var(--ink-soft); font-size: 1.1rem; }

/* ---- Galería ---- */
.shots {
  list-style: none; margin: 2.5rem 0 0; padding: 0.5rem 0 1.5rem;
  display: flex; gap: 1.75rem; overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.shots li { flex: none; scroll-snap-align: center; }
.shots:focus-visible { outline-offset: -3px; }

/* ---- Sin barreras ---- */
.perks { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.perks li { background: #fff; border-radius: var(--radius); padding: 1.25rem; box-shadow: 0 6px 0 var(--ice-2); }
.perks h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.perks p { color: var(--ink-soft); }

/* ---- Preguntas ---- */
.faq { max-width: 44rem; margin: 2.5rem auto 0; display: grid; gap: 0.75rem; }
.faq details { background: #fff; border-radius: 1.25rem; box-shadow: 0 4px 0 var(--ice-2); }
.faq summary { cursor: pointer; list-style: none; padding: 1rem 3rem 1rem 1.25rem; font-weight: 900; font-size: 1.1rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 1.25rem; top: 50%; translate: 0 -50%; font-size: 1.6rem; color: var(--orange); }
.faq details[open] summary::after { content: '–'; }
.faq details p { padding: 0 1.25rem 1.1rem; color: var(--ink-soft); }

/* ---- Pie ---- */
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 2rem 3rem; border-top: 3px dotted var(--ice-2); color: var(--ink-soft); }

/* ---- Pantallas grandes ---- */
@media (min-width: 760px) {
  .top-nav { display: flex; }
  .top .btn { margin-left: 0; }
  .hero { grid-template-columns: 1.15fr 1fr; gap: 3rem; padding-top: 4rem; }
  .together-item { grid-template-columns: auto 1fr; gap: 3rem; }
  .together-item.reverse { grid-template-columns: 1fr auto; }
  .together-item.reverse .phone { order: 2; }
  .shots { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
