/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --navy-950: #05082033;
  --navy-900: #060b28;
  --navy-800: #0a1440;
  --navy-700: #0f1e58;
  --navy-600: #16297a;
  --navy-500: #1e3aa0;
  --blue-glow: #2f5fe0;

  --gold-300: #fff3c4;
  --gold-400: #ffe27a;
  --gold-500: #ffc93c;
  --gold-600: #f5a623;
  --gold-700: #d97e0a;
  --gold-900: #7a4b06;

  --cream: #fff8ea;
  --white: #ffffff;
  --ink: #071230;
  --ink-soft: #1a2550;
  --muted: #aeb9e0;
  --muted-2: #7f8cc2;
  --line: rgba(255, 255, 255, 0.14);

  --wa-green: #25d366;
  --wa-green-dark: #128c4a;

  --font-display: "Baloo 2", "Fredoka", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;

  --container: 1180px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--cream);
  background: var(--navy-900);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.05; font-family: var(--font-display); }
ul { list-style: none; padding: 0; }
::selection { background: var(--gold-500); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--gold-400);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--gold-400); color: var(--ink);
  z-index: 9999; border-radius: 8px; font-weight: 700;
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}
.section {
  position: relative;
  padding-block: 3.5rem;
}
.section-head {
  text-align: center;
  max-width: 44rem;
  margin-inline: auto;
  margin-bottom: 2.25rem;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold-400);
  background: rgba(255, 201, 60, 0.1);
  border: 1px solid rgba(255, 201, 60, 0.3);
  padding: .4rem .85rem;
  border-radius: 999px;
  margin-bottom: .9rem;
}
.section-title {
  font-size: clamp(1.7rem, 5.5vw, 2.6rem);
  color: var(--white);
  margin-bottom: .6rem;
}
.section-title em {
  font-style: normal;
  color: var(--gold-400);
}
.section-sub {
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 38rem;
  margin-inline: auto;
}
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* =============================================================
   4. Buttons & badges
   ============================================================= */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: .95rem 1.6rem;
  border-radius: 999px;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), filter .25s var(--ease-out);
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }

.btn-buy {
  background: linear-gradient(180deg, #34e07a 0%, var(--wa-green) 55%, var(--wa-green-dark) 100%);
  color: #06280f;
  box-shadow: 0 10px 24px rgba(18, 140, 74, 0.45), inset 0 1px 0 rgba(255,255,255,.4);
}
.btn-buy:hover { transform: translateY(-2px); filter: brightness(1.05); }

.btn-community {
  background: transparent;
  color: var(--cream);
  border: 2px solid rgba(255, 255, 255, 0.35);
}
.btn-community:hover { border-color: var(--gold-400); color: var(--gold-300); transform: translateY(-2px); }

.btn-gold {
  background: linear-gradient(180deg, var(--gold-300) 0%, var(--gold-500) 45%, var(--gold-700) 100%);
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(217, 126, 10, 0.4), inset 0 1px 0 rgba(255,255,255,.6);
}
.btn-gold:hover { transform: translateY(-2px); filter: brightness(1.04); }

.btn-block { width: 100%; }
.btn-sm { padding: .7rem 1.2rem; font-size: .9rem; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  justify-content: center;
}

.wa-icon { width: 1.15em; height: 1.15em; flex: none; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem 1rem;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--line);
  font-size: .85rem;
  color: var(--cream);
}

/* =============================================================
   5. Marquee light frame (signature look)
   ============================================================= */
.marquee-frame {
  position: relative;
  border-radius: var(--radius-lg);
  border: 3px solid var(--gold-500);
  box-shadow:
    0 0 0 6px var(--navy-700),
    0 0 0 9px var(--gold-600),
    0 20px 60px rgba(0,0,0,.5);
}
.marquee-frame::before {
  content: "";
  position: absolute;
  inset: -9px;
  border-radius: calc(var(--radius-lg) + 9px);
  background-image: radial-gradient(circle, var(--gold-300) 0 2.6px, transparent 2.8px);
  background-size: 26px 26px;
  background-repeat: round;
  padding: 0;
  animation: bulbChase 1.4s steps(2) infinite;
  opacity: .9;
  pointer-events: none;
}
@keyframes bulbChase {
  0%, 100% { filter: drop-shadow(0 0 4px var(--gold-400)); opacity: .55; }
  50% { filter: drop-shadow(0 0 9px var(--gold-300)); opacity: 1; }
}

