/* ============================================== */
/* === CLIENTES PIONEROS - SLIDER INTELIGENTE === */
/* ============================================== */

/* 1. Corrección de espacios y armonía visual */
.client-logos-section {
    margin: 30px 0;
    /* Espacio reducido drásticamente */
    text-align: center;
}

.clients-footer-text {
    margin-top: 15px;
    font-size: 1.05rem;
    color: var(--text-color);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 15px;
}

/* 2. Contenedor principal con máscara de desvanecimiento en bordes */
.smart-slider-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    padding: 20px 0;
    position: relative;
}

.smart-slider-container.is-animated {
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

/* 3. Track dinámico (Grilla o Slider según el JS) */
.smart-slider-track {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    /* Comportamiento estático por defecto (Grilla) */
}

.smart-slider-container.is-animated .smart-slider-track {
    justify-content: flex-start;
    flex-wrap: nowrap;
    /* Rompe la grilla para formar el tren del slider */
    width: max-content;
    animation: smartSlide 25s linear infinite;
}

/* 4. Estilos de la tarjeta interactiva */
.client-circle {
    width: 135px;
    height: 135px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 3px solid var(--accent-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 18px;
    text-decoration: none;
    flex-shrink: 0;
}

.client-circle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.client-circle:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(249, 115, 22, 0.4);
}

.client-circle:hover img {
    transform: scale(1.08);
}

.client-placeholder {
    background-color: rgba(255, 255, 255, 0.03);
    border: 3px dashed var(--accent-color);
    cursor: pointer;
    opacity: 0.7;
    box-shadow: none;
}

.client-placeholder:hover {
    opacity: 1;
    background-color: rgba(249, 115, 22, 0.05);
    box-shadow: 0 0 15px rgba(249, 115, 22, 0.2);
}

.client-placeholder span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary-color);
    font-family: var(--font-heading);
    text-align: center;
    line-height: 1.2;
    margin-top: 5px;
}

.client-placeholder i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

/* 5. Motor de Animación */
@keyframes smartSlide {
    0% {
        transform: translateX(0);
    }

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

/* ============================================== */
/* === RESPONSIVO (Cuadrícula 2x1 Dinámica) ===== */
/* ============================================== */
@media (max-width: 768px) {
    .smart-slider-container {
        padding: 5px 0 15px 0;
    }

    .smart-slider-track {
        gap: 20px;
    }

    /* Si no está animado, fuerza la estructura 2x1 perfecta */
    .smart-slider-container:not(.is-animated) .client-circle {
        /* Al usar calc(50% - 10px), forzamos 2 arriba, y el tercero baja y se centra solo */
        width: calc(50% - 15px);
        max-width: 140px;
        aspect-ratio: 1 / 1;
        /* Mantiene el círculo perfecto */
        height: auto;
    }
}