/**
 * Temas Estacionales para el Hero
 * Personalización visual según la temporada del año
 */

/* ============================================
   TEMA PREDETERMINADO (Clásico del club)
   ============================================ */
.hero-theme-default {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.hero-theme-default .hero-decoration-1 {
    background: rgba(250, 204, 21, 0.5);
}

.hero-theme-default .hero-decoration-2 {
    background: rgba(147, 197, 253, 0.5);
}

/* ============================================
   TEMAS A NIVEL DE SITIO (Home)
   ============================================ */
body.site-theme-default {
    background: #f9fafb !important;
}

html.site-theme-default {
    background: #f9fafb !important;
}

body[class*="site-theme-"] {
    position: relative;
}

body[class*="site-theme-"]::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

body[class*="site-theme-"] > * {
    position: relative;
    z-index: 1;
}

body.site-theme-christmas .bg-white,
body.site-theme-summer .bg-white,
body.site-theme-spring .bg-white,
body.site-theme-autumn .bg-white,
body.site-theme-winter .bg-white,
body.site-theme-carnival .bg-white {
    background-color: rgba(255, 255, 255, 0.88) !important;
}

body.site-theme-christmas .bg-gray-50,
body.site-theme-summer .bg-gray-50,
body.site-theme-spring .bg-gray-50,
body.site-theme-autumn .bg-gray-50,
body.site-theme-winter .bg-gray-50,
body.site-theme-carnival .bg-gray-50 {
    background-color: transparent !important;
}

body.site-theme-christmas .bg-gray-100,
body.site-theme-summer .bg-gray-100,
body.site-theme-spring .bg-gray-100,
body.site-theme-autumn .bg-gray-100,
body.site-theme-winter .bg-gray-100,
body.site-theme-carnival .bg-gray-100 {
    background-color: rgba(255, 255, 255, 0.65) !important;
}

body.site-theme-christmas {
    background: linear-gradient(180deg, rgba(220, 38, 38, 0.16) 0%, rgba(21, 128, 61, 0.12) 55%, rgba(249, 250, 251, 1) 100%) !important;
}

html.site-theme-christmas {
    background: linear-gradient(180deg, rgba(220, 38, 38, 0.16) 0%, rgba(21, 128, 61, 0.12) 55%, rgba(249, 250, 251, 1) 100%) !important;
}

body.site-theme-christmas::before {
    background: radial-gradient(1200px 700px at 15% 10%, rgba(220, 38, 38, 0.30), transparent 60%),
                radial-gradient(1200px 700px at 85% 25%, rgba(21, 128, 61, 0.24), transparent 60%),
                linear-gradient(180deg, rgba(220, 38, 38, 0.18) 0%, rgba(21, 128, 61, 0.14) 55%, rgba(249, 250, 251, 1) 100%);
}

body.site-theme-summer {
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.16) 0%, rgba(239, 68, 68, 0.12) 55%, rgba(249, 250, 251, 1) 100%) !important;
}

html.site-theme-summer {
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.16) 0%, rgba(239, 68, 68, 0.12) 55%, rgba(249, 250, 251, 1) 100%) !important;
}

body.site-theme-summer::before {
    background: radial-gradient(1200px 700px at 15% 10%, rgba(245, 158, 11, 0.28), transparent 60%),
                radial-gradient(1200px 700px at 85% 25%, rgba(239, 68, 68, 0.22), transparent 60%),
                linear-gradient(180deg, rgba(245, 158, 11, 0.18) 0%, rgba(239, 68, 68, 0.16) 55%, rgba(249, 250, 251, 1) 100%);
}

body.site-theme-spring {
    background: linear-gradient(180deg, rgba(236, 72, 153, 0.14) 0%, rgba(34, 197, 94, 0.12) 55%, rgba(249, 250, 251, 1) 100%) !important;
}

html.site-theme-spring {
    background: linear-gradient(180deg, rgba(236, 72, 153, 0.14) 0%, rgba(34, 197, 94, 0.12) 55%, rgba(249, 250, 251, 1) 100%) !important;
}

body.site-theme-spring::before {
    background: radial-gradient(1200px 700px at 15% 10%, rgba(236, 72, 153, 0.24), transparent 60%),
                radial-gradient(1200px 700px at 85% 25%, rgba(34, 197, 94, 0.22), transparent 60%),
                linear-gradient(180deg, rgba(236, 72, 153, 0.16) 0%, rgba(34, 197, 94, 0.14) 55%, rgba(249, 250, 251, 1) 100%);
}

