/* Actualizado desde nodiosasv2 para corregir fondo - 13/12/2025 */
/* Acelerado (x4) por solicitud del usuario */

/* Disable old background from styles.css */
body::before,
body::after {
    display: none !important;
    content: none !important;
    animation: none !important;
}

/* New Body Background */
body {
    background: linear-gradient(135deg, #D3F8E2 0%, #E4C1F9 25%, #F694C1 50%, #EDE7B1 75%, #A9DEF9 100%) !important;
    background-size: 400% 400% !important;
    /* Duración reducida a 5s */
    animation: gradientShift 5s ease infinite !important;
    min-height: 100vh;
    position: relative;
}

/* New Background Animation Container */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

/* Asegurar que el contenido principal esté por encima de la animación */
.header,
.main,
.footer,
.admin-container {
    position: relative !important;
    z-index: 2 !important;
}

/* Mantener los modales como overlay fijo por encima de la animación */
.modal {
    position: fixed !important;
    z-index: 9999 !important;
}

/* Header Override */
.header {
    background: linear-gradient(135deg, #A9DEF9 0%, #E4C1F9 100%) !important;
    box-shadow: 0 2px 10px rgba(169, 222, 249, 0.3) !important;
    color: white !important;
}

.header__logo, 
.header__logo-link,
.header__title {
    color: white !important;
}

.header__logo-icon svg {
    stroke: white !important;
    fill: none !important;
}

/* Formas flotantes (blobs) */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.6;
    animation: blobFloat 25s ease-in-out infinite;
    will-change: transform;
    mix-blend-mode: multiply;
}

/* Blob 1 - Verde pastel */
.blob-1 {
    width: 600px;
    height: 600px;
    background: #D3F8E2;
    top: -150px;
    left: -150px;
    /* Duración: 8s */
    animation: blobFloat 8s ease-in-out infinite;
}

/* Blob 2 - Púrpura pastel */
.blob-2 {
    width: 700px;
    height: 700px;
    background: #E4C1F9;
    top: 40%;
    right: -200px;
    /* Duración: 9s */
    animation: blobFloat 9s ease-in-out infinite;
    animation-delay: -3s;
}

/* Blob 3 - Rosa pastel */
.blob-3 {
    width: 550px;
    height: 550px;
    background: #F694C1;
    bottom: -100px;
    left: 15%;
    /* Duración: 7s */
    animation: blobFloat 7s ease-in-out infinite;
    animation-delay: -2s;
}

/* Blob 4 - Amarillo pastel */
.blob-4 {
    width: 650px;
    height: 650px;
    background: #EDE7B1;
    top: 25%;
    left: 45%;
    /* Duración: 8s */
    animation: blobFloat 8s ease-in-out infinite;
    animation-delay: -4s;
}

/* Blob 5 - Azul pastel */
.blob-5 {
    width: 500px;
    height: 500px;
    background: #A9DEF9;
    bottom: 15%;
    right: 15%;
    /* Duración: 6s */
    animation: blobFloat 6s ease-in-out infinite;
    animation-delay: -2s;
}

/* Animación de movimiento para los blobs */
@keyframes blobFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    25% {
        transform: translate(80px, -60px) scale(1.15) rotate(5deg);
    }
    50% {
        transform: translate(-50px, 50px) scale(0.85) rotate(-5deg);
    }
    75% {
        transform: translate(60px, 70px) scale(1.1) rotate(3deg);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    33% {
        background-position: 100% 50%;
    }
    66% {
        background-position: 50% 100%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Optimizaciones para móviles */
@media (max-width: 768px) {
    .blob {
        filter: blur(70px);
        opacity: 0.5;
    }
    
    .blob-1 {
        width: 400px;
        height: 400px;
    }
    
    .blob-2 {
        width: 450px;
        height: 450px;
    }
    
    .blob-3 {
        width: 350px;
        height: 350px;
    }
    
    .blob-4 {
        width: 420px;
        height: 420px;
    }
    
    .blob-5 {
        width: 380px;
        height: 380px;
    }
    
    body {
        background-size: 300% 300% !important;
        /* Duración: 4s */
        animation-duration: 4s !important;
    }
}

/* Reducir animaciones para usuarios que lo prefieren */
@media (prefers-reduced-motion: reduce) {
    body {
        animation: none !important;
        background: linear-gradient(135deg, #D3F8E2 0%, #EDE7B1 100%) !important;
    }
    
    .blob {
        animation: none;
        opacity: 0.3;
    }
}
