/* Portada de Polygo. Se suma a styles.css (base, nav, footer, páginas legales). */
.home {
  --bg: #08061a;
  --bg2: #0e0a26;
  --card: rgba(255, 255, 255, 0.045);
  --line: rgba(167, 139, 250, 0.22);
  --violet: #8b5cf6;
  --violet-hi: #a78bfa;
  --violet-deep: #6d28d9;
  --pink: #e879f9;
  --gold: #fbbf24;
  --gold-hi: #fde68a;
  --mint: #34d399;
  --rose: #fb7185;
  background: var(--bg);
  font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  overflow-x: hidden;
}
.home h1,
.home h2,
.home h3 {
  font-family: 'Nunito', system-ui, sans-serif;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.home .lead {
  color: #cfc9f2;
}
.grad {
  background: linear-gradient(100deg, #c4b5fd 0%, #a78bfa 30%, #e879f9 70%, #c084fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.grad-gold {
  background: linear-gradient(100deg, #fde68a, #fbbf24 45%, #f59e0b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.gold {
  color: var(--gold);
}
.violet {
  color: var(--violet-hi);
}

/* ---------- reveal al hacer scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.no-js .reveal {
  opacity: 1;
  transform: none;
}

/* ---------- auroras ---------- */
.aurora {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.blob {
  position: absolute;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  animation: drift 18s ease-in-out infinite alternate;
}
.b1 {
  background: #7c3aed;
  top: -180px;
  left: -140px;
}
.b2 {
  background: #c026d3;
  top: 10%;
  right: -200px;
  animation-delay: -6s;
  opacity: 0.4;
}
.b3 {
  background: #2563eb;
  bottom: -260px;
  left: 30%;
  opacity: 0.35;
  animation-delay: -11s;
}
.b4 {
  background: #f59e0b;
  bottom: -320px;
  left: -160px;
  opacity: 0.18;
}
.aurora.soft .blob {
  opacity: 0.25;
}
@keyframes drift {
  to {
    transform: translate(60px, 40px) scale(1.12);
  }
}
.stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 22%, #fff8, transparent),
    radial-gradient(1px 1px at 32% 68%, #fff6, transparent),
    radial-gradient(1.5px 1.5px at 58% 14%, #fff7, transparent),
    radial-gradient(1px 1px at 76% 44%, #fff5, transparent),
    radial-gradient(1.5px 1.5px at 88% 78%, #fff6, transparent),
    radial-gradient(1px 1px at 22% 88%, #fff5, transparent),
    radial-gradient(1px 1px at 46% 40%, #fff4, transparent);
  opacity: 0.8;
}

/* ---------- portada ---------- */
.hero {
  position: relative;
  padding: 56px 0 90px;
  min-height: min(100vh, 900px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 70% 10%, rgba(124, 58, 237, 0.25), transparent 60%),
    linear-gradient(180deg, #0b0722 0%, var(--bg) 100%);
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}
.chip-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(139, 92, 246, 0.12);
  color: #e9e5ff;
  font-weight: 800;
  font-size: 0.9rem;
  margin: 0 0 22px;
}
.chip-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.25);
  animation: ping 1.8s ease-out infinite;
}
@keyframes ping {
  50% {
    box-shadow: 0 0 0 8px rgba(52, 211, 153, 0);
  }
}
.hero h1 {
  font-size: clamp(2.8rem, 6.2vw, 5.4rem);
  line-height: 0.98;
  margin: 0 0 22px;
}
.hero .lead {
  font-size: 1.2rem;
  max-width: 540px;
  margin: 0 0 30px;
}
.hero .lead strong {
  color: #fff;
}
.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  color: #b9b2e6;
  font-weight: 700;
}
.hero-proof b {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 900;
  margin-right: 4px;
}
.scroll-hint {
  position: absolute;
  bottom: 26px;
  left: 50%;
  translate: -50% 0;
  width: 28px;
  height: 46px;
  border-radius: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  z-index: 1;
}
.scroll-hint span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 9px;
  margin-left: -2px;
  border-radius: 2px;
  background: #fff;
  animation: wheel 1.8s ease-in-out infinite;
}
@keyframes wheel {
  60% {
    transform: translateY(14px);
    opacity: 0;
  }
}

/* ---------- tiendas ---------- */
.home .stores {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.home .store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 200px;
  padding: 12px 22px 12px 18px;
  border-radius: 16px;
  background: #000;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.home .store:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: var(--violet-hi);
  box-shadow: 0 14px 40px rgba(124, 58, 237, 0.45);
}
.home .store svg {
  width: 30px;
  height: 30px;
  flex: none;
}
.home .store span {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-align: left;
}
.home .store small {
  font-size: 0.72rem;
  font-weight: 700;
  opacity: 0.85;
}
.home .store strong {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* ---------- teléfono ---------- */
.phone {
  position: relative;
  width: 290px;
  aspect-ratio: 9 / 19.2;
  border-radius: 46px;
  padding: 11px;
  background: linear-gradient(160deg, #3b3266, #15122b 40%, #0b0918);
  box-shadow:
    0 0 0 1.5px rgba(255, 255, 255, 0.12) inset,
    0 40px 80px rgba(0, 0, 0, 0.55),
    0 0 90px rgba(124, 58, 237, 0.35);
}
.notch {
  position: absolute;
  top: 20px;
  left: 50%;
  translate: -50% 0;
  width: 92px;
  height: 26px;
  border-radius: 16px;
  background: #000;
  z-index: 3;
}
.scr {
  position: relative;
  height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background: #0b0a1a;
  padding: 54px 16px 16px;
  color: #fff;
  font-size: 12px;
}
.ovl {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.16em;
  color: #b8b2e6;
}
.tabs {
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 11px;
  height: 58px;
  border-radius: 0 0 36px 36px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding-bottom: 10px;
  background: #0d0b1f;
  border-top: 1px solid #221e42;
  font-size: 9.5px;
  font-weight: 800;
  color: #7f79a8;
}
.tabs .on {
  color: #a78bfa;
}

/* Word Rush (portada) */
.hero-stage {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 640px;
  align-items: center;
}
.phone-hero {
  width: 300px;
  transform: rotate(-3deg);
  z-index: 2;
}
.hero-fox {
  position: absolute;
  left: -10px;
  bottom: -10px;
  width: 230px;
  height: auto;
  z-index: 3;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.5));
  animation: bob 4s ease-in-out infinite;
}
@keyframes bob {
  50% {
    transform: translateY(-10px);
  }
}
.wr-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.wr-top .x {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #1c1836;
  color: #cfc9f2;
  font-size: 11px;
}
.wr-time {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.wr-time b {
  font-size: 24px;
  font-weight: 900;
}
.wr-time .bar {
  flex: 1;
  height: 7px;
  border-radius: 9px;
  background: #221e42;
  overflow: hidden;
}
.wr-time .bar i {
  display: block;
  height: 100%;
  width: 70%;
  border-radius: 9px;
  background: linear-gradient(90deg, #7c3aed, #a78bfa);
  animation: timebar 9s linear infinite;
}
@keyframes timebar {
  from {
    width: 100%;
  }
  to {
    width: 0;
  }
}
.wr-time .combo {
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid #3b3266;
  color: var(--gold);
  font-weight: 900;
  font-size: 11px;
}
.wr-players {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
}
.wr-players img {
  border-radius: 50%;
  border: 2px solid var(--gold);
}
.wr-players small {
  display: block;
  font-size: 9px;
  color: #b8b2e6;
}
.wr-players b {
  font-size: 14px;
  font-weight: 900;
}
.wr-players .o {
  color: #fb923c;
}
.wr-players .r {
  text-align: right;
}
.tug {
  position: relative;
  flex: 1;
  height: 12px;
  border-radius: 9px;
  background: #fb923c;
  overflow: hidden;
}
.tug i {
  position: absolute;
  inset: 0 40% 0 0;
  background: #7c3aed;
  animation: tug 5s ease-in-out infinite;
}
.tug em {
  position: absolute;
}
@keyframes tug {
  50% {
    inset: 0 28% 0 0;
  }
}
.wr-flash {
  text-align: center;
  margin: 14px auto 0;
  width: max-content;
  padding: 2px 14px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.16);
  color: var(--mint);
  font-weight: 900;
  font-size: 18px;
  animation: pop 2.4s ease-in-out infinite;
}
.wr-flash span {
  color: var(--gold);
  font-size: 13px;
}
@keyframes pop {
  0%,
  100% {
    transform: scale(1);
  }
  10% {
    transform: scale(1.18);
  }
  20% {
    transform: scale(1);
  }
}
.wr-kind {
  text-align: center;
  color: #a78bfa;
  font-weight: 900;
  letter-spacing: 0.18em;
  font-size: 10px;
  margin: 18px 0 0;
}
.wr-q {
  text-align: center;
  color: #b8b2e6;
  font-weight: 800;
  letter-spacing: 0.1em;
  font-size: 9px;
  margin: 28px 0 8px;
}
.wr-card {
  border: 2px solid #7c3aed;
  border-radius: 18px;
  background: #16122e;
  padding: 26px 10px;
  text-align: center;
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.4);
  animation: swipe 4.8s ease-in-out infinite;
}
@keyframes swipe {
  0%,
  55%,
  100% {
    transform: none;
  }
  70% {
    transform: translateX(26px) rotate(5deg);
  }
  78% {
    transform: translateX(0) rotate(0);
  }
}
.wr-card b {
  display: block;
  font-size: 26px;
  font-weight: 900;
}
.wr-card hr {
  width: 40px;
  margin: 10px auto;
  border: 0;
  height: 3px;
  border-radius: 2px;
  background: #2f2a58;
}
.wr-card span {
  color: var(--gold);
  font-size: 21px;
  font-weight: 900;
}
.wr-btns {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 18px;
}
.wr-btns span {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 900;
  background: #16122e;
}
.wr-btns .no {
  border: 2px solid var(--rose);
  color: var(--rose);
}
.wr-btns .yes {
  border: 2px solid var(--mint);
  color: var(--mint);
}

.float {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 18px;
  background: rgba(22, 18, 46, 0.86);
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: bob 5s ease-in-out infinite;
}
.float b {
  display: block;
  color: #fff;
  font-weight: 900;
  line-height: 1.1;
}
.float small {
  color: #b8b2e6;
  font-weight: 700;
}
.float .up {
  color: var(--mint);
}
.f-streak {
  top: 8%;
  right: 0;
  animation-delay: -1.5s;
}
.f-streak > span {
  font-size: 28px;
}
.f-rank {
  bottom: 14%;
  right: -10px;
  animation-delay: -3s;
}
.f-frenzy {
  top: 30%;
  left: 0;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  color: #1a1033;
  font-weight: 900;
  font-size: 1.05rem;
  border: 0;
  flex-direction: column;
  gap: 0;
  line-height: 1.1;
  box-shadow: 0 16px 40px rgba(245, 158, 11, 0.45);
}
.f-frenzy span {
  font-size: 0.72rem;
}

/* ---------- idiomas ---------- */
.langs {
  position: relative;
  border-block: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.18), rgba(192, 38, 211, 0.14), rgba(124, 58, 237, 0.18));
  padding: 18px 0;
  overflow: hidden;
}
.marquee {
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.track {
  display: flex;
  gap: 54px;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.track span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.35rem;
  font-weight: 900;
  color: #fff;
  white-space: nowrap;
}
.track img {
  width: 36px;
  height: 24px;
  border-radius: 5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- números ---------- */
.numbers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding-block: 70px 20px;
}
.num {
  text-align: center;
  padding: 26px 12px;
  border-radius: 24px;
  background: var(--card);
  border: 1px solid var(--line);
}
.num b {
  display: block;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(180deg, #fff, #c4b5fd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.num span {
  display: block;
  margin-top: 8px;
  color: #b9b2e6;
  font-weight: 700;
}

/* ---------- secciones ---------- */
.home .block {
  position: relative;
  padding: 100px 0;
}
.home .band {
  background: linear-gradient(180deg, transparent, rgba(124, 58, 237, 0.08) 20%, rgba(124, 58, 237, 0.08) 80%, transparent);
  overflow: hidden;
}
.home .block > .wrap {
  position: relative;
  z-index: 1;
}
.head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 54px;
}
.head h2,
.split h2,
.final h2 {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  line-height: 1.05;
  margin: 0 0 16px;
}
.kicker {
  display: inline-block;
  margin: 0 0 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.14);
  border: 1px solid var(--line);
  color: var(--violet-hi);
  font-weight: 900;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
}
.kicker.gold {
  color: var(--gold);
  border-color: rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.1);
}

/* Cómo funciona */
.steps3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.step {
  position: relative;
  padding: 26px 26px 30px;
  border-radius: 28px;
  background:
    linear-gradient(var(--bg2), var(--bg2)) padding-box,
    linear-gradient(160deg, rgba(167, 139, 250, 0.7), rgba(167, 139, 250, 0.05) 60%) border-box;
  border: 1.5px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.step:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(124, 58, 237, 0.3);
}
.step img {
  width: 140px;
  height: auto;
  margin: -6px auto 6px;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.45));
}
.step-n {
  position: absolute;
  top: 18px;
  left: 20px;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #8b5cf6, #c026d3);
  color: #fff;
  font-weight: 900;
}
.step h3 {
  font-size: 1.6rem;
  margin: 0 0 8px;
}
.step p {
  color: #c9c3ee;
  margin: 0;
}

