/* =========================================================
   Pixel Nova Studio - Estilos
   Sin fuentes externas: usamos fuentes del sistema para no
   enviar datos (IP) a terceros.
   ========================================================= */

:root {
  --bg: #0b1020;
  --bg-2: #10183a;
  --card: #151f45;
  --card-border: rgba(255, 255, 255, 0.08);
  --text: #eef1ff;
  --muted: #aab4dc;
  --gold: #ffc83d;
  --gold-2: #ff9f1c;
  --violet: #7c5cff;
  --teal: #2ee6c5;
  --radius: 20px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: ui-rounded, "SF Pro Rounded", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(124, 92, 255, 0.25), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(46, 230, 197, 0.12), transparent 60%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--gold); }
a:hover { color: #ffe08a; }

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 8px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.container { width: min(1140px, 100% - 2.5rem); margin-inline: auto; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: #1a1200;
  padding: 0.6rem 1rem;
  z-index: 100;
  border-radius: 0 0 10px 0;
  font-weight: 700;
}
.skip-link:focus { left: 0; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 0.8rem;
}
.muted { color: var(--muted); }
.lead { font-size: 1.15rem; color: var(--muted); }
.lead strong { color: var(--text); }

.text-gradient {
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #1f1400;
  box-shadow: 0 10px 25px rgba(255, 159, 28, 0.3);
}
.btn-primary:hover { color: #1f1400; box-shadow: 0 14px 30px rgba(255, 159, 28, 0.45); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.25); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); color: var(--text); background: rgba(255, 255, 255, 0.06); }
.btn-small { padding: 0.5rem 1.1rem; }
.btn-large { font-size: 1.1rem; padding: 1rem 1.8rem; }
.btn-play { background: #000; color: #fff; border-color: rgba(255, 255, 255, 0.35); border-radius: 14px; }
.btn-play:hover { color: #fff; background: #111; }
.btn-play span { display: flex; flex-direction: column; line-height: 1.1; font-size: 1.15rem; }
.btn-play small { font-size: 0.7rem; font-weight: 500; opacity: 0.85; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 16, 32, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.15rem;
}
.brand:hover { color: var(--text); }
.brand strong { color: var(--gold); }

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a:not(.btn) { color: var(--muted); text-decoration: none; font-weight: 600; }
.nav a:not(.btn):hover { color: var(--text); }
.nav .btn { color: #1f1400; background: linear-gradient(135deg, var(--gold), var(--gold-2)); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  margin: 5px 0;
  background: var(--text);
  border-radius: 3px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 5rem 0 6rem; }
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 3rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.6rem; }
.hero-badges {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.hero-badges li {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--card-border);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Monedas que caen de fondo */
.hero-coins { position: absolute; inset: 0; pointer-events: none; }
.coin-fall {
  position: absolute;
  top: -60px;
  width: var(--size, 28px);
  height: var(--size, 28px);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff3c4, var(--gold) 45%, var(--gold-2) 80%);
  box-shadow: inset 0 0 0 3px rgba(184, 110, 0, 0.55), 0 0 18px rgba(255, 200, 61, 0.35);
  opacity: 0.55;
  animation: fall var(--dur, 9s) linear var(--delay, 0s) infinite;
}
@keyframes fall {
  0%   { transform: translateY(0) rotateY(0deg); }
  100% { transform: translateY(900px) rotateY(720deg); }
}

/* Teléfono */
.phone {
  justify-self: center;
  width: 270px;
  height: 540px;
  border-radius: 42px;
  padding: 14px;
  background: linear-gradient(160deg, #2a3567, #121a3b);
  box-shadow: var(--shadow), inset 0 0 0 2px rgba(255, 255, 255, 0.1);
  position: relative;
  transform: rotate(4deg);
}
.phone-notch {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 18px;
  border-radius: 20px;
  background: #0b1020;
  z-index: 3;
}
.phone-screen {
  position: relative;
  height: 100%;
  border-radius: 30px;
  overflow: hidden;
  background: linear-gradient(180deg, #5b8cff 0%, #8fd3ff 55%, #c9f2ff 100%);
}
.game-hud {
  position: absolute;
  top: 48px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 16px;
  font-weight: 800;
  font-size: 0.9rem;
  color: #fff;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
  z-index: 2;
}
.g-coin {
  position: absolute;
  top: -40px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff3c4, var(--gold) 45%, var(--gold-2) 85%);
  box-shadow: inset 0 0 0 3px #c47c00;
  animation: gameFall 2.8s linear infinite;
}
.g-coin.c1 { left: 18%; animation-delay: 0s; }
.g-coin.c2 { left: 62%; animation-delay: 0.7s; }
.g-coin.c3 { left: 40%; animation-delay: 1.4s; }
.g-coin.c4 { left: 78%; animation-delay: 2.1s; }
.g-coin.c5 { left: 8%;  animation-delay: 1.05s; }
@keyframes gameFall {
  0%   { transform: translateY(0) scaleX(1); }
  25%  { transform: translateY(130px) scaleX(0.4); }
  50%  { transform: translateY(260px) scaleX(1); }
  75%  { transform: translateY(390px) scaleX(0.4); }
  100% { transform: translateY(520px) scaleX(1); }
}
.game-basket {
  position: absolute;
  bottom: 52px;
  left: 30%;
  width: 80px;
  height: 44px;
  border-radius: 6px 6px 26px 26px;
  background: linear-gradient(180deg, #ff6b6b, #d63a3a);
  box-shadow: inset 0 6px 0 rgba(255, 255, 255, 0.25), 0 6px 0 rgba(0, 0, 0, 0.15);
  animation: basket 3s ease-in-out infinite alternate;
  z-index: 2;
}
@keyframes basket {
  0%   { left: 8%; }
  100% { left: 62%; }
}
.game-ground {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 52px;
  background: linear-gradient(180deg, #4cd964, #2fa84a);
  box-shadow: inset 0 6px 0 rgba(255, 255, 255, 0.2);
}

/* ---------- Secciones ---------- */
.section { padding: 6rem 0; }
.section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.04));
  border-block: 1px solid var(--card-border);
}
.section-head { text-align: center; max-width: 680px; margin: 0 auto 3rem; }

/* Tarjetas */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.4rem;
}
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 200, 61, 0.45);
  box-shadow: var(--shadow);
}
.card p { color: var(--muted); margin: 0; }
.card-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  font-size: 1.7rem;
  border-radius: 16px;
  margin-bottom: 1.2rem;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.35), rgba(46, 230, 197, 0.25));
}

