/* =====================================================================
   GiraSuerte · estilos principales
   Paleta: azul eléctrico, violeta, negro y dorado
   ===================================================================== */
:root {
  --bg: #05060f;
  --bg-2: #0a0c22;
  --bg-3: #11143a;
  --panel: rgba(20, 22, 56, .62);
  --panel-strong: rgba(24, 26, 66, .9);
  --border: rgba(150, 160, 255, .16);
  --border-strong: rgba(150, 160, 255, .32);
  --text: #eceeff;
  --muted: #9da3cf;
  --blue: #2f7bff;
  --cyan: #00d4ff;
  --violet: #7c4dff;
  --purple: #a855f7;
  --gold: #f5c542;
  --gold-2: #ffe08a;
  --gold-3: #b7791f;
  --danger: #ff4d6d;
  --success: #22c55e;
  --warning: #f59e0b;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 60px rgba(0, 0, 0, .45);
  --glow-blue: 0 0 30px rgba(47, 123, 255, .45);
  --glow-gold: 0 0 34px rgba(245, 197, 66, .5);
  --font: 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --display: 'Bebas Neue', 'Outfit', Impact, 'Arial Narrow', sans-serif;
  --header-h: 74px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(124, 77, 255, .28), transparent 60%),
    radial-gradient(900px 600px at -10% 20%, rgba(47, 123, 255, .22), transparent 60%),
    radial-gradient(800px 500px at 50% 110%, rgba(245, 197, 66, .10), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 55%, var(--bg) 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--cyan); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-2); }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
