/* ==========================================
   SECCIÓN CLIENTES - ALINEACIÓN DE LA CAPTURA
   ========================================== */
.clientes-section {
    background-color: #ffffff;
    padding: 80px 0 100px 0;
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.clientes-container {
    max-width: 1500px;
    margin: 0 auto 40px auto;
    padding: 0 40px;
    text-align: left; /* Alineado a la izquierda según la imagen */
}

/* Título "+ de 6 años" */
.clientes-title-counter {
    font-family: 'Acumin', sans-serif;
    font-size: 3.8rem;
    font-weight: 900;
    font-style: italic;
    color: #000000;
    margin: 0 0 6px 0;
    line-height: 1;
    letter-spacing: -1.5px;
    text-transform: lowercase;
}

.clientes-title-counter .prefix,
.clientes-title-counter .suffix {
    color: #000000;
}

/* Número animado */
.counter-number {
    display: inline-block;
    transition: color 0.15s ease;
}

/* Subtítulo */
.clientes-subtitle-text {
    font-family: 'Acumin', sans-serif;
    font-size: 1.15rem;
    font-weight: 400;
    font-style: italic;
    color: #000000;
    margin: 0;
    letter-spacing: 0.2px;
    text-transform: uppercase;
}

/* --- Tira del Carrusel --- */
.clientes-carousel-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 30px 0;
    cursor: grab;
}

.clientes-carousel-wrapper:active {
    cursor: grabbing;
}

.clientes-track {
    display: flex;
    width: max-content;
    animation: clientesInfinito 30s linear infinite;
}

.clientes-group {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 80px;
    padding-right: 80px;
}

/* --- Cada Logo --- */
.cliente-item {
    flex-shrink: 0;
    width: 160px;
    height: 90px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.cliente-logo {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    filter: grayscale(100%) brightness(0.4) opacity(0.3);
    transition: filter 0.4s cubic-bezier(0.25, 1, 0.5, 1), 
                transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Estado Activo en Centro/Hover */
.cliente-item.active {
    transform: scale(1.12);
}

.cliente-item.active .cliente-logo {
    filter: grayscale(0%) brightness(1) opacity(1);
}

@keyframes clientesInfinito {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

/* ==========================================
   RESPONSIVE MÓVIL Y TABLET
   ========================================== */
@media (max-width: 991px) {
    .clientes-section {
        padding: 50px 0 70px 0;
    }

    .clientes-container {
        padding: 0 24px;
        margin-bottom: 30px;
    }

    .clientes-title-counter {
        font-size: 2.8rem;
    }

    .clientes-subtitle-text {
        font-size: 0.95rem;
    }

    .clientes-group {
        gap: 50px;
        padding-right: 50px;
    }

    .cliente-item {
        width: 120px;
        height: 70px;
    }
}