/* ============================================
   UNIQUE HYPNOTIC BACKGROUNDS PER SECTION
   ============================================ */

/* FILOSOFÍA - Matrix Rain Effect */
#confianza {
    position: relative;
    overflow: hidden;
}

#confianza::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(transparent 30%, rgba(0, 229, 255, 0.03) 70%, transparent),
        linear-gradient(90deg, transparent 30%, rgba(0, 229, 255, 0.02) 70%, transparent);
    background-size: 50px 50px, 50px 50px;
    animation: matrixFlow 20s linear infinite;
    opacity: 0.4;
    pointer-events: none;
}

@keyframes matrixFlow {
    0% {
        background-position: 0 0, 0 0;
    }

    100% {
        background-position: 0 500px, 500px 0;
    }
}

/* VISIÓN 4D - Hypnotic Spiral */
#vision {
    position: relative;
    overflow: hidden;
}

#vision::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1000px;
    height: 1000px;
    transform: translate(-50%, -50%);
    background:
        radial-gradient(circle at center,
            transparent 0%,
            rgba(139, 107, 255, 0.1) 20%,
            transparent 40%,
            rgba(0, 229, 255, 0.08) 60%,
            transparent 80%);
    animation: spiralRotate 30s linear infinite;
    pointer-events: none;
}

#vision::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-conic-gradient(from 0deg at 50% 50%,
            transparent 0deg,
            rgba(0, 229, 255, 0.03) 5deg,
            transparent 10deg);
    animation: spiralPulse 15s ease-in-out infinite;
    pointer-events: none;
    opacity: 0.5;
}

@keyframes spiralRotate {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes spiralPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.3;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.6;
    }
}

/* TECNOLOGÍAS - Circuit Board Pulse */
#mercados {
    position: relative;
    overflow: hidden;
}

#mercados::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(90deg, transparent 98%, rgba(0, 229, 255, 0.3) 100%),
        linear-gradient(0deg, transparent 98%, rgba(139, 107, 255, 0.3) 100%);
    background-size: 100px 100px;
    animation: circuitPulse 8s ease-in-out infinite;
    pointer-events: none;
}

#mercados::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(0, 229, 255, 0.15) 0%, transparent 3%),
        radial-gradient(circle at 80% 70%, rgba(139, 107, 255, 0.15) 0%, transparent 3%),
        radial-gradient(circle at 50% 50%, rgba(0, 229, 255, 0.1) 0%, transparent 4%),
        radial-gradient(circle at 30% 80%, rgba(139, 107, 255, 0.1) 0%, transparent 3%);
    background-size: 300px 300px;
    animation: nodesPulse 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes circuitPulse {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.7;
    }
}

@keyframes nodesPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

/* PARADIGMA - Wave Interference */
#tecnologia {
    position: relative;
    overflow: hidden;
}

#tecnologia::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 50%,
            rgba(0, 229, 255, 0.15) 0%,
            transparent 50%),
        radial-gradient(ellipse at 70% 50%,
            rgba(139, 107, 255, 0.15) 0%,
            transparent 50%);
    animation: waveInterference 10s ease-in-out infinite;
    pointer-events: none;
}

#tecnologia::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(0deg,
            transparent,
            transparent 40px,
            rgba(0, 229, 255, 0.05) 41px,
            transparent 42px);
    animation: waveScan 6s linear infinite;
    pointer-events: none;
}

@keyframes waveInterference {

    0%,
    100% {
        background-position: 0% 50%, 100% 50%;
        opacity: 0.6;
    }

    50% {
        background-position: 100% 50%, 0% 50%;
        opacity: 1;
    }
}

@keyframes waveScan {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(100%);
    }
}

/* MODOS - Kaleidoscope Effect */
#resultados {
    position: relative;
    overflow: hidden;
}

#resultados::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        conic-gradient(from 0deg at 50% 50%,
            rgba(0, 229, 255, 0.2) 0deg,
            transparent 60deg,
            rgba(139, 107, 255, 0.2) 120deg,
            transparent 180deg,
            rgba(0, 229, 255, 0.2) 240deg,
            transparent 300deg,
            rgba(139, 107, 255, 0.2) 360deg);
    animation: kaleidoscope 20s linear infinite;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1s;
}

#resultados.visible::before {
    opacity: 0.6;
}

@keyframes kaleidoscope {
    0% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(180deg) scale(1.2);
    }

    100% {
        transform: rotate(360deg) scale(1);
    }
}

/* ROADMAP - Quantum Particles */
#roadmap {
    position: relative;
    overflow: hidden;
}

#roadmap::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(0, 229, 255, 0.3) 0%, transparent 2%),
        radial-gradient(circle at 85% 30%, rgba(139, 107, 255, 0.3) 0%, transparent 2%),
        radial-gradient(circle at 40% 60%, rgba(0, 229, 255, 0.25) 0%, transparent 2%),
        radial-gradient(circle at 70% 80%, rgba(139, 107, 255, 0.25) 0%, transparent 2%),
        radial-gradient(circle at 25% 90%, rgba(0, 229, 255, 0.2) 0%, transparent 2%),
        radial-gradient(circle at 90% 15%, rgba(139, 107, 255, 0.2) 0%, transparent 2%),
        radial-gradient(circle at 50% 40%, rgba(0, 229, 255, 0.2) 0%, transparent 2%);
    background-size: 400px 400px;
    animation: quantumParticles 15s ease-in-out infinite;
    pointer-events: none;
}

#roadmap::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(45deg,
            transparent 48%,
            rgba(0, 229, 255, 0.1) 49%,
            rgba(139, 107, 255, 0.1) 51%,
            transparent 52%);
    background-size: 80px 80px;
    animation: energyGrid 12s linear infinite;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1s;
}

#roadmap.visible::after {
    opacity: 0.7;
}

@keyframes quantumParticles {

    0%,
    100% {
        background-position:
            0% 0%, 100% 100%, 50% 50%,
            100% 0%, 0% 100%, 75% 25%, 30% 70%;
        opacity: 0.8;
    }

    50% {
        background-position:
            100% 100%, 0% 0%, 30% 70%,
            0% 100%, 100% 0%, 25% 75%, 70% 30%;
        opacity: 1;
    }
}

@keyframes energyGrid {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(80px, 80px);
    }
}

/* Add visible class trigger via JavaScript */
section {
    transition: all 0.8s ease;
}