code, .mono { font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; font-size: .92em; }
code { background: rgba(255,255,255,.07); padding: .1em .4em; border-radius: 6px; }
::selection { background: rgba(245, 197, 66, .35); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.container.narrow { width: min(920px, 100% - 32px); }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.block { display: block; }
.break { word-break: break-all; }
.right { text-align: right; }
.mt { margin-top: 16px; }
.mt-lg { margin-top: 36px; }
.pt-0 { padding-top: 0 !important; }
[hidden] { display: none !important; }

.text-gradient {
  background: linear-gradient(90deg, var(--cyan), var(--blue) 45%, var(--purple));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.text-gold {
  background: linear-gradient(180deg, #fff6d1, var(--gold) 55%, var(--gold-3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 18px rgba(245, 197, 66, .35));
}

/* Fondo animado */
.bg-particles { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; opacity: .7; }
.bg-glow { position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background: conic-gradient(from 180deg at 50% 50%, rgba(47,123,255,.06), rgba(168,85,247,.06), rgba(245,197,66,.04), rgba(47,123,255,.06));
  filter: blur(60px); animation: glowSpin 40s linear infinite; }
@keyframes glowSpin { to { transform: rotate(360deg); } }

/* Vidrio */
.glass {
  background: linear-gradient(160deg, rgba(34, 38, 92, .55), rgba(14, 16, 42, .65));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* ---------------------------------------------------------------------
   Botones
   --------------------------------------------------------------------- */
.btn {
  --b1: var(--blue); --b2: var(--purple);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .78em 1.4em; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 700; font-size: .98rem; letter-spacing: .02em;
  color: #fff; cursor: pointer; text-decoration: none; white-space: nowrap;
  position: relative; overflow: hidden; isolation: isolate;
  transition: transform .2s ease, box-shadow .25s ease, filter .2s, background .3s;
  -webkit-tap-highlight-color: transparent;
}
.btn::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s ease;
}
.btn:hover::after { transform: translateX(120%); }
.btn:hover { transform: translateY(-2px); color: #fff; }
.btn:active { transform: translateY(0) scale(.98); }
.btn:disabled, .btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; filter: grayscale(.4); }
.btn-primary { background: linear-gradient(135deg, var(--blue), var(--violet) 60%, var(--purple)); box-shadow: 0 8px 26px rgba(47,123,255,.35); }
.btn-primary:hover { box-shadow: 0 10px 34px rgba(124,77,255,.55); }
.btn-gold { color: #2a1700; background: linear-gradient(180deg, #fff3c4, var(--gold) 45%, #d79a1f); box-shadow: 0 8px 28px rgba(245,197,66,.35), inset 0 -2px 0 rgba(0,0,0,.15); }
.btn-gold:hover { color: #2a1700; box-shadow: 0 12px 38px rgba(245,197,66,.6); }
.btn-glass { background: rgba(255,255,255,.06); border-color: var(--border-strong); backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255,255,255,.12); border-color: rgba(0,212,255,.6); box-shadow: var(--glow-blue); }
.btn-danger { background: linear-gradient(135deg, #ff4d6d, #c0213f); box-shadow: 0 8px 24px rgba(255,77,109,.3); }
.btn-lg { padding: 1em 1.9em; font-size: 1.08rem; }
.btn-sm { padding: .55em 1.1em; font-size: .9rem; }
.btn-xs { padding: .38em .8em; font-size: .8rem; font-weight: 600; }
.btn-block { width: 100%; }
.pulse-glow { animation: pulseGlow 2.4s ease-in-out infinite; }
@keyframes pulseGlow { 0%,100% { box-shadow: 0 8px 28px rgba(245,197,66,.35); } 50% { box-shadow: 0 8px 50px rgba(245,197,66,.75), 0 0 0 8px rgba(245,197,66,.08); } }

/* ---------------------------------------------------------------------
   Cabecera
   --------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: linear-gradient(180deg, rgba(5,6,15,.85), rgba(5,6,15,.55));
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(150,160,255,.08);
  transition: background .3s, box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 10px 40px rgba(0,0,0,.45); background: rgba(5,6,15,.92); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); }
.brand:hover { color: var(--text); }
.logo-mark { flex: none; filter: drop-shadow(0 0 12px rgba(245,197,66,.4)); transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.brand:hover .logo-mark { transform: rotate(-25deg) scale(1.06); }
.logo-img { flex: none; display: block; width: auto; max-width: 100%; object-fit: contain; filter: drop-shadow(0 0 14px rgba(168,85,247,.35)); transition: transform .4s cubic-bezier(.2,.8,.2,1), filter .4s; }
.brand:hover .logo-img { transform: scale(1.04); filter: drop-shadow(0 0 18px rgba(0,212,255,.45)); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--display); font-size: 1.75rem; letter-spacing: .06em;
  background: linear-gradient(90deg, #fff, var(--gold-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-tag { font-size: .68rem; text-transform: uppercase; letter-spacing: .28em; color: var(--muted); margin-top: 3px; }
.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav > a:not(.btn) { color: #cfd3ff; font-weight: 500; padding: .5em .9em; border-radius: 999px; position: relative; }
.main-nav > a:not(.btn)::after { content: ''; position: absolute; left: 50%; right: 50%; bottom: 4px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--purple)); transition: left .3s, right .3s; }
.main-nav > a:not(.btn):hover, .main-nav > a.active { color: #fff; }
.main-nav > a:not(.btn):hover::after, .main-nav > a.active::after { left: 22%; right: 22%; }
.main-nav .btn { margin-left: 8px; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border-strong); background: rgba(255,255,255,.05);
  flex-direction: column; justify-content: center; align-items: center; gap: 5px; cursor: pointer; }
.nav-toggle span { width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------------------------------------------------------------
   Hero
   --------------------------------------------------------------------- */
.hero { padding: 70px 0 90px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 50px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 14px; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #ff3b5c; box-shadow: 0 0 0 0 rgba(255,59,92,.7); animation: livePulse 1.6s infinite; display: inline-block; flex: none; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(255,59,92,.7); } 70% { box-shadow: 0 0 0 10px rgba(255,59,92,0); } 100% { box-shadow: 0 0 0 0 rgba(255,59,92,0); } }
.hero-title { font-family: var(--display); font-weight: 400; font-size: clamp(3.2rem, 7.4vw, 6.4rem); line-height: .92; letter-spacing: .01em; margin-bottom: 22px; text-shadow: 0 10px 40px rgba(0,0,0,.4); }
.hero-lead { font-size: 1.15rem; color: #c8cbf0; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 34px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, auto); gap: 30px; margin: 0; justify-content: start; }
.hero-stats div { border-left: 2px solid rgba(245,197,66,.5); padding-left: 14px; }
.hero-stats dt { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }
.hero-stats dd { margin: 0; font-family: var(--display); font-size: 2.4rem; line-height: 1.1; color: #fff; }

.hero-visual { position: relative; display: grid; place-items: center; min-height: 480px; }
.globe { position: relative; width: min(440px, 82vw); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 60%, rgba(47,123,255,.18), rgba(10,12,34,.6) 70%);
  box-shadow: inset 0 0 80px rgba(0,212,255,.25), inset 0 -30px 80px rgba(124,77,255,.35), 0 0 80px rgba(47,123,255,.25), 0 30px 80px rgba(0,0,0,.6);
  overflow: hidden; animation: globeFloat 7s ease-in-out infinite; }
@keyframes globeFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.globe-glass { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(160,200,255,.35); z-index: 3; pointer-events: none; }
.globe-shine { position: absolute; inset: 0; border-radius: 50%; z-index: 4; pointer-events: none;
  background: radial-gradient(ellipse 38% 22% at 32% 18%, rgba(255,255,255,.55), transparent 70%),
              radial-gradient(ellipse 12% 30% at 86% 55%, rgba(255,255,255,.18), transparent 70%); }
.orb { --size: 84px; position: absolute; width: var(--size); height: var(--size); border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 32% 28%, #fff 0 6%, hsl(var(--h) 95% 70%) 18%, hsl(var(--h) 85% 48%) 55%, hsl(var(--h) 90% 18%) 100%);
  box-shadow: inset -8px -12px 24px rgba(0,0,0,.45), inset 6px 6px 14px rgba(255,255,255,.25), 0 10px 22px rgba(0,0,0,.45);
  animation: orbit var(--d) ease-in-out infinite alternate; animation-delay: var(--delay); z-index: 2; }
.orb span { width: 58%; height: 58%; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fff, #e6e8ff); display: grid; place-items: center;
  font-weight: 900; font-size: .72rem; color: #1b1340; letter-spacing: .02em; box-shadow: inset 0 -3px 6px rgba(0,0,0,.18); }
.orb-0 { left: 12%; top: 50%; } .orb-1 { left: 38%; top: 60%; --size: 92px; } .orb-2 { left: 62%; top: 52%; }
.orb-3 { left: 22%; top: 25%; --size: 76px; } .orb-4 { left: 50%; top: 30%; --size: 70px; } .orb-5 { left: 70%; top: 22%; --size: 78px; }
.orb-6 { left: 8%; top: 70%; --size: 72px; } .orb-7 { left: 30%; top: 76%; } .orb-8 { left: 56%; top: 74%; --size: 80px; }
.orb-9 { left: 74%; top: 66%; --size: 70px; } .orb-10 { left: 40%; top: 10%; --size: 66px; } .orb-11 { left: 80%; top: 42%; --size: 64px; }
@keyframes orbit {
  0% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(18px, -40px) rotate(40deg); }
  66% { transform: translate(-22px, -16px) rotate(-30deg); }
  100% { transform: translate(10px, 24px) rotate(20deg); }
}
.globe-base { width: 240px; height: 70px; margin-top: -14px; position: relative; border-radius: 0 0 50% 50% / 0 0 100% 100%;
  background: linear-gradient(180deg, #2b2f6b, #0d0f2b); box-shadow: 0 20px 50px rgba(0,0,0,.6), inset 0 2px 0 rgba(255,255,255,.15); }
.globe-base span { position: absolute; left: 50%; top: 18px; width: 120px; height: 8px; transform: translateX(-50%); border-radius: 8px;
  background: linear-gradient(90deg, var(--cyan), var(--purple), var(--gold)); box-shadow: 0 0 20px rgba(0,212,255,.7); animation: baseLight 2.4s linear infinite; background-size: 200% 100%; }
@keyframes baseLight { to { background-position: 200% 0; } }
.hero-ticket { position: absolute; right: 0; bottom: 30px; padding: 16px 20px; border-radius: 16px; max-width: 260px;
  background: linear-gradient(145deg, rgba(245,197,66,.18), rgba(124,77,255,.22)); border: 1px solid rgba(245,197,66,.4);
  backdrop-filter: blur(12px); box-shadow: var(--glow-gold); display: flex; flex-direction: column; gap: 2px; animation: globeFloat 6s ease-in-out infinite reverse; }
.hero-ticket small { color: var(--gold-2); text-transform: uppercase; letter-spacing: .16em; font-size: .7rem; font-weight: 700; }
.hero-ticket strong { font-size: 1.05rem; }
.hero-ticket .countdown { font-family: var(--display); font-size: 1.5rem; letter-spacing: .05em; color: #fff; }

/* ---------------------------------------------------------------------
   Secciones
   --------------------------------------------------------------------- */
.section { padding: 80px 0; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(47,123,255,.05) 30%, rgba(124,77,255,.06) 70%, transparent); }
.section-head { text-align: center; margin-bottom: 44px; }
.section-title { font-family: var(--display); font-weight: 400; font-size: clamp(2.4rem, 5vw, 3.8rem); letter-spacing: .02em; }
.page-hero { padding: 60px 0 30px; text-align: center; }
.page-hero .lead { color: #c8cbf0; max-width: 680px; margin: 0 auto; }

.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 26px; }
.draw-card { overflow: hidden; display: flex; flex-direction: column; transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, border-color .35s; transform-style: preserve-3d; }
.draw-card:hover { border-color: rgba(0,212,255,.45); box-shadow: 0 30px 70px rgba(0,0,0,.55), 0 0 40px rgba(47,123,255,.25); }
.draw-card-media { position: relative; display: block; }
.draw-card-media .badge { position: absolute; top: 14px; left: 14px; }
.card-visual { height: 210px; overflow: hidden; position: relative; background: #0b0d26; }
.card-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.draw-card:hover .card-visual img { transform: scale(1.06); }
.card-visual::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(5,6,15,.85)); }
.prize-placeholder { display: grid; place-items: center;
  background: radial-gradient(circle at 50% 40%, hsl(var(--h) 80% 45% / .5), transparent 60%), linear-gradient(135deg, #10123a, #1b0f3d); }
.ph-ball { width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; font-size: 2.6rem;
  background: radial-gradient(circle at 32% 28%, #fff 0 6%, #ffe9a3 16%, var(--gold) 45%, #8a4b00 100%);
  box-shadow: inset -10px -14px 26px rgba(0,0,0,.4), 0 0 50px rgba(245,197,66,.45); animation: globeFloat 5s ease-in-out infinite; }
.ph-ball span { width: 62%; height: 62%; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 2rem; }
.draw-card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.draw-card-body h3 { font-size: 1.35rem; margin: 0; }
.draw-card-body h3 a { color: #fff; }
.draw-card-desc { color: var(--muted); font-size: .95rem; margin: 0; }
.prize-line { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px;
  background: linear-gradient(90deg, rgba(245,197,66,.16), rgba(245,197,66,.03)); border: 1px solid rgba(245,197,66,.25); }
.prize-icon { font-size: 1.6rem; filter: drop-shadow(0 0 10px rgba(245,197,66,.6)); }
.prize-line small { display: block; color: var(--gold-2); font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; }
.prize-line strong { font-size: 1.05rem; }
.meta-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: #c8cbf0; font-size: .9rem; }
.meta-list li { display: flex; gap: 6px; align-items: center; }
.countdown-chip { font-family: var(--display); font-size: 1.25rem; letter-spacing: .08em; color: var(--cyan); }
.countdown-chip:empty { display: none; }
.draw-card .btn-block { margin-top: auto; }

.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step { padding: 28px 24px; position: relative; overflow: hidden; }
.step::before { content: ''; position: absolute; width: 160px; height: 160px; right: -60px; top: -60px; border-radius: 50%;
  background: radial-gradient(circle, rgba(124,77,255,.35), transparent 70%); }
.step-num { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; margin-bottom: 16px;
  font-family: var(--display); font-size: 1.8rem; color: #2a1700;
  background: radial-gradient(circle at 32% 28%, #fff 0 8%, var(--gold-2) 22%, var(--gold) 55%, #9a5b00); box-shadow: 0 0 24px rgba(245,197,66,.45); }
.step h3 { font-size: 1.15rem; }
.step p { color: var(--muted); font-size: .94rem; margin: 0; }

.winners-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 20px; }
.winner-card { display: flex; gap: 18px; align-items: center; padding: 20px; transition: transform .3s, border-color .3s; }
.winner-card:hover { transform: translateY(-4px); border-color: rgba(245,197,66,.45); }
.winner-card h3 { font-size: 1.15rem; margin: 0 0 4px; }
.winner-prize { color: var(--gold-2); font-weight: 600; margin: 0; }
.winner-meta { color: var(--muted); font-size: .85rem; margin: 2px 0 6px; }
.winner-ball { --s: 66px; flex: none; width: var(--s); height: var(--s); border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 32% 28%, #fff 0 6%, hsl(var(--h) 95% 70%) 18%, hsl(var(--h) 85% 48%) 55%, hsl(var(--h) 90% 16%) 100%);
  box-shadow: inset -6px -8px 16px rgba(0,0,0,.4), 0 8px 18px rgba(0,0,0,.4); }
.winner-ball span { width: 58%; height: 58%; border-radius: 50%; background: #fff; color: #1b1340; display: grid; place-items: center; font-weight: 900; font-size: calc(var(--s) * .26); }
.winner-ball.sm { --s: 38px; }
.winner-ball.big { --s: 96px; }
.link-arrow { font-weight: 600; font-size: .92rem; }
.link-back { display: inline-block; color: var(--muted); margin-bottom: 18px; font-weight: 500; }
.link-back:hover { color: #fff; }

.empty-state { text-align: center; padding: 50px 24px; max-width: 620px; margin: 0 auto; }
.empty-state p { color: var(--muted); }
.empty-ball { font-size: 3.4rem; margin-bottom: 10px; animation: globeFloat 4s ease-in-out infinite; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: .28em .75em; border-radius: 999px; font-size: .74rem; font-weight: 700; letter-spacing: .04em;
  border: 1px solid transparent; white-space: nowrap; vertical-align: middle; }
.badge-pending { background: rgba(0,212,255,.14); color: #7fe7ff; border-color: rgba(0,212,255,.35); }
.badge-in_progress { background: rgba(255,59,92,.18); color: #ff9aac; border-color: rgba(255,59,92,.45); animation: livePulse 1.6s infinite; }
.badge-completed { background: rgba(245,197,66,.16); color: var(--gold-2); border-color: rgba(245,197,66,.45); }
.badge-valid { background: rgba(34,197,94,.16); color: #7ee2a4; border-color: rgba(34,197,94,.4); }
.badge-annulled { background: rgba(255,77,109,.16); color: #ff9aac; border-color: rgba(255,77,109,.4); }
.badge-draft { background: rgba(255,255,255,.07); color: #c8cbf0; border-color: rgba(255,255,255,.16); }
.badge-muted { background: rgba(150,160,255,.1); color: #c3c8ff; border-color: rgba(150,160,255,.2); }
.badge-gold { background: linear-gradient(90deg, rgba(245,197,66,.25), rgba(245,197,66,.1)); color: var(--gold-2); border-color: rgba(245,197,66,.45); }
.badge-s-in_progress { background: rgba(255,59,92,.18); color: #ff9aac; border-color: rgba(255,59,92,.45); }
.badge-s-completed { background: rgba(34,197,94,.16); color: #7ee2a4; border-color: rgba(34,197,94,.4); }
.badge-s-cancelled { background: rgba(255,255,255,.07); color: #c8cbf0; border-color: rgba(255,255,255,.16); }
.badge-s-annulled { background: rgba(255,77,109,.16); color: #ff9aac; border-color: rgba(255,77,109,.4); }
.badge-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }

/* ---------------------------------------------------------------------
   Página de sorteo
   --------------------------------------------------------------------- */
.detail-hero { padding: 40px 0 50px; }
.detail-grid { display: grid; grid-template-columns: 1.2fr .9fr; gap: 40px; align-items: start; }
.detail-title { font-family: var(--display); font-weight: 400; font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: .95; letter-spacing: .02em; }
.detail-desc { color: #c8cbf0; font-size: 1.06rem; margin-bottom: 26px; }
.detail-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 30px; }
.meta-box { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px; }
.meta-box > span { font-size: 1.6rem; }
.meta-box small { display: block; color: var(--muted); font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; }
.meta-box strong { font-size: 1.02rem; }
.meta-box .countdown { font-family: var(--display); font-size: 1.45rem; font-weight: 400; letter-spacing: .06em; color: var(--cyan); }
.prize-card { overflow: hidden; position: sticky; top: calc(var(--header-h) + 20px); }
.prize-visual { height: 280px; background: #0b0d26; position: relative; }
.prize-visual img { width: 100%; height: 100%; object-fit: cover; }
.prize-visual.prize-placeholder .ph-ball { width: 150px; height: 150px; }
.prize-card-body { padding: 24px; }
.prize-card-body h2 { font-size: 1.7rem; }
.prize-card-body p { color: #c8cbf0; }
.rules-list { list-style: none; padding: 16px 0 0; margin: 16px 0 0; border-top: 1px solid var(--border); display: grid; gap: 8px; font-size: .92rem; color: #c8cbf0; }

/* Acta */
.acta { padding: 34px; }
.acta-head { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: start; margin-bottom: 26px; }
.acta-head h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 5vw, 3rem); letter-spacing: .02em; margin: 0; }
.acta-code { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; padding: 14px 18px; border-radius: 14px; background: rgba(0,0,0,.25); border: 1px solid var(--border); }
.acta-code small { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; }
.acta-code strong { font-size: 1.3rem; letter-spacing: .12em; color: var(--gold-2); }
.acta-winner { display: flex; align-items: center; gap: 22px; padding: 22px; border-radius: 18px; margin-bottom: 24px;
  background: linear-gradient(110deg, rgba(245,197,66,.2), rgba(124,77,255,.12)); border: 1px solid rgba(245,197,66,.45); box-shadow: var(--glow-gold); }
.acta-winner small { color: var(--gold-2); text-transform: uppercase; letter-spacing: .16em; font-weight: 700; font-size: .75rem; }
.acta-winner h2 { font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 5vw, 3rem); letter-spacing: .03em; margin: 2px 0; }
.acta-winner.is-annulled { background: rgba(255,77,109,.1); border-color: rgba(255,77,109,.4); box-shadow: none; }
.acta-winner.is-annulled h2 { text-decoration: line-through; opacity: .75; }
.annul-note { color: #ffb3c1; font-size: .92rem; }
.acta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 0 0 26px; }
.acta-grid div { padding: 14px 16px; border-radius: 12px; background: rgba(0,0,0,.2); border: 1px solid var(--border); }
.acta-grid .wide { grid-column: 1 / -1; }
.acta-grid dt { color: var(--muted); font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; }
.acta-grid dd { margin: 4px 0 0; font-weight: 600; }
.acta-sub { margin-top: 10px; }
.frozen-list { margin-top: 20px; padding: 16px 18px; border-radius: 14px; background: rgba(0,0,0,.2); border: 1px solid var(--border); }
.frozen-list summary { cursor: pointer; font-weight: 600; color: var(--cyan); }
.frozen-list ol { columns: 3 220px; margin: 16px 0; padding-left: 2.6em; font-size: .9rem; color: #c8cbf0; }
.annul-reason { display: block; color: #ffb3c1; font-size: .78rem; margin-top: 4px; }

/* Tablas */
.table-wrap { overflow-x: auto; border-radius: var(--radius-sm); -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.table th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; padding: 14px 16px; border-bottom: 1px solid var(--border-strong); white-space: nowrap; }
.table td { padding: 14px 16px; border-bottom: 1px solid rgba(150,160,255,.08); vertical-align: middle; }
.table tbody tr { transition: background .2s; }
.table tbody tr:hover { background: rgba(124,77,255,.07); }
.table .row-winner { background: linear-gradient(90deg, rgba(245,197,66,.14), transparent); }
.table .row-muted { opacity: .55; }
.table-compact td, .table-compact th { padding: 10px 12px; }
.cell-winner { display: flex; align-items: center; gap: 12px; }
.table-wrap.glass { padding: 6px; }

.filter-bar { display: flex; gap: 12px; padding: 14px; margin-bottom: 24px; flex-wrap: wrap; }
.filter-bar input[type=search] { flex: 1 1 260px; }
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 40px; height: 40px; display: grid; place-items: center; padding: 0 10px; border-radius: 12px; border: 1px solid var(--border); color: #fff; background: rgba(255,255,255,.04); font-weight: 600; }
.pagination a:hover { border-color: var(--cyan); box-shadow: var(--glow-blue); }
.pagination .current { background: linear-gradient(135deg, var(--blue), var(--purple)); border-color: transparent; }

/* ---------------------------------------------------------------------
   Formularios
   --------------------------------------------------------------------- */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field > span { font-size: .84rem; font-weight: 600; color: #cfd3ff; }
input[type=text], input[type=email], input[type=url], input[type=password], input[type=search], input[type=number], input[type=datetime-local], input[type=file], select, textarea {
  width: 100%; font: inherit; color: var(--text); padding: .78em 1em; border-radius: 12px;
  background: rgba(5,6,20,.55); border: 1px solid var(--border-strong); transition: border-color .2s, box-shadow .2s, background .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(0,212,255,.14); background: rgba(5,6,20,.8); }
input::placeholder, textarea::placeholder { color: #6e74a6; }
textarea { resize: vertical; min-height: 90px; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #9da3cf 50%), linear-gradient(135deg, #9da3cf 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2.4em; }
select option { background: #11143a; }
input[type=file] { padding: .6em; cursor: pointer; }
input[type=file]::file-selector-button { font: inherit; font-weight: 600; color: #fff; border: 0; border-radius: 8px; padding: .4em .9em; margin-right: 10px; background: linear-gradient(135deg, var(--blue), var(--purple)); cursor: pointer; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.password-wrap { position: relative; display: block; }
.password-wrap input { padding-right: 3em; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; cursor: pointer; font-size: 1.1rem; padding: 6px; opacity: .7; }
.pw-toggle:hover { opacity: 1; }
.check { display: inline-flex; gap: 8px; align-items: center; font-size: .9rem; cursor: pointer; }
.switch { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .slider { width: 48px; height: 28px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid var(--border-strong); position: relative; transition: background .25s; flex: none; }
.switch .slider::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .25s cubic-bezier(.3,1.4,.6,1); box-shadow: 0 2px 6px rgba(0,0,0,.4); }
.switch input:checked + .slider { background: linear-gradient(135deg, var(--blue), var(--purple)); }
.switch input:checked + .slider::after { transform: translateX(20px); }
.switch input:focus-visible + .slider { outline: 2px solid var(--gold); outline-offset: 3px; }
.switch em { font-style: normal; font-size: .92rem; }
.hint { font-size: .85rem; color: var(--muted); margin: 0; }
.hint.warn { color: #ffd38a; }
.alert { padding: 14px 18px; border-radius: 14px; margin-bottom: 18px; border: 1px solid; }
.alert ul { margin: 6px 0 0; padding-left: 1.2em; }
.alert-error { background: rgba(255,77,109,.12); border-color: rgba(255,77,109,.4); color: #ffc2cd; }
.alert-warning { background: rgba(245,158,11,.12); border-color: rgba(245,158,11,.4); color: #ffd99a; }
.alert-info { background: rgba(0,212,255,.1); border-color: rgba(0,212,255,.35); color: #b9f1ff; }
.alert-success { background: rgba(34,197,94,.12); border-color: rgba(34,197,94,.4); color: #b5f0c9; }

/* Toasts */
.toast-stack { position: fixed; top: calc(var(--header-h) + 14px); right: 16px; z-index: 300; display: grid; gap: 10px; width: min(420px, calc(100% - 32px)); }
.toast { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--panel-strong); border: 1px solid var(--border-strong);
  box-shadow: var(--shadow); backdrop-filter: blur(14px); animation: toastIn .45s cubic-bezier(.2,.9,.3,1.2) both; font-size: .94rem; }
.toast.hide { animation: toastOut .35s ease forwards; }
.toast-icon { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: .8rem; color: #fff; }
.toast-success { border-color: rgba(34,197,94,.5); } .toast-success .toast-icon { background: var(--success); }
.toast-error { border-color: rgba(255,77,109,.5); } .toast-error .toast-icon { background: var(--danger); }
.toast-warning { border-color: rgba(245,158,11,.5); } .toast-warning .toast-icon { background: var(--warning); }
.toast-info { border-color: rgba(0,212,255,.5); } .toast-info .toast-icon { background: var(--blue); }
.toast span:nth-child(2) { flex: 1; }
.toast-close { background: none; border: 0; color: var(--muted); font-size: 1.3rem; line-height: 1; cursor: pointer; padding: 0 2px; }
@keyframes toastIn { from { opacity: 0; transform: translateX(40px) scale(.95); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(40px); } }

/* Login */
.auth-section { min-height: calc(100vh - var(--header-h) - 200px); display: grid; place-items: center; padding: 50px 16px; }
.auth-card { width: min(440px, 100%); padding: 38px 32px; text-align: center; }
.auth-card .form { text-align: left; margin: 22px 0 18px; }
.auth-logo { display: grid; place-items: center; margin-bottom: 10px; }
.auth-card h1 { font-family: var(--display); font-weight: 400; font-size: 2.4rem; letter-spacing: .04em; margin: 0; }

/* Pie */
.site-footer { margin-top: 60px; padding: 50px 0 34px; border-top: 1px solid rgba(150,160,255,.1); background: linear-gradient(180deg, transparent, rgba(0,0,0,.35)); }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px 40px; align-items: start; }
.footer-brand p { color: var(--muted); margin-top: 12px; max-width: 460px; font-size: .92rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: flex-end; }
.footer-links a { color: #cfd3ff; }
.footer-store { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: 18px; text-decoration: none; color: inherit;
  background: linear-gradient(110deg, rgba(245,197,66,.14), rgba(168,85,247,.14) 55%, rgba(47,123,255,.14)); border: 1px solid rgba(245,197,66,.35);
  box-shadow: 0 10px 30px rgba(0,0,0,.25); transition: transform .2s, border-color .2s, box-shadow .2s; }
.footer-store:hover { transform: translateY(-2px); border-color: rgba(245,197,66,.7); box-shadow: 0 14px 36px rgba(245,197,66,.15); }
.footer-store-ico { font-size: 1.9rem; line-height: 1; flex: none; }
.footer-store-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.footer-store-text strong { color: #fff; font-size: 1.02rem; }
.footer-store-text small { color: #f5c542; font-size: .85rem; overflow-wrap: anywhere; }
.footer-store-btn { flex: none; pointer-events: none; }
@media (max-width: 560px) { .footer-store { flex-wrap: wrap; } .footer-store-btn { width: 100%; justify-content: center; text-align: center; } }
.footer-copy { grid-column: 1 / -1; color: #6e74a6; font-size: .82rem; margin: 10px 0 0; padding-top: 20px; border-top: 1px solid rgba(150,160,255,.08); }

/* Animaciones de entrada */
.reveal-up { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal-up.in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------- */
@media (max-width: 1020px) {
  .hero-grid, .detail-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; }
  .hero-visual { min-height: 400px; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .prize-card { position: static; }
}
@media (max-width: 820px) {
  :root { --header-h: 66px; }
  .nav-toggle { display: flex; }
  .main-nav { position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 4px; padding: 16px;
    background: rgba(7,8,22,.97); border-bottom: 1px solid var(--border); transform: translateY(-120%); opacity: 0; pointer-events: none;
    transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .3s; backdrop-filter: blur(20px); }
  .nav-open .main-nav { transform: none; opacity: 1; pointer-events: auto; }
  .main-nav > a:not(.btn) { padding: .9em 1em; border-radius: 12px; }
  .main-nav > a:not(.btn)::after { display: none; }
  .main-nav > a.active { background: rgba(124,77,255,.15); }
  .main-nav .btn { margin: 8px 0 0; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
  .section { padding: 56px 0; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .hero-stats dd { font-size: 1.9rem; }
  .table-responsive thead { display: none; }
  .table-responsive tr { display: block; padding: 12px 6px; border-bottom: 1px solid var(--border); }
  .table-responsive td { display: flex; justify-content: space-between; gap: 14px; padding: 6px 10px; border: 0; text-align: right; }
  .table-responsive td::before { content: attr(data-label); color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; text-align: left; flex: none; }
  .table-responsive td.actions, .table-responsive td.right { justify-content: flex-end; flex-wrap: wrap; }
  .table-winners thead { display: none; }
  .table-winners tr { display: block; padding: 14px 8px; border-bottom: 1px solid var(--border); }
  .table-winners td { display: flex; justify-content: space-between; gap: 14px; padding: 5px 10px; border: 0; text-align: right; }
  .table-winners td::before { content: attr(data-label); color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; }
  .acta { padding: 22px; }
  .acta-code { align-items: flex-start; }
}
@media (max-width: 560px) {
  .site-header .logo-img { height: 38px !important; }
  .site-header .brand { gap: 8px; min-width: 0; }
  .brand-tag { display: none; }
  .brand-name { font-size: 1.5rem; }
  .cards-grid, .winners-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .row-2 { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-ticket { position: static; margin-top: 18px; max-width: none; width: 100%; }
  .hero-visual { min-height: 0; }
  .orb { --size: 62px !important; }
  .orb span { font-size: .56rem; }
  .acta-winner { flex-direction: column; text-align: center; }
  .auth-card { padding: 30px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
