/* ══ Capa "Diciembre" para la página principal ══
   Se agrega encima de la página de siempre: con <html class="tema-dic"> (fondo crema) o
   <html class="tema-dic oscuro">. Sin esa clase, no hace nada → la página queda igual que hoy.
   Paleta: primario #EA580C · secundario #F59E0B · terciario #DC2626 · neutro #1C140E */
html.tema-dic {
  --d-pri: #EA580C; --d-sec: #F59E0B; --d-ter: #DC2626; --d-neu: #1C140E;
  --d-bg: #FFF8EF; --d-bg2: #FFF1E3; --d-card: #ffffff; --d-txt: #2a1a10; --d-txt2: #6b4a3a; --d-borde: #f3d9c2;
}
html.tema-dic.oscuro {
  --d-bg: #1a120c; --d-bg2: #221a14; --d-card: #271e17; --d-txt: #f0dfd5; --d-txt2: #e2bfb2; --d-borde: #3d332c;
}
html.tema-dic body { background: var(--d-bg); color: var(--d-txt); }

/* Encabezado */
html.tema-dic .hero-bg {
  background:
    radial-gradient(circle at 15% 20%, rgba(255,255,255,.14), transparent 40%),
    radial-gradient(circle at 85% 0%, rgba(253,224,71,.22), transparent 45%),
    linear-gradient(135deg, #DC2626 0%, #EA580C 55%, #F59E0B 100%);
}
html.tema-dic.oscuro .hero-bg {
  background:
    radial-gradient(circle at 20% 15%, rgba(246,96,24,.35), transparent 45%),
    radial-gradient(circle at 85% 10%, rgba(245,158,11,.25), transparent 40%),
    linear-gradient(160deg, #3a160b 0%, #1C140E 70%);
}
html.tema-dic .hero-bg > .bg-gray-800 { background: rgba(28,20,14,.92) !important; border-color: #3d332c !important; }
html.tema-dic .hero-bg .text-yellow-300 { color: #FDE047; }
html.tema-dic .pulse-button { background: #c2410c !important; } /* 08/11: más oscuro, la letra blanca no se leía (#FF5500) */
html.tema-dic .gradient-text { background: linear-gradient(135deg, #DC2626, #EA580C 60%, #F59E0B); -webkit-background-clip: text; background-clip: text; }

/* Tarjetas de combos: encabezados y botones con la paleta */
html.tema-dic .sandwich-card { background: var(--d-card) !important; }
html.tema-dic .sandwich-card > div:first-child { background-image: linear-gradient(90deg, #c2410c, #b45309) !important; }
html.tema-dic .sandwich-card:nth-child(2) > div:first-child { background-image: linear-gradient(90deg, #b91c1c, #c2410c) !important; }
html.tema-dic .sandwich-card:nth-child(3) > div:first-child { background-image: linear-gradient(90deg, #991b1b, #DC2626) !important; }
html.tema-dic .sandwich-card:nth-child(4) > div:first-child { background-image: linear-gradient(90deg, #1C140E, #4a2c18) !important; }
html.tema-dic .sandwich-card:nth-child(4) > div:first-child h3 { color: #FDE047 !important; }
html.tema-dic .sandwich-card a.w-full { background: #c2410c !important; }
html.tema-dic .sandwich-card:nth-child(2) a.w-full { background: #DC2626 !important; }
html.tema-dic .sandwich-card:nth-child(3) a.w-full { background: #b91c1c !important; }
html.tema-dic .sandwich-card:nth-child(4) a.w-full { background: #1C140E !important; color: #FDE047 !important; }
html.tema-dic .sandwich-card .text-orange-600,
html.tema-dic .sandwich-card .text-orange-700,
html.tema-dic .sandwich-card .text-red-600,
html.tema-dic .sandwich-card .text-blue-600,
html.tema-dic .sandwich-card .text-purple-600 { color: #DC2626 !important; }
html.tema-dic.oscuro .sandwich-card .text-orange-600,
html.tema-dic.oscuro .sandwich-card .text-orange-700,
html.tema-dic.oscuro .sandwich-card .text-red-600,
html.tema-dic.oscuro .sandwich-card .text-blue-600,
html.tema-dic.oscuro .sandwich-card .text-purple-600 { color: #ffb95f !important; }
/* regalito al lado del nombre de cada combo (no tapa "Popular" ni "¡OFERTA!") */
html.tema-dic .sandwich-card > div:first-child h3::after { content: ' 🎁'; }

/* Secciones de colores (Premium, Elegidos, Reparto, App) */
html.tema-dic .from-yellow-100.to-orange-100 { background-image: linear-gradient(90deg, #FEF3C7, #FFE4CC) !important; }
html.tema-dic #surtidos-elegidos { background-image: linear-gradient(90deg, #FDE7DF, #FFF1E3, #FDE1D6) !important; }
html.tema-dic .from-green-100.to-blue-100 { background-image: linear-gradient(90deg, #FFF1E3, #FEF3C7) !important; }
html.tema-dic #seccion-app { background-image: linear-gradient(90deg, #b91c1c, #c2410c) !important; }
html.tema-dic .from-yellow-500.to-orange-500 { background-image: linear-gradient(90deg, #F59E0B, #EA580C) !important; }
html.tema-dic .bg-blue-50 { background: #FDECE6 !important; }
html.tema-dic .text-blue-600, html.tema-dic .text-blue-500 { color: #DC2626 !important; }
html.tema-dic .text-purple-600 { color: #b91c1c !important; }
html.tema-dic .turno-web .bg-blue-500, html.tema-dic .turno-web .bg-blue-700 { background: #b91c1c !important; }
html.tema-dic .turno-web .bg-orange-500, html.tema-dic .turno-web .bg-orange-700 { background: #c2410c !important; }
html.tema-dic .turno-web .bg-purple-500, html.tema-dic .turno-web .bg-purple-700 { background: #b45309 !important; }
html.tema-dic .bg-gray-800.text-white { background: #1C140E !important; }
html.tema-dic .bg-gray-800.text-white .bg-gray-700 { background: #312821 !important; }
html.tema-dic footer.bg-gray-900 { background: #140d07 !important; }

/* Versión oscura: todo lo blanco pasa a "carbón" cálido */
html.tema-dic.oscuro main .bg-white, html.tema-dic.oscuro .ticker-item { background: var(--d-card) !important; }
html.tema-dic.oscuro .text-gray-800, html.tema-dic.oscuro .text-gray-900, html.tema-dic.oscuro .text-gray-700 { color: var(--d-txt) !important; }
html.tema-dic.oscuro .text-gray-600, html.tema-dic.oscuro .text-gray-500 { color: var(--d-txt2) !important; }
html.tema-dic.oscuro .text-gray-400 { color: #a98a7e !important; }
html.tema-dic.oscuro .from-yellow-100.to-orange-100,
html.tema-dic.oscuro #surtidos-elegidos,
html.tema-dic.oscuro .from-green-100.to-blue-100 { background-image: linear-gradient(160deg, #2a1d14, #221a14) !important; border: 1px solid #3d332c; }
html.tema-dic.oscuro .bg-yellow-200, html.tema-dic.oscuro .bg-green-100 { background: #3d332c !important; color: #ffb95f !important; }
html.tema-dic.oscuro .bg-blue-50, html.tema-dic.oscuro .bg-yellow-50, html.tema-dic.oscuro .bg-gray-100, html.tema-dic.oscuro .bg-gray-50 { background: #312821 !important; color: var(--d-txt) !important; }
html.tema-dic.oscuro #surtidos-elegidos .text-red-600 { color: #ff8a65 !important; }
html.tema-dic.oscuro .text-blue-600, html.tema-dic.oscuro .text-blue-500 { color: #ff8a65 !important; }
html.tema-dic.oscuro .text-purple-600 { color: #ffb95f !important; }
/* 08/11: en la página normal estos pasaron a más oscuros (fondo blanco); sobre el fondo oscuro van claros */
html.tema-dic.oscuro .text-yellow-700 { color: #facc15 !important; }
html.tema-dic.oscuro .text-orange-700 { color: #fdba74 !important; }
html.tema-dic.oscuro .promo-online { background: #12301d; border-color: #2f6b45; color: #bbf7d0; }
html.tema-dic.oscuro .promo-online-txt b, html.tema-dic.oscuro .promo-online-txt small { color: #86efac; }
html.tema-dic.oscuro .border-red-200 { border-color: #5a4138 !important; }
html.tema-dic.oscuro .ticker-wrap::before, html.tema-dic.oscuro .ticker-wrap::after { background: none !important; }

/* ── Adornos ── */
/* gorro de Papá Noel en el logo */
html.tema-dic .floating > div { position: relative; overflow: visible; }
html.tema-dic .floating > div::after { content: '🎅'; position: absolute; top: -18%; right: -14%; font-size: 2.1em; transform: rotate(16deg); }
/* guirnalda de luces debajo de la barra de arriba (la arma tema_dic.js) */
.dic-luces { position: relative; z-index: 20; display: flex; justify-content: space-around; height: 22px; margin-top: -2px; pointer-events: none;
  background: radial-gradient(ellipse at 50% -40%, transparent 60%, rgba(28,20,14,.0) 61%); }
.dic-luces::before { content: ''; position: absolute; left: 0; right: 0; top: 2px; height: 8px; border-bottom: 2px solid rgba(28,20,14,.55); border-radius: 0 0 50% 50% / 0 0 100% 100%; }
.dic-luces i { position: relative; top: 6px; width: 9px; height: 13px; border-radius: 50% 50% 45% 45%; animation: dic-titila 1.6s infinite ease-in-out; }
.dic-luces i:nth-child(4n+1) { background: #FDE047; box-shadow: 0 0 8px #FDE047; }
.dic-luces i:nth-child(4n+2) { background: #22c55e; box-shadow: 0 0 8px #22c55e; animation-delay: .4s; }
.dic-luces i:nth-child(4n+3) { background: #ef4444; box-shadow: 0 0 8px #ef4444; animation-delay: .8s; }
.dic-luces i:nth-child(4n)   { background: #60a5fa; box-shadow: 0 0 8px #60a5fa; animation-delay: 1.2s; }
@keyframes dic-titila { 0%, 100% { opacity: 1 } 50% { opacity: .35 } }
/* nieve suave en el encabezado */
.dic-nieve { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; }
.dic-nieve span { position: absolute; top: -10px; color: #fff; opacity: .8; animation: dic-cae linear infinite; }
@keyframes dic-cae { to { transform: translate(var(--dx, 20px), 110vh) rotate(180deg); } }
/* arbolito en los títulos */
html.tema-dic main h2.gradient-text::after, html.tema-dic main h2.text-4xl::after { content: ' 🎄'; -webkit-text-fill-color: initial; }
/* cartel de "felices fiestas" arriba del pie */
.dic-felices { text-align: center; padding: 22px 16px; font-weight: 700; font-size: 18px; color: #fff;
  background: linear-gradient(90deg, #991b1b, #b91c1c, #c2410c); }
.dic-felices small { display: block; font-weight: 400; font-size: 13px; opacity: .9; margin-top: 2px; }
@media (prefers-reduced-motion: reduce) { .dic-nieve { display: none; } .dic-luces i { animation: none; } }

/* ── Botón "Reservas Navidad y Fin de Año" (interruptor de Reservas) ── */
.btn-fiestas { display: block; margin: 0 auto 6px; width: 100%; max-width: 400px; padding: 2px; border-radius: 18px; text-decoration: none;
  background: linear-gradient(90deg, #dc2626, #e11d48, #d97706); animation: fz-latido 2.8s infinite ease-in-out; }
@keyframes fz-latido { 0%, 100% { transform: scale(1); box-shadow: 0 4px 20px rgba(220,38,38,.4), 0 0 0 0 rgba(254,240,138,.7) }
  50% { transform: scale(1.02); box-shadow: 0 8px 26px rgba(220,38,38,.55), 0 0 0 5px rgba(254,240,138,.25) } }
.btn-fiestas .in { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: linear-gradient(90deg, #991b1b, #b91c1c); text-align: left; overflow: hidden; color: #fff; }
.btn-fiestas .ico { flex: 0 0 48px; height: 48px; border-radius: 12px; background: rgba(255,255,255,.1); border: 1px solid rgba(253,224,71,.4); display: flex; align-items: center; justify-content: center; font-size: 24px; }
.btn-fiestas .t1 { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #FDE047; }
.btn-fiestas .t1 i { width: 8px; height: 8px; border-radius: 50%; background: #fde047; animation: fz-ping 1.4s infinite; }
@keyframes fz-ping { 0% { box-shadow: 0 0 0 0 rgba(253,224,71,.8) } 100% { box-shadow: 0 0 0 8px rgba(253,224,71,0) } }
.btn-fiestas .t2 { display: block; font-size: 16px; font-weight: 800; margin-top: 2px; }
.btn-fiestas .t3 { display: block; font-size: 13px; color: #ffe4e6; margin-top: 2px; }
.btn-fiestas .flecha { margin-left: auto; flex: 0 0 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.15); display: flex; align-items: center; justify-content: center; color: #fde047; font-weight: 800; font-size: 20px; }
.btn-fiestas .arbol { position: absolute; right: -6px; bottom: -12px; font-size: 46px; opacity: .15; }
.btn-fiestas .mini { display: block; margin-top: 4px; font-size: 13px; font-weight: 700; color: #FDE047; font-variant-numeric: tabular-nums; }
.fz-boton-wrap { width: 100%; padding: 0 4px; margin-bottom: 6px; }