/* Clients Section */
.section-clients {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
    position: relative;
    overflow: hidden;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #1e293b;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.carousel-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
}

.carousel-wrapper {
    overflow: hidden;
    position: relative;
    
}

.carousel-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1rem 0;
}

.client-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 200px;
    min-width: 280px;
    flex-shrink: 0;
    position: relative;
    border: 2px solid transparent;
    cursor: pointer;
}

.client-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.03) 0%, rgba(59, 130, 246, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.client-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(37, 99, 235, 0.2);
    border-color: rgba(37, 99, 235, 0.2);
}

.client-card:hover::before {
    opacity: 1;
}

.client-card img {
    width: 100%;
    height: calc(100% - 45px);
    object-fit: contain;
    padding: 1.5rem;
    transition: all 0.4s ease;
}

.client-card:hover img {
    transform: scale(1.05);
}

.client-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem 1rem;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
    backdrop-filter: blur(4px);
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
    border-top: 1px solid rgba(37, 99, 235, 0.1);
    transition: all 0.4s ease;
}

.client-card:hover .client-name {
    background: linear-gradient(to top, rgba(37, 99, 235, 0.95), rgba(59, 130, 246, 0.85));
    color: white;
    border-top-color: rgba(255, 255, 255, 0.2);
}

.client-card i {
    font-size: 4rem;
    color: #2563eb;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
}

.client-card:hover i {
    transform: translate(-50%, -50%) scale(1.1);
}

.client-more {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.8rem;
    letter-spacing: -0.5px;
}

.client-more:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    transform: translateY(-8px) scale(1.02);
}

/* Botones de navegación */
.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 2px solid rgba(37, 99, 235, 0.2);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.carousel-button:hover {
    background: #2563eb;
    border-color: #2563eb;
    box-shadow: 0 6px 25px rgba(37, 99, 235, 0.3);
}

.carousel-button i {
    font-size: 1.2rem;
    color: #2563eb;
    transition: color 0.3s ease;
}

.carousel-button:hover i {
    color: white;
}

.carousel-button.prev {
    left: 0;
}

.carousel-button.next {
    right: 0;
}

.carousel-button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* Indicadores */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #2563eb;
    width: 30px;
    border-radius: 5px;
}

/* Auto-scroll animación */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.carousel-track.auto-scroll {
    animation: scroll 30s linear infinite;
}

.carousel-track.auto-scroll:hover {
    animation-play-state: paused;
}

@media (max-width: 768px) {
    .section {
        padding: 3rem 5%;
    }

    .section-title {
        font-size: 2rem;
    }

    .carousel-container {
        padding: 0 40px;
        max-width: 100%;
    }

    .client-card {
        min-width: 220px;
        height: 160px;
    }

    .client-name {
        font-size: 12px;
        padding: 0.5rem 0.75rem;
    }

    .carousel-button {
        width: 40px;
        height: 40px;
    }

    .carousel-button i {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .carousel-container {
        padding: 0 40px;
    }

    .client-card {
        min-width: 180px;
        height: 140px;
    }

    .client-name {
        font-size: 11px;
        padding: 0.4rem 0.5rem;
    }
}