/* ========================================
   Reclutamiento - Carrusel de Clientes
   ======================================== */

.clients-carousel {
    position: relative;
}

.clients-carousel-wrapper {
    position: relative;
    background: #f9f9f9;
    border-radius: 15px;
    padding: 40px 80px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.clients-carousel-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 30px;
    min-height: 120px;
    animation: infiniteScroll 60s linear infinite;
    width: fit-content;
}

@keyframes infiniteScroll {
    0% {
        transform: translateX(0);
    }
    99.9% {
        transform: translateX(calc(-280px * 21 - 30px * 21));
    }
    100% {
        transform: translateX(0);
    }
}

.clients-carousel-wrapper:hover .clients-carousel-container {
    animation-play-state: paused;
}

.client-slide {
    flex: 0 0 250px;
    width: 250px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.client-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.85;
    transition: all 0.3s ease;
}

.client-slide:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

.clients-carousel-btn {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: rgba(30, 58, 82, 0.6) !important;
    border: none !important;
    color: white !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    z-index: 10 !important;
    font-size: 20px !important;
}

.clients-carousel-btn:hover {
    background: rgba(30, 58, 82, 0.9) !important;
    transform: translateY(-50%) scale(1.1) !important;
}

.clients-carousel-btn.prev {
    left: 20px !important;
}

.clients-carousel-btn.next {
    right: 20px !important;
}

.clients-carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.client-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d0d0d0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.client-indicator.active {
    background: #1e3a52;
    width: 30px;
    border-radius: 6px;
}

.clients-carousel-btn {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: rgba(30, 58, 82, 0.6) !important;
    border: none !important;
    color: white !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    z-index: 10 !important;
    font-size: 20px !important;
}

.clients-carousel-btn:hover {
    background: rgba(30, 58, 82, 0.9) !important;
    transform: translateY(-50%) scale(1.1) !important;
}

.clients-carousel-btn.prev {
    left: 20px !important;
}

.clients-carousel-btn.next {
    right: 20px !important;
}

.clients-carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.client-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d0d0d0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.client-indicator.active {
    background: #1e3a52;
    width: 30px;
    border-radius: 6px;
}

/* Responsive */
@media (max-width: 1024px) {
    .clients-carousel-wrapper {
        padding: 30px 60px;
    }
    
    .client-slide {
        flex: 0 0 200px;
        width: 200px;
        height: 90px;
    }
    
    .clients-carousel-container {
        gap: 20px;
    }
    
    @keyframes infiniteScroll {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-220px * 5 - 20px * 5));
        }
    }
}

@media (max-width: 768px) {
    .clients-carousel-wrapper {
        padding: 25px 50px;
    }
    
    .clients-carousel-container {
        gap: 15px;
    }
    
    .client-slide {
        flex: 0 0 160px;
        width: 160px;
        height: 80px;
    }
    
    .clients-carousel-btn {
        width: 35px !important;
        height: 35px !important;
        font-size: 16px !important;
    }
    
    @keyframes infiniteScroll {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-175px * 5 - 15px * 5));
        }
    }
}

@media (max-width: 480px) {
    .clients-carousel-wrapper {
        padding: 20px 40px;
    }
    
    .clients-carousel-container {
        gap: 10px;
    }
    
    .client-slide {
        flex: 0 0 130px;
        width: 130px;
        height: 70px;
    }
    
    .clients-carousel-btn {
        width: 30px !important;
        height: 30px !important;
        font-size: 14px !important;
    }
    
    @keyframes infiniteScroll {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-140px * 5 - 10px * 5));
        }
    }
}
