/* Tema navideño de Tombolazo. Solo se carga cuando el tema está activo (ver lib/theme.js). */
.theme-navidad {
  --bg: #06140e;
  --bg2: #0c2118;
  --gold: #ffd34e;
  --gold-2: #ffae1a;
  --red: #ff4d5e;
  --green: #3ddc84;
  --border: rgba(255, 255, 255, 0.15);
  --xmas-red: linear-gradient(135deg, #ff6b6b 0%, #e63946 52%, #b3001b 100%);
  --xmas-green: linear-gradient(135deg, #2fbf71 0%, #0e7a3d 100%);
  --candy: repeating-linear-gradient(135deg, #ffffff 0 9px, #e63946 9px 18px);
}
.theme-navidad body {
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 520px at 88% -8%, rgba(230, 57, 70, 0.3), transparent 60%),
    radial-gradient(760px 520px at -8% 22%, rgba(31, 166, 90, 0.26), transparent 60%),
    radial-gradient(900px 600px at 50% 112%, rgba(255, 211, 78, 0.14), transparent 60%);
}
.theme-navidad ::selection { background: rgba(230, 57, 70, 0.6); color: #fff; }

/* Cabecera, logo con gorro de Papá Noel */
.theme-navidad header.top { background: rgba(6, 20, 14, 0.8); border-bottom: 1px solid rgba(255, 211, 78, 0.3); }
.theme-navidad .logo-mark { position: relative; background: var(--xmas-red); color: #fff; box-shadow: 0 6px 20px rgba(230, 57, 70, 0.5); overflow: visible; }
.theme-navidad .logo-mark::after {
  content: '';
  position: absolute;
  left: -7px;
  top: -13px;
  width: 31px;
  height: 21px;
  transform: rotate(-17deg);
  background:
    radial-gradient(circle at 90% 14%, #fff 0 3.8px, transparent 4.2px),
    linear-gradient(#fff, #fff) left bottom / 100% 6px no-repeat,
    linear-gradient(160deg, #ff5a68, #c1121f);
  clip-path: polygon(0 100%, 2% 66%, 30% 26%, 78% 6%, 100% 22%, 98% 100%);
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.45));
}
.theme-navidad .nav ul a:hover { background: rgba(255, 211, 78, 0.12); }
.theme-navidad .demo-banner { background: linear-gradient(90deg, #c1121f, #0e7a3d); }

/* Botones, barras y detalles en rojo y verde */
.theme-navidad .btn-primary { background: var(--xmas-red); color: #fff; box-shadow: 0 10px 30px rgba(230, 57, 70, 0.42); }
.theme-navidad .btn-primary:hover { background: var(--xmas-red); box-shadow: 0 14px 40px rgba(230, 57, 70, 0.6); }
.theme-navidad .btn:focus-visible, .theme-navidad input:focus-visible, .theme-navidad select:focus-visible, .theme-navidad textarea:focus-visible, .theme-navidad summary:focus-visible { outline-color: var(--gold); }
.theme-navidad .chip[aria-pressed='true'] { background: var(--xmas-red); color: #fff; }
.theme-navidad .progress > i { background: var(--candy); background-size: 36px 36px; animation: candy-move 1.4s linear infinite; }
@keyframes candy-move { to { background-position: 36px 0; } }
.theme-navidad .ico { background: linear-gradient(135deg, #1fa65a, #e63946); box-shadow: 0 10px 24px rgba(230, 57, 70, 0.35); }
.theme-navidad .badge { border-color: rgba(255, 211, 78, 0.4); }
.theme-navidad .dot { background: var(--green); }

/* Tarjetas: borde multicolor y bastón de caramelo */
.theme-navidad .t-card::before { background: linear-gradient(135deg, #ff4d5e, #ffd34e 50%, #3ddc84); }
.theme-navidad .t-card::after, .theme-navidad .stage::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 7px;
  background: var(--candy);
  z-index: 2;
}
.theme-navidad .t-img { background: linear-gradient(135deg, #0b3d26, #1f7a4a 55%, #b3001b); }
.theme-navidad .stage::after { background: radial-gradient(closest-side, rgba(61, 220, 132, 0.3), transparent); }
.theme-navidad .stage-title { text-shadow: 0 2px 18px rgba(230, 57, 70, 0.35); }
.theme-navidad .reel::before { background: linear-gradient(90deg, #06140e, transparent); }
.theme-navidad .reel::after { background: linear-gradient(-90deg, #06140e, transparent); }
.theme-navidad .winner-box { background: linear-gradient(160deg, rgba(255, 211, 78, 0.18), rgba(46, 229, 157, 0.14)); }
.theme-navidad .seal-info { background: rgba(31, 166, 90, 0.14); }
.theme-navidad .counter { border-color: rgba(255, 211, 78, 0.35); }

/* Tickets y ventanas */
.theme-navidad .ticket { background: linear-gradient(135deg, #8e0b13, #c1121f 48%, #0b6e3a); border-color: rgba(255, 211, 78, 0.35); }
.theme-navidad dialog { background: #0e2a1e; border-color: rgba(255, 211, 78, 0.3); }
.theme-navidad .ticket::before, .theme-navidad .ticket::after { background: #0e2a1e; }
.theme-navidad .success-ico { border-color: var(--gold); background: rgba(255, 211, 78, 0.15); }

/* Pie de página */
.theme-navidad footer { position: relative; background: rgba(0, 0, 0, 0.4); }
.theme-navidad footer::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--candy); }
.xmas-foot { color: var(--gold); font-weight: 800; margin-top: 12px; }

/* Guirnalda de luces bajo la cabecera */
.xmas-lights { position: absolute; left: 0; right: 0; top: 100%; height: 30px; display: flex; justify-content: space-between; padding: 0 10px; pointer-events: none; z-index: 49; }
.xmas-lights::before { content: ''; position: absolute; left: 0; right: 0; top: 2px; height: 2px; background: #0a1a12; }
.xmas-lights i { position: relative; display: block; width: 9px; height: 14px; margin-top: 4px; border-radius: 50% 50% 45% 45% / 60% 60% 40% 40%; background: currentColor; box-shadow: 0 0 10px 2px currentColor; animation: twinkle 1.7s ease-in-out infinite; }
.xmas-lights i::before { content: ''; position: absolute; top: -4px; left: 2px; width: 5px; height: 5px; background: #1d2b24; border-radius: 1px; }
.xmas-lights i:nth-child(4n + 1) { color: #ff4d5e; }
.xmas-lights i:nth-child(4n + 2) { color: #ffd34e; }
.xmas-lights i:nth-child(4n + 3) { color: #3ddc84; }
.xmas-lights i:nth-child(4n) { color: #5aa9ff; }
.xmas-lights i:nth-child(3n) { animation-delay: 0.55s; }
.xmas-lights i:nth-child(3n + 1) { animation-delay: -0.3s; }
@keyframes twinkle { 0%, 100% { opacity: 1; filter: brightness(1.25); } 50% { opacity: 0.4; filter: brightness(0.7); } }
@media (max-width: 600px) { .xmas-lights i:nth-child(n + 25) { display: none; } }

/* Mensaje de fiestas en la portada y nieve */
.xmas-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; margin-bottom: 18px; border-radius: 999px; font-weight: 700; font-size: 0.92rem; background: linear-gradient(90deg, rgba(230, 57, 70, 0.28), rgba(31, 166, 90, 0.28)); border: 1px solid rgba(255, 211, 78, 0.5); }
#xmas-snow { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 40; }
.xmas-toggle { position: fixed; left: 14px; bottom: 14px; z-index: 60; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(6, 20, 14, 0.85); color: #fff; font-size: 1.3rem; cursor: pointer; backdrop-filter: blur(6px); }
.xmas-toggle[aria-pressed='false'] { opacity: 0.55; }
.xmas-toggle { left: 10px; bottom: 10px; width: 38px; height: 38px; font-size: 1.1rem; opacity: 0.85; }
