@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700;800&display=swap');

.elementor-widget-elite_clientes_logos {
    margin: 0 !important;
    padding: 0 !important;
}

.ecl-stage {
    position: relative;
    width: 100%;
    background: #FAEA7C;
    font-family: 'Space Grotesk', sans-serif;
    overflow: hidden;
    padding: 60px 0 70px;
}

/* ─── Header ─── */
.ecl-header {
    text-align: center;
    padding: 0 20px 40px;
    position: relative;
    z-index: 5;
}

.ecl-eyebrow {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.5);
    margin-bottom: 12px;
}

.ecl-title {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 12px;
    color: #080808;
}

.ecl-title em {
    color: #080808;
    font-style: normal;
}

.ecl-subtitle {
    font-size: 15px;
    font-weight: 400;
    color: rgba(0, 0, 0, 0.55);
    margin: 0;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

/* ─── Marquee wrapper ─── */
.ecl-marquee-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.ecl-marquee-track {
    display: flex;
    width: max-content;
    will-change: transform;
}

/* ─── Grid ─── */
.ecl-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0;
    flex-shrink: 0;
    width: max-content;
}

/* ─── Celda ─── */
.ecl-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 140px;
    width: auto;
    min-width: 180px;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
    position: relative;
    transition: background 0.35s ease;
}

.ecl-cell:hover {
    background: rgba(0, 0, 0, 0.03);
}

.ecl-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
    text-decoration: none;
}

/* ─── Logo ─── */
.ecl-logo-img {
    display: block;
    max-width: 70%;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.5s ease, transform 0.5s ease;
    pointer-events: none;
}

.ecl-cell:hover .ecl-logo-img {
    filter: grayscale(0%);
    transform: scale(1.08);
}

/* ─── Animación marquee (fallback CSS) ─── */
@keyframes ecl-marquee-left {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes ecl-marquee-right {
    0%   { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.ecl-stage[data-marquee="1"] .ecl-marquee-track {
    animation: ecl-marquee-left 30s linear infinite;
}

.ecl-stage[data-marquee="1"][data-dir="right"] .ecl-marquee-track {
    animation: ecl-marquee-right 30s linear infinite;
}

.ecl-stage[data-marquee="1"][data-pause-hover="1"]:hover .ecl-marquee-track {
    animation-play-state: paused;
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
    .ecl-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
    .ecl-cell {
        min-width: 160px;
        height: 120px;
    }
}

@media (max-width: 768px) {
    .ecl-stage {
        padding: 40px 0 50px;
    }
    .ecl-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    .ecl-cell {
        min-width: 130px;
        height: 110px;
    }
    .ecl-header {
        padding: 0 16px 28px;
    }
    .ecl-logo-img {
        max-height: 48px;
    }
}

@media (max-width: 480px) {
    .ecl-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .ecl-cell {
        min-width: 150px;
        height: 100px;
    }
    .ecl-logo-img {
        max-height: 40px;
    }
}
