/* ─── Design Tokens ──────────────────────────────────────────────── */
:root {
  --brand-blue: #2875d7;
  --dark: #040608;
  --card-bg: rgba(4, 12, 28, 0.92);
  --card-border: rgba(80, 140, 255, 0.18);
  --card-shine: rgba(60, 120, 255, 0.05);
  --white-soft: #edeaf6;
  --dim: rgba(160, 185, 215, 0.36);
}

/* ─── Per-promo Accent Tokens ─────────────────────────────────────── */
.promo-golden {
  --accent: #f5df94;
  --accent-glow: rgba(245, 223, 148, 0.44);
  --accent-mid: #d4a92e;
  --accent-dim: rgba(245, 223, 148, 0.09);
  --accent-border: rgba(245, 223, 148, 0.28);
}

.promo-spins {
  --accent: #4dd2ff;
  --accent-glow: rgba(77, 210, 255, 0.44);
  --accent-mid: #22aadd;
  --accent-dim: rgba(77, 210, 255, 0.09);
  --accent-border: rgba(77, 210, 255, 0.28);
}

/* ─── Reset ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; }
html, body { margin: 0; min-height: 100%; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: var(--dark);
  color: var(--white-soft);
  overflow-x: hidden;
}

/* ─── Animated Background ─────────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 90% 52% at 50% -8%, var(--brand-blue) 0%, rgba(6, 20, 50, 0.65) 32%, transparent 58%),
    radial-gradient(ellipse 55% 45% at 108% 85%, rgba(40, 117, 215, 0.2) 0%, transparent 52%),
    radial-gradient(ellipse 42% 38% at -8% 32%, rgba(40, 117, 215, 0.12) 0%, transparent 48%),
    radial-gradient(ellipse 115% 70% at 50% 115%, #060106 0%, var(--dark) 55%);
  animation: bg-breathe 14s ease-in-out infinite alternate;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 38% 30% at 8% 82%, rgba(245, 223, 148, 0.07) 0%, transparent 65%),
    radial-gradient(ellipse 32% 26% at 94% 14%, rgba(77, 210, 255, 0.07) 0%, transparent 60%);
  animation: accent-breathe 9s ease-in-out infinite alternate;
}

@keyframes bg-breathe {
  from { transform: scale(1); }
  to   { transform: scale(1.05) translateY(-10px); }
}

@keyframes accent-breathe {
  from { opacity: 0.45; }
  to   { opacity: 1; }
}

/* ─── Page Layout ─────────────────────────────────────────────────── */
.page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1rem, 3vw, 1.5rem);
  gap: clamp(1.25rem, 3vw, 1.75rem);
}

/* ─── Header ──────────────────────────────────────────────────────── */
.header {
  width: 100%;
  max-width: 480px;
  text-align: center;
}

.logo {
  max-width: min(88vw, 360px);
  height: auto;
  display: inline-block;
  filter:
    drop-shadow(0 6px 20px rgba(0, 0, 0, 0.72))
    drop-shadow(0 0 36px rgba(40, 117, 215, 0.36));
}

/* ─── Card ────────────────────────────────────────────────────────── */
.main {
  width: 100%;
  max-width: 540px;
  position: relative;
  background: var(--card-bg);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-radius: 20px;
  padding: clamp(1.75rem, 5vw, 2.5rem) clamp(1.5rem, 4vw, 2.25rem);
  border: 1px solid var(--card-border);
  box-shadow:
    0 36px 80px rgba(0, 0, 0, 0.72),
    0 0 80px rgba(40, 117, 215, 0.12),
    inset 0 1px 0 rgba(120, 180, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.45);
  text-align: center;
}

.main::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 6%;
  right: 6%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(245, 223, 148, 0.28) 22%,
    rgba(245, 223, 148, 0.65) 38%,
    rgba(77, 210, 255, 0.65) 62%,
    rgba(77, 210, 255, 0.28) 78%,
    transparent 100%
  );
  animation: border-shimmer 4s ease-in-out infinite;
}

.main::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(175deg, var(--card-shine) 0%, transparent 40%, rgba(0, 0, 0, 0.15) 100%);
  pointer-events: none;
}

.main > * { position: relative; z-index: 1; }

@keyframes border-shimmer {
  0%, 100% { opacity: 0.35; }
  50%       { opacity: 1; }
}