body.site-theme-autumn {
    background: linear-gradient(180deg, rgba(234, 88, 12, 0.07) 0%, rgba(146, 64, 14, 0.06) 55%, rgba(249, 250, 251, 1) 100%) !important;
}

html.site-theme-autumn {
    background: linear-gradient(180deg, rgba(234, 88, 12, 0.07) 0%, rgba(146, 64, 14, 0.06) 55%, rgba(249, 250, 251, 1) 100%) !important;
}

body.site-theme-autumn::before {
    background: radial-gradient(1200px 700px at 15% 10%, rgba(234, 88, 12, 0.18), transparent 60%),
                radial-gradient(1200px 700px at 85% 25%, rgba(146, 64, 14, 0.14), transparent 60%),
                linear-gradient(180deg, rgba(234, 88, 12, 0.09) 0%, rgba(146, 64, 14, 0.08) 55%, rgba(249, 250, 251, 1) 100%);
}

body.site-theme-winter {
    background: linear-gradient(180deg, rgba(14, 165, 233, 0.06) 0%, rgba(224, 242, 254, 0.8) 55%, rgba(249, 250, 251, 1) 100%) !important;
}

html.site-theme-winter {
    background: linear-gradient(180deg, rgba(14, 165, 233, 0.06) 0%, rgba(224, 242, 254, 0.8) 55%, rgba(249, 250, 251, 1) 100%) !important;
}

body.site-theme-winter::before {
    background: radial-gradient(1200px 700px at 15% 10%, rgba(14, 165, 233, 0.14), transparent 60%),
                radial-gradient(1200px 700px at 85% 25%, rgba(224, 242, 254, 0.35), transparent 60%),
                linear-gradient(180deg, rgba(14, 165, 233, 0.07) 0%, rgba(224, 242, 254, 0.85) 55%, rgba(249, 250, 251, 1) 100%);
}

body.site-theme-carnival {
    background: linear-gradient(180deg, rgba(236, 72, 153, 0.06) 0%, rgba(245, 158, 11, 0.05) 33%, rgba(139, 92, 246, 0.05) 66%, rgba(249, 250, 251, 1) 100%) !important;
}

html.site-theme-carnival {
    background: linear-gradient(180deg, rgba(236, 72, 153, 0.06) 0%, rgba(245, 158, 11, 0.05) 33%, rgba(139, 92, 246, 0.05) 66%, rgba(249, 250, 251, 1) 100%) !important;
}

body.site-theme-carnival::before {
    background: radial-gradient(1200px 700px at 15% 10%, rgba(236, 72, 153, 0.18), transparent 60%),
                radial-gradient(1200px 700px at 85% 25%, rgba(245, 158, 11, 0.16), transparent 60%),
                radial-gradient(1200px 700px at 50% 40%, rgba(139, 92, 246, 0.14), transparent 60%),
                linear-gradient(180deg, rgba(236, 72, 153, 0.07) 0%, rgba(245, 158, 11, 0.06) 33%, rgba(139, 92, 246, 0.06) 66%, rgba(249, 250, 251, 1) 100%);
}

/* ============================================
   TEMA NAVIDAD
   ============================================ */
.hero-theme-christmas {
    background: linear-gradient(135deg, #dc2626 0%, #15803d 50%, #dc2626 100%);
    position: relative;
    overflow: hidden;
}

/* Decoraciones navideñas de fondo */
.hero-theme-christmas::before {
    content: '🎄';
    position: absolute;
    top: 10%;
    left: 5%;
    font-size: 5rem;
    opacity: 0.2;
    animation: sway 4s ease-in-out infinite;
}

.hero-theme-christmas::after {
    content: '⭐';
    position: absolute;
    top: 5%;
    right: 10%;
    font-size: 4rem;
    opacity: 0.5;
    animation: twinkle 2s infinite;
}

.hero-theme-christmas .hero-decoration-1 {
    background: rgba(220, 38, 38, 0.6);
    box-shadow: 0 0 30px rgba(220, 38, 38, 0.5);
}

.hero-theme-christmas .hero-decoration-2 {
    background: rgba(21, 128, 61, 0.6);
    box-shadow: 0 0 30px rgba(21, 128, 61, 0.5);
}

/* Mensaje de Navidad */
.christmas-greeting {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 1;
    pointer-events: none;
}

.christmas-greeting h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fef3c7;
    text-shadow: 
        2px 2px 4px rgba(0,0,0,0.3),
        0 0 20px rgba(254, 243, 199, 0.5);
    margin-bottom: 0.5rem;
    animation: glow 2s ease-in-out infinite;
}

