:root {
  --bg: #F4F2FD;
  --grad-1: #F6F3FE;
  --grad-2: #EDE9FC;
  --grad-3: #F9F1FA;
  --primary: #7B6BF2;
  --primary-dark: #5B4BD6;
  --primary-soft: #EDEAFD;
  --accent: #FF8A3D;
  --success: #2FCB6E;
  --ink: #1F1D2B;
  --ink-soft: #6B6A7B;
  --ink-faint: #A5A4B4;
  --divider: #ECEAF6;
  --white: #fff;
  --radius: 24px;
  --shadow-sm: 0 6px 18px rgba(31, 29, 43, .07);
  --shadow-md: 0 18px 44px rgba(31, 29, 43, .10);
  --shadow-lg: 0 30px 70px rgba(91, 75, 214, .18);
  --max: 1160px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  background:
    radial-gradient(1100px 500px at 85% -10%, #FFE7D4 0%, rgba(255, 231, 212, 0) 60%),
    linear-gradient(135deg, var(--grad-1), var(--grad-2) 45%, var(--grad-3));
  background-attachment: fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.7rem); font-weight: 900; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 900; }
h3 { font-size: 1.15rem; font-weight: 800; }
p { margin: 0 0 1rem; color: var(--ink-soft); }
a { color: inherit; text-decoration: none; }
strong { color: var(--ink); }

.container { width: min(100% - 40px, var(--max)); margin-inline: auto; }
.container--narrow { max-width: 820px; }