/* Juego destacado */
.game-feature {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  align-items: center;
}
.game-art { position: relative; display: grid; place-items: center; min-height: 360px; }
.big-coin {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 7rem;
  background: radial-gradient(circle at 35% 30%, #fff3c4, var(--gold) 45%, var(--gold-2) 85%);
  box-shadow: inset 0 0 0 10px rgba(184, 110, 0, 0.5), 0 0 80px rgba(255, 200, 61, 0.35);
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50%      { transform: translateY(-18px) rotate(4deg); }
}
.sparkle { position: absolute; color: var(--gold); font-size: 1.6rem; animation: twinkle 2s ease-in-out infinite; }
.sparkle.s1 { top: 10%; left: 18%; }
.sparkle.s2 { top: 20%; right: 14%; animation-delay: 0.6s; font-size: 2.2rem; }
.sparkle.s3 { bottom: 12%; left: 26%; animation-delay: 1.2s; }
@keyframes twinkle {
  0%, 100% { opacity: 0.2; transform: scale(0.8); }
  50%      { opacity: 1;   transform: scale(1.15); }
}
.feature-list { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: 0.6rem; }
.feature-list li { display: flex; gap: 0.6rem; }

/* Pasos */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.4rem;
}
.step {
  position: relative;
  padding: 2rem 1.6rem;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--card-border);
}
.step p { color: var(--muted); margin: 0; }
.step-num {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  margin-bottom: 1rem;
  font-weight: 800;
  color: #1f1400;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
}

