/* ============================================
   ONDAS DE CRECIMIENTO
   Concepto: Flujo de capital + Movimiento orgánico
   Inspiración: Visualización de datos financieros + ondas naturales
   ============================================ */

/* === CONTENEDOR SVG ONDAS === */

.growth-waves {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.8;
}

/* === ONDAS SINUSOIDALES === */

.wave {
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 8px rgba(116, 187, 160, 0.15));
}

/* Onda 1: Superior (movimiento lento) */
.wave-1 {
    animation: waveFlow 20s ease-in-out infinite;
    animation-delay: 0s;
}

/* Onda 2: Media (más prominente, movimiento medio) */
.wave-2 {
    animation: waveFlow 16s ease-in-out infinite;
    animation-delay: -4s;
}

/* Onda 3: Inferior (movimiento más rápido) */
.wave-3 {
    animation: waveFlow 18s ease-in-out infinite;
    animation-delay: -8s;
}

/* Onda de acento (naranja sutil, movimiento independiente) */
.wave-accent {
    animation: waveFlow 22s ease-in-out infinite;
    animation-delay: -2s;
    filter: drop-shadow(0 0 12px rgba(249, 186, 115, 0.2));
}

/* === PARTÍCULAS QUE FLUYEN === */

.wave-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.flow-particle {
    position: absolute;
    width: 5px;
    height: 5px;
    background: radial-gradient(circle,
        rgba(116, 187, 160, 0.8) 0%,
        rgba(116, 187, 160, 0.3) 50%,
        transparent 100%
    );
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(116, 187, 160, 0.5);
    animation: flowHorizontal 12s linear infinite;
}

/* Posicionamiento y timing de partículas */
.particle-1 {
    top: 31%;
    left: -5%;
    animation-delay: 0s;
    animation-duration: 14s;
}

.particle-2 {
    top: 50%;
    left: -5%;
    animation-delay: 2s;
    animation-duration: 16s;
    width: 6px;
    height: 6px;
}

.particle-3 {
    top: 69%;
    left: -5%;
    animation-delay: 4s;
    animation-duration: 15s;
}

.particle-4 {
    top: 40%;
    left: -5%;
    animation-delay: 6s;
    animation-duration: 13s;
}

.particle-5 {
    top: 60%;
    left: -5%;
    animation-delay: 1s;
    animation-duration: 17s;
    background: radial-gradient(circle,
        rgba(249, 186, 115, 0.8) 0%,
        rgba(249, 186, 115, 0.3) 50%,
        transparent 100%
    );
    box-shadow: 0 0 12px rgba(249, 186, 115, 0.5);
}

.particle-6 {
    top: 35%;
    left: -5%;
    animation-delay: 8s;
    animation-duration: 14.5s;
}

.particle-7 {
    top: 55%;
    left: -5%;
    animation-delay: 3s;
    animation-duration: 15.5s;
}

.particle-8 {
    top: 45%;
    left: -5%;
    animation-delay: 7s;
    animation-duration: 16.5s;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle,
        rgba(249, 186, 115, 0.7) 0%,
        rgba(249, 186, 115, 0.3) 50%,
        transparent 100%
    );
    box-shadow: 0 0 10px rgba(249, 186, 115, 0.4);
}

/* ============================================
   ANIMACIONES
   ============================================ */

/* Ondas: Flujo ondulante continuo */
@keyframes waveFlow {
    0% {
        transform: translateX(0) translateY(0);
        opacity: 0.6;
    }
    25% {
        transform: translateX(-50px) translateY(-15px);
        opacity: 0.8;
    }
    50% {
        transform: translateX(-100px) translateY(0);
        opacity: 1;
    }
    75% {
        transform: translateX(-50px) translateY(15px);
        opacity: 0.8;
    }
    100% {
        transform: translateX(0) translateY(0);
        opacity: 0.6;
    }
}

/* Partículas: Flujo horizontal de izquierda a derecha */
@keyframes flowHorizontal {
    0% {
        left: -5%;
        opacity: 0;
        transform: scale(0.5) translateY(0);
    }
    5% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    25% {
        transform: scale(1) translateY(-10px);
    }
    50% {
        transform: scale(1) translateY(5px);
    }
    75% {
        transform: scale(1) translateY(-8px);
    }
    95% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    100% {
        left: 105%;
        opacity: 0;
        transform: scale(0.5) translateY(0);
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .growth-waves {
        opacity: 0.6;
    }

    .wave {
        stroke-width: 1.5px;
    }

    .wave-2 {
        stroke-width: 2px;
    }

    .flow-particle {
        width: 4px;
        height: 4px;
    }
}

@media (max-width: 768px) {
    /* En móvil: ondas muy sutiles, sin partículas */
    .growth-waves {
        opacity: 0.4;
    }

    .wave {
        stroke-width: 1px;
    }

    .wave-2 {
        stroke-width: 1.5px;
    }

    .wave-particles {
        display: none;
    }
}

@media (max-width: 480px) {
    /* Móvil pequeño: ondas mínimas */
    .growth-waves {
        opacity: 0.3;
    }

    .wave-accent {
        display: none;
    }
}