.grad {
  background: linear-gradient(100deg, var(--primary), var(--primary-dark) 55%, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.kicker {
  display: inline-block;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--primary-dark);
  background: var(--primary-soft);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.pill {
  display: inline-block;
  font-size: .85rem;
  font-weight: 700;
  color: var(--primary-dark);
  background: rgba(255, 255, 255, .85);
  border: 1px solid var(--divider);
  padding: 8px 16px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
  font-size: .98rem;
  padding: 15px 28px;
  border-radius: 18px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 14px 30px rgba(91, 75, 214, .35);
}
.btn--primary:hover { box-shadow: 0 18px 38px rgba(91, 75, 214, .45); }
.btn--ghost {
  background: var(--white);
  color: var(--ink);
  border-color: var(--divider);
  box-shadow: var(--shadow-sm);
}
.btn--small { padding: 9px 18px; border-radius: 14px; font-size: .88rem; }
.btn--light { background: #fff; color: var(--primary-dark); box-shadow: var(--shadow-md); }
.btn--outline-light { border-color: rgba(255,255,255,.5); color: #fff; }
.btn--outline-light:hover { background: rgba(255,255,255,.12); }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, .72);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.nav.is-stuck { border-color: var(--divider); box-shadow: var(--shadow-sm); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; }
.brand__mark {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 14px;
  background: linear-gradient(135deg, var(--primary-soft), #fff);
  box-shadow: inset 0 0 0 1px var(--divider);
}
.brand__name { font-size: 1.25rem; letter-spacing: -.02em; }
.nav__links { display: flex; align-items: center; gap: 28px; font-weight: 700; font-size: .95rem; }
.nav__links a:not(.btn) { color: var(--ink-soft); transition: color .15s ease; }
.nav__links a:not(.btn):hover { color: var(--primary-dark); }
.nav__toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav__toggle span {
  display: block; width: 24px; height: 2.5px; border-radius: 3px;
  background: var(--ink); margin: 5px 0; transition: transform .2s ease, opacity .2s ease;
}
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 80px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.lead { font-size: 1.13rem; max-width: 34rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 34px; }
.hero__facts {
  display: flex; gap: 34px; list-style: none; margin: 0; padding: 0;
}
.hero__facts li { display: flex; flex-direction: column; }
.hero__facts strong { font-size: 1.7rem; font-weight: 900; color: var(--primary-dark); }
.hero__facts span { font-size: .82rem; color: var(--ink-faint); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }

.hero__visual { position: relative; min-height: 440px; }
.hero__blob {
  position: absolute; inset: 6% 4% 6% 8%;
  background: linear-gradient(160deg, #fff 0%, #F3F0FE 60%, #FFEDE0 100%);
  border-radius: 46% 54% 58% 42% / 52% 44% 56% 48%;
  box-shadow: var(--shadow-lg);
  animation: blob 14s ease-in-out infinite;
}
@keyframes blob {
  0%, 100% { border-radius: 46% 54% 58% 42% / 52% 44% 56% 48%; }
  50% { border-radius: 56% 44% 46% 54% / 44% 56% 44% 56%; }
}
.hero__stage { position: relative; height: 100%; min-height: 440px; display: grid; place-items: center; }
.mascot { animation: hover 4.5s ease-in-out infinite; filter: drop-shadow(0 22px 30px rgba(91,75,214,.28)); }
@keyframes hover { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-16px) rotate(2deg); } }

.float {
  position: absolute;
  display: flex; align-items: center; gap: 10px;
  background: #fff; border-radius: 18px; padding: 11px 16px;
  box-shadow: var(--shadow-md);
  animation: floaty 5s ease-in-out infinite;
}
.float__icon {
  display: grid; place-items: center; width: 34px; height: 34px;
  border-radius: 12px; background: var(--primary-soft); font-size: 1rem;
}
.float strong { display: block; font-size: .95rem; }
.float small { color: var(--ink-faint); font-size: .74rem; }
.float--xp { top: 8%; left: 0; animation-delay: -1s; }
.float--streak { top: 34%; right: -2%; animation-delay: -2.4s; }
.float--streak .float__icon { background: var(--accent-soft, #FFF0E4); }
.float--duel { bottom: 12%; left: 4%; animation-delay: -3.6s; }
.float--duel .float__icon { background: #E4F9EE; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.hero__chip {
  position: absolute; bottom: 6%; right: 4%;
  background: var(--success); color: #fff; font-weight: 800; font-size: .85rem;
  padding: 9px 16px; border-radius: 999px; box-shadow: 0 12px 26px rgba(47,203,110,.4);
  animation: floaty 6s ease-in-out infinite; animation-delay: -1.6s;
}

/* ---------- Band ---------- */
.band {
  background: linear-gradient(100deg, var(--primary-dark), var(--primary) 60%, #8B7BF6);
  color: #fff;
  border-radius: 28px;
  padding: 26px 0;
  box-shadow: var(--shadow-lg);
}
.band__grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; }
.band__item { text-align: center; flex: 1 1 150px; }
.band__item strong { display: block; font-size: 1.9rem; font-weight: 900; line-height: 1.1; }
.band__item span { font-size: .8rem; opacity: .85; font-weight: 600; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 9vw, 110px) 0; }
.section--tint {
  background: rgba(255, 255, 255, .55);
  border-block: 1px solid var(--divider);
}
.section__head { max-width: 680px; margin-bottom: 44px; }
.section__head p { font-size: 1.05rem; }

.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card__icon {
  display: grid; place-items: center;
  width: 54px; height: 54px; border-radius: 18px;
  background: var(--tone, var(--primary-soft));
  font-size: 1.5rem; margin-bottom: 18px;
}
.card p { font-size: .95rem; margin: 0; }

/* ---------- Duel ---------- */
.duel { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.steps { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 14px; }
.steps li {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border: 1px solid var(--divider);
  border-radius: 16px; padding: 13px 18px; font-weight: 700; font-size: .95rem;
  box-shadow: var(--shadow-sm);
}
.steps span {
  display: grid; place-items: center; flex: none;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--primary); color: #fff; font-size: .85rem; font-weight: 900;
}

.mock {
  background: #fff;
  border-radius: 28px;
  border: 1px solid var(--divider);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: rotate(1.2deg);
  transition: transform .25s ease;
}
.mock:hover { transform: rotate(0deg) translateY(-4px); }
.mock__top { display: flex; align-items: center; gap: 7px; padding: 14px 18px; background: #FAFAFF; border-bottom: 1px solid var(--divider); }
.mock__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--divider); }
.mock__dot:nth-child(1) { background: #FF8A8A; }
.mock__dot:nth-child(2) { background: #FFC86B; }
.mock__dot:nth-child(3) { background: #6BD88B; }
.mock__title { margin-left: auto; font-size: .78rem; font-weight: 800; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .08em; }
.mock__code { text-align: center; padding: 20px 18px 6px; }
.mock__code small { display: block; color: var(--ink-faint); font-weight: 700; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; }
.mock__code strong { font-size: 2.4rem; font-weight: 900; letter-spacing: .16em; color: var(--primary-dark); }
.mock__players { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 12px 18px 4px; }
.mock__player { display: flex; align-items: center; gap: 10px; background: #FAFAFF; border: 1px solid var(--divider); padding: 8px 14px; border-radius: 16px; }
.mock__player strong { display: block; font-size: .92rem; }
.mock__player small { color: var(--success); font-size: .72rem; font-weight: 700; }
.mock__score { font-weight: 900; font-size: 1.2rem; color: var(--primary-dark); }
.mock__vs { font-weight: 900; color: var(--ink-faint); font-size: .85rem; }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: #fff; font-weight: 900; font-size: .9rem; }
.avatar--a { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); }
.avatar--b { background: linear-gradient(135deg, var(--accent), #FF6B3D); }
.mock__q { padding: 16px 22px 6px; }
.mock__tag { display: inline-block; font-size: .72rem; font-weight: 800; color: var(--accent); background: #FFF0E4; padding: 4px 10px; border-radius: 999px; margin-bottom: 10px; }
.mock__q p { color: var(--ink); font-weight: 800; margin-bottom: 12px; }
.mock__opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mock__opts span {
  font-size: .85rem; font-weight: 700; color: var(--ink-soft);
  border: 1.6px solid var(--divider); border-radius: 12px; padding: 9px 12px; text-align: center;
}
.mock__opts .ok { border-color: var(--success); background: #E4F9EE; color: #14944A; }
.mock__bar { height: 8px; margin: 18px 22px 24px; background: var(--divider); border-radius: 999px; overflow: hidden; }
.mock__bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 999px; }

/* ---------- Steps / categorías ---------- */
.stepcard {
  position: relative;
  background: #fff; border: 1px solid var(--divider); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow-sm); overflow: hidden;
}
.stepcard__n {
  position: absolute; top: 8px; right: 18px;
  font-size: 3.6rem; font-weight: 900; color: var(--primary-soft); line-height: 1;
}
.stepcard h3 { position: relative; }
.stepcard p { position: relative; font-size: .95rem; margin: 0; }

.cats { margin-top: 46px; text-align: center; }
.cats__label { display: block; font-weight: 800; color: var(--ink-soft); margin-bottom: 18px; }
.cats__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 2px solid var(--c, var(--divider));
  color: var(--ink); font-weight: 800; font-size: .92rem;
  padding: 10px 18px; border-radius: 999px; box-shadow: var(--shadow-sm);
  transition: transform .18s ease;
}
.chip:hover { transform: translateY(-3px); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 14px; }
.faq details {
  background: #fff; border: 1px solid var(--divider);
  border-radius: 18px; padding: 4px 22px; box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease;
}
.faq details[open] { box-shadow: var(--shadow-md); }
.faq summary {
  cursor: pointer; list-style: none; font-weight: 800;
  padding: 16px 0; position: relative; padding-right: 34px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--primary); font-weight: 500; transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding-bottom: 18px; margin: 0; font-size: .96rem; }

/* ---------- CTA ---------- */
.cta { padding: clamp(56px, 8vw, 100px) 0; }
.cta__inner {
  position: relative;
  text-align: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 55%, #4A3BC4 100%);
  border-radius: 36px;
  padding: clamp(40px, 6vw, 70px) 30px;
  color: #fff;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.cta__inner::before, .cta__inner::after {
  content: ''; position: absolute; border-radius: 50%;
  background: rgba(255,255,255,.10);
}
.cta__inner::before { width: 260px; height: 260px; top: -110px; left: -80px; }
.cta__inner::after { width: 340px; height: 340px; bottom: -160px; right: -110px; }
.cta__mascot { position: relative; z-index: 1; animation: hover 5s ease-in-out infinite; }
.cta h2 { position: relative; z-index: 1; color: #fff; }
.cta p { position: relative; z-index: 1; color: rgba(255,255,255,.86); max-width: 34rem; margin-inline: auto; }
.cta__actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin: 28px 0 20px; }
.cta__note { position: relative; z-index: 1; color: rgba(255,255,255,.7); font-weight: 700; letter-spacing: .06em; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--divider); padding: 34px 0 46px; background: rgba(255,255,255,.6); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 22px; font-weight: 700; font-size: .9rem; color: var(--ink-soft); }
.footer__links a:hover { color: var(--primary-dark); }
.footer__copy { font-size: .85rem; color: var(--ink-faint); margin: 0; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 140%);
  background: var(--ink); color: #fff; font-weight: 700; font-size: .92rem;
  padding: 13px 24px; border-radius: 999px; box-shadow: var(--shadow-md);
  transition: transform .35s cubic-bezier(.2,.9,.3,1.4); z-index: 100;
}
.toast.is-visible { transform: translate(-50%, 0); }

/* ---------- Reveal ---------- */
html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
html.js .reveal[data-delay="1"] { transition-delay: .12s; }
html.js .reveal[data-delay="2"] { transition-delay: .24s; }
html.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html.js .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; gap: 30px; }
  .hero__visual { min-height: 400px; }
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .duel { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 720px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute; top: 74px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: rgba(255,255,255,.97); border-bottom: 1px solid var(--divider);
    padding: 14px 20px 22px; box-shadow: var(--shadow-md);
    display: none;
  }
  .nav.is-open .nav__links { display: flex; }
  .nav__links a:not(.btn) { padding: 12px 4px; }
  .nav__cta { margin-top: 8px; }
  .grid--3 { grid-template-columns: 1fr; }
  .hero__facts { gap: 22px; }
  .float { transform: scale(.9); }
  .float--streak { right: -6px; }
  .band__grid { justify-content: center; }
  .footer__inner { flex-direction: column; text-align: center; }
}
