/* css/customers.css - Grid limpio de logos de clientes */

.customers-section {
    background: #ffffff;
    padding: 100px 20px 90px;
    text-align: center;
}

.customers-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-items: center;
    align-items: center;
    flex-direction: column;
}

.customers-title {
    font-family: var(--title-font-family);
    font-size: clamp(2.4rem, 5vw, 3.4rem);
    color: var(--primary-color);
    margin-bottom: 16px;
}

.customers-subtitle {
    font-size: 1.5rem;
    color: #555;
    max-width: 720px;
    margin: 0 auto 60px;
    line-height: 1.5;
    text-align: center;
    font-weight: 600;
}

.customers-grid {
    display: grid;
    max-width: 1200px;
    grid-template-columns: repeat(auto-fit, minmax(225px, 1fr));
    gap: 25px 20px;
    align-items: center;
    
    padding: 0 20px;

    justify-content: center;      /* Centra la última fila */
    justify-items: center;        /* Centra cada tarjeta */
    justify-content: space-around;

    
}

.customer-logo-link {
    display: block;
    padding: 25px 15px;
    transition: all 0.35s ease;
    filter: grayscale(75%);
    opacity: 0.85;
    border-radius: 20px;
}

.customer-logo-link:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: translateY(-8px) scale(1.06);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.customer-logo {
    max-width: 100%;
    height: 200px;
    object-fit: contain;
    transition: all 0.35s ease;
}

/* =============================================
   RESPONSIVE - Desktop First
   ============================================= */

@media (max-width: 1200px) {
    .customers-grid {
        gap: 45px 35px;
        width: 100%;
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    }
}

@media (max-width: 992px) {
    .customers-section {
        padding: 90px 20px 80px;
    }

    .customers-grid {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 20px 15px;
    }

    .customer-logo {
        max-height: 82px;
    }
}

@media (max-width: 768px) {
    .customers-section {
        padding: 80px 16px 70px;
    }

    .customers-subtitle {
        font-size: 1.35rem;
        margin-bottom: 50px;
    }

    .customers-grid {
        gap: 35px 25px;
    }

    .customer-logo-link {
        padding: 20px 10px;
    }

    .customer-logo {
        max-height: 75px;
    }
}

@media (max-width: 576px) {
    .customers-section {
        padding: 70px 16px 60px;

    }

    .customers-title {
        font-size: clamp(2.1rem, 6vw, 2.8rem);
    }

    .customers-subtitle {
        font-size: 1.25rem;
        margin-bottom: 45px;
    }

    .customers-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 20px 20px;
    }

    .customer-logo {
        max-height: 68px;
    }
}