/* Word Rush */
.games {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.game {
  padding: 20px;
  border-radius: 26px;
  background: var(--card);
  border: 1px solid var(--line);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.game:hover {
  transform: translateY(-6px) rotate(-0.6deg);
  border-color: var(--violet-hi);
}
.game h3 {
  font-size: 1.3rem;
  margin: 16px 0 6px;
}
.game p {
  margin: 0;
  color: #c9c3ee;
  font-size: 0.98rem;
}
.g-art {
  height: 150px;
  border-radius: 18px;
  background: #0d0b20;
  border: 1px solid #241f48;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.g-swipe {
  flex-direction: column;
  gap: 4px;
}
.gw {
  font-size: 1.5rem;
  font-weight: 900;
}
.gt {
  color: var(--gold);
  font-weight: 900;
  font-size: 1.1rem;
}
.gy {
  position: absolute;
  right: 16px;
  top: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--mint);
  color: var(--mint);
  display: grid;
  place-items: center;
  font-style: normal;
  font-weight: 900;
}
.g-connect {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 14px;
}
.g-connect span {
  padding: 8px;
  border-radius: 10px;
  border: 1.5px solid #2f2a58;
  text-align: center;
  font-weight: 800;
  font-size: 0.85rem;
}
.g-connect .on {
  border-color: var(--mint);
  background: rgba(52, 211, 153, 0.14);
  color: var(--mint);
}
.g-audio {
  flex-direction: column;
  gap: 12px;
}
.wave {
  display: flex;
  gap: 5px;
  align-items: center;
  height: 44px;
}
.wave i {
  width: 6px;
  border-radius: 3px;
  background: linear-gradient(180deg, #e879f9, #8b5cf6);
  animation: eq 1.1s ease-in-out infinite;
}
.wave i:nth-child(1) { height: 30%; animation-delay: -0.2s; }
.wave i:nth-child(2) { height: 70%; animation-delay: -0.5s; }
.wave i:nth-child(3) { height: 100%; animation-delay: -0.1s; }
.wave i:nth-child(4) { height: 55%; animation-delay: -0.7s; }
.wave i:nth-child(5) { height: 85%; animation-delay: -0.3s; }
.wave i:nth-child(6) { height: 45%; animation-delay: -0.6s; }
.wave i:nth-child(7) { height: 25%; animation-delay: -0.4s; }
@keyframes eq {
  50% {
    transform: scaleY(0.4);
  }
}
.pill-o {
  padding: 6px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--violet-hi);
  font-weight: 800;
}
.g-sentence {
  gap: 6px;
  flex-wrap: wrap;
  padding: 10px;
}
.g-sentence span {
  padding: 8px 12px;
  border-radius: 10px;
  background: #1e1940;
  border: 1.5px solid #3b3266;
  font-weight: 800;
}
.g-sentence .ghost {
  border-style: dashed;
  background: transparent;
  color: #6f6a9a;
}
.combo-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 26px;
}
.combo-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  color: #cfc9f2;
  font-weight: 700;
}
.combo-card b {
  flex: none;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--gold);
}
.combo-card.frenzy {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(245, 158, 11, 0.08));
  border-color: rgba(251, 191, 36, 0.45);
}