/* =============================================================
   6. Header / Nav
   ============================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  padding-block: .85rem;
  background: rgba(6, 11, 40, 0.65);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease-out), background .3s var(--ease-out);
}
.site-header.is-scrolled {
  border-color: var(--line);
  background: rgba(6, 11, 40, 0.92);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.1;
  color: var(--white);
}
.brand-mark {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: linear-gradient(160deg, var(--gold-300), var(--gold-600));
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 14px rgba(255, 201, 60, .35);
  flex: none;
}
.brand span { color: var(--gold-400); }

.main-nav {
  display: none;
  align-items: center;
  gap: 1.6rem;
}
.main-nav a {
  font-size: .92rem;
  font-weight: 600;
  color: var(--muted);
  transition: color .2s var(--ease-out);
}
.main-nav a:hover { color: var(--gold-400); }

.header-ctas { display: none; align-items: center; gap: .65rem; }

.nav-toggle {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--line);
}
.nav-toggle svg { width: 20px; height: 20px; }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: .1rem;
  padding-top: 1rem;
  margin-top: .85rem;
  border-top: 1px solid var(--line);
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a {
  padding: .75rem .25rem;
  font-weight: 600;
  color: var(--cream);
  border-bottom: 1px solid var(--line);
}
.mobile-menu .btn-row { margin-top: .9rem; }

/* =============================================================
   7. Hero
   ============================================================= */
.hero {
  position: relative;
  padding-block: 2.5rem 3rem;
  overflow: clip;
}
.hero-glow {
  position: absolute;
  inset: -10% -20% auto -20%;
  height: 640px;
  background:
    radial-gradient(closest-side, rgba(47, 95, 224, .55), transparent 70%),
    radial-gradient(closest-side at 70% 30%, rgba(255, 201, 60, .18), transparent 65%);
  filter: blur(10px);
  z-index: 0;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 46rem;
  margin-inline: auto;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(37, 211, 102, .14);
  border: 1px solid rgba(37, 211, 102, .4);
  color: #6dffb0;
  font-weight: 700;
  font-size: .8rem;
  padding: .4rem .9rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}
.hero-badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #4bff9a;
  box-shadow: 0 0 0 0 rgba(75,255,154,.6);
  animation: pulseDot 1.8s infinite;
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(75,255,154,.55); }
  70% { box-shadow: 0 0 0 8px rgba(75,255,154,0); }
  100% { box-shadow: 0 0 0 0 rgba(75,255,154,0); }
}

.hero-title {
  font-size: clamp(2.3rem, 9vw, 3.9rem);
  font-weight: 800;
  letter-spacing: -.01em;
  background: linear-gradient(180deg, var(--gold-300) 0%, var(--gold-500) 55%, var(--gold-700) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 0 rgba(122, 75, 6, .35), 0 10px 30px rgba(0,0,0,.4);
  margin-bottom: .85rem;
}
.hero-logo {
  width: min(100%, 14rem);
  height: auto;
  margin-inline: auto;
  filter: drop-shadow(0 14px 30px rgba(0,0,0,.45));
}
.hero-title small {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--cream);
  -webkit-text-fill-color: var(--cream);
  margin-top: .4rem;
  letter-spacing: 0;
}

.hero-sub {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 34rem;
  margin-inline: auto 1.6rem;
  margin-bottom: 1.6rem;
}
.hero-sub strong { color: var(--gold-300); }

.hero-ctas { margin-bottom: 1.6rem; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  justify-content: center;
  margin-bottom: 1.9rem;
}

.hero-countdown {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: .7rem;
  padding: 1.1rem 1.4rem;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line);
}
.hero-countdown-label {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted-2);
  font-weight: 700;
}
.hero-countdown-grid {
  display: flex;
  gap: .55rem;
}
.hero-countdown-grid div {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 3.1rem;
  padding: .5rem .3rem;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--navy-600), var(--navy-800));
  border: 1px solid var(--line);
}
.hero-countdown-grid strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--gold-400);
}
.hero-countdown-grid span {
  font-size: .62rem;
  text-transform: uppercase;
  color: var(--muted-2);
  letter-spacing: .05em;
}

