/* Fase final · Janucá: se activa con html.final-phase (después del sorteo de Kislev). */
html.final-phase {
  --navy-950: #030816;
  --navy-900: #06102a;
  --navy-800: #0b1a3d;
  --navy-700: #142a5c;
  --navy-600: #1d3d82;
  --gold-300: #ffe6a3;
  --gold-400: #ffc95c;
  --gold-500: #f5a623;
  --gold-600: #d9831a;
  --flame: #ff7a2f;
  --flame-2: #ffb347;
  --red: #ff5a3c;
}
html.final-phase .hero {
  background:
    radial-gradient(900px 520px at 78% 18%, rgba(255,140,50,.28) 0%, transparent 62%),
    radial-gradient(700px 420px at 12% 92%, rgba(29,61,130,.9) 0%, transparent 65%),
    radial-gradient(1200px 700px at 50% 120%, rgba(255,170,60,.18) 0%, transparent 60%),
    var(--navy-900);
}
html.final-phase .hero-rays { background: repeating-conic-gradient(from 0deg at 72% 38%, rgba(255,190,90,.05) 0deg 5deg, transparent 5deg 15deg); }
html.final-phase .hero h1 em { background: linear-gradient(180deg, #fff3c4 0%, #ffc95c 45%, #ff8a3d 100%); -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 8px 30px rgba(255,140,50,.45)); }
html.final-phase .topbar { background: linear-gradient(90deg, #d9531a, #ff8a3d 50%, #d9531a); color: #fff; }
html.final-phase .btn-gold { background: linear-gradient(180deg, #ffe08a 0%, #ffb347 55%, #ff8a3d 100%); box-shadow: 0 10px 30px rgba(255,138,61,.35); }
html.final-phase .closing { background: radial-gradient(800px 420px at 50% 0%, rgba(255,140,50,.35), transparent 70%), var(--navy-900); }
html.final-phase .countdown-card { border-color: rgba(255,170,80,.45); background: rgba(255,140,50,.08); }

/* Janukiá */
.janukia-band { position: relative; width: var(--wrap); margin: clamp(1.5rem, 3vw, 2.5rem) auto 0; display: grid; grid-template-columns: minmax(260px, 520px) 1fr; gap: clamp(1rem, 3vw, 2.5rem); align-items: center; padding: clamp(1rem, 2.5vw, 1.6rem); border-radius: var(--radius); background: linear-gradient(135deg, rgba(255,170,60,.12), rgba(29,61,130,.25)); border: 1px solid rgba(255,190,90,.35); }
.janukia-band svg { width: 100%; height: auto; display: block; overflow: visible; }
.janukia-copy .eyebrow-flame { margin: 0; font: 900 .78rem var(--display); letter-spacing: .25em; color: var(--flame-2); text-transform: uppercase; }
.janukia-copy h2 { margin: .35rem 0 .5rem; font-size: clamp(1.5rem, 3.2vw, 2.4rem); color: #fff; }
.janukia-copy p { margin: 0; color: rgba(255,255,255,.82); }
.janukia-nights { display: flex; gap: .35rem; margin-top: .9rem; flex-wrap: wrap; }
.janukia-nights span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; font: 800 .8rem var(--display); background: rgba(255,255,255,.08); color: rgba(255,255,255,.6); }
.janukia-nights span.on { background: linear-gradient(180deg, #ffe08a, #ff8a3d); color: #3a1600; box-shadow: 0 0 14px rgba(255,140,50,.6); }
.jk-flame { transform-box: fill-box; transform-origin: 50% 100%; animation: jk-flicker 1.6s ease-in-out infinite alternate; }
.jk-flame:nth-of-type(2n) { animation-duration: 1.25s; }
.jk-flame:nth-of-type(3n) { animation-duration: 1.9s; }
@keyframes jk-flicker { 0% { transform: scale(1, 1) skewX(0); opacity: .95; } 50% { transform: scale(.92, 1.08) skewX(2deg); } 100% { transform: scale(1.05, .94) skewX(-2deg); opacity: 1; } }
.jk-glow { animation: jk-glow 2.4s ease-in-out infinite alternate; }
@keyframes jk-glow { from { opacity: .45; } to { opacity: .85; } }
@media (prefers-reduced-motion: reduce) { .jk-flame, .jk-glow { animation: none; } }
@media (max-width: 760px) { .janukia-band { grid-template-columns: 1fr; text-align: center; } .janukia-nights { justify-content: center; } }

/* Ticket del Dólar #2 ya sorteado */
html.final-phase .ticket-row .ticket-done small b { color: var(--flame); }
html.final-phase .float-ticket-a { display: none; }
/* Ticket "Dólar #3" del héroe: arriba a la derecha, sin tapar el pie de la foto */
html.final-phase .float-ticket-b { top: -3%; bottom: auto; inset-inline-start: auto; inset-inline-end: -5%; transform: rotate(4deg); }
@media (max-width: 760px) { html.final-phase .float-ticket-b { inset-inline-end: 0; top: -4%; } }
.janukia-band svg { filter: drop-shadow(0 18px 30px rgba(0,0,0,.35)); }
/* "Mis números": en el menú resaltado; en celular, botoncito junto a Participar */
.main-nav .nav-mine { color: var(--gold-300, #ecc66a); font-weight: 700; }
.mine-chip { display: none; padding: .42rem .7rem; border: 1px solid rgba(236,198,106,.6); border-radius: 999px; color: #ecc66a; font: 700 .74rem var(--display, sans-serif); text-decoration: none; white-space: nowrap; }
@media (max-width: 1020px) { .mine-chip { display: inline-flex; } }
@media (max-width: 420px) { .mine-chip { padding: .38rem .55rem; font-size: .68rem; } }
/* "Avisame" */
.avisame { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; background: rgba(4,8,20,.62); backdrop-filter: blur(3px); animation: av-in .3s ease; }
.avisame-card { position: relative; width: min(420px, 100%); display: grid; gap: .55rem; padding: 26px 22px 18px; border-radius: 20px; text-align: center; color: #fff;
  background: radial-gradient(ellipse at 50% 0%, #4a2d7a, #1b1748 55%, #0a1430); border: 1px solid rgba(236,198,106,.5); box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.avisame-card h3 { margin: 0; font: 900 1.45rem/1.15 var(--display, sans-serif); color: #f6dc96; }
.avisame-card p { margin: 0; color: rgba(255,255,255,.85); }
.avisame-icon { font-size: 2.2rem; line-height: 1; }
.avisame-card input { padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.08); color: #fff; font: inherit; }
.avisame-card input::placeholder { color: rgba(255,255,255,.6); }
.avisame-card .btn { justify-content: center; margin-top: .2rem; }
.avisame-card small { color: rgba(255,255,255,.62); font-size: .76rem; }
.avisame-msg { color: #ffb38a !important; }
.avisame-x { position: absolute; top: 8px; inset-inline-end: 10px; border: 0; background: none; color: rgba(255,255,255,.7); font-size: 1.1rem; cursor: pointer; }
.avisame-later { border: 0; background: none; color: rgba(255,255,255,.6); text-decoration: underline; cursor: pointer; font: inherit; font-size: .85rem; }
.avisame-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
@keyframes av-in { from { opacity: 0; } to { opacity: 1; } }
/* Aviso de cookies */
.cookie-bar { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 80; width: min(640px, calc(100% - 24px)); display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 10px 14px; border-radius: 14px; background: rgba(10,20,48,.96); border: 1px solid rgba(236,198,106,.45); color: rgba(255,255,255,.88); font-size: .85rem; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.cookie-bar a { color: #ecc66a; }
.cookie-bar button { flex: none; border: 0; border-radius: 999px; padding: 8px 16px; background: linear-gradient(#ffd36b,#ff8a2f); color: #1a1033; font-weight: 800; cursor: pointer; }
/* ── Campaña finalizada ── */
html.campaign-closed .hero, html.campaign-closed .draws, html.campaign-closed .chances, html.campaign-closed .steps, html.campaign-closed .invite,
html.campaign-closed .closing, html.campaign-closed .topbar, html.campaign-closed .mobile-sticky-cta, html.campaign-closed .faq,
html.campaign-closed .main-nav a[href="#participar"], html.campaign-closed .main-nav a[href="#invita"], html.campaign-closed .avisame { display: none !important; }
.closed-hero { position: relative; overflow: hidden; padding: clamp(2.5rem, 7vw, 5rem) 16px clamp(2rem, 5vw, 3.5rem); text-align: center; color: #fff;
  background: radial-gradient(ellipse at 50% 30%, #4a2d7a 0%, #24184f 45%, #0a1430 85%); }
.closed-inner { width: min(1100px, 100%); margin: 0 auto; }
.closed-eyebrow { margin: 0; font: 900 .85rem var(--display, sans-serif); letter-spacing: .25em; color: #ffc14d; }
.closed-hero h1 { margin: .5rem 0 .8rem; font: 900 clamp(2.2rem, 6vw, 4.2rem)/1.02 var(--display, sans-serif); background: linear-gradient(#fff6d6, #f6c75a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.closed-text { max-width: 720px; margin: 0 auto 2rem; font-size: clamp(1rem, 2.2vw, 1.2rem); color: rgba(255,255,255,.88); }
.closed-winners { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: clamp(.8rem, 2.5vw, 1.6rem); margin: 0 auto 2rem; }
.closed-winners figure { margin: 0; display: grid; justify-items: center; gap: .7rem; padding: 1.2rem 1rem; border-radius: 20px; background: rgba(255,255,255,.06); border: 1px solid rgba(236,198,106,.35); }
.closed-winners img { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; border: 4px solid #ecc66a; box-shadow: 0 0 40px rgba(255,180,80,.35); background: #fff; }
.closed-winners figcaption { display: grid; gap: .1rem; }
.closed-winners small { font: 800 .7rem var(--display, sans-serif); letter-spacing: .14em; color: #ffc14d; }
.closed-winners b { font: 900 2rem var(--display, sans-serif); color: #f6dc96; }
.closed-winners span { font-weight: 700; }
.closed-ctas { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
.btn-ghost-light { border: 2px solid rgba(255,255,255,.6); color: #fff !important; background: transparent; }
/* Franja "Último sorteo": intensidad según los días que faltan */
.topbar[hidden] { display: none !important; }
html .topbar[data-level="soft"] { background: linear-gradient(90deg, #2a1d5c, #4a2d7a 50%, #2a1d5c); color: #f6dc96; }
html .topbar[data-level="soft"] .topbar-pulse { animation: none; background: #ffc14d; }
html .topbar[data-level="mid"] { background: linear-gradient(90deg, #d9531a, #ff8a3d 50%, #d9531a); color: #fff; }
html .topbar[data-level="hot"] { background: linear-gradient(90deg, #b3201a, #e2483d 50%, #b3201a); color: #fff; font-weight: 700; }
html .topbar[data-level="last"] { background: linear-gradient(90deg, #8f0f0f, #e2241b 50%, #8f0f0f); color: #fff; font-weight: 800; font-size: .95rem; animation: topbar-flash 1.4s ease-in-out infinite; }
@keyframes topbar-flash { 50% { filter: brightness(1.25); } }
@media (prefers-reduced-motion: reduce) { html .topbar[data-level="last"] { animation: none; } }
/* Botón de WhatsApp: en el celular, solo el ícono (no tapa los botones) */
@media (max-width: 760px) {
  .whatsapp-float { width: 52px; height: 52px; padding: 0 !important; border-radius: 50%; justify-content: center; bottom: 78px !important; right: 12px !important; }
  .whatsapp-float span { display: none !important; }
  .whatsapp-float svg { margin: 0 !important; width: 26px; height: 26px; }
}
@media (max-width: 760px) { .cookie-bar { bottom: 76px; font-size: .78rem; padding: 8px 10px; } .cookie-bar button { padding: 6px 12px; } }
.cookie-bar { transition: opacity .4s, transform .4s; } .cookie-bar.cookie-out { opacity: 0; transform: translate(-50%, 12px); }
