/* Efectos Visuales Estilo Antro/Club */

/* Partículas flotantes */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
}

.particles::before,
.particles::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    box-shadow: 
        0 0 10px var(--primary-color),
        0 0 20px var(--primary-color),
        0 0 30px var(--primary-color);
}

.particles::before {
    top: 20%;
    left: 20%;
    animation-delay: -2s;
}

.particles::after {
    top: 60%;
    right: 20%;
    animation-delay: -4s;
}

/* Grid láser */
.laser-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(139, 92, 246, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: grid-move 20s linear infinite;
    z-index: 1;
}

/* Efecto Glitch para el título */
.glitch {
    position: relative;
    color: var(--light-color);
    animation: glitch-skew 1s infinite linear alternate-reverse;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    animation: glitch-anim 2s infinite linear alternate-reverse;
    color: #ff0040;
    z-index: -1;
}

.glitch::after {
    animation: glitch-anim2 1s infinite linear alternate-reverse;
    color: #00ffff;
    z-index: -2;
}

/* Efectos de luz pulsante */
.pulse-light {
    position: relative;
    overflow: hidden;
}

.pulse-light::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    animation: pulse-rotate 4s linear infinite;
    z-index: -1;
}

/* Efectos de ondas sonoras */
.sound-waves {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    z-index: 1;
}

.sound-waves::before,
.sound-waves::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: 50%;
    animation: sound-wave 3s ease-out infinite;
}

.sound-waves::after {
    animation-delay: 1.5s;
}

/* Efectos de neón */
.neon-glow {
    text-shadow: 
        0 0 5px var(--primary-color),
        0 0 10px var(--primary-color),
        0 0 20px var(--primary-color),
        0 0 40px var(--primary-color);
    animation: neon-flicker 2s ease-in-out infinite alternate;
}

.neon-border {
    border: 2px solid var(--primary-color);
    box-shadow: 
        inset 0 0 10px rgba(139, 92, 246, 0.4),
        0 0 10px rgba(139, 92, 246, 0.4),
        0 0 20px rgba(139, 92, 246, 0.2);
    animation: neon-border-pulse 2s ease-in-out infinite;
}

/* Efectos de strobo */
.strobe-light {
    animation: strobe 0.1s infinite;
}

@keyframes strobe {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.1; }
}

/* Efectos de espectro de audio */
.spectrum-bars {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 3px;
    height: 80px;
    margin: 20px 0;
}

.spectrum-bar {
    width: 4px;
    background: linear-gradient(to top, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    animation: spectrum 1.5s ease-in-out infinite;
}

.spectrum-bar:nth-child(1) { animation-delay: 0s; }
.spectrum-bar:nth-child(2) { animation-delay: 0.1s; }
.spectrum-bar:nth-child(3) { animation-delay: 0.2s; }
.spectrum-bar:nth-child(4) { animation-delay: 0.3s; }
.spectrum-bar:nth-child(5) { animation-delay: 0.4s; }
.spectrum-bar:nth-child(6) { animation-delay: 0.5s; }
.spectrum-bar:nth-child(7) { animation-delay: 0.6s; }
.spectrum-bar:nth-child(8) { animation-delay: 0.7s; }
.spectrum-bar:nth-child(9) { animation-delay: 0.8s; }
.spectrum-bar:nth-child(10) { animation-delay: 0.9s; }

/* Efectos de láser */
.laser-beam {
    position: absolute;
    width: 2px;
    height: 100vh;
    background: linear-gradient(to bottom, transparent, var(--primary-color), transparent);
    animation: laser-sweep 4s linear infinite;
    opacity: 0.6;
}

.laser-beam:nth-child(2) {
    animation-delay: 1s;
    left: 30%;
}

.laser-beam:nth-child(3) {
    animation-delay: 2s;
    left: 60%;
}

.laser-beam:nth-child(4) {
    animation-delay: 3s;
    left: 80%;
}

/* Efectos de matrix/digital rain */
.digital-rain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(139, 92, 246, 0.1));
    opacity: 0.3;
    animation: rain-fall 10s linear infinite;
}

/* Efectos de ondas de choque */
.shockwave {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: shockwave-expand 2s ease-out infinite;
}

