/* --- CLIENTES --- */
/* ===============================
   SECCIÓN CLIENTES (HOME)
================================ */
.clients-section {
    padding: 80px 1%;
    text-align: left;
}

.clients-section h2 {
    margin: 15px 0 50px;
    color: #ffffff;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 40px;
    align-items: center;
}

.client-card {
    background: var(--teal-dark);
    padding: 40px;
    border-radius: 6px;
    height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: 0.3s;
}

.client-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.client-card img {
    width: 100%;
    max-width: 120px;
    height: 95px;
    object-fit: contain;
    margin-bottom: 12px;
}

.client-card p {
    font-size: 0.8rem;
    color: var(--gray-light);
    text-align: center;
    line-height: 1.3;
}

/* ===============================
   MODAL CLIENTES
================================ */
.clients-modal {
    position: fixed;
    top: 80px;
    /* 👈 altura del header */
    left: 0;
    right: 0;
    bottom: 0;

    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
    z-index: 9999;
}

.clients-modal.active {
    display: flex;
}

/* CONTENEDOR PRINCIPAL */
.clients-modal-content {
    background: #0a2d37;
    width: 100%;
    max-width: 1100px;
    height: 100%;
    max-height: calc(100vh - 100px);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* HEADER DEL MODAL */
.clients-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 25px;
    background: #0a2d37;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    position: sticky;
    top: 0;
    z-index: 2;
}

.clients-modal-header h3 {
    margin: 0;
    color: #fff;
    font-size: 1.3rem;
}

/* BOTÓN CERRAR */
.close-modal {
    background: none;
    border: none;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    margin-left: 20px;
}

.close-modal:hover {
    opacity: 0.7;
}

/* GRID CON SCROLL */
.modal-clients-grid {
    flex: 1;
    padding: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 30px;
    align-items: center;
    overflow-y: auto;
}

.modal-clients-grid img {
    width: 100%;
    max-width: 120px;
    margin: auto;
    object-fit: contain;
    /*    filter: grayscale(100%);*/
    transition: 0.3s;
}

.modal-clients-grid img:hover {
    filter: grayscale(0%);
    transform: scale(1.05);
}