/* ---------- Efectos de temporada de la cabecera ----------
   Generado desde mockup-seasonals.html (no editar a mano: regenerar).
   Solo actúa cuando el script añade la clase .fx a la cabecera (efectos activados). */

/* La cabecera ya es sticky (posicionada), así que la capa se ancla a ella sin cambiarle el position */
html .cabecera.fx > .capa { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.cabecera.fx > .marca-app, .cabecera.fx > .cabecera-derecha { position: relative; }
/* Los cuadros oscuros tras el logo y el nombre también aparecen y se van con suavidad */
.cabecera .cabecera-logo, .cabecera .usuario-caja { transition: background-color 0.8s ease, box-shadow 0.8s ease; }
.cabecera .usuario-info, .cabecera .usuario-info strong, .cabecera .enlace-salir { transition: color 0.8s ease; }
/* La caja del nombre mide lo que el texto (el bloque de usuario conserva su ancho fijo para que los botones no se muevan) */
.cabecera .usuario-caja { display: block; width: fit-content; max-width: 100%; margin-left: auto; }

.cabecera.fx .capa {
position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden;
}
/* Día y evento en pequeño, debajo del logo (efectos.js lo coloca). Con cuadro en el logo se une a él: mismo tono y sin solaparse, para no oscurecer */
.cabecera.fx .leyenda-dia {
position: absolute; left: 5px; bottom: 3px; z-index: 3; width: max-content; white-space: nowrap; font: 600 .52rem/1.15 system-ui, sans-serif; letter-spacing: .02em; color: rgba(255,255,255,.92); text-shadow: 0 1px 2px rgba(0,0,0,.7); background: rgba(0,0,0,.32); padding: 1px 6px; border-radius: 6px; text-align: center; transition: background-color 0.8s ease, color 0.8s ease;
}
.cabecera.fx .leyenda-dia.unida { background: rgba(0,0,0,.35); border-radius: 0 0 8px 8px; text-shadow: none; }
.cabecera.fx.logo-oscuro .leyenda-dia.unida { background: rgba(255,255,255,.4); color: #0f172a; }
.cabecera.fx.logo-oscuro .leyenda-dia:not(.unida) { background: rgba(255,255,255,.55); color: #0f172a; text-shadow: none; }.cabecera.fx .p {
position: absolute; top: -28px; line-height: 1; will-change: transform;
}
.cabecera.fx .p.caer {
animation: caer var(--dur) linear infinite; animation-delay: var(--del);
}
.cabecera.fx .p.subir {
top: auto; bottom: -24px; animation: subir var(--dur) ease-in infinite; animation-delay: var(--del);
}
.cabecera.fx .p.cruzar {
top: var(--alto); left: -40px; animation: cruzar var(--dur) linear infinite; animation-delay: var(--del);
}
.cabecera.fx .p.explota {
top: var(--y); left: var(--x); animation: explota 1.1s ease-out forwards;
}
@keyframes caer {
to { transform: translate(var(--d), 90px) rotate(360deg); }
}
@keyframes subir {
from { transform: translateY(0) scale(.8); opacity: 0; } 20% { opacity: 1; } to { transform: translateY(-90px) scale(1.1); opacity: 0; }
}
@keyframes cruzar {
to { transform: translateX(calc(100% + 80px)); }
}
@keyframes explota {
0% { transform: translate(0,0) scale(.2); opacity: 1; }
    100% { transform: translate(var(--tx), var(--ty)) scale(1); opacity: 0; }
}
.cabecera.fx .gota {
position: absolute; top: -16px; width: 1.5px; height: 12px; border-radius: 2px;
    background: linear-gradient(to bottom, rgba(160,200,240,0), rgba(160,200,240,.85));
    animation: gota-caer calc(var(--dur) * var(--k, 1)) linear infinite; animation-delay: var(--del);   /* --k alarga la duración cuando la cabecera está ampliada, para que la gota caiga a la misma velocidad */
}
@keyframes gota-caer {
from { transform: translate(0, 0) rotate(12deg); }
    to { transform: translate(calc(var(--caida, 90px) * -.178), var(--caida, 90px)) rotate(12deg); }   /* --caida = alto de la cabecera (mínimo 90 px): la lluvia llega hasta abajo */
}
.cabecera.fx .vela {
position: absolute; bottom: 4px; width: 6px; height: 18px; background: #F3E9D2; border-radius: 2px;
}
.cabecera.fx .vela::before {
content: ""; position: absolute; left: 50%; top: -13px; width: 7px; height: 11px; margin-left: -3.5px;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    background: radial-gradient(circle at 50% 70%, #fff7c2, #F5A44A 60%, transparent 72%);
    box-shadow: 0 0 10px 3px rgba(245,164,74,.45);
    transform-origin: bottom center;
    animation: llama .2s ease-in-out infinite alternate;
}
@keyframes llama {
from { transform: scale(1, .9); } to { transform: scale(1.06, 1.12); }
}
.cabecera.fx .m1 {
background: linear-gradient(100deg, #1E3A5F 0%, #3A6494 45%, #1E3A5F 60%); background-size: 250% 100%; animation: escarcha 8s ease-in-out infinite;
}
@keyframes escarcha {
0%, 100% { background-position: 0% 0; } 50% { background-position: 100% 0; }
}
.cabecera.fx .m2 {
background: linear-gradient(90deg, #6E2A48, #A23F6C, #6E2A48); background-size: 250% 100%; animation: rosa 7s ease-in-out infinite;
}
@keyframes rosa {
0%, 100% { background-position: 0% 0; } 50% { background-position: 100% 0; }
}
.cabecera.fx.m3 {
background: linear-gradient(90deg, #2E5D4F, #3F7A66, #2E5D4F); background-size: 250% 100%; animation: brote 9s ease-in-out infinite;
}
@keyframes brote {
0%, 100% { background-position: 0% 0; } 50% { background-position: 100% 0; }
}
.cabecera.fx.m4 {
background: linear-gradient(180deg, #22364F, #1B2C42);
}
.cabecera.fx.m5 {
background: linear-gradient(90deg, #2A5A4B, #3F7A5C);
}
.cabecera.fx.m6 {
background: linear-gradient(90deg, #8F4A12, #C07A1E, #8F4A12);
}
.cabecera.fx.m6 .capa::before {
content: ""; position: absolute; left: -60px; top: 50%; width: 260px; height: 260px; margin-top: -130px;
    background: repeating-conic-gradient(from 0deg, rgba(255,226,140,.22) 0 8deg, transparent 8deg 22deg);
    border-radius: 50%; animation: giro 18s linear infinite;
}
.cabecera.fx.m6 .capa::after {
content: ""; position: absolute; left: -40px; top: 50%; width: 140px; height: 140px; margin-top: -70px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,240,180,.55), transparent 70%);
}
@keyframes giro {
to { transform: rotate(360deg); }
}
.cabecera.fx .m7 {
background: linear-gradient(180deg, #14263F, #1E3A5F);
}
.cabecera.fx .m8 {
background: linear-gradient(90deg, #1F5C66, #24497A, #1F5C66); background-size: 250% 100%; animation: mar 10s ease-in-out infinite;
}
@keyframes mar {
0%, 100% { background-position: 0% 0; } 50% { background-position: 100% 0; }
}
.cabecera.fx.m9 {
background: linear-gradient(90deg, #4A5A3A, #5E6F45, #4A5A3A);
}
.cabecera.fx.m10 {
background:
        radial-gradient(ellipse at 85% 0%, rgba(150,20,30,.4), transparent 55%),
        linear-gradient(90deg, #07050A, #140B1A 50%, #07050A);
}
.cabecera.fx.m10 .capa::before {
content: ""; position: absolute; inset: 0; animation: rayo 8s linear infinite;
}
@keyframes rayo {
0%, 91%, 100% { background: transparent; }
    91.8% { background: rgba(225,225,255,.34); }
    92.4% { background: transparent; }
    93.2% { background: rgba(225,225,255,.14); }
    94% { background: transparent; }
    95%, 99% { background: transparent; }
}
.cabecera.fx.m10 .capa::after {
content: ""; position: absolute; top: -10px; right: -10px; width: 96px; height: 96px; display: none;
}
.cabecera.fx.otono {
background: linear-gradient(90deg, #6B3E1E, #8A5426, #6B3E1E); background-size: 250% 100%; animation: otono 10s ease-in-out infinite;
}
@keyframes otono {
0%, 100% { background-position: 0% 0; } 50% { background-position: 100% 0; }
}
.cabecera.fx.otono .capa::before {
content: ""; position: absolute; right: -40px; top: -60px; width: 180px; height: 180px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,190,110,.35), transparent 70%);
}
.cabecera.fx.m11 {
background: linear-gradient(90deg, #4A3A2E, #5E4A3A, #4A3A2E);
}
.cabecera.fx.m11 .capa::after {
content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent);
    background-size: 200% 100%; animation: niebla 9s ease-in-out infinite;
}
@keyframes niebla {
0%, 100% { background-position: 0% 0; } 50% { background-position: 100% 0; }
}
.cabecera.fx.m12 {
background: linear-gradient(90deg, #163D2C, #1F5A40, #163D2C);
}
.cabecera.fx .luces {
position: absolute; left: 0; right: 0; top: 0; height: 14px; display: flex; justify-content: space-around; z-index: 1; pointer-events: none;
}
.cabecera.fx .luces span {
width: 9px; height: 9px; border-radius: 50%; margin-top: 2px; animation: parpadeo 1.6s ease-in-out infinite;
}
@keyframes parpadeo {
0%, 100% { opacity: .35; } 50% { opacity: 1; box-shadow: 0 0 8px currentColor; }
}
.cabecera.fx .fiesta {
background: linear-gradient(90deg, #1B1F3B, #2C2F5C, #1B1F3B); background-size: 250% 100%; animation: fiesta 8s ease-in-out infinite;
}
@keyframes fiesta {
0%, 100% { background-position: 0% 0; } 50% { background-position: 100% 0; }
}
.cabecera.fx.dic-invierno {
background: linear-gradient(180deg, #0F1B33 0%, #2C4A78 100%);
}
.cabecera.fx.dic-invierno .capa::before {
content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(220,233,247,.14), transparent 60%);
}
.cabecera.fx.santa {
background: linear-gradient(90deg, #3E2252, #5C3778, #3E2252); background-size: 250% 100%; animation: santa 12s ease-in-out infinite;
}
@keyframes santa {
0%, 100% { background-position: 0% 0; } 50% { background-position: 100% 0; }
}
.cabecera.fx.san-valentin {
background: linear-gradient(90deg, #6E2A48, #A23F6C, #6E2A48); background-size: 250% 100%; animation: rosa 7s ease-in-out infinite;
}
.cabecera.fx.san-valentin .capa::after {
content: ""; position: absolute; inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255,120,160,.38), transparent 62%);
    animation: latido 1.4s ease-in-out infinite;
}
@keyframes latido {
0%, 100% { opacity: .2; }
    12% { opacity: 1; }
    24% { opacity: .35; }
    36% { opacity: .9; }
    55% { opacity: .2; }
}
.cabecera.fx .especial {
display: inline-block; margin-left: 4px; padding: 2px 8px; border-radius: 999px;
    background: #FFF4D6; color: #8A5B00; font-size: .66rem; font-weight: 700; letter-spacing: .03em;
}
.cabecera.fx.aurora {
background: linear-gradient(90deg, #14263F, #1E5A6B, #2E4A8A, #1E5A6B, #14263F); background-size: 300% 100%; animation: aurora 12s ease-in-out infinite;
}
@keyframes aurora {
0%, 100% { background-position: 0% 0; } 50% { background-position: 100% 0; }
}
.cabecera.fx .estrella {
position: absolute; color: #fff; line-height: 1;
    animation: titilar var(--dur) ease-in-out infinite; animation-delay: var(--del);
}
@keyframes titilar {
0%, 100% { opacity: .2; transform: scale(.7); }
    50% { opacity: 1; transform: scale(1.15); }
}
.cabecera.fx.playa {
background: linear-gradient(180deg, #1E9FB3 0%, #26B8C4 55%, #2AA0B5 55%, #2AA0B5 100%);
}
.cabecera.fx.playa::before {
content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 42%; z-index: 0;
    background: linear-gradient(180deg, #EED9A4, #E0BE7E);
}
.cabecera.fx.playa .capa::before {
content: ""; position: absolute; right: -30px; top: -34px; width: 116px; height: 116px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,240,170,.85), rgba(255,220,120,.2) 50%, transparent 70%);
}
.cabecera.fx.playa .capa::after {
content: ""; position: absolute; left: 0; right: 0; top: 55%; height: 18px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 18' preserveAspectRatio='none'%3E%3Cpath d='M0 9 Q30 1 60 9 T120 9 V18 H0Z' fill='%23ffffff' fill-opacity='.34'/%3E%3C/svg%3E") 0 0 / 120px 18px repeat-x;
    animation: ola-120 6s linear infinite;
}
.cabecera.fx.playa::after {
content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 14px; z-index: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 14' preserveAspectRatio='none'%3E%3Cpath d='M0 7 Q22.5 1 45 7 T90 7 V14 H0Z' fill='%23ffffff' fill-opacity='.2'/%3E%3C/svg%3E") 0 0 / 90px 14px repeat-x;
    animation: ola-90 11s linear infinite reverse;
}
@keyframes ola-120 {
to { background-position: -120px 0; }
}
@keyframes ola-90 {
to { background-position: -90px 0; }
}
@keyframes ola-100 {
to { background-position: -100px 0; }
}
@keyframes ola-75 {
to { background-position: -75px 0; }
}
.cabecera.fx .pez {
position: absolute; font-size: 13px; line-height: 1; z-index: 1; animation: nadar var(--dur) linear infinite; animation-delay: var(--del);
}
.cabecera.fx .pez.flip {
transform: scaleX(-1);
}
.cabecera.fx .pez.inv {
animation-name: nadar-inv;
}
@keyframes nadar {
from { left: -30px; } to { left: 105%; }
}
@keyframes nadar-inv {
from { left: 105%; } to { left: -30px; }
}
.cabecera.fx .concha {
position: absolute; bottom: 2px; line-height: 1; z-index: 1;
}
.cabecera.fx .sombrillas {
position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 0;
}
.cabecera.fx.playa .cabecera-logo {
box-sizing: content-box; background: rgba(0,0,0,.35); border-radius: 8px; padding: 4px 8px;
}
.cabecera.fx.playa .usuario-info {
background: rgba(0,0,0,.35); border-radius: 8px; padding: 4px 10px;
}
.cabecera.fx .m8 .capa::after {
content: ""; display: none;
}
.cabecera.fx.mar-calma {
background: linear-gradient(180deg, #CFEFF7 0%, #CFEFF7 45%, #2C8DB5 45%, #1C6E96 100%);
}
.cabecera.fx.mar-calma .capa::after {
content: ""; position: absolute; left: 0; right: 0; top: 45%; height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 16' preserveAspectRatio='none'%3E%3Cpath d='M0 8 Q25 0 50 8 T100 8 V16 H0Z' fill='%23ffffff' fill-opacity='.3'/%3E%3C/svg%3E") 0 0 / 100px 16px repeat-x;
    animation: ola-100 9s linear infinite;
}
.cabecera.fx.mar-calma .capa::before {
content: ""; position: absolute; left: 0; right: 0; top: 66%; height: 14px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 75 14' preserveAspectRatio='none'%3E%3Cpath d='M0 7 Q18.75 1 37.5 7 T75 7 V14 H0Z' fill='%23ffffff' fill-opacity='.16'/%3E%3C/svg%3E") 0 0 / 75px 14px repeat-x;
    animation: ola-75 16s linear infinite;
}
.cabecera.fx.sep-roble {
background: linear-gradient(180deg, #3B5A6B 0%, #56705E 60%, #4E6B3F 100%);
}
.cabecera.fx .roble {
position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 0;
}
.cabecera.fx.sep-roble .cabecera-logo {
box-sizing: content-box; background: rgba(0,0,0,.35); border-radius: 8px; padding: 4px 8px;
}
.cabecera.fx.sep-roble .usuario-info {
background: rgba(0,0,0,.35); border-radius: 8px; padding: 4px 10px;
}
.cabecera.fx.ene-lluvia {
background: linear-gradient(180deg, #5A6B7D, #8A9BAD);
}
.cabecera.fx.enero-cielo {
background: linear-gradient(180deg, #4FA3E0 0%, #BFE6F7 100%);
}
.cabecera.fx.enero-cielo .capa::before {
content: ""; position: absolute; right: -30px; top: -40px; width: 130px; height: 130px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,250,200,.95), rgba(255,235,150,.25) 50%, transparent 70%);
}
.cabecera.fx.enero-cielo .capa::after {
content: ""; position: absolute; inset: 0;
    background: radial-gradient(ellipse 34px 11px at 40px 42px, rgba(255,255,255,.8), transparent 70%) 0 0 / 180px 64px repeat-x;
    animation: nube 40s linear infinite;
}
@keyframes nube {
to { background-position: -180px 0; }
}
.cabecera.fx.enero-cielo .cabecera-logo,
.cabecera.fx .enero-malaga .cabecera-logo {
box-sizing: content-box; background: rgba(0,0,0,.35); border-radius: 8px; padding: 4px 8px;
}
.cabecera.fx.enero-cielo .usuario-info,
.cabecera.fx .enero-malaga .usuario-info {
background: rgba(0,0,0,.35); border-radius: 8px; padding: 4px 10px;
}
.cabecera.fx .enero-malaga {
background: linear-gradient(180deg, #4FA3E0 0%, #9ED6F5 55%, #1C7DB8 55%, #1C7DB8 100%);
}
.cabecera.fx.jul-frutas {
background: linear-gradient(90deg, #F5C542, #FFE08A, #F5C542);
}
.cabecera.fx.jul-luciernagas {
background: linear-gradient(180deg, #0E1B33, #1B3A5C);
}
.cabecera.fx.jul-luciernagas .estrella {
color: #F5E36B;
}
.cabecera.fx.jul-farolillos {
background: linear-gradient(180deg, #1B2A4A, #2E4A7A);
}
.cabecera.fx.jul-atardecer {
background: linear-gradient(180deg, #FFB067 0%, #FF7F6B 45%, #2A5C86 45%, #1B3F62 100%);
}
.cabecera.fx.jul-atardecer .capa::before {
content: ""; position: absolute; left: 58%; top: 18%; width: 60px; height: 60px; margin-left: -30px; border-radius: 50%; background: #FFE08A; box-shadow: 0 0 30px 10px rgba(255,224,138,.5);
}
.cabecera.fx.jul-noche .capa::after {
content: ""; position: absolute; inset: 0; z-index: 0;
    background: linear-gradient(180deg, #070B1E, #1B2A55);
    animation: anochecer 20s ease-in-out infinite;
}
.cabecera.fx.jul-noche .capa::before {
animation: sol-ocaso 20s ease-in-out infinite;
}
.cabecera.fx .constelacion {
position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 1; opacity: 0; animation: anochecer 20s ease-in-out infinite;
}
@keyframes anochecer {
0%, 25% { opacity: 0; } 55%, 90% { opacity: 1; } 100% { opacity: 0; }
}
@keyframes sol-ocaso {
0%, 25% { opacity: 1; } 55%, 100% { opacity: 0; }
}
.cabecera.fx .ago-perseidas {
background: linear-gradient(180deg, #070B1E, #152347);
}
.cabecera.fx .fugaz {
position: absolute; width: 46px; height: 1.5px; background: linear-gradient(90deg, rgba(255,255,255,0), #FFFFFF); transform: rotate(-25deg); opacity: 0; z-index: 1; animation: fugaz 6s linear infinite;
}
@keyframes fugaz {
0% { opacity: 0; transform: translate(0, 0) rotate(-25deg); }
    5% { opacity: 1; }
    12% { opacity: 0; transform: translate(120px, 60px) rotate(-25deg); }
    100% { opacity: 0; }
}
.cabecera.fx .ago-calor {
background: linear-gradient(180deg, #FFD08A 0%, #FF9A4A 100%);
}
.cabecera.fx .ago-calor .capa::after {
content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent) 0 0 / 200px 100% repeat-x; animation: calor 6s linear infinite;
}
@keyframes calor {
to { background-position: 200px 0; }
}
.cabecera.fx .ago-feria {
background: linear-gradient(90deg, #8E1B1B, #FFFFFF 33%, #2E7D32 66%, #8E1B1B);
}
.cabecera.fx .ago-tormenta {
background: linear-gradient(180deg, #3A4450, #6B7785);
}
/* El cuadro oscuro se dibuja hacia fuera (sombra), sin padding: así el logo y la cabecera miden lo mismo con y sin efecto */
.cabecera.fx.legible .cabecera-logo {
background: rgba(0,0,0,.35); border-radius: 8px; box-shadow: 0 0 0 5px rgba(0,0,0,.35);
}
.cabecera.fx.legible .usuario-caja {
background: rgba(0,0,0,.35); border-radius: 8px; box-shadow: 0 0 0 5px rgba(0,0,0,.35);
}
/* Fondo muy claro: logo negro (logologin.png, lo cambia efectos.js), cuadros claros y texto oscuro */
.cabecera.fx.logo-oscuro .cabecera-logo,
.cabecera.fx.logo-oscuro .usuario-caja {
background: rgba(255,255,255,.4); box-shadow: 0 0 0 5px rgba(255,255,255,.4);
}
.cabecera.fx.logo-oscuro .usuario-info { color: #26324a; }
.cabecera.fx.logo-oscuro .usuario-info strong { color: #0f172a; }
.cabecera.fx.logo-oscuro .enlace-salir { color: #26324a !important; }
/* Efectos sin cuadros tras el logo y el nombre (la clase la pone efectos.js desde la lista de temporadas) */
.cabecera.fx.sin-cuadros .cabecera-logo,
.cabecera.fx.sin-cuadros .usuario-caja,
.cabecera.fx.sin-cuadro-logo .cabecera-logo {
background: none; box-shadow: none;
}
.cabecera.fx.noche {
background: linear-gradient(180deg, #070B1E, #1B2A55);
}
.cabecera.fx .pt {
position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #DCE6FF; animation: brillo 10s ease-in-out infinite;
}
@keyframes brillo {
0%, 100% { opacity: .12; box-shadow: none; }
    50% { opacity: 1; box-shadow: 0 0 6px 2px rgba(200,220,255,.8); }
}
.cabecera.fx .const {
position: absolute; width: 70px; height: 60px; transform: translate(-50%, -50%); opacity: 0; animation: aparece-const 30s ease-in-out infinite;
}
@keyframes aparece-const {
0% { opacity: 0; }
    12%, 40% { opacity: 1; }
    55%, 100% { opacity: 0; }
}
.cabecera.fx .const svg {
position: absolute; inset: 0; width: 100%; height: 100%;
}
.cabecera.fx .linea {
fill: none; stroke: rgba(200,220,255,.8); stroke-width: .6; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; animation: dibujar 30s ease-in-out infinite;
}
@keyframes dibujar {
0%, 8% { stroke-dashoffset: 1; }
    30%, 100% { stroke-dashoffset: 0; }
}
.cabecera.fx .nodo {
position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #FFFFFF; transform: translate(-50%, -50%); box-shadow: 0 0 5px 1px rgba(200,220,255,.8);
}
.cabecera.fx .calabaza {
position: absolute; left: -18px; bottom: -14px; width: 120px; height: 108px; z-index: 1;
    transform-origin: 20% 100%; animation: crecer-calabaza 8s ease-in-out infinite;
}
.cabecera.fx .calabaza svg {
width: 100%; height: 100%; display: block;
}
@keyframes crecer-calabaza {
0%, 100% { transform: scale(.9); }
    50% { transform: scale(1.12); }
}
.cabecera.fx .telarana {
position: absolute; right: 0; top: 0; width: 120px; height: 120px; pointer-events: none;
}
.cabecera.fx .arana {
position: absolute; right: 30px; top: 44px; font-size: 12px; line-height: 1;
}
.cabecera.fx .trueno {
position: absolute; left: 58%; top: 6%; width: 26px; height: 52px; opacity: 0;
    filter: blur(1.3px) drop-shadow(0 0 4px rgba(200,200,255,.9));
    animation: trueno-flash 8s linear infinite;
}
@keyframes trueno-flash {
0%, 91%, 100% { opacity: 0; }
    91.8% { opacity: .6; }
    92.4% { opacity: .1; }
    93.2% { opacity: .35; }
    94% { opacity: 0; }
    95%, 99% { opacity: 0; }
}
.cabecera.fx .cal-ojo {
animation: ojos-malvados 8s linear infinite;
}
@keyframes ojos-malvados {
0%, 90% { fill: #FFD54A; filter: none; }
    91.8% { fill: #FF2A1A; filter: drop-shadow(0 0 4px #FF0000); }
    93.2% { fill: #FF2A1A; filter: drop-shadow(0 0 4px #FF0000); }
    94.5%, 100% { fill: #FFD54A; filter: none; }
}
.cabecera.fx .ojos {
position: absolute; display: flex; gap: 6px; animation: ojos 5s linear infinite; animation-delay: var(--del);
}
.cabecera.fx .ojos i {
width: 5px; height: 5px; border-radius: 50%; background: #FF3B2F; box-shadow: 0 0 6px 2px rgba(255,59,47,.7);
}
@keyframes ojos {
0%, 58%, 100% { opacity: 1; }
    60%, 64% { opacity: 0; }
    62% { opacity: 1; }
}
.cabecera.fx .ojos-rayo {
animation: ojos-rayo 8s linear infinite; animation-delay: 0s;
}
.cabecera.fx .pareja {
display: flex; gap: 6px; transition: opacity .3s;
}
@keyframes ojos-rayo {
0%, 55%, 100% { opacity: 1; }
    57%, 61% { opacity: 0; }
    59% { opacity: 1; }
    90% { opacity: 1; }
    91%, 96% { opacity: 0; }
}
.cabecera.fx.idea-2 {
background: linear-gradient(180deg, #007A3D 0 33.3%, #FFFFFF 33.3% 66.6%, #007A3D 66.6%);
}
.cabecera.fx.idea-2 .usuario-info {
background: rgba(0,0,0,.35); border-radius: 8px; padding: 4px 10px;
}
.cabecera.fx.idea-2 .capa::after {
content: ""; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 50% 50%, rgba(255,255,255,.4), transparent 70%);
    animation: respira 4s ease-in-out infinite;
}
@keyframes respira {
0%, 100% { opacity: .1; } 50% { opacity: 1; }
}
.cabecera.fx.dia-ondea .cabecera-logo,
.cabecera.fx.idea-2 .cabecera-logo {
box-sizing: content-box; background: #00502A; border-radius: 10px; padding: 6px 12px;
}
.cabecera.fx.dia-ondea .usuario-info {
text-shadow: 0 1px 3px rgba(0,0,0,.6);
}
.cabecera.fx.idea-2 .usuario-info {
text-shadow: 0 1px 3px rgba(0,0,0,.6);
}
.cabecera.fx.dia {
background: linear-gradient(90deg, var(--c1), var(--c2), var(--c1)); background-size: 250% 100%; animation: rosa 8s ease-in-out infinite;
}
.cabecera.fx.dia-quieto {
background: linear-gradient(90deg, var(--c1), var(--c2), var(--c1));
}
.cabecera.fx .p.flotar {
top: auto; bottom: -24px; animation: flotar var(--dur) ease-in-out infinite; animation-delay: var(--del);
}
@keyframes flotar {
0% { transform: translate(0, 0); opacity: 0; }
    15% { opacity: .9; }
    50% { transform: translate(12px, -45px); }
    100% { transform: translate(-8px, -100px); opacity: 0; }
}
.cabecera.fx .tierra {
position: absolute; left: -40px; bottom: -45px; width: 150px; height: 150px; border-radius: 50%; z-index: 1; pointer-events: none; box-shadow: 0 0 18px rgba(120,190,255,.35);
}
.cabecera.fx .centro {
position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); font-size: 30px; line-height: 1; z-index: 1; pointer-events: none;
}
.cabecera.fx .guitarra svg {
width: 16px; height: 48px; display: block;
}
.cabecera.fx .chispa {
position: absolute; width: 4px; height: 4px; border-radius: 50%; background: var(--c); animation: chispa 1s ease-out forwards;
}
@keyframes chispa {
0% { transform: translate(0, 0) scale(1); opacity: 1; }
    100% { transform: translate(var(--tx), var(--ty)) scale(.3); opacity: 0; }
}
.cabecera.fx.reyes {
background: linear-gradient(90deg, #1B2F5C, #2E4C8A 50%, #1B2F5C);
}
.cabecera.fx.carnaval {
background: linear-gradient(90deg, #7B2D8E, #2E9E5B, #F5C542, #7B2D8E); background-size: 300% 100%; animation: rosa 9s ease-in-out infinite;
}
.cabecera.fx .feria {
background: linear-gradient(90deg, #8E1B1B, #B3261E, #2E7D32, #B3261E, #8E1B1B); background-size: 250% 100%; animation: rosa 10s ease-in-out infinite;
}
.cabecera.fx .cruces {
background: linear-gradient(90deg, #2F6B4F, #4C8C63, #2F6B4F);
}
.cabecera.fx.sanjuan {
background: linear-gradient(180deg, #0E1B33 0%, #1B2F5C 58%, #1B2F5C 58%);
}
.cabecera.fx.sanjuan::before {
content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 42%; z-index: 0;
    background: linear-gradient(180deg, #8C6A3A, #6B4F2A);
}
.cabecera.fx.sanjuan .capa::before {
content: ""; position: absolute; left: 50%; bottom: 0; width: 26px; height: 22px; margin-left: -28px;
    border-radius: 6px; background: linear-gradient(90deg, #4A3420, #6B4B2C 50%, #4A3420);
    transform: rotate(-8deg);
}
.cabecera.fx.sanjuan .capa::after {
content: ""; position: absolute; left: 50%; bottom: 6px; width: 44px; height: 40px; margin-left: -22px;
    border-radius: 50% 50% 40% 40% / 70% 70% 30% 30%;
    background: radial-gradient(ellipse at 50% 100%, #FFF3A0 0, #F5A44A 32%, #E0461E 62%, transparent 74%);
    box-shadow: 0 0 30px 10px rgba(245,120,40,.35);
    transform-origin: 50% 100%;
    animation: fuego .3s ease-in-out infinite alternate;
}
@keyframes fuego {
from { transform: scale(1, .92) translateX(-1px); } to { transform: scale(1.06, 1.08) translateX(1px); }
}
.cabecera.fx .sanfermin {
background: #B3261E;
}
.cabecera.fx .sanfermin .capa::before {
content: ""; position: absolute; inset: 0;
    background: radial-gradient(circle, rgba(255,255,255,.28) 2px, transparent 2.5px) 0 0 / 22px 22px;
}
.cabecera.fx .pilar {
background: linear-gradient(180deg, #AA151B 0 25%, #F1BF00 25% 75%, #AA151B 75%); background-size: 100% 130%; animation: ondeo 4s ease-in-out infinite;
}
@keyframes ondeo {
0%, 100% { background-position: 0 0; } 50% { background-position: 0 100%; }
}
.cabecera.fx .castanada {
background: linear-gradient(90deg, #4A2C1A, #7A4A26, #4A2C1A); background-size: 250% 100%; animation: otono 10s ease-in-out infinite;
}
.cabecera.fx.loteria {
background: linear-gradient(90deg, #163D2C, #1F5A40, #163D2C); background-size: 250% 100%; animation: santa 12s ease-in-out infinite;
}
.cabecera.fx .arbol {
position: absolute; left: 58%; bottom: 3px; width: 46px; height: 58px; margin-left: -23px; z-index: 1;
}
.cabecera.fx .arbol i {
position: absolute; display: block; left: 0; right: 0;
    background: linear-gradient(180deg, #2E8B57, #1F5A3A);
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.cabecera.fx .arbol .c1 {
top: 8px; height: 18px; left: 14%; right: 14%;
}
.cabecera.fx .arbol .c2 {
top: 18px; height: 20px; left: 6%; right: 6%;
}
.cabecera.fx .arbol .c3 {
top: 30px; height: 22px;
}
.cabecera.fx .arbol .tronco {
top: 52px; left: 42%; right: 42%; height: 6px; background: #6B4226; clip-path: none;
}
.cabecera.fx .arbol .estrella-arbol {
position: absolute; top: -2px; left: 50%; width: 12px; height: 12px; margin-left: -6px;
    background: #F5C542;
    clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    animation: parpadeo 1.6s ease-in-out infinite;
}
.cabecera.fx .adorno {
position: absolute; width: 4px; height: 4px; border-radius: 50%; animation: parpadeo 1.8s ease-in-out infinite;
}
.cabecera.fx .regalo {
position: absolute; bottom: 4px; width: 16px; height: 13px; border-radius: 2px; z-index: 1;
}
.cabecera.fx .regalo::before {
content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; margin-left: -1.5px; background: #F5C542;
}
.cabecera.fx .regalo::after {
content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 3px; background: #F5C542;
}
.cabecera.fx.libro {
background: linear-gradient(90deg, #2B3A5C, #3F4F7A, #2B3A5C); background-size: 250% 100%; animation: rosa 9s ease-in-out infinite;
}
.cabecera.fx.fincurso {
background: linear-gradient(90deg, #1E4E7A, #2B7AA8, #1E4E7A);
}
.cabecera.fx.uvas {
background: linear-gradient(90deg, #2E1A47, #4A2366, #2E1A47);
}
.cabecera.fx.fr .capa > * {
position: absolute;
}
.cabecera.fx.fr .hogar {
inset: 0; width: 100%; height: 100%;
}
@keyframes pulso-sol {
0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); }
}
@keyframes girar {
to { transform: rotate(360deg); }
}
@keyframes brasa {
0%, 100% { opacity: .55; } 50% { opacity: 1; }
}
.cabecera.fx.fr-sw {
background: linear-gradient(180deg, #EE8A68 0%, #F4A46E 38%, #F8CC80 60%, #F8D890 100%);
}
.cabecera.fx.fr-sw .astro {
transform-box: fill-box; transform-origin: center; animation: pulso-sol 5s ease-in-out infinite;
}
.cabecera.fx.fr-sw .astro.b {
animation-direction: reverse;
}
@keyframes vuelo-halcon {
0% { transform: translate(-30px, 38px) rotate(0deg); } 70% { transform: translate(300px, 20px) rotate(-8deg); } 100% { transform: translate(440px, 4px) rotate(-22deg); }
}
.cabecera.fx.fr-sw .halcon {
transform-box: fill-box; transform-origin: center; animation: vuelo-halcon 16s linear infinite;
}
.cabecera.fx.fr-pi {
background: #142B4F;
}
.cabecera.fx.fr-pi svg {
position: absolute; inset: 0; width: 100%; height: 100%;
}
.cabecera.fx.fr-pi .circ {
fill: none; stroke: #7FD4FF; stroke-width: 2; stroke-dasharray: 188.5; stroke-dashoffset: 188.5; animation: dibuja-circ 6s ease-in-out infinite;
}
.cabecera.fx.fr-pi .diam {
fill: none; stroke: #7FD4FF; stroke-width: 1.5; stroke-dasharray: 60; stroke-dashoffset: 60; animation: dibuja-diam 6s ease-in-out .5s infinite;
}
.cabecera.fx.fr-pi .letra {
position: absolute; left: calc(50% + 26px); top: 50%; transform: translateY(-50%); font-size: 26px; color: #fff; font-family: Georgia, serif; animation: latir-letra 4s ease-in-out infinite;
}
@keyframes dibuja-circ {
0% { stroke-dashoffset: 188.5; opacity: 1; } 35%, 60% { stroke-dashoffset: 0; opacity: 1; } 85%, 100% { stroke-dashoffset: 0; opacity: 0; }
}
@keyframes dibuja-diam {
0% { stroke-dashoffset: 60; opacity: 1; } 35%, 60% { stroke-dashoffset: 0; opacity: 1; } 85%, 100% { stroke-dashoffset: 0; opacity: 0; }
}
@keyframes latir-letra {
0%, 100% { transform: translateY(-50%) scale(.9); } 50% { transform: translateY(-50%) scale(1.1); }
}
.cabecera.fx.fr-ho {
background: radial-gradient(circle at 50% 120%, #2A1D0A, #0A0804 70%);
}
.cabecera.fx .insc {
position: absolute; display: block; left: 50%; top: 323px; width: 700px; height: 700px; margin: -350px 0 0 -350px; animation: girar 45s linear infinite;
}
.cabecera.fx .insc-wrap {
left: 0; top: 0; width: 100%; height: 100%; filter: brightness(.7) drop-shadow(0 0 4px rgba(255,140,30,.55)); animation: brasa 5s ease-in-out infinite;
}
.cabecera.fx.fr-pk {
background: linear-gradient(180deg, #A8E0A8, #4FA35A);
}
.cabecera.fx .hierba {
bottom: 0; width: 6px; border-radius: 3px 3px 0 0; background: linear-gradient(#5CB85C, #1E5E2A); transform-origin: 50% 100%; animation: mecer var(--d) ease-in-out infinite;
}
@keyframes mecer {
0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(7deg); }
}
.cabecera.fx .hierba.agita {
animation: agitar .3s ease-in-out 2;
}
@keyframes agitar {
0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-16deg); }
}

@media (prefers-reduced-motion: reduce) {
    .cabecera.fx *, .cabecera.fx *::before, .cabecera.fx *::after, .cabecera.fx::before, .cabecera.fx::after { animation: none !important; }
    .cabecera.fx .capa { display: none; }
}

/* Doble toque en la cabecera con banner: la amplía (efectos.js). manipulation evita el zoom del doble toque; sin selección de texto al tocar */
.cabecera.fx { touch-action: manipulation; -webkit-user-select: none; user-select: none; }