/* Efectos de disco ball */
.disco-ball {
    position: relative;
    width: 100px;
    height: 100px;
    background: 
        linear-gradient(45deg, #888 25%, transparent 25%),
        linear-gradient(-45deg, #888 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #888 75%),
        linear-gradient(-45deg, transparent 75%, #888 75%);
    background-size: 10px 10px;
    background-position: 0 0, 0 5px, 5px -5px, -5px 0px;
    border-radius: 50%;
    animation: disco-rotate 3s linear infinite;
    box-shadow: 
        0 0 20px rgba(139, 92, 246, 0.6),
        inset 0 0 20px rgba(255, 255, 255, 0.2);
}

.disco-ball::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 45%;
    width: 10px;
    height: 20px;
    background: #333;
    border-radius: 5px 5px 0 0;
}

/* Efectos de iluminación ambiente */
.ambient-light {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.1) 0%, transparent 60%);
    animation: ambient-pulse 6s ease-in-out infinite;
}

/* Efectos de humo/niebla */
.smoke-effect {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(to top, rgba(139, 92, 246, 0.2), transparent);
    animation: smoke-flow 8s ease-in-out infinite;
}

/* Efectos de spotlight */
.spotlight {
    position: absolute;
    width: 300px;
    height: 600px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.1), transparent);
    transform-origin: top center;
    animation: spotlight-sweep 8s linear infinite;
    clip-path: polygon(40% 0%, 60% 0%, 100% 100%, 0% 100%);
}

/* Keyframes para animaciones */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-30px) rotate(120deg);
    }
    66% {
        transform: translateY(-60px) rotate(240deg);
    }
}

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

@keyframes glitch-anim {
    0% {
        clip: rect(64px, 9999px, 66px, 0);
        transform: skew(0.5deg);
    }
    5% {
        clip: rect(30px, 9999px, 36px, 0);
        transform: skew(0.1deg);
    }
    10% {
        clip: rect(70px, 9999px, 71px, 0);
        transform: skew(0.8deg);
    }
    15% {
        clip: rect(10px, 9999px, 15px, 0);
        transform: skew(0.3deg);
    }
    20% {
        clip: rect(40px, 9999px, 44px, 0);
        transform: skew(0.5deg);
    }
    25% {
        clip: rect(50px, 9999px, 60px, 0);
        transform: skew(0.2deg);
    }
    30% {
        clip: rect(85px, 9999px, 90px, 0);
        transform: skew(0.7deg);
    }
    35% {
        clip: rect(20px, 9999px, 25px, 0);
        transform: skew(0.4deg);
    }
    40% {
        clip: rect(95px, 9999px, 100px, 0);
        transform: skew(0.1deg);
    }
    45% {
        clip: rect(75px, 9999px, 80px, 0);
        transform: skew(0.6deg);
    }
    50% {
        clip: rect(15px, 9999px, 20px, 0);
        transform: skew(0.3deg);
    }
    55% {
        clip: rect(55px, 9999px, 65px, 0);
        transform: skew(0.8deg);
    }
    60% {
        clip: rect(35px, 9999px, 40px, 0);
        transform: skew(0.2deg);
    }
    65% {
        clip: rect(80px, 9999px, 85px, 0);
        transform: skew(0.5deg);
    }
    70% {
        clip: rect(5px, 9999px, 10px, 0);
        transform: skew(0.7deg);
    }
    75% {
        clip: rect(60px, 9999px, 70px, 0);
        transform: skew(0.1deg);
    }
    80% {
        clip: rect(25px, 9999px, 35px, 0);
        transform: skew(0.4deg);
    }
    85% {
        clip: rect(90px, 9999px, 95px, 0);
        transform: skew(0.6deg);
    }
    90% {
        clip: rect(45px, 9999px, 50px, 0);
        transform: skew(0.3deg);
    }
    95% {
        clip: rect(65px, 9999px, 75px, 0);
        transform: skew(0.8deg);
    }
    100% {
        clip: rect(0px, 9999px, 5px, 0);
        transform: skew(0.2deg);
    }
}

@keyframes glitch-anim2 {
    0% {
        clip: rect(50px, 9999px, 55px, 0);
        transform: skew(0.3deg);
    }
    20% {
        clip: rect(80px, 9999px, 85px, 0);
        transform: skew(0.7deg);
    }
    40% {
        clip: rect(20px, 9999px, 25px, 0);
        transform: skew(0.1deg);
    }
    60% {
        clip: rect(70px, 9999px, 75px, 0);
        transform: skew(0.5deg);
    }
    80% {
        clip: rect(10px, 9999px, 15px, 0);
        transform: skew(0.8deg);
    }
    100% {
        clip: rect(90px, 9999px, 95px, 0);
        transform: skew(0.2deg);
    }
}

