/* ===== Diseños base (se eligen en Panel › Ajustes › Diseño) ===== */
body.diseno-lago { --marca: #0e7fc0; --marca-osc: #0a5f91; --marca-grad: linear-gradient(90deg, #22b5e8 0%, #0e7fc0 55%, #0a5f91 100%); --verde: #0f766e; --verde-claro: #5eead4; --sol: #7dd3fc; --fondo-3: #eef7fb; --fuente: "Nunito", system-ui, sans-serif; }
body.diseno-atardecer { --marca: #c2410c; --marca-osc: #9a3412; --marca-grad: linear-gradient(90deg, #f59e0b 0%, #c2410c 60%, #9a3412 100%); --verde: #7c4a2d; --verde-claro: #d6a46b; --sol: #f59e0b; --fondo-3: #faf3ec; --fondo-2: #f7f1ea; --fuente: "Lora", Georgia, serif; }
body.diseno-atardecer h1, body.diseno-atardecer h2 { letter-spacing: 0; }
body.diseno-clasico { --marca: #ff385c; --marca-osc: #e31c5f; --marca-grad: linear-gradient(90deg, #ff385c 0%, #e61e4d 50%, #d70466 100%); --verde: #222222; --verde-claro: #717171; --sol: #ff9f1c; --fondo-3: #f7f7f7; --fuente: "Inter", system-ui, sans-serif; --radio: 12px; }
body.diseno-clasico .logo-texto b .t2 { color: var(--marca); }

/* ===== Barra de temporada ===== */
.tema-banner { position: relative; overflow: hidden; color: #fff; text-align: center; font-weight: 700; padding: 10px 16px; font-size: .92rem; display: flex; align-items: center; justify-content: center; gap: 8px; }
.tema-banner [data-lucide] { width: 18px; height: 18px; }
.tema-banner a { color: inherit; text-decoration: underline; margin-left: 6px; }
.tema-adorno { position: absolute; left: 0; right: 0; height: 16px; pointer-events: none; }
.tema-capa { position: fixed; inset: 0; pointer-events: none; z-index: 30; }

/* Navidad: luces bajo la cabecera, árbol con luces en la portada y copos de nieve */
body.tema-navidad { --marca-grad: linear-gradient(90deg, #d62828 0%, #b91c1c 50%, #166534 100%); --marca: #c81e1e; }
body.tema-navidad .tema-banner { background: linear-gradient(90deg, #166534, #b91c1c, #166534); }
body.tema-navidad .cabecera { border-bottom: 0; }
.luces-navidad { position: absolute; left: 0; right: 0; bottom: -16px; height: 20px; display: flex; pointer-events: none; z-index: 5; overflow: hidden;
  background: linear-gradient(#2f5d2f, #2f5d2f) 0 2px/100% 2px no-repeat; }
.luces-navidad i { flex-shrink: 0; width: 8px; height: 12px; margin: 5px 13px 0; border-radius: 50% 50% 45% 45%; background: var(--c); box-shadow: 0 0 6px 2px var(--c); animation: brillo 1.4s ease-in-out infinite alternate; animation-delay: var(--d); }
@keyframes brillo { from { opacity: .35; box-shadow: 0 0 2px 0 var(--c); } to { opacity: 1; box-shadow: 0 0 10px 3px var(--c); } }
.arbol-navidad { position: absolute; right: 22px; bottom: 18px; width: 130px; z-index: 2; filter: drop-shadow(0 8px 14px rgba(0,0,0,.35)); pointer-events: none; }
.arbol-navidad svg { display: block; width: 100%; height: auto; }
.arbol-navidad .ar-luz { animation: parpadeo 1.6s ease-in-out infinite alternate; }
.arbol-navidad .ar-estrella { transform-origin: 60px 20px; animation: estrella 2.4s ease-in-out infinite; }
@keyframes parpadeo { from { opacity: .35; } to { opacity: 1; } }
@keyframes estrella { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
body.tema-navidad .tarjeta .insignia [data-lucide] { color: #c81e1e; }

/* Año Nuevo: reloj grande con cuenta regresiva */
body.tema-ano_nuevo { --marca-grad: linear-gradient(90deg, #d4a017 0%, #b8860b 50%, #1f2937 100%); --marca: #b8860b; }
body.tema-ano_nuevo .tema-banner { background: linear-gradient(90deg, #111827, #3b2f0b, #111827); color: #ffd166; }
body.tema-ano_nuevo .heroe::before { content: "🥂"; position: absolute; right: 26px; top: 22px; font-size: 54px; z-index: 2; }
.ra-mini { display: inline-flex; align-items: center; gap: 5px; margin-left: 8px; padding: 2px 10px; border-radius: 999px; background: rgba(255,209,102,.16); font-variant-numeric: tabular-nums; font-weight: 800; }
.reloj-an { margin: 18px 0 6px; }
.reloj-an .caja-ra { position: relative; overflow: hidden; border-radius: 26px; padding: clamp(22px, 4vw, 40px) clamp(10px, 3vw, 36px); text-align: center; color: #fff;
  background: radial-gradient(circle at 15% 20%, rgba(255,255,255,.9) 0 1px, transparent 2px) 0 0/90px 90px, radial-gradient(circle at 70% 60%, rgba(255,255,255,.7) 0 1px, transparent 2px) 0 0/130px 110px,
    radial-gradient(ellipse at 50% 120%, #4a3a0d 0%, transparent 60%), linear-gradient(160deg, #0b1020 0%, #18213a 55%, #0b1020 100%);
  box-shadow: 0 14px 40px rgba(11,16,32,.35); }
.reloj-an .ra-sup { margin: 0 0 4px; font-size: .82rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #ffd166; }
.reloj-an .ra-tit { margin: 0 0 18px; font-size: clamp(1.4rem, 4vw, 2.2rem); color: #fff; }
.reloj-an .ra-tit span { color: #ffd166; }
.ra-reloj { display: flex; justify-content: center; align-items: flex-start; gap: clamp(3px, 1.4vw, 14px); }
.ra-reloj > div { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.ra-reloj b { display: block; min-width: 1.5em; padding: .12em .12em; border-radius: 14px; background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.04)); border: 1px solid rgba(255,209,102,.35);
  font-size: clamp(2.4rem, 11vw, 6.2rem); line-height: 1; font-weight: 800; font-variant-numeric: tabular-nums; color: #ffd166; text-shadow: 0 0 18px rgba(255,209,102,.45); }
.ra-reloj b.cambio { animation: ra-cambio .45s ease; }
@keyframes ra-cambio { 0% { transform: translateY(-8%); opacity: .3; } 100% { transform: none; opacity: 1; } }
.ra-reloj small { font-size: clamp(.66rem, 2.4vw, .9rem); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.85); }
.ra-reloj > i { font-style: normal; font-weight: 800; font-size: clamp(1.8rem, 8vw, 4.6rem); line-height: 1.15; color: rgba(255,209,102,.6); }
.reloj-an .ra-feliz { margin: 8px 0 0; font-size: clamp(2rem, 8vw, 4rem); font-weight: 800; color: #ffd166; text-shadow: 0 0 22px rgba(255,209,102,.6); animation: ra-latido 1.2s ease-in-out infinite; }
@keyframes ra-latido { 50% { transform: scale(1.06); } }
.reloj-an.llego .ra-reloj, .reloj-an.llego .ra-tit { display: none; }
.reloj-an .ra-cta { margin-top: 20px; display: inline-flex; background: #ffd166; color: #111827; border: 0; }
.reloj-an .ra-cta:hover { background: #ffe39a; }

/* Verano */
body.tema-verano .tema-banner { background: linear-gradient(90deg, #0ea5e9, #f59e0b, #0ea5e9); }
body.tema-verano .heroe::before { content: "☀️"; position: absolute; right: 26px; top: 22px; font-size: 58px; z-index: 2; animation: girar 18s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }

/* Vacaciones de invierno */
body.tema-invierno { --fondo-3: #eef4fb; }
body.tema-invierno .tema-banner { background: linear-gradient(90deg, #1e3a8a, #3b82f6, #1e3a8a); }
body.tema-invierno .heroe::before { content: "❄️"; position: absolute; right: 26px; top: 22px; font-size: 52px; z-index: 2; }

/* Fiestas Patrias: banderines chilenos, bandera flameando, volantín, empanadas y confeti tricolor */
body.tema-fiestas_patrias { --marca-grad: linear-gradient(90deg, #d52b1e 0%, #b91c1c 55%, #0039a6 100%); --marca: #d52b1e; }
body.tema-fiestas_patrias .tema-banner { background: linear-gradient(90deg, #0039a6 0 33%, #ffffff 33% 34%, #d52b1e 34%); }
body.tema-fiestas_patrias .cabecera { border-bottom: 0; }
.banderines { position: absolute; left: 0; right: 0; bottom: -24px; height: 28px; display: flex; pointer-events: none; z-index: 5; overflow: hidden;
  background: linear-gradient(#8a6b3d, #8a6b3d) 0 1px/100% 1.5px no-repeat; }
.banderines i { flex-shrink: 0; width: 30px; margin: 2px 7px 0; transform-origin: 50% 0; animation: banderin 2.6s ease-in-out infinite alternate; animation-delay: var(--d); }
.banderines svg { display: block; width: 100%; height: auto; border-radius: 2px; box-shadow: 0 2px 4px rgba(0,0,0,.25); }
@keyframes banderin { from { transform: rotate(-5deg); } to { transform: rotate(5deg); } }
.patrio-heroe { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.bandera-flameando { position: absolute; right: 26px; top: 22px; width: 96px; animation: flamear 3s ease-in-out infinite; transform-origin: 0 50%; filter: drop-shadow(0 6px 10px rgba(0,0,0,.3)); }
.bandera-flameando svg { display: block; width: 100%; height: auto; border-radius: 3px; }
@keyframes flamear { 0%, 100% { transform: perspective(300px) rotateY(0) skewY(0); } 50% { transform: perspective(300px) rotateY(-14deg) skewY(-2deg); } }
.patrio-heroe .volantin { position: absolute; right: 150px; top: 10px; width: 54px; animation: volar 6s ease-in-out infinite; filter: drop-shadow(0 6px 8px rgba(0,0,0,.25)); }
@keyframes volar { 0%, 100% { transform: translate(0, 0) rotate(-6deg); } 50% { transform: translate(-14px, 10px) rotate(8deg); } }
.patrio-heroe .empanadas { position: absolute; right: 22px; bottom: 18px; display: flex; }
.patrio-heroe .empanada { width: 82px; height: auto; filter: drop-shadow(0 6px 8px rgba(0,0,0,.3)); }
.patrio-heroe .empanada + .empanada { margin-left: -26px; transform: rotate(10deg) translateY(6px); }

@media (max-width: 760px) {
  .heroe::before { font-size: 38px !important; right: 16px !important; top: 14px !important; }
  .arbol-navidad { width: 52px; right: 10px; bottom: auto; top: 8px; }
  .bandera-flameando { width: 64px; right: 14px; top: 14px; }
  .patrio-heroe .volantin { width: 38px; right: 92px; top: 8px; }
  .patrio-heroe .empanadas { display: none; }
  .ra-mini { margin-left: 4px; padding: 1px 8px; }
  .reloj-an .caja-ra { border-radius: 20px; }
  .tema-banner { font-size: .82rem; }
}
@media (prefers-reduced-motion: reduce) { .tema-capa { display: none; } .luces-navidad i, .arbol-navidad *, .banderines i, .bandera-flameando, .patrio-heroe .volantin, .ra-reloj b, .ra-feliz { animation: none !important; } }

/* ===== Letrero LED de temporada: el mensaje pasa de derecha a izquierda ===== */
.tema-banner.led { --led: #ffb020; --led-fondo: #0b0b0b; display: flex; align-items: center; gap: 10px; padding: 7px 10px; background: var(--led-fondo) !important; color: var(--led); border-bottom: 2px solid #1c1c1c; box-shadow: inset 0 0 0 1px #222; }
.led-pantalla { position: relative; flex: 1; min-width: 0; overflow: hidden; height: 40px; border-radius: 6px; background: #050505; box-shadow: inset 0 0 12px rgba(0,0,0,.9);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%); }
/* Puntos del letrero (matriz LED) encima del texto */
.led-pantalla::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle, transparent 0 1.1px, rgba(5,5,5,.78) 1.5px) 0 0/4px 4px; }
.led-pista { display: flex; width: max-content; height: 100%; align-items: center; animation: led-pasar var(--led-vel, 28s) linear infinite; }
.led-texto { display: flex; align-items: center; gap: 28px; padding-right: 28px; white-space: nowrap; }
.led-texto span, .led-texto b { font-family: "Courier New", ui-monospace, monospace; font-weight: 800; font-size: 1.28rem; letter-spacing: .06em; text-transform: uppercase; color: var(--led);
  text-shadow: 0 0 4px var(--led), 0 0 10px var(--led), 0 0 18px color-mix(in srgb, var(--led) 60%, transparent); }
.led-texto b { font-size: 1rem; opacity: .8; }
@keyframes led-pasar { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.tema-banner.led:hover .led-pista { animation-play-state: paused; }
.tema-banner.led .led-btn { flex-shrink: 0; margin: 0; padding: 8px 14px; border-radius: 999px; background: var(--led); color: #111; text-decoration: none; font-weight: 800; font-size: .88rem; box-shadow: 0 0 10px color-mix(in srgb, var(--led) 70%, transparent); }
.tema-banner.led .ra-mini { flex-shrink: 0; margin: 0; padding: 6px 10px; border-radius: 6px; background: #050505; color: var(--led); font-family: "Courier New", ui-monospace, monospace; font-size: 1.05rem; text-shadow: 0 0 6px var(--led); }
.tema-banner.led > [data-lucide], .tema-banner.led > svg { display: none; }
/* Color del LED según la temporada */
body.tema-navidad .tema-banner.led { --led: #ff4d4d; }
body.tema-navidad .led-texto b { color: #3ddc84; text-shadow: 0 0 6px #3ddc84, 0 0 14px #3ddc84; }
body.tema-ano_nuevo .tema-banner.led { --led: #ffc83d; }
body.tema-verano .tema-banner.led { --led: #ffb020; }
body.tema-invierno .tema-banner.led { --led: #7cc8ff; }
body.tema-fiestas_patrias .tema-banner.led { --led: #ff4040; }
body.tema-fiestas_patrias .led-texto b { color: #6aa6ff; text-shadow: 0 0 6px #6aa6ff, 0 0 14px #6aa6ff; }
@media (max-width: 760px) {
  .tema-banner.led { padding: 6px 8px; gap: 8px; }
  .led-pantalla { height: 36px; }
  .led-texto span { font-size: 1.12rem; }
  .led-pantalla::after { background: radial-gradient(circle, transparent 0 1px, rgba(5,5,5,.5) 1.4px) 0 0/3px 3px; }
  .tema-banner.led .led-btn { padding: 7px 11px; font-size: .8rem; }
  .tema-banner.led .ra-mini { font-size: .9rem; padding: 5px 7px; }
}
@media (prefers-reduced-motion: reduce) { .led-pista { animation: none; } }

/* ===== Navidad: escena animada en la portada (en el lugar del reloj de Año Nuevo) ===== */
.navidad-escena { margin: 18px 0 6px; }
.caja-nav { position: relative; overflow: hidden; min-height: 280px; border-radius: 26px; color: #fff; display: flex; align-items: center; justify-content: flex-end;
  background: radial-gradient(circle at 12% 18%, rgba(255,255,255,.9) 0 1px, transparent 2px) 0 0/80px 70px, radial-gradient(circle at 60% 40%, rgba(255,255,255,.6) 0 1px, transparent 2px) 0 0/120px 90px,
    linear-gradient(180deg, #0b1a3a 0%, #13306b 60%, #1d4a8c 100%);
  box-shadow: 0 14px 40px rgba(11,26,58,.35); }
.nv-luna { position: absolute; right: 9%; top: 22px; width: 64px; height: 64px; border-radius: 50%; background: radial-gradient(circle at 40% 40%, #fffbe6, #ffe8a3 70%); box-shadow: 0 0 40px 10px rgba(255,232,163,.35); }
.nv-trineo { position: absolute; top: 34px; left: 0; width: 230px; animation: nv-volar 16s linear infinite; filter: drop-shadow(0 0 6px rgba(255,255,255,.25)); }
@keyframes nv-volar { 0% { transform: translate(-260px, 40px) rotate(-4deg); } 50% { transform: translate(45vw, -6px) rotate(2deg); } 100% { transform: translate(110vw, 30px) rotate(-3deg); } }
.nv-reno .nv-pata1 { animation: nv-galope .5s ease-in-out infinite alternate; transform-origin: 15px 31px; }
.nv-reno .nv-pata2 { animation: nv-galope .5s ease-in-out infinite alternate-reverse; transform-origin: 30px 31px; }
@keyframes nv-galope { from { transform: rotate(-14deg); } to { transform: rotate(14deg); } }
.nv-nieve { position: absolute; inset: -100px 0 0 0; pointer-events: none;
  background-image: radial-gradient(circle, #fff 0 1.6px, transparent 2.4px), radial-gradient(circle, rgba(255,255,255,.8) 0 1.2px, transparent 2px), radial-gradient(circle, #fff 0 2.2px, transparent 3px);
  background-size: 70px 70px, 110px 90px, 160px 140px; background-position: 0 0, 30px 40px, 80px 20px; animation: nv-cae 9s linear infinite; }
.nv-n2 { opacity: .6; background-size: 50px 60px, 90px 70px, 130px 120px; animation-duration: 14s; }
@keyframes nv-cae { from { transform: translateY(0); } to { transform: translateY(100px) translateX(-10px); } }
.nv-suelo { position: absolute; left: -5%; right: -5%; bottom: -40px; height: 90px; border-radius: 50% 50% 0 0; background: linear-gradient(#ffffff, #dbe7f5); box-shadow: 0 -6px 18px rgba(255,255,255,.25); }
.nv-arbol { position: absolute; left: 6%; bottom: 22px; width: 140px; z-index: 2; }
.nv-arbol > svg:first-child { display: block; width: 100%; height: auto; filter: drop-shadow(0 8px 12px rgba(0,0,0,.35)); }
.nv-regalos { position: absolute; left: 70%; bottom: -6px; width: 110px; }
.nv-luz { animation: nv-parpadeo 1.5s ease-in-out infinite alternate; }
@keyframes nv-parpadeo { from { opacity: .3; } to { opacity: 1; filter: drop-shadow(0 0 3px currentColor); } }
.nv-estrella { transform-origin: 60px 20px; animation: nv-estrella 2.2s ease-in-out infinite; }
@keyframes nv-estrella { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.15) rotate(8deg); } }
.nv-texto { position: relative; z-index: 3; width: 56%; padding: 24px clamp(16px, 4vw, 48px) 60px 0; text-align: center; }
.nv-sup { margin: 0 0 4px; font-size: .82rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #ffd166; }
.nv-texto h2 { margin: 0 0 6px; font-size: clamp(2rem, 6vw, 3.4rem); color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,.35); animation: nv-latido 2.4s ease-in-out infinite; }
@keyframes nv-latido { 50% { transform: scale(1.04); } }
.nv-bajada { margin: 0 0 16px; color: rgba(255,255,255,.9); font-weight: 600; }
.nv-cta { display: inline-flex; background: #c81e1e; color: #fff; border: 0; box-shadow: 0 6px 18px rgba(200,30,30,.45); }
.nv-cta:hover { background: #e02424; }
@media (max-width: 760px) {
  .caja-nav { min-height: 330px; border-radius: 20px; align-items: flex-start; }
  .nv-texto { width: 100%; padding: 26px 16px 0; }
  .nv-texto h2 { font-size: 2.1rem; }
  .nv-bajada { font-size: .92rem; margin-bottom: 12px; }
  .nv-arbol { width: 96px; left: 14px; bottom: 16px; }
  .nv-regalos { width: 76px; }
  .nv-luna { width: 44px; height: 44px; top: 14px; right: 14px; }
  .nv-trineo { width: 150px; top: 6px; }
  .nv-suelo { height: 70px; bottom: -34px; }
}
@media (prefers-reduced-motion: reduce) { .nv-trineo, .nv-nieve, .nv-luz, .nv-estrella, .nv-texto h2, .nv-reno path { animation: none !important; } .nv-trineo { transform: translate(30%, 0); } }