/* =============================================================
   7.5 Resultado del sorteo
   ============================================================= */
.result-banner {
  padding-block: 0 1.6rem;
}
.results-grid {
  display: grid;
  gap: 1.1rem;
}
.result-card {
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.5rem 1.7rem;
  text-align: center;
  background:
    radial-gradient(circle at 25% 0%, rgba(37, 211, 102, .22), transparent 55%),
    linear-gradient(165deg, var(--navy-700), var(--navy-900));
  border: 2px solid var(--wa-green);
  box-shadow: 0 16px 40px rgba(0,0,0,.4);
}
.result-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #6dffb0;
  background: rgba(37, 211, 102, .14);
  border: 1px solid rgba(37, 211, 102, .4);
  padding: .4rem .9rem;
  border-radius: 999px;
  margin-bottom: .8rem;
}
.result-date {
  color: var(--muted);
  font-size: .88rem;
  margin-bottom: 1.1rem;
}
.result-number-label {
  display: block;
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted-2);
  font-weight: 700;
  margin-bottom: .4rem;
}
.result-number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 11vw, 3.4rem);
  font-weight: 800;
  letter-spacing: .06em;
  background: linear-gradient(180deg, var(--gold-300) 0%, var(--gold-500) 55%, var(--gold-700) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 0 rgba(122, 75, 6, .35);
}

.result-winner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem;
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(255, 255, 255, .18);
}
.result-winner-field {
  flex: 1 1 10rem;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm, 10px);
  padding: .55rem .8rem;
}
.result-winner-field span {
  display: block;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted-2);
  font-weight: 700;
  margin-bottom: .2rem;
}
.result-winner-field strong {
  display: block;
  font-size: 1rem;
  color: var(--cream);
}

.result-card.is-no-winner {
  border-color: #ff6b6b;
}
.result-card.is-no-winner .result-badge {
  color: #ffb3b3;
  background: rgba(255, 107, 107, .14);
  border-color: rgba(255, 107, 107, .4);
}
.result-drawn-number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 11vw, 3.4rem);
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--cream);
  text-shadow: 0 2px 16px rgba(255, 107, 107, .45), 0 2px 0 rgba(0,0,0,.35);
  margin-bottom: .7rem;
}
.result-no-winner {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 6vw, 1.8rem);
  font-weight: 800;
  color: #ff6b6b;
  margin-bottom: .5rem;
}
.result-accum {
  color: var(--cream);
  font-size: .92rem;
  font-weight: 600;
  max-width: 26rem;
  margin-inline: auto;
}

/* =============================================================
   8. Stats bar
   ============================================================= */
.stats-bar {
  padding-block: 2rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.03), transparent);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}
.stat {
  text-align: center;
}
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 5vw, 2.1rem);
  color: var(--gold-400);
}
.stat span {
  font-size: .82rem;
  color: var(--muted);
}

/* =============================================================
   9. How it works
   ============================================================= */
.steps {
  display: grid;
  gap: 1.1rem;
}
.step {
  position: relative;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.3rem;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
}
.step-num {
  flex: none;
  width: 2.6rem; height: 2.6rem;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--ink);
  background: linear-gradient(180deg, var(--gold-300), var(--gold-600));
}
.step h3 { font-size: 1.05rem; color: var(--white); margin-bottom: .3rem; }
.step p { color: var(--muted); font-size: .95rem; }

/* =============================================================
   10. Prize cards ("Bendecidos por la Casa")
   ============================================================= */
.prizes-grid {
  display: grid;
  gap: 1.1rem;
}
.prize-card {
  position: relative;
  border-radius: var(--radius-md);
  padding: 1.4rem 1.3rem 1.5rem;
  background: linear-gradient(165deg, var(--navy-700), var(--navy-800));
  border: 1px solid var(--line);
  overflow: clip;
}
.prize-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% -10%, rgba(255,201,60,.22), transparent 55%);
  pointer-events: none;
}
.prize-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.prize-sorteo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--navy-900);
  background: var(--gold-400);
  padding: .3rem .7rem;
  border-radius: 999px;
}
.prize-date {
  font-size: .78rem;
  color: var(--muted-2);
  font-weight: 600;
}
.prize-icons {
  display: flex;
  gap: .5rem;
  margin-bottom: .85rem;
}
.prize-icons span {
  width: 2.6rem; height: 2.6rem;
  border-radius: 12px;
  display: grid; place-items: center;
  font-size: 1.3rem;
  background: rgba(255,255,255,.07);
  border: 1px solid var(--line);
}
.prize-visual {
  width: 100%;
  height: auto;
  margin-bottom: .85rem;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,.35));
}
.prize-name {
  font-size: 1.35rem;
  color: var(--white);
  margin-bottom: .2rem;
}
.prize-desc { color: var(--muted); font-size: .88rem; }

