/**
 * Estilos para el efecto de rayo amarillo en el fondo
 */

.lightning-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* Mantenemos el z-index bajo para que esté detrás del contenido */
    pointer-events: none;
    overflow: hidden;
}

.lightning-shape {
    position: absolute;
    background: rgba(255, 222, 89, 0.3);
    clip-path: polygon(
        20% 0%, 
        60% 0%, 
        100% 30%, 
        70% 60%,
        90% 100%, 
        40% 100%, 
        10% 70%
    );
    transform: rotate(25deg) scale(1.2);
    filter: blur(35px);
    opacity: 0.85;
    transition: all 5s ease-in-out;
    z-index: -1; /* Aseguramos que esté detrás de las partículas */
}

/* Única forma de rayo en la parte derecha */
.lightning-shape-1 {
    width: 40vw;
    height: 140vh;
    top: -20vh;
    right: -10vw; /* Posicionado a la derecha */
    left: auto; /* Eliminamos el posicionamiento izquierdo */
    animation: lightning-pulse 8s infinite alternate;
}

/* Eliminamos la forma secundaria */
.lightning-shape-2 {
    display: none;
}

/* Animaciones para el efecto pulsante */
@keyframes lightning-pulse {
    0% {
        opacity: 0.7;
        transform: rotate(25deg) scale(1.2);
    }
    50% {
        opacity: 0.9;
        transform: rotate(22deg) scale(1.25);
    }
    100% {
        opacity: 0.8;
        transform: rotate(28deg) scale(1.22);
    }
}

/* Optimización para dispositivos móviles */
@media (max-width: 768px) {
    .lightning-shape-1 {
        width: 60vw;
        height: 120vh;
        right: -20vw;
    }
}

/* Desactivar en dispositivos de bajo rendimiento */
@media (prefers-reduced-motion: reduce) {
    .lightning-shape {
        animation: none !important;
        transition: none !important;
    }
}

/* Aseguramos que las partículas estén por encima del rayo */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Mayor que el z-index del rayo */
    pointer-events: none;
} 