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

/* Contenedor de partículas fijo */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* Partículas flotantes */
.particle {
    position: absolute;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.4) 40%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    will-change: transform, opacity;
    animation: particleFloat ease-in-out infinite, particleFade ease-in-out infinite;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

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

@keyframes particleFade {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* Destellos estáticos */
.sparkle {
    position: absolute;
    background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.6) 30%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    will-change: opacity, transform;
    animation: twinkle ease-in-out infinite;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.6);
}

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

/* Orbes luminosos */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 70%);
    filter: blur(15px);
    will-change: transform;
    animation: orbFloat 18s ease-in-out infinite;
}

@keyframes orbFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(60px, -60px) scale(1.1);
    }
    66% {
        transform: translate(-40px, 40px) scale(0.9);
    }
}

/* Asegurar que el contenido esté sobre las partículas */
.invitacion > section {
    position: relative;
    z-index: 1;
}

/* Tablets */
@media (min-width: 481px) and (max-width: 768px) {
    .glow-orb {
        filter: blur(18px);
    }

    @keyframes particleFloat {
        0%, 100% {
            transform: translate(0, 0);
        }
        50% {
            transform: translate(30px, -70px);
        }
    }
}

/* Desktop */
@media (min-width: 769px) {
    .invitacion {
        animation-duration: 15s;
    }

    .glow-orb {
        filter: blur(20px);
    }

    @keyframes particleFloat {
        0%, 100% {
            transform: translate(0, 0);
        }
        25% {
            transform: translate(30px, -40px);
        }
        50% {
            transform: translate(-20px, -80px);
        }
        75% {
            transform: translate(40px, -120px);
        }
    }

    @keyframes orbFloat {
        0%, 100% {
            transform: translate(0, 0) scale(1);
        }
        25% {
            transform: translate(100px, -100px) scale(1.2);
        }
        50% {
            transform: translate(-50px, -150px) scale(0.8);
        }
        75% {
            transform: translate(-100px, 50px) scale(1.1);
        }
    }
}

/* Reducir animaciones para usuarios que lo prefieran */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}