/* ============================================
   EFECTOS VISUALES PREMIUM - IMPACTO VISUAL
   ============================================ */

/* Partículas flotantes de fondo */
.floating-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: radial-gradient(circle, var(--color-primary), transparent);
    border-radius: 50%;
    opacity: 0;
    animation: floatUp 15s linear infinite;
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh) translateX(0) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 0.3;
    }

    90% {
        opacity: 0.1;
    }

    100% {
        transform: translateY(-100px) translateX(var(--drift)) scale(1);
        opacity: 0;
    }
}

/* Gradiente animado de fondo */
.animated-gradient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.15;
    background:
        radial-gradient(circle at 20% 50%, rgba(230, 86, 22, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 118, 64, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(255, 153, 102, 0.15) 0%, transparent 50%);
    animation: gradientShift 20s ease infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.15;
    }

    50% {
        transform: scale(1.2) rotate(180deg);
        opacity: 0.25;
    }
}

/* Efecto de scan line tecnológico */
.tech-scanline {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg,
            transparent,
            var(--color-primary),
            transparent);
    opacity: 0.3;
    pointer-events: none;
    z-index: 10;
    animation: scanlineMove 8s linear infinite;
    box-shadow: 0 0 20px var(--color-primary);
}

@keyframes scanlineMove {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(100vh);
    }
}

/* Grid tecnológico en el hero */
.tech-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(230, 86, 22, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(230, 86, 22, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 1;
    opacity: 0.3;
    animation: gridPulse 4s ease-in-out infinite;
}

@keyframes gridPulse {

    0%,
    100% {
        opacity: 0.2;
    }

    50% {
        opacity: 0.4;
    }
}

/* Líneas de código animadas */
.code-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
    opacity: 0.1;
}

.code-line {
    position: absolute;
    color: var(--color-primary);
    font-family: 'Courier New', monospace;
    font-size: 12px;
    white-space: nowrap;
    animation: codefall linear infinite;
}

@keyframes codefall {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }

    10% {
        opacity: 0.5;
    }

    90% {
        opacity: 0.5;
    }

    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

/* Pulso brillante en bordes */
.glow-pulse {
    position: relative;
}

.glow-pulse::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg,
            var(--color-primary),
            var(--color-secondary),
            var(--color-accent),
            var(--color-primary));
    border-radius: inherit;
    opacity: 0;
    z-index: -1;
    filter: blur(10px);
    animation: glowRotate 3s linear infinite;
}

.glow-pulse:hover::before {
    opacity: 0.7;
}

@keyframes glowRotate {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Efecto de cristal/glassmorphism mejorado */
.glass-effect {
    background: rgba(26, 26, 26, 0.4);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 8px 32px 0 rgba(0, 0, 0, 0.37),
        inset 0 0 20px rgba(230, 86, 22, 0.1);
}

/* Hexágonos decorativos */
.hex-pattern {
    position: absolute;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(230, 86, 22, 0.1), transparent);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    animation: hexFloat 10s ease-in-out infinite;
}

@keyframes hexFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.3;
    }

    50% {
        transform: translateY(-30px) rotate(180deg);
        opacity: 0.6;
    }
}

/* Efecto de aurora boreal */
.aurora-effect {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.2;
    background:
        linear-gradient(125deg,
            transparent 0%,
            rgba(230, 86, 22, 0.3) 25%,
            transparent 50%,
            rgba(255, 118, 64, 0.2) 75%,
            transparent 100%);
    animation: auroraMove 15s ease-in-out infinite;
}

@keyframes auroraMove {

    0%,
    100% {
        transform: translateX(-10%) skewX(-5deg);
    }

    50% {
        transform: translateX(10%) skewX(5deg);
    }
}

/* Círculos concéntricos pulsantes */
.pulse-circle {
    position: absolute;
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    opacity: 0;
    animation: pulsate 3s ease-out infinite;
}

@keyframes pulsate {
    0% {
        transform: scale(0.5);
        opacity: 1;
    }

    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Responsive - Reducir efectos en móviles */
@media (max-width: 768px) {

    .floating-particles,
    .tech-scanline,
    .code-rain,
    .aurora-effect {
        display: none;
    }

    .animated-gradient-bg {
        opacity: 0.08;
    }

    .tech-grid {
        opacity: 0.15;
    }
}