/* ==========================================================================
   CANTA Y NO LLORES - Estilos de Alto Impacto, Parallax y Motion
   ========================================================================== */

body {
    background-color: #030206;
    color: #F3F4F6;
    overflow-x: hidden;
    font-family: 'Inter', sans-serif;
}

/* Efectos Neón y Resplandores */
.text-neon-pink {
    text-shadow: 0 0 20px rgba(255, 30, 86, 0.9), 0 0 45px rgba(255, 30, 86, 0.6);
}

.text-neon-amber {
    text-shadow: 0 0 20px rgba(255, 172, 65, 0.9), 0 0 45px rgba(255, 172, 65, 0.6);
}

.box-neon {
    box-shadow: 0 0 40px rgba(255, 30, 86, 0.35);
}

.box-neon-amber {
    box-shadow: 0 0 40px rgba(255, 172, 65, 0.35);
}

/* ==========================================================================
   PARALLAX EDGE-TO-EDGE REAL (ANCHO A ANCHO MULTICAPA)
   ========================================================================== */
.parallax-section {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    overflow: hidden;
    box-sizing: border-box;
}

/* Capa de imagen de fondo que se mueve a velocidad parallax */
.parallax-bg-wrapper {
    position: absolute;
    top: -25%;
    left: 0;
    width: 100%;
    height: 150%;
    pointer-events: none;
    z-index: 0;
    will-change: transform;
    transform: translate3d(0, var(--parallax-y, 0px), 0) scale(1.1);
    transition: transform 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.parallax-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    filter: brightness(0.85);
}

/* Soporte nativo para CSS Scroll-Driven Animations donde esté soportado */
@supports ((animation-timeline: view()) and (animation-range: entry)) {
    .parallax-section {
        view-timeline-name: --section-timeline;
        view-timeline-axis: block;
    }
    .parallax-bg-wrapper.native-parallax {
        animation: nativeParallaxMove linear both;
        animation-timeline: --section-timeline;
        animation-range: entry 0% exit 100%;
    }
}

@keyframes nativeParallaxMove {
    from {
        transform: translate3d(0, -10%, 0) scale(1.15);
    }
    to {
        transform: translate3d(0, 10%, 0) scale(1.15);
    }
}

/* Capas de gradientes para garantizar contraste y dramatismo */
.parallax-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

/* Atmósfera de iluminación dinámica (focos / luces de discoteca y show) */
.parallax-atmosphere {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.spotlight-beam {
    position: absolute;
    width: 50vw;
    height: 120%;
    background: radial-gradient(ellipse at 50% 0%, rgba(255, 30, 86, 0.18) 0%, transparent 70%);
    filter: blur(50px);
    pointer-events: none;
    animation: spotlightSweep 8s ease-in-out infinite alternate;
}

.spotlight-beam-amber {
    position: absolute;
    right: 0;
    width: 50vw;
    height: 120%;
    background: radial-gradient(ellipse at 50% 100%, rgba(255, 172, 65, 0.15) 0%, transparent 70%);
    filter: blur(50px);
    pointer-events: none;
    animation: spotlightSweepReverse 10s ease-in-out infinite alternate;
}

/* Contenido de primer plano que flota sobre el fondo */
.parallax-content {
    position: relative;
    z-index: 10;
    transform: translate3d(0, var(--content-parallax-y, 0px), 0);
    will-change: transform;
}

/* ==========================================================================
   PARTÍCULAS FLOTANTES & ELEMENTOS EN MOVIMIENTO (NOTAS MUSICALES, EMOJIS)
   ========================================================================== */
.floating-element {
    position: absolute;
    user-select: none;
    pointer-events: none;
    z-index: 5;
    opacity: 0.6;
    filter: drop-shadow(0 0 12px rgba(255, 30, 86, 0.6));
    animation: floatDrift 6s ease-in-out infinite;
}

.floating-element.delay-1 { animation-delay: -1.5s; }
.floating-element.delay-2 { animation-delay: -3s; }
.floating-element.delay-3 { animation-delay: -4.5s; }

@keyframes floatDrift {
    0%, 100% {
        transform: translateY(0px) rotate(0deg) scale(1);
    }
    33% {
        transform: translateY(-16px) rotate(4deg) scale(1.05);
    }
    66% {
        transform: translateY(-8px) rotate(-3deg) scale(0.97);
    }
}

@keyframes floatMotion {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(1.5deg); }
}

.animate-float-slow {
    animation: floatMotion 5s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.35; transform: scale(1); }
    50% { opacity: 0.85; transform: scale(1.12); }
}

.animate-pulse-glow {
    animation: pulseGlow 4s ease-in-out infinite;
}

@keyframes spotlightSweep {
    0% { transform: translateX(-20%) rotate(-6deg); opacity: 0.4; }
    100% { transform: translateX(20%) rotate(6deg); opacity: 0.85; }
}

@keyframes spotlightSweepReverse {
    0% { transform: translateX(20%) rotate(6deg); opacity: 0.3; }
    100% { transform: translateX(-20%) rotate(-6deg); opacity: 0.75; }
}

/* Efecto de onda de ecualizador / audio wave */
@keyframes audioWave {
    0%, 100% { height: 6px; }
    50% { height: 24px; }
}

.audio-bar {
    width: 3px;
    background: linear-gradient(to top, #FF1E56, #FFAC41);
    border-radius: 999px;
    animation: audioWave 1.2s ease-in-out infinite;
}

/* ==========================================================================
   SCROLL REVEAL & MOTION ON VIEWPORT ENTRY
   ========================================================================== */
.motion-reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.motion-reveal.reveal-left {
    transform: translateX(-40px);
}

.motion-reveal.reveal-right {
    transform: translateX(40px);
}

.motion-reveal.reveal-zoom {
    transform: scale(0.92) translateY(20px);
}

.motion-reveal.is-revealed {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Delays para escalonar la entrada */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }

/* Micro-interacciones interactivas en tarjetas */
.interactive-card {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.interactive-card:hover {
    transform: translateY(-8px) scale(1.015);
    box-shadow: 0 20px 40px -10px rgba(255, 30, 86, 0.25);
}

/* Ocultar barra de scroll en carruseles táctiles móviles */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Scrollbar personalizado */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #030206;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #FF1E56, #FFAC41);
    border-radius: 4px;
}

/* Respeto por preferencias de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .parallax-bg-wrapper {
        transform: none !important;
    }
    .motion-reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}
