:root {
  --bg: #0b0f14;
  --fg: #f7f7f8;
  --muted: #9aa3aa;
  --card: #11161c;
  --accent: #3a7bd5; /* será ajustado con colores del logo vía JS */
  --accent-2: #2e5ea5;
  --shadow: 0 10px 30px rgba(0,0,0,0.3);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--fg);
  background: radial-gradient(1200px 600px at 10% 0%, rgba(58,123,213,0.15), transparent 40%),
              radial-gradient(900px 500px at 90% 10%, rgba(46,94,165,0.18), transparent 40%),
              var(--bg);
}

.container {
  width: min(1080px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: saturate(1.2) blur(8px);
  background: rgba(11,15,20,0.6);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  z-index: 10;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
}
.logo { height: 42px; width: auto; }
.logo.small { height: 32px; }
.nav a {
  color: var(--fg);
  text-decoration: none;
  margin-left: 18px;
  font-weight: 600;
  opacity: 0.85;
}
.nav a:hover { opacity: 1; color: var(--accent); }

.hero {
  padding: 64px 0 24px;
}
.hero-inner { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 32px; align-items: center; }
.hero-content h1 { font-size: clamp(28px, 4vw, 44px); margin: 0 0 8px; }
.subtitle { color: var(--muted); margin: 0 0 24px; }
.notice { color: var(--accent); font-weight: 600; margin: -6px 0 24px; }

.countdown {
  display: inline-flex; align-items: center;
  border-radius: 18px;
  padding: 16px 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow);
}
.time-box { text-align: center; min-width: 110px; }
.time-box span { display: block; font-size: clamp(36px, 6vw, 68px); font-weight: 700; letter-spacing: 1px; }
.time-box small { color: var(--muted); font-weight: 600; }
.sep {
  font-size: clamp(28px, 5vw, 44px);
  margin: 0 12px;
  color: var(--accent);
}
.countdown-status { margin-top: 12px; color: var(--accent); font-weight: 600; }

.cta-group { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 12px; text-decoration: none; font-weight: 700; }
.btn-primary { background: var(--accent); color: #0b0f14; }
.btn-secondary { border: 1px solid rgba(255,255,255,0.12); color: var(--fg); }
.btn:hover { transform: translateY(-1px); transition: 160ms ease; }

.hero-media { display: grid; place-items: center; }
.hero-image { max-width: 100%; border-radius: 16px; box-shadow: var(--shadow); border: 1px solid rgba(255,255,255,0.08); opacity: 1; transition: opacity 600ms ease; }

.section { padding: 42px 0; }
.section h2 { font-size: clamp(22px, 3vw, 32px); margin: 0 0 10px; }
.section-lead { color: var(--muted); margin-bottom: 22px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { background: var(--card); border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; padding: 16px; box-shadow: var(--shadow); display: grid; grid-template-columns: 54px 1fr; gap: 14px; align-items: start; }
.step-number { display: grid; place-items: center; height: 54px; width: 54px; border-radius: 12px; background: var(--accent); color: #0b0f14; font-weight: 800; }
.step h3 { margin: 0 0 6px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); }

.prize-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.prize-card { background: var(--card); border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.prize-card img { width: 100%; height: 220px; object-fit: cover; display: block; }
.prize-body { padding: 14px; }
.prize-body h3 { margin: 0 0 6px; }
.prize-body p { margin: 0; color: var(--muted); }

/* Sección ganador */
.winner-card { display: grid; gap: 10px; background: var(--card); border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; padding: 16px; box-shadow: var(--shadow); justify-items: center; text-align: center; }
.winner-card .label { color: var(--muted); font-weight: 700; }
.winner-name-wrapper { position: relative; }
.winner-name { font-size: clamp(24px, 4vw, 40px); font-weight: 800; letter-spacing: 0.5px; padding: 12px 14px; border-radius: 12px; background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)); border: 1px solid rgba(255,255,255,0.08); display: inline-block; margin: 0 auto; text-align: center; }
.winner-name.blurred { filter: blur(12px); }
.winner-mask { position: absolute; inset: 0; border-radius: 12px; pointer-events: none; background: repeating-linear-gradient(135deg, rgba(11,15,20,0.36) 0px, rgba(11,15,20,0.36) 8px, rgba(58,123,213,0.25) 8px, rgba(58,123,213,0.25) 16px); mix-blend-mode: lighten; }

.legal { background: var(--card); border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; margin-bottom: 12px; overflow: hidden; }
.legal > summary { cursor: pointer; padding: 14px 16px; font-weight: 700; list-style: none; }
.legal > summary::marker { display: none; }
.legal-content { padding: 0 16px 16px; color: var(--muted); }
.legal-content ul { margin: 0; padding-left: 16px; }

.site-footer { border-top: 1px solid rgba(255,255,255,0.08); margin-top: 24px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; }
.footer-links a { color: var(--muted); text-decoration: none; margin-left: 16px; }
.footer-links a:hover { color: var(--accent); }

/* Ruleta del ganador */
.wheel-card { display: grid; gap: 14px; background: var(--card); border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; padding: 16px; box-shadow: var(--shadow); justify-items: center; text-align: center; }
.wheel { position: relative; width: min(320px, 80vw); height: min(320px, 80vw); }
.wheel-ring { position: absolute; inset: 0; border-radius: 50%; border: 10px solid rgba(255,255,255,0.12); background: conic-gradient(from 0deg, var(--accent) 0 10%, rgba(255,255,255,0.08) 10% 20%, var(--accent-2) 20% 30%, rgba(255,255,255,0.08) 30% 40%, var(--accent) 40% 50%, rgba(255,255,255,0.08) 50% 60%, var(--accent-2) 60% 70%, rgba(255,255,255,0.08) 70% 80%, var(--accent) 80% 90%, rgba(255,255,255,0.08) 90% 100%); filter: drop-shadow(0 10px 20px rgba(0,0,0,0.35)); }
.wheel-center { position: absolute; inset: 18% 18%; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)); border: 1px solid rgba(255,255,255,0.08); }
.wheel-label { font-weight: 800; font-size: clamp(16px, 4vw, 24px); padding: 12px; }
.wheel-pointer { position: absolute; top: -6px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 10px solid transparent; border-right: 10px solid transparent; border-bottom: 16px solid var(--accent); filter: drop-shadow(0 6px 10px rgba(0,0,0,0.4)); }
.wheel-ring.spinning { animation: spin 1.2s linear infinite; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .steps, .prize-grid { grid-template-columns: 1fr; }
}

/* Ajustes móviles */
@media (max-width: 720px) {
  .header-inner { flex-wrap: wrap; }
  .logo { height: 36px; }
  .nav { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
  .nav a { margin-left: 0; font-size: 14px; }

  .hero { padding: 42px 0 16px; }
  .subtitle, .notice { font-size: 14px; }

  .countdown { padding: 12px 14px; }
  .time-box { min-width: 90px; }
  .sep { margin: 0 8px; }

  .cta-group { gap: 10px; }
  .btn { padding: 12px 14px; }

  .prize-card img { height: 200px; }
}

@media (max-width: 480px) {
  .container { width: min(1080px, 94%); }

  .countdown { flex-wrap: wrap; justify-content: center; }
  .time-box { min-width: 74px; }
  .sep { display: none; }

  .cta-group { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }

  .steps { gap: 12px; }
  .step { grid-template-columns: 46px 1fr; padding: 12px; }
  .step-number { height: 46px; width: 46px; }

  .prize-grid { gap: 12px; }
  .prize-card img { height: 180px; }

  .winner-name { font-size: clamp(20px, 6vw, 28px); padding: 10px 12px; }
}