.prize-card.is-completed { border-color: rgba(255,255,255,.06); }
.prize-card.is-completed::after { opacity: .25; }
.prize-card.is-completed .prize-visual { filter: grayscale(1) brightness(.65); }
.prize-card.is-completed .prize-name { color: var(--muted); }
.prize-card.is-completed .prize-desc { opacity: .6; }
.prize-completed-badge {
  position: absolute;
  top: .9rem;
  right: .9rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .68rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--cream);
  background: rgba(6, 11, 40, .85);
  border: 1px solid rgba(255,255,255,.25);
  padding: .35rem .7rem;
  border-radius: 999px;
}

/* Grand prize */
.grand-prize {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 2.1rem 1.5rem;
  background:
    radial-gradient(circle at 20% 0%, rgba(255,201,60,.28), transparent 55%),
    linear-gradient(165deg, var(--navy-700), var(--navy-900));
  border: 2px solid var(--gold-500);
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
}
.grand-prize .kicker { background: rgba(255,201,60,.16); }
.grand-prize-title {
  font-size: clamp(1.8rem, 6vw, 2.5rem);
  background: linear-gradient(180deg, var(--gold-300), var(--gold-600));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: .5rem;
}
.grand-prize-loc {
  color: var(--cream);
  font-weight: 600;
  margin-bottom: .3rem;
}
.grand-prize-date {
  color: var(--muted);
  font-size: .92rem;
  margin-bottom: 1.4rem;
}
.grand-prize-visual {
  width: 100%;
  max-width: 20rem;
  margin-inline: auto 1.5rem;
  margin-bottom: 1.5rem;
}
.grand-prize-visual img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,.5));
}

/* =============================================================
   11. Numbers picker
   ============================================================= */
.numbers-panel {
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.1rem 1.6rem;
  background: linear-gradient(180deg, var(--navy-700), var(--navy-800));
  border: 1px solid var(--line);
}
.numbers-toolbar {
  display: flex;
  flex-direction: column;
  gap: .8rem;
  margin-bottom: 1.1rem;
}
.numbers-search {
  display: flex;
  gap: .5rem;
}
.numbers-search input {
  flex: 1;
  min-width: 0;
  padding: .8rem 1rem;
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: .08em;
}
.numbers-search input::placeholder { color: var(--muted-2); letter-spacing: normal; font-family: var(--font-body); }
.numbers-search button {
  padding-inline: 1.1rem;
  border-radius: 12px;
  background: var(--gold-500);
  color: var(--ink);
  font-weight: 700;
  white-space: nowrap;
}
.numbers-random {
  align-self: center;
}