@keyframes glitch-skew {
    0% {
        transform: skew(0deg);
    }
    10% {
        transform: skew(2deg);
    }
    20% {
        transform: skew(0deg);
    }
    30% {
        transform: skew(1deg);
    }
    40% {
        transform: skew(0deg);
    }
    50% {
        transform: skew(-1deg);
    }
    60% {
        transform: skew(0deg);
    }
    70% {
        transform: skew(1deg);
    }
    80% {
        transform: skew(0deg);
    }
    90% {
        transform: skew(2deg);
    }
    100% {
        transform: skew(0deg);
    }
}

@keyframes pulse-rotate {
    0% {
        transform: rotate(0deg);
        opacity: 0.3;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        transform: rotate(360deg);
        opacity: 0.3;
    }
}

@keyframes sound-wave {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

@keyframes neon-flicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
        text-shadow: 
            0 0 5px var(--primary-color),
            0 0 10px var(--primary-color),
            0 0 20px var(--primary-color),
            0 0 40px var(--primary-color);
    }
    20%, 24%, 55% {
        text-shadow: none;
    }
}

@keyframes neon-border-pulse {
    0%, 100% {
        box-shadow: 
            inset 0 0 10px rgba(139, 92, 246, 0.4),
            0 0 10px rgba(139, 92, 246, 0.4),
            0 0 20px rgba(139, 92, 246, 0.2);
    }
    50% {
        box-shadow: 
            inset 0 0 20px rgba(139, 92, 246, 0.8),
            0 0 20px rgba(139, 92, 246, 0.8),
            0 0 40px rgba(139, 92, 246, 0.4);
    }
}

@keyframes spectrum {
    0%, 100% {
        height: 10px;
    }
    50% {
        height: 80px;
    }
}

@keyframes laser-sweep {
    0% {
        left: -2px;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        left: 100%;
        opacity: 0;
    }
}

@keyframes rain-fall {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100vh);
    }
}

@keyframes shockwave-expand {
    0% {
        width: 50px;
        height: 50px;
        opacity: 1;
    }
    100% {
        width: 300px;
        height: 300px;
        opacity: 0;
    }
}

@keyframes disco-rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes ambient-pulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

@keyframes smoke-flow {
    0%, 100% {
        transform: translateX(0) scaleX(1);
        opacity: 0.2;
    }
    50% {
        transform: translateX(20px) scaleX(1.1);
        opacity: 0.4;
    }
}

@keyframes spotlight-sweep {
    0% {
        transform: rotate(-45deg);
        opacity: 0.3;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        transform: rotate(45deg);
        opacity: 0.3;
    }
}

/* Efectos específicos para secciones */
.hero .particles::before {
    animation-duration: 8s;
    width: 6px;
    height: 6px;
}

.hero .particles::after {
    animation-duration: 12s;
    width: 4px;
    height: 4px;
}

.music .equalizer .bar {
    box-shadow: 
        0 0 5px var(--primary-color),
        0 0 10px var(--primary-color);
}

.events .calendar-day.has-event {
    animation: neon-flicker 2s ease-in-out infinite;
}

.contact .social-link:hover {
    animation: pulse 1s infinite;
}

/* Efectos hover para elementos interactivos */
.nav-link:hover {
    text-shadow: 0 0 10px var(--primary-color);
}

.btn:hover {
    animation: pulse 1s infinite;
}

.ticket-card:hover {
    animation: neon-border-pulse 1s infinite;
}

.playlist-item:hover {
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.1), rgba(139, 92, 246, 0.2));
}

/* Efectos de carga */
.loading-effect {
    position: relative;
    overflow: hidden;
}

.loading-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.4), transparent);
    animation: loading-sweep 2s infinite;
}

@keyframes loading-sweep {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Efectos de partículas adicionales para el fondo */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, var(--primary-color), transparent),
        radial-gradient(2px 2px at 40px 70px, var(--secondary-color), transparent),
        radial-gradient(1px 1px at 90px 40px, var(--primary-color), transparent),
        radial-gradient(1px 1px at 130px 80px, var(--secondary-color), transparent),
        radial-gradient(2px 2px at 160px 30px, var(--primary-color), transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: particles-move 20s linear infinite;
    opacity: 0.6;
    z-index: 1;
}

@keyframes particles-move {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(-200px, -100px);
    }
}

/* Modo oscuro mejorado con efectos */
@media (prefers-color-scheme: dark) {
    .neon-glow {
        filter: brightness(1.2);
    }
    
    .glitch {
        filter: contrast(1.2);
    }
    
    .disco-ball {
        filter: brightness(1.1);
    }
}

/* Efecto de ondas táctiles */
@keyframes rippleExpand {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(10);
        opacity: 0;
    }
}

.touch-ripple {
    animation: rippleExpand 0.6s ease-out forwards;
}