/* ─── Title ───────────────────────────────────────────────────────── */
.title {
  margin: 0 0 0.55rem;
  font-family: 'Bebas Neue', system-ui, sans-serif;
  font-size: clamp(2.4rem, 7.5vw, 3.2rem);
  letter-spacing: 0.07em;
  line-height: 1;
  color: var(--white-soft);
  text-shadow:
    0 0 36px rgba(120, 160, 255, 0.28),
    0 2px 12px rgba(0, 0, 0, 0.8);
}

/* ─── Lead ────────────────────────────────────────────────────────── */
.lead {
  margin: 0 0 1.5rem;
  font-size: clamp(0.83rem, 2.3vw, 0.93rem);
  font-weight: 500;
  line-height: 1.65;
  color: rgba(215, 228, 248, 0.65);
}

.lead strong {
  color: var(--white-soft);
  font-weight: 700;
}

/* ─── Promos Container ────────────────────────────────────────────── */
.promos {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 1.5rem;
}

/* ─── Promo Card (seleccionable) ──────────────────────────────────── */
.promo {
  /* Button reset */
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: center;

  /* Layout */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  padding: 1.2rem 0.75rem;
  width: 100%;

  /* Visual */
  position: relative;
  border: 1.5px solid rgba(120, 160, 255, 0.1);
  border-radius: 14px;

  /* Transitions */
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    opacity 0.22s ease,
    transform 0.18s ease;
}

.promo-golden { border-color: rgba(245, 223, 148, 0.1); }
.promo-spins  { border-color: rgba(77, 210, 255, 0.1); }

/* Hover */
.promo:hover {
  transform: translateY(-2px);
}

.promo-golden:hover { border-color: rgba(245, 223, 148, 0.28); box-shadow: 0 4px 20px rgba(245,223,148,0.07); }
.promo-spins:hover  { border-color: rgba(77, 210, 255, 0.28);  box-shadow: 0 4px 20px rgba(77,210,255,0.07); }

/* Selected */
.promo[aria-pressed="true"] {
  border-color: var(--accent);
  box-shadow:
    0 0 0 1px var(--accent),
    0 6px 28px var(--accent-dim),
    inset 0 0 0 999px rgba(255,255,255,0.03);
  transform: translateY(-2px);
}

/* Dim the other card when one is selected */
.promos:has([aria-pressed="true"]) .promo[aria-pressed="false"] {
  opacity: 0.38;
  transform: none;
}

/* ─── Checkmark indicator ─────────────────────────────────────────── */
.promo-check {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  width: 22px;
  height: 22px;
  color: var(--accent);
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.promo[aria-pressed="true"] .promo-check {
  opacity: 1;
  transform: scale(1);
}

/* ─── Promo Icons ─────────────────────────────────────────────────── */
.promo-icon-wrap,
.spin-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.spin-wrap {
  animation: wheel-spin 8s linear infinite;
}

.promo-icon {
  width: 52px;
  height: 52px;
  color: var(--accent);
  display: block;
  filter:
    drop-shadow(0 0 12px var(--accent-glow))
    drop-shadow(0 0 26px var(--accent-dim));
  animation: icon-glow 3s ease-in-out infinite;
}

@keyframes icon-glow {
  0%, 100% {
    filter: drop-shadow(0 0 12px var(--accent-glow)) drop-shadow(0 0 26px var(--accent-dim));
  }
  50% {
    filter: drop-shadow(0 0 22px var(--accent-glow)) drop-shadow(0 0 50px var(--accent-glow));
  }
}

@keyframes wheel-spin {
  to { transform: rotate(360deg); }
}

/* ─── Promo Reward Text ───────────────────────────────────────────── */
.promo-reward {
  margin: 0;
  font-family: 'Bebas Neue', system-ui, sans-serif;
  font-size: clamp(1.85rem, 5.8vw, 2.4rem);
  letter-spacing: 0.07em;
  line-height: 1;
  color: var(--accent);
  text-shadow:
    0 0 18px var(--accent-glow),
    0 0 40px var(--accent-dim),
    0 2px 6px rgba(0, 0, 0, 0.6);
  animation: reward-pulse 2.8s ease-in-out infinite;
}

.promo-reward .num { font-size: 1.18em; }

@keyframes reward-pulse {
  0%, 100% {
    text-shadow: 0 0 16px var(--accent-glow), 0 0 36px var(--accent-dim), 0 2px 6px rgba(0,0,0,0.6);
  }
  50% {
    text-shadow: 0 0 28px var(--accent-glow), 0 0 62px var(--accent-glow), 0 2px 6px rgba(0,0,0,0.6);
  }
}

/* ─── Divider ─────────────────────────────────────────────────────── */
.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(160, 185, 215, 0.3);
  padding: 0.25rem 0;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(120, 160, 255, 0.13);
}

