/* 
 * Fondo Dinámico IA - Disart Media Studio
 * Ubicación: /wp-content/themes/hello-elementor-child/ai-background.css
 * Autor: Claude AI Assistant
 */

.disart-ai-background {
    position: relative;
    width: 100%;
    height: 593px;
    background: linear-gradient(135deg, #02021f 0%, #000000 50%, #02021f 100%);
    overflow: hidden;
    cursor: none;
}

/* Partículas flotantes de IA */
.ai-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #Eb1732;
    border-radius: 50%;
    opacity: 0.6;
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 0 10px #Eb1732;
}

.ai-particle:nth-child(2n) {
    background: #ffffff;
    box-shadow: 0 0 8px #ffffff;
    animation-duration: 8s;
    animation-delay: -2s;
}

.ai-particle:nth-child(3n) {
    width: 2px;
    height: 2px;
    animation-duration: 10s;
    animation-delay: -4s;
}

/* Elementos geométricos IA */
.ai-geometric {
    position: absolute;
    opacity: 0.3;
    transition: all 0.3s ease;
}

.ai-hexagon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #Eb1732, transparent);
    clip-path: polygon(30% 0%, 70% 0%, 100% 50%, 70% 100%, 30% 100%, 0% 50%);
    animation: rotate 20s linear infinite;
}

.ai-triangle {
    width: 0;
    height: 0;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-bottom: 43px solid #Eb1732;
    animation: pulse 4s ease-in-out infinite;
}

.ai-circle {
    width: 40px;
    height: 40px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background: rgba(235, 23, 50, 0.1);
    animation: scale 6s ease-in-out infinite;
}

/* Líneas de conexión neural */
.neural-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, #Eb1732, transparent);
    opacity: 0.4;
    animation: neural-pulse 3s ease-in-out infinite;
}

/* Efecto de onda digital */
.digital-wave {
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #Eb1732, transparent);
    opacity: 0.6;
    animation: wave-move 8s ease-in-out infinite;
}

/* Nodos de IA */
.ai-node {
    position: absolute;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, #Eb1732, transparent);
    border-radius: 50%;
    opacity: 0.7;
    animation: node-pulse 5s ease-in-out infinite;
}

.ai-node::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    width: 30px;
    height: 30px;
    border: 1px solid #ffffff;
    border-radius: 50%;
    opacity: 0.3;
    animation: ring-expand 4s ease-out infinite;
}

/* Cursor personalizado */
.ai-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, #Eb1732, transparent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.1s ease;
}

/* Animaciones */
@keyframes float {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    25% { transform: translateY(-20px) translateX(10px); }
    50% { transform: translateY(-10px) translateX(-10px); }
    75% { transform: translateY(-30px) translateX(5px); }
}

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

@keyframes pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.2); }
}

@keyframes scale {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.5); }
}

@keyframes neural-pulse {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.8; }
}

@keyframes wave-move {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes node-pulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.3); }
}

@keyframes ring-expand {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(2); opacity: 0; }
}

/* Efectos hover */
.disart-ai-background:hover .ai-geometric {
    opacity: 0.8;
    transform: scale(1.2);
}

.disart-ai-background:hover .ai-particle {
    animation-duration: 3s;
}

.disart-ai-background:hover .neural-line {
    opacity: 0.8;
}

/* Responsivo */
@media (max-width: 768px) {
    .disart-ai-background {
        height: 400px;
    }
    
    .ai-geometric {
        transform: scale(0.7);
    }
}

/* Efectos de scroll */
.scroll-effect {
    transition: transform 0.3s ease-out;
}

/* Elementos que se mueven con scroll */
.parallax-slow {
    transition: transform 0.1s ease-out;
}

.parallax-fast {
    transition: transform 0.1s ease-out;
}