.christmas-greeting p {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* Decoraciones adicionales */
.christmas-ornament {
    position: absolute;
    font-size: 2.5rem;
    opacity: 0.4;
    animation: swing 3s ease-in-out infinite;
}

.christmas-ornament-1 {
    top: 20%;
    left: 15%;
    animation-delay: 0s;
}

.christmas-ornament-2 {
    top: 60%;
    right: 20%;
    animation-delay: 1s;
}

.christmas-ornament-3 {
    bottom: 20%;
    left: 25%;
    animation-delay: 2s;
}

/* Efecto de nieve cayendo */
.hero-theme-christmas .snowflake {
    position: absolute;
    color: white;
    font-size: 1.5rem;
    opacity: 0.8;
    top: var(--y, -80px);
    left: var(--x, 50%);
    animation: snowfall var(--d, 10s) linear infinite;
    animation-delay: var(--delay, 0s);
    pointer-events: none;
}

@media (max-width: 768px) {
    .hero-theme-christmas::before,
    .hero-theme-christmas::after {
        display: none;
    }

    .christmas-greeting {
        display: none;
    }

    .christmas-ornament {
        display: none;
    }

    .hero-theme-christmas .snowflake {
        font-size: 1.2rem;
        opacity: 0.6;
    }
}

/* Animaciones */
@keyframes snowfall {
    0% { 
        transform: translateY(-100px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% { 
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

@keyframes twinkle {
    0%, 100% { 
        opacity: 0.5; 
        transform: scale(1) rotate(0deg); 
    }
    50% { 
        opacity: 1; 
        transform: scale(1.3) rotate(180deg); 
    }
}

@keyframes glow {
    0%, 100% { 
        text-shadow: 
            2px 2px 4px rgba(0,0,0,0.3),
            0 0 20px rgba(254, 243, 199, 0.5);
    }
    50% { 
        text-shadow: 
            2px 2px 4px rgba(0,0,0,0.3),
            0 0 40px rgba(254, 243, 199, 0.8),
            0 0 60px rgba(254, 243, 199, 0.6);
    }
}

@keyframes sway {
    0%, 100% { transform: rotate(-3deg); }
    50% { transform: rotate(3deg); }
}

@keyframes swing {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

/* ============================================
   TEMA CARNAVAL
   ============================================ */
.hero-theme-carnival {
    background: linear-gradient(135deg, 
        #ec4899 0%, 
        #f59e0b 25%, 
        #8b5cf6 50%, 
        #10b981 75%, 
        #ec4899 100%
    );
    background-size: 200% 200%;
    animation: carnivalGradient 5s ease infinite;
}

.hero-theme-carnival::before {
    content: '🎭';
    position: absolute;
    top: 15%;
    left: 5%;
    font-size: 4rem;
    opacity: 0.3;
    animation: bounce 3s infinite;
}

.hero-theme-carnival::after {
    content: '🎉';
    position: absolute;
    bottom: 20%;
    right: 10%;
    font-size: 3rem;
    opacity: 0.3;
    animation: bounce 2.5s infinite;
}

.hero-theme-carnival .hero-decoration-1 {
    background: linear-gradient(45deg, #ec4899, #f59e0b);
    animation: pulse 2s infinite;
}

.hero-theme-carnival .hero-decoration-2 {
    background: linear-gradient(45deg, #8b5cf6, #10b981);
    animation: pulse 2s infinite 0.5s;
}

@keyframes carnivalGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* ============================================
   TEMA PRIMAVERA
   ============================================ */
.hero-theme-spring {
    background: linear-gradient(135deg, #ec4899 0%, #a855f7 50%, #22c55e 100%);
}

.hero-theme-spring::before {
    content: '🌸';
    position: absolute;
    top: 10%;
    right: 15%;
    font-size: 4rem;
    opacity: 0.4;
    animation: float 4s ease-in-out infinite;
}

.hero-theme-spring::after {
    content: '🦋';
    position: absolute;
    bottom: 15%;
    left: 10%;
    font-size: 3rem;
    opacity: 0.4;
    animation: butterfly 6s ease-in-out infinite;
}

.hero-theme-spring .hero-decoration-1 {
    background: rgba(236, 72, 153, 0.5);
    box-shadow: 0 0 40px rgba(236, 72, 153, 0.6);
}

.hero-theme-spring .hero-decoration-2 {
    background: rgba(34, 197, 94, 0.5);
    box-shadow: 0 0 40px rgba(34, 197, 94, 0.6);
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(10deg); }
}

@keyframes butterfly {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(20px, -20px) rotate(5deg); }
    50% { transform: translate(40px, 0) rotate(-5deg); }
    75% { transform: translate(20px, 20px) rotate(5deg); }
}

/* ============================================
   TEMA VERANO
   ============================================ */
.hero-theme-summer {
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 50%, #eab308 100%);
}

.hero-theme-summer::before {
    content: '☀️';
    position: absolute;
    top: 5%;
    right: 10%;
    font-size: 5rem;
    opacity: 0.5;
    animation: rotate 20s linear infinite;
}

.hero-theme-summer::after {
    content: '🏖️';
    position: absolute;
    bottom: 10%;
    left: 5%;
    font-size: 3rem;
    opacity: 0.4;
}

.hero-theme-summer .hero-decoration-1 {
    background: rgba(245, 158, 11, 0.6);
    box-shadow: 0 0 50px rgba(245, 158, 11, 0.7);
    animation: pulse 3s infinite;
}

.hero-theme-summer .hero-decoration-2 {
    background: rgba(239, 68, 68, 0.6);
    box-shadow: 0 0 50px rgba(239, 68, 68, 0.7);
    animation: pulse 3s infinite 1s;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ============================================
   TEMA OTOÑO
   ============================================ */
.hero-theme-autumn {
    background: linear-gradient(135deg, #ea580c 0%, #92400e 50%, #78350f 100%);
}

.hero-theme-autumn::before {
    content: '🍂';
    position: absolute;
    top: 10%;
    left: 10%;
    font-size: 4rem;
    opacity: 0.4;
    animation: fall 8s ease-in infinite;
}

.hero-theme-autumn::after {
    content: '🍁';
    position: absolute;
    top: 20%;
    right: 15%;
    font-size: 3.5rem;
    opacity: 0.4;
    animation: fall 10s ease-in infinite 2s;
}

.hero-theme-autumn .hero-decoration-1 {
    background: rgba(234, 88, 12, 0.6);
    box-shadow: 0 0 40px rgba(234, 88, 12, 0.6);
}

.hero-theme-autumn .hero-decoration-2 {
    background: rgba(146, 64, 14, 0.6);
    box-shadow: 0 0 40px rgba(146, 64, 14, 0.6);
}

@keyframes fall {
    0% { 
        transform: translateY(0) rotate(0deg);
        opacity: 0.4;
    }
    50% {
        opacity: 0.6;
    }
    100% { 
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* ============================================
   TEMA INVIERNO
   ============================================ */
.hero-theme-winter {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 50%, #e0f2fe 100%);
}

.hero-theme-winter::before {
    content: '❄️';
    position: absolute;
    top: 15%;
    left: 15%;
    font-size: 4rem;
    opacity: 0.3;
    animation: snowfall 12s infinite;
}

.hero-theme-winter::after {
    content: '⛄';
    position: absolute;
    bottom: 15%;
    right: 10%;
    font-size: 3rem;
    opacity: 0.4;
}

.hero-theme-winter .hero-decoration-1 {
    background: rgba(14, 165, 233, 0.5);
    box-shadow: 0 0 40px rgba(14, 165, 233, 0.6);
}

.hero-theme-winter .hero-decoration-2 {
    background: rgba(224, 242, 254, 0.7);
    box-shadow: 0 0 40px rgba(224, 242, 254, 0.8);
}

/* ============================================
   ANIMACIONES GLOBALES
   ============================================ */
@keyframes pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

/* Efecto de partículas para temas especiales */
.hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-particle {
    position: absolute;
    border-radius: 50%;
    animation: particleFloat 15s infinite;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(100px);
        opacity: 0;
    }
}