/* ─── Actions ─────────────────────────────────────────────────────── */
.actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}

/* ─── CTA Button ──────────────────────────────────────────────────── */
.cta {
  appearance: none;
  cursor: pointer;
  width: 100%;
  max-width: 320px;
  padding: 0.95rem 1.25rem;
  font-family: 'Bebas Neue', system-ui, sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  color: #fff;
  background: linear-gradient(160deg, #1a4f9a 0%, #0b3370 48%, #071f4a 100%);
  border: 1px solid transparent;
  border-radius: 12px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 8px 28px rgba(0, 20, 70, 0.55);
  transition:
    transform 0.18s ease,
    box-shadow 0.22s ease,
    filter 0.2s ease,
    opacity 0.22s ease,
    border-color 0.22s ease;
  position: relative;
  overflow: hidden;
}

/* Shimmer sweep */
.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 25%,
    rgba(255, 255, 255, 0.08) 50%,
    transparent 75%
  );
  transform: translateX(-120%);
  transition: transform 0.48s ease;
}

/* Disabled state */
.cta:disabled,
.cta[aria-disabled="true"] {
  opacity: 0.38;
  cursor: not-allowed;
  filter: none;
  transform: none !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 4px 12px rgba(0,20,70,0.3);
}

.cta:disabled::before { display: none; }

/* Enabled hover */
.cta:not(:disabled):hover {
  transform: translateY(-3px);
  filter: brightness(1.15);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 16px 38px rgba(0, 24, 80, 0.62),
    0 0 28px var(--cta-glow, rgba(100, 170, 255, 0.3));
}

.cta:not(:disabled):hover::before { transform: translateX(120%); }
.cta:not(:disabled):active        { transform: translateY(-1px); }

.cta:focus-visible {
  outline: 2px solid rgba(100, 180, 255, 0.8);
  outline-offset: 3px;
}

/* Accent color on CTA after selection */
.cta.cta-golden {
  border-color: rgba(245, 223, 148, 0.28);
  --cta-glow: rgba(245, 223, 148, 0.28);
}

.cta.cta-spins {
  border-color: rgba(77, 210, 255, 0.28);
  --cta-glow: rgba(77, 210, 255, 0.28);
}

.cta:focus-visible.cta-golden { outline-color: rgba(245, 223, 148, 0.8); }
.cta:focus-visible.cta-spins  { outline-color: rgba(77, 210, 255, 0.8); }

/* ─── Fine Print ──────────────────────────────────────────────────── */
.fine {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--dim);
  letter-spacing: 0.04em;
}

.mono {
  font-weight: 700;
  font-family: monospace;
  color: rgba(100, 198, 255, 0.58);
  letter-spacing: 0.02em;
}

/* ─── Footer ──────────────────────────────────────────────────────── */
.footer {
  font-family: 'Bebas Neue', system-ui, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  color: rgba(255, 255, 255, 0.18);
  padding-bottom: 0.5rem;
}

/* ─── Desktop: tarjetas lado a lado ──────────────────────────────── */
@media (min-width: 520px) {
  .main {
    max-width: 620px;
  }

  .promos {
    flex-direction: row;
    align-items: stretch;
  }

  .promo {
    flex: 1;
    padding: 1.25rem 0.85rem;
  }

  /* Divisor vertical */
  .divider {
    flex-direction: column;
    width: 2.5rem;
    align-self: stretch;
    gap: 0.5rem;
    padding: 0.5rem 0;
  }

  .divider::before,
  .divider::after {
    flex: 1;
    width: 1px;
    height: auto;
    align-self: center;
  }

  .divider span {
    writing-mode: vertical-lr;
    transform: rotate(180deg);
    font-size: 0.55rem;
  }
}

/* ─── Reduced Motion ──────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  body::before,
  body::after    { animation: none; }
  .main::before  { animation: none; }
  .spin-wrap     { animation: none; }
  .promo-icon    { animation: none; }
  .promo-reward  { animation: none; }
  .promo-check   { transition: none; }
  .promo         { transition: border-color 0.1s, box-shadow 0.1s, opacity 0.1s; }
}
