/* =============================================================================
   Marcas Deslizables – Frontend CSS v1.0.0
   ============================================================================= */

.mds-ticker {
    --mds-logo-height: 55px;
    --mds-gap:         60px;
    --mds-row-height:  120px;
    --mds-opacity:     1;
    width: 100%;
    position: relative;
}

.mds-ticker-mask {
    width: 100%;
    overflow: hidden;
}

.mds-ticker-track {
    display: flex;
    align-items: center;
    width: max-content;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

.mds-ticker-group {
    display: flex;
    align-items: center;
    gap: var(--mds-gap);
    flex-shrink: 0;
    padding-right: var(--mds-gap);
}

/* Altura fija uniforme — todos los logos ocupan el mismo espacio vertical */
.mds-slide {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    height: var(--mds-row-height);
}

.mds-slide-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    line-height: 1;
}

.mds-slide img {
    display: block;
    width: auto;
    height: var(--mds-logo-height);   /* altura fija, no max-height */
    max-width: none;                  /* sin límite de ancho — proporcional a la altura */
    object-fit: contain;
    object-position: center;
    opacity: var(--mds-opacity);
    transition: filter .25s ease, opacity .25s ease;
}

/* Escala de grises */
.mds-slide.is-grayscale img {
    filter: grayscale(100%);
    opacity: calc(var(--mds-opacity) * 0.8);
}

.mds-slide.is-grayscale:hover img {
    filter: grayscale(0);
    opacity: var(--mds-opacity);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .mds-ticker {
        --mds-row-height: 96px;
        --mds-gap:        48px;
    }
}

@media (max-width: 767px) {
    .mds-ticker {
        --mds-logo-height: 40px;
        --mds-row-height:  80px;
        --mds-gap:         36px;
    }
}