/* Privacidad */
.privacy-box {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 3rem;
  border-radius: calc(var(--radius) + 8px);
  background: linear-gradient(135deg, rgba(46, 230, 197, 0.12), rgba(124, 92, 255, 0.16));
  border: 1px solid rgba(46, 230, 197, 0.3);
}
.privacy-box p { color: var(--muted); max-width: 640px; }
.privacy-icon { font-size: 5rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--card-border); padding: 2.5rem 0; background: rgba(0, 0, 0, 0.2); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); text-decoration: underline; }
.copy { margin: 0; color: var(--muted); font-size: 0.9rem; width: 100%; text-align: center; }

/* ---------- Páginas legales ---------- */
.legal { padding: 4rem 0 5rem; }
.legal-wrap { width: min(860px, 100% - 2.5rem); margin-inline: auto; }
.legal-head { margin-bottom: 2.5rem; }
.legal-head .updated { color: var(--muted); font-size: 0.95rem; }
.summary {
  padding: 1.6rem 1.8rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(46, 230, 197, 0.12), rgba(124, 92, 255, 0.14));
  border: 1px solid rgba(46, 230, 197, 0.3);
  margin-bottom: 2.5rem;
}
.summary h2 { font-size: 1.3rem; margin-bottom: 0.8rem; }
.summary ul { margin: 0; padding-left: 1.2rem; }
.summary li { margin-bottom: 0.3rem; }
.toc {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.4rem 1.8rem;
  margin-bottom: 3rem;
}
.toc h2 { font-size: 1.1rem; margin-bottom: 0.6rem; }
.toc ol { margin: 0; padding-left: 1.3rem; columns: 2; column-gap: 2rem; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--gold); text-decoration: underline; }
.legal-content section { margin-bottom: 2.4rem; }
.legal-content h2 {
  font-size: 1.45rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--card-border);
}
.legal-content h3 { font-size: 1.1rem; margin-top: 1.4rem; }
.legal-content p,
.legal-content li { color: #d3d9f5; }
.legal-content ul { padding-left: 1.3rem; }
.legal-content li { margin-bottom: 0.4rem; }
.legal-content strong { color: var(--text); }
.caps { text-transform: uppercase; font-size: 0.95rem; letter-spacing: 0.01em; }
.back-link { display: inline-flex; gap: 0.4rem; margin-bottom: 1.5rem; text-decoration: none; font-weight: 600; }

/* ---------- Animación de aparición ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .phone.reveal.is-visible { transform: rotate(4deg); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid,
  .game-feature { grid-template-columns: 1fr; }
  .hero { padding-top: 3rem; }
  .hero-text { text-align: center; }
  .hero-actions, .hero-badges { justify-content: center; }
  .game-info { text-align: center; }
  .feature-list { justify-items: center; }
  .privacy-box { grid-template-columns: 1fr; text-align: center; padding: 2rem; }
  .privacy-box .hero-actions { justify-content: center; }
  .privacy-box p { margin-inline: auto; }
  .toc ol { columns: 1; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 1rem 1.25rem 1.5rem;
    background: rgba(11, 16, 32, 0.97);
    border-bottom: 1px solid var(--card-border);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { width: 100%; padding: 0.9rem 0; border-bottom: 1px solid var(--card-border); }
  .nav .btn { margin-top: 1rem; }
  .section { padding: 4.5rem 0; }
  .phone { width: 230px; height: 460px; }
  .big-coin { width: 200px; height: 200px; }
  .big-coin svg { width: 92px; height: 92px; }
}

/* Respeta a quienes prefieren menos movimiento */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .hero-coins { display: none; }
}