.numbers-status {
  min-height: 1.1em;
  text-align: center;
  font-size: .85rem;
  font-weight: 700;
  margin-bottom: .6rem;
}
.numbers-status.is-taken { color: #ff6b6b; }
.numbers-status.is-found { color: var(--gold-300); }

.numbers-legend {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.2rem;
  justify-content: center;
  font-size: .78rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
.numbers-legend .swatch {
  display: inline-block;
  width: .7rem; height: .7rem;
  border-radius: 3px;
  margin-right: .35rem;
  vertical-align: middle;
}
.swatch-gold { background: linear-gradient(180deg, var(--gold-300), var(--gold-600)); }
.swatch-red { background: #ff3b3b; }

.numbers-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  margin-bottom: .9rem;
}
.numbers-pagination button {
  width: 2.4rem; height: 2.4rem;
  border-radius: 10px;
  background: rgba(255,255,255,.07);
  border: 1px solid var(--line);
  display: grid; place-items: center;
}
.numbers-pagination button:disabled { opacity: .35; }
.numbers-pagination-label {
  font-size: .85rem;
  color: var(--muted);
  text-align: center;
  flex: 1;
}
.numbers-pagination-label strong { color: var(--cream); }

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: .45rem;
  margin-bottom: 1.2rem;
}
.num-btn {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: .82rem;
  color: var(--cream);
  transition: transform .15s var(--ease-out), background .15s var(--ease-out), border-color .15s var(--ease-out);
}
.num-btn:hover { border-color: var(--gold-400); transform: translateY(-1px); }
.num-btn.is-selected {
  background: linear-gradient(180deg, var(--gold-300), var(--gold-600));
  color: var(--ink);
  border-color: var(--gold-300);
  font-weight: 800;
  box-shadow: 0 6px 16px rgba(255,201,60,.35);
}
.num-btn.is-unavailable {
  background: rgba(255, 59, 59, .12);
  border-color: rgba(255, 90, 90, .5);
  color: rgba(255, 214, 214, .75);
  text-decoration: line-through;
  cursor: not-allowed;
}
.num-btn.is-unavailable:hover { border-color: rgba(255, 90, 90, .5); transform: none; }
.num-btn .num-x {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: #ff3b3b;
  color: #2a0505;
  font-size: .66rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 6px rgba(255,59,59,.55);
}

.numbers-selection {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.1rem;
  min-height: 2.4rem;
}
.numbers-selection .empty {
  color: var(--muted-2);
  font-size: .88rem;
  padding-block: .5rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem .5rem .4rem .8rem;
  border-radius: 999px;
  background: rgba(255,201,60,.14);
  border: 1px solid rgba(255,201,60,.4);
  font-family: var(--font-display);
  font-size: .85rem;
  color: var(--gold-300);
}
.chip button {
  width: 1.3rem; height: 1.3rem;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  display: grid; place-items: center;
  font-size: .75rem;
  color: var(--cream);
}

.numbers-footnote {
  font-size: .8rem;
  color: var(--muted-2);
  text-align: center;
  margin-top: .8rem;
}

/* =============================================================
   12. Rules list
   ============================================================= */
.rules-card {
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.3rem;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
}
.rules-list {
  display: grid;
  gap: .9rem;
}
.rules-list li {
  display: flex;
  gap: .8rem;
  align-items: flex-start;
  font-size: .96rem;
  color: var(--cream);
}
.rules-list li strong { color: var(--gold-400); }
.rules-check {
  flex: none;
  width: 1.6rem; height: 1.6rem;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(37, 211, 102, .18);
  color: #4bff9a;
  font-size: .8rem;
  margin-top: .1rem;
}

/* =============================================================
   13. Community banner
   ============================================================= */
.community-banner {
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.4rem;
  text-align: center;
  background:
    radial-gradient(circle at 15% 20%, rgba(37,211,102,.25), transparent 55%),
    linear-gradient(165deg, var(--navy-700), var(--navy-900));
  border: 1px solid var(--line);
}
.community-banner h2 { color: var(--white); margin-bottom: .5rem; font-size: clamp(1.5rem, 5vw, 2.1rem); }
.community-banner p { color: var(--muted); max-width: 32rem; margin-inline: auto 1.4rem; margin-bottom: 1.4rem; }

/* =============================================================
   14. FAQ
   ============================================================= */
.faq-list {
  display: grid;
  gap: .7rem;
}
.faq-item {
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
  overflow: clip;
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  text-align: left;
  font-weight: 700;
  color: var(--cream);
  font-size: .98rem;
}
.faq-q .icon {
  flex: none;
  width: 1.6rem; height: 1.6rem;
  border-radius: 50%;
  background: rgba(255,201,60,.15);
  color: var(--gold-400);
  display: grid; place-items: center;
  transition: transform .3s var(--ease-out);
  font-size: 1rem;
}
.faq-item.is-open .faq-q .icon { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s var(--ease-out);
}
.faq-a p {
  padding: 0 1.2rem 1.1rem;
  color: var(--muted);
  font-size: .92rem;
}

/* =============================================================
   14.5 Términos y condiciones
   ============================================================= */
.terms-details {
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
  padding: 1.3rem 1.3rem 1.4rem;
}
.terms-details summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--gold-400);
  font-size: 1.02rem;
  list-style: none;
}
.terms-details summary::-webkit-details-marker { display: none; }
.terms-details summary::after {
  content: "+";
  flex: none;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--gold-400);
  transition: transform .3s var(--ease-out);
}
.terms-details[open] summary::after { transform: rotate(45deg); }