/* Rangos */
.home .split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 50px;
  align-items: center;
}
.ticks {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 12px;
}
.ticks li {
  position: relative;
  padding-left: 34px;
  font-weight: 700;
  color: #e4e0ff;
}
.ticks li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 900;
  background: linear-gradient(135deg, #34d399, #059669);
  color: #04261b;
}
.ladder2 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.rk {
  padding: 18px 8px 14px;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  text-align: center;
  font-weight: 800;
  color: #e4e0ff;
  transition: transform 0.25s ease;
}
.rk:hover {
  transform: translateY(-6px) scale(1.04);
}
.rk img {
  width: 70px;
  height: 70px;
  margin: 0 auto 8px;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.5));
}
.rk.top {
  background: linear-gradient(160deg, rgba(251, 191, 36, 0.18), rgba(124, 58, 237, 0.12));
  border-color: rgba(251, 191, 36, 0.45);
  box-shadow: 0 0 40px rgba(251, 191, 36, 0.15);
}

/* Galería */
.gallery {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 34px;
  justify-content: center;
  padding: 10px 24px 30px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.gallery::-webkit-scrollbar {
  display: none;
}
.shot {
  margin: 0;
  flex: none;
  scroll-snap-align: center;
  text-align: center;
}
.shot:nth-child(odd) .phone {
  transform: translateY(24px);
}
.shot .phone {
  width: 250px;
  transition: transform 0.3s ease;
}
.shot:hover .phone {
  transform: translateY(-8px) scale(1.02);
}
.shot figcaption {
  margin-top: 40px;
  font-weight: 900;
  color: #e4e0ff;
}

/* Aprender */
.learn {
  background:
    radial-gradient(260px 200px at 70% 40%, rgba(124, 58, 237, 0.35), transparent),
    linear-gradient(180deg, #1a1240, #0b0a1a);
}
.l-top {
  display: flex;
  gap: 6px;
  align-items: center;
}
.l-top .ovl {
  flex: 1;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #c4b5fd;
  font-size: 8px;
  white-space: nowrap;
}
.l-top .ovl img {
  border-radius: 2px;
}
.l-top .c {
  padding: 3px 7px;
  border-radius: 999px;
  background: #1c1836;
  font-weight: 900;
  font-size: 10px;
}
.l-top .fire {
  color: #fb923c;
}
.l-path {
  position: relative;
  height: 330px;
  margin-top: 12px;
}
.nd {
  position: absolute;
  left: var(--x);
  display: flex;
  align-items: center;
  gap: 8px;
}
.nd.flip {
  flex-direction: row-reverse;
  transform: translateX(calc(-100% + 50px));
}
.nd:nth-child(1) { top: 0; }
.nd:nth-child(2) { top: 64px; }
.nd:nth-child(3) { top: 132px; }
.nd:nth-child(4) { top: 214px; }
.nd:nth-child(5) { top: 276px; }
.nd i {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-style: normal;
  font-weight: 900;
  font-size: 18px;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.35);
}
.nd.done i {
  background: linear-gradient(180deg, #fcd34d, #f59e0b);
  color: #3b2a00;
}
.nd.cur i {
  width: 66px;
  height: 66px;
  background: #4c1d95;
  border: 5px solid #0b0a1a;
  outline: 4px solid #8b5cf6;
  box-shadow: 0 0 40px rgba(139, 92, 246, 0.8);
  animation: glow 2s ease-in-out infinite;
}
@keyframes glow {
  50% {
    box-shadow: 0 0 60px rgba(139, 92, 246, 1);
  }
}
.nd.lock i {
  background: #1c1836;
  color: #6f6a9a;
  font-size: 14px;
}
.nd em {
  font-style: normal;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(11, 10, 26, 0.8);
  white-space: nowrap;
}
.nd.done em {
  color: var(--gold);
}

/* Repaso */
.review .r-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.review .r-head b {
  display: block;
  font-size: 20px;
  font-weight: 900;
}
.review .r-head small {
  color: #b8b2e6;
}
.review .r-head img {
  width: 64px;
  height: auto;
}
.r-word,
.r-today {
  margin-top: 10px;
  padding: 12px;
  border-radius: 18px;
  background: linear-gradient(160deg, #2a1c63, #17123a);
  border: 1px solid #3b3266;
}
.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #3b2a7a;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.12em;
}
.r-word b {
  display: block;
  font-size: 22px;
  font-weight: 900;
  margin-top: 6px;
}
.r-word small {
  color: #b8b2e6;
}
.r-word p {
  margin: 6px 0 0;
  font-size: 11px;
  line-height: 1.4;
}
.r-word u {
  text-decoration: none;
  background: #4c1d95;
  color: #c4b5fd;
  border-radius: 3px;
}
.tag2 {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid #3b3266;
  font-weight: 800;
  font-size: 10px;
}
.r-today b {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 900;
}
.r-today small {
  color: #b8b2e6;
}
.btnp {
  display: block;
  margin-top: 10px;
  padding: 10px;
  border-radius: 14px;
  text-align: center;
  font-weight: 900;
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
}

/* Ranked */
.rk-title {
  display: block;
  font-size: 26px;
  font-weight: 900;
  font-style: italic;
}
.rk-card {
  position: relative;
  margin-top: 10px;
  padding: 14px 12px 22px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(160deg, #2a1c63, #17123a);
  border: 1px solid #3b3266;
  overflow: hidden;
}
.rk-card img:first-child {
  width: 54px;
}
.rk-card small {
  font-size: 8px;
  letter-spacing: 0.14em;
  color: #b8b2e6;
  font-weight: 900;
}
.rk-card b {
  display: block;
  font-size: 20px;
  font-weight: 900;
  font-style: italic;
  color: var(--gold);
}
.rk-card span {
  font-size: 10px;
  font-weight: 800;
}
.rk-card > div {
  position: relative;
  z-index: 1;
}
.rk-fox {
  position: absolute;
  right: -10px;
  bottom: 4px;
  width: 62px;
  height: auto;
  opacity: 0.95;
}
.rk-bar {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 9px;
  height: 6px;
  border-radius: 9px;
  background: #221e42;
  overflow: hidden;
}
.rk-bar i {
  display: block;
  width: 62%;
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #fde68a);
}
.rk-ladder {
  display: flex;
  justify-content: space-around;
  margin-top: 10px;
  padding: 10px;
  border-radius: 16px;
  background: #12102a;
}
.rk-ladder img {
  width: 32px;
  opacity: 0.45;
}
.rk-ladder .me {
  opacity: 1;
  transform: scale(1.25);
}
.rk-play {
  margin-top: 10px;
  padding: 12px;
  border-radius: 18px;
  text-align: center;
  background: linear-gradient(160deg, #2a1c63, #17123a);
  border: 1px solid #3b3266;
}
.rk-play small {
  color: #a78bfa;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.16em;
}
.mode {
  display: block;
  width: max-content;
  margin: 8px auto;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid #3b3266;
  font-weight: 800;
}
.gold-btn {
  display: block;
  padding: 11px;
  border-radius: 999px;
  font-weight: 900;
  font-style: italic;
  font-size: 15px;
  color: #1a1033;
  background: linear-gradient(180deg, #fde68a, #f59e0b);
  box-shadow: 0 0 24px rgba(251, 191, 36, 0.5);
}

/* Victoria */
.win {
  text-align: center;
  padding-top: 46px;
}
.crown {
  display: block;
  color: #a78bfa;
  font-size: 26px;
}
.win-t {
  display: block;
  font-size: 28px;
  font-weight: 900;
}
.win-elo {
  color: #c4b5fd;
  font-weight: 900;
  font-size: 18px;
}
.win-fox {
  width: 150px;
  height: auto;
  margin: 0 auto;
}
.win-div img {
  width: 38px;
  height: 38px;
  flex: none;
}
.win-div,
.win-xp {
  display: flex;
  gap: 10px;
  align-items: center;
  text-align: left;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 16px;
  background: #17123a;
  border: 1px solid #3b3266;
}
.win-div > div,
.win-xp > div {
  position: relative;
  flex: 1;
}
.win-div small {
  color: #b8b2e6;
  font-size: 9px;
}
.win-div b {
  display: block;
  font-size: 15px;
  font-weight: 900;
}
.win-div > div {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: 6px;
}
.win-div small {
  grid-column: 1 / -1;
}
.win-div em {
  font-style: normal;
  font-size: 10px;
  font-weight: 800;
  color: #b8b2e6;
  white-space: nowrap;
}
.win-div u {
  text-decoration: none;
  color: #c4b5fd;
}
.win-div .rk-bar {
  position: static;
  display: block;
  grid-column: 1 / -1;
  margin-top: 6px;
}
.win-xp {
  border-color: rgba(251, 191, 36, 0.5);
}
.lvl {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  transform: rotate(45deg);
  border-radius: 8px;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  color: #1a1033;
  font-weight: 900;
}
.win-xp b {
  display: block;
  color: var(--gold);
  font-weight: 900;
}
.win-xp em {
  float: right;
  font-style: normal;
  color: #e4e0ff;
  font-size: 10px;
}
.xp-bar {
  display: block;
  margin-top: 5px;
  height: 6px;
  border-radius: 9px;
  background: #221e42;
  overflow: hidden;
}
.xp-bar::after {
  content: '';
  display: block;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, #f472b6, #fbbf24);
}
.cf {
  position: absolute;
  width: 8px;
  height: 12px;
  border-radius: 2px;
  top: -20px;
  animation: confetti 3.6s linear infinite;
}
.c1 { left: 12%; background: #fbbf24; animation-delay: -0.4s; }
.c2 { left: 34%; background: #a78bfa; animation-delay: -1.6s; }
.c3 { left: 56%; background: #34d399; animation-delay: -2.4s; }
.c4 { left: 74%; background: #f472b6; animation-delay: -0.9s; }
.c5 { left: 88%; background: #22d3ee; animation-delay: -3s; }
@keyframes confetti {
  to {
    transform: translateY(560px) rotate(540deg);
  }
}

/* Colección */
.skins {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.skin {
  margin: 0;
  padding: 16px 14px 16px;
  border-radius: 26px;
  text-align: center;
  background: var(--card);
  border: 1.5px solid var(--rc, var(--line));
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.skin:hover {
  transform: translateY(-8px) rotate(-1deg);
  box-shadow: 0 20px 50px color-mix(in srgb, var(--rc, #7c3aed) 45%, transparent);
}
.skin img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.45));
}
.skin figcaption {
  margin-top: 10px;
}
.skin b {
  display: block;
  font-size: 1.1rem;
  font-weight: 900;
  color: #fff;
}
.skin span {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rc, #b8b2e6);
  background: color-mix(in srgb, var(--rc, #7c3aed) 16%, transparent);
}
.r-free { --rc: #94a3b8; }
.r-common { --rc: #34d399; }
.r-rare { --rc: #38bdf8; }
.r-epic { --rc: #c084fc; }
.r-soon { --rc: #fbbf24; }

/* Funciones */
.feats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feat {
  padding: 24px;
  border-radius: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.feat:hover {
  transform: translateY(-5px);
  border-color: var(--violet-hi);
}
.fi {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  font-size: 28px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.35), rgba(192, 38, 211, 0.2));
  border: 1px solid var(--line);
}
.feat h3 {
  font-size: 1.25rem;
  margin: 14px 0 6px;
}
.feat p {
  margin: 0;
  color: #c9c3ee;
}

/* CTA final */
.final {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 70px 30px 60px;
  border-radius: 40px;
  background: linear-gradient(140deg, #3b1d8f, #1b1150 50%, #4a1170);
  border: 1.5px solid rgba(167, 139, 250, 0.45);
  box-shadow: 0 40px 100px rgba(124, 58, 237, 0.35);
}
.final > *:not(.aurora) {
  position: relative;
  z-index: 1;
}
.final .lead {
  max-width: 520px;
  margin: 0 auto 26px;
}
.final .stores {
  justify-content: center;
}
.final-logo {
  width: 96px;
  height: 96px;
  margin: 0 auto 18px;
  border-radius: 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}
.final-fox {
  position: absolute !important;
  bottom: -8px;
  width: 210px;
  height: auto;
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.5));
}
.final-fox.l {
  left: 2%;
}
.final-fox.r {
  right: 2%;
}

/* FAQ */
.home .faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
}

/* ---------- responsive ---------- */
@media (max-width: 1040px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero .lead,
  .hero-copy {
    margin-inline: auto;
  }
  .hero-stores .stores,
  .hero-proof {
    justify-content: center;
  }
  .games {
    grid-template-columns: repeat(2, 1fr);
  }
  .skins {
    grid-template-columns: repeat(4, 1fr);
  }
  .home .split {
    grid-template-columns: 1fr;
  }
  .gallery {
    justify-content: flex-start;
  }
  .final-fox {
    width: 140px;
    opacity: 0.85;
  }
}
@media (max-width: 760px) {
  .hero {
    padding-top: 100px;
  }
  .hero-stage {
    min-height: 560px;
    transform: scale(0.9);
  }
  .hero-fox {
    width: 160px;
    left: -6px;
  }
  .f-frenzy {
    left: -6px;
  }
  .f-rank {
    right: -6px;
  }
  .numbers {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps3,
  .feats,
  .combo-row {
    grid-template-columns: 1fr;
  }
  .skins {
    grid-template-columns: repeat(2, 1fr);
  }
  .ladder2 {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }
  .rk img {
    width: 52px;
    height: 52px;
  }
  .rk {
    font-size: 0.8rem;
  }
  .final-fox {
    display: none;
  }
  .home .store {
    min-width: 0;
    flex: 1 1 170px;
  }
}
@media (max-width: 420px) {
  .games {
    grid-template-columns: 1fr;
  }
  .hero-stage {
    transform: scale(0.82);
    margin-block: -40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home *,
  .home *::before,
  .home *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- portada entera en la primera pantalla (escritorio) ---------- */
/* El alto disponible manda: título, textos y márgenes en vh; el teléfono se escala entero con
   --hero-s (lo calcula home.js según el alto de la ventana; sin JS queda en 1). */
@media (min-width: 1041px) {
  .hero {
    min-height: calc(100vh - 70px);
    padding: clamp(14px, 3vh, 40px) 0;
  }
  .chip-pill {
    margin-bottom: clamp(10px, 2.2vh, 22px);
    padding: 6px 14px;
  }
  .hero h1 {
    font-size: clamp(2.3rem, min(5vw, 9.6vh), 5.2rem);
    margin-bottom: clamp(10px, 2.2vh, 22px);
  }
  .hero .lead {
    font-size: clamp(0.95rem, 2.3vh, 1.15rem);
    line-height: 1.5;
    margin-bottom: clamp(14px, 3vh, 30px);
  }
  .hero-proof {
    margin-top: clamp(12px, 2.4vh, 26px);
  }
  .hero-stage {
    zoom: var(--hero-s, 1);
  }
}
@media (min-width: 1041px) and (max-height: 820px) {
  .home .store {
    min-width: 0;
    padding: 9px 18px 9px 14px;
  }
  .home .store strong {
    font-size: 1.15rem;
  }
  .home .store svg {
    width: 26px;
    height: 26px;
  }
  .scroll-hint {
    display: none;
  }
}
