/* Estilos para la sección de clientes con animaciones avanzadas */
.clients-section {
    padding: 80px 0;
    background-color: #f9f9f9;
    position: relative;
    overflow: hidden;
}

.clients-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.3) 100%);
    z-index: 1;
}

.clients-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}

.clients-title h2 {
    font-size: 36px;
    font-weight: 700;
    color: #414141;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.clients-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #e74c3c;
}

.clients-container {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
}

.clients-image {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transform: translateY(50px);
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
}

.clients-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

/* Animación de entrada */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Efecto de partículas flotantes */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: rgba(231, 76, 60, 0.2);
    border-radius: 50%;
    animation: float 15s infinite linear;
}

.particle:nth-child(1) {
    top: 10%;
    left: 20%;
    width: 15px;
    height: 15px;
    animation-duration: 25s;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    top: 30%;
    left: 80%;
    width: 12px;
    height: 12px;
    animation-duration: 18s;
    animation-delay: 2s;
}

.particle:nth-child(3) {
    top: 70%;
    left: 10%;
    width: 8px;
    height: 8px;
    animation-duration: 20s;
    animation-delay: 4s;
}

.particle:nth-child(4) {
    top: 40%;
    left: 40%;
    width: 10px;
    height: 10px;
    animation-duration: 22s;
    animation-delay: 1s;
}

.particle:nth-child(5) {
    top: 80%;
    left: 60%;
    width: 14px;
    height: 14px;
    animation-duration: 19s;
    animation-delay: 3s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(100px, 50px) rotate(90deg);
    }
    50% {
        transform: translate(50px, 100px) rotate(180deg);
    }
    75% {
        transform: translate(-50px, 50px) rotate(270deg);
    }
    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}

/* Efecto de resplandor al pasar el cursor */
.clients-image:hover {
    box-shadow: 0 20px 40px rgba(231, 76, 60, 0.3);
}

.clients-image:hover img {
    transform: scale(1.03);
}

.clients-image::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
    pointer-events: none;
    z-index: 3;
}

@keyframes shine {
    0% {
        left: -50%;
        top: -50%;
    }
    100% {
        left: 150%;
        top: 150%;
    }
}

/* Responsive */
@media only screen and (max-width: 767px) {
    .clients-section {
        padding: 60px 0;
    }
    
    .clients-title h2 {
        font-size: 28px;
    }
    
    .clients-image {
        margin: 0 20px;
    }
}

/* Animación de texto */
.text-animation {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: textFadeIn 0.5s ease-out forwards;
}

@keyframes textFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Retraso para cada letra */
.text-animation:nth-child(1) { animation-delay: 0.1s; }
.text-animation:nth-child(2) { animation-delay: 0.2s; }
.text-animation:nth-child(3) { animation-delay: 0.3s; }
.text-animation:nth-child(4) { animation-delay: 0.4s; }
.text-animation:nth-child(5) { animation-delay: 0.5s; }
.text-animation:nth-child(6) { animation-delay: 0.6s; }
.text-animation:nth-child(7) { animation-delay: 0.7s; }
.text-animation:nth-child(8) { animation-delay: 0.8s; }
.text-animation:nth-child(9) { animation-delay: 0.9s; }
.text-animation:nth-child(10) { animation-delay: 1.0s; }
.text-animation:nth-child(11) { animation-delay: 1.1s; }
.text-animation:nth-child(12) { animation-delay: 1.2s; }
.text-animation:nth-child(13) { animation-delay: 1.3s; }
.text-animation:nth-child(14) { animation-delay: 1.4s; }
.text-animation:nth-child(15) { animation-delay: 1.5s; }
.text-animation:nth-child(16) { animation-delay: 1.6s; }