.terms-body {
  margin-top: 1.3rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.7;
}
.terms-body h3 {
  font-family: var(--font-display);
  font-size: .98rem;
  color: var(--cream);
  margin-top: 1.5rem;
  margin-bottom: .45rem;
}
.terms-body h3:first-child { margin-top: 0; }
.terms-body p { margin-bottom: .4rem; }
.terms-body ul { margin: .3rem 0 0; padding-left: 1.15rem; list-style: disc; }
.terms-body li { margin-bottom: .4rem; }

/* =============================================================
   15. Final CTA
   ============================================================= */
.final-cta {
  text-align: center;
  padding-block: 3rem 3.5rem;
}
.final-cta h2 {
  font-size: clamp(1.8rem, 6vw, 2.6rem);
  margin-bottom: .7rem;
}
.final-cta p { color: var(--muted); max-width: 30rem; margin-inline: auto 1.6rem; margin-bottom: 1.6rem; }

/* =============================================================
   16. Footer
   ============================================================= */
.site-footer {
  padding-block: 2.5rem 6.5rem;
  border-top: 1px solid var(--line);
  background: var(--navy-950, #050820);
}
.footer-top {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  margin-bottom: 1.6rem;
}
.footer-brand { max-width: 24rem; }
.footer-brand p { color: var(--muted); font-size: .9rem; margin-top: .5rem; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem 1.4rem;
}
.footer-links a { font-size: .88rem; color: var(--muted); }
.footer-links a:hover { color: var(--gold-400); }
.footer-legal {
  font-size: .78rem;
  color: var(--muted-2);
  border-top: 1px solid var(--line);
  padding-top: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

/* =============================================================
   17. Sticky mobile CTA bar + floating WhatsApp button
   ============================================================= */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 70;
  display: flex;
  gap: .6rem;
  padding: .7rem .9rem calc(.7rem + env(safe-area-inset-bottom));
  background: rgba(6, 11, 40, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.sticky-cta .btn { flex: 1; padding-block: .8rem; font-size: .92rem; }

.wa-float {
  position: fixed;
  right: 1rem;
  bottom: 5.4rem;
  z-index: 65;
  width: 3.4rem; height: 3.4rem;
  border-radius: 50%;
  background: linear-gradient(180deg, #34e07a, var(--wa-green));
  display: grid; place-items: center;
  box-shadow: 0 10px 26px rgba(18,140,74,.5);
  animation: floatBob 2.6s ease-in-out infinite;
}
.wa-float svg { width: 1.7rem; height: 1.7rem; }
@keyframes floatBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* =============================================================
   18. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .numbers-grid { grid-template-columns: repeat(8, 1fr); }
  .btn-row { flex-wrap: nowrap; }
  .grand-prize-visual { max-width: 24rem; }
}

@media (min-width: 720px) {
  .prizes-grid { grid-template-columns: repeat(2, 1fr); }
  .results-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .footer-top { flex-direction: row; justify-content: space-between; align-items: flex-start; }
  .numbers-toolbar { flex-direction: row; align-items: center; }
  .numbers-search { flex: 1; }
}

@media (min-width: 960px) {
  .main-nav { display: flex; }
  .header-ctas { display: flex; }
  .nav-toggle { display: none; }
  .mobile-menu { display: none !important; }
  .sticky-cta { display: none; }
  .wa-float { bottom: 1.6rem; }

  .hero { padding-block: 4.5rem 5rem; }
  .hero-inner { max-width: 54rem; }
  .prizes-grid { grid-template-columns: repeat(4, 1fr); }
  .numbers-grid { grid-template-columns: repeat(10, 1fr); }
  .grand-prize { padding: 3rem; }
  .grand-prize-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; text-align: left; }
  .grand-prize .kicker, .grand-prize-title, .grand-prize-loc, .grand-prize-date { text-align: left; }
  .grand-prize-visual { margin: 0; max-width: none; }
  .grand-prize-ctas { justify-content: flex-start; }
}

@media (min-width: 1280px) {
  .hero-title { font-size: clamp(3.2rem, 6vw, 4.6rem); }
  .section { padding-block: 5rem; }
}

/* =============================================================
   19. Reduced motion — only truly intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-frame::before { animation: none; }
  .wa-float { animation: none; }
}
