.lp-marcas-wrap {
    --lp-red: #BE1A34;
    --lp-black: #050505;
    --lp-card: #070707;
    --lp-text: #ffffff;
    width: 100%;
    background: var(--lp-black);
    padding: 10px 0;
    overflow: hidden;
}

.lp-marcas-track {
    display: flex;
    align-items: stretch;
    gap: 14px;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: #3d3d3d #050505;
    padding: 0 2px 8px;
    -webkit-overflow-scrolling: touch;
}

.lp-marcas-track::-webkit-scrollbar {
    height: 5px;
}

.lp-marcas-track::-webkit-scrollbar-track {
    background: #050505;
}

.lp-marcas-track::-webkit-scrollbar-thumb {
    background: #3d3d3d;
}

.lp-marca-card {
    position: relative;
    flex: 0 0 146px;
    min-width: 146px;
    min-height: 136px;
    background: var(--lp-card);
    border: 1px solid rgba(190, 26, 52, .72);
    border-radius: 0;
    color: var(--lp-text);
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 12px 14px;
    cursor: pointer;
    transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
    box-sizing: border-box;
    overflow: hidden;
}

.lp-marca-card:hover,
.lp-marca-card:focus-visible,
.lp-marca-card.is-active {
    color: #fff;
    border-color: var(--lp-red);
    background: #0c0c0c;
    transform: translateY(-2px);
    outline: none;
}

.lp-marca-card.is-active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: var(--lp-red);
}

.lp-marca-logo-wrap {
    width: 82px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lp-marca-logo {
    display: block;
    max-width: 82px;
    max-height: 62px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(1) brightness(3.2);
}

.lp-marca-name {
    width: 100%;
    text-align: center;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.15;
    text-transform: uppercase;
    letter-spacing: .01em;
}

.lp-marca-fallback {
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    color: #fff;
}

.lp-marcas-extra {
    display: contents;
}

.lp-marcas-extra[hidden] {
    display: none !important;
}

.lp-marca-more {
    font: inherit;
}

.lp-marca-more-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 62px;
}

.lp-marca-more-dots i {
    width: 9px;
    height: 9px;
    background: #fff;
    display: block;
    border-radius: 50%;
}

@media (max-width: 767px) {
    /*
     * El JS calcula el ancho exacto desde la posición actual del bloque
     * hasta el borde derecho REAL del viewport. Así conservamos la
     * alineación izquierda de Elementor/Woodmart, pero el carrusel ya no
     * se recorta en el contenedor padre.
     */
    .lp-marcas-wrap {
        width: 100%;
        max-width: none;
        margin-left: 0;
        margin-right: 0;
        padding: 8px 0;
        overflow: visible !important;
        box-sizing: border-box;
    }

    .lp-marcas-track {
        width: 100%;
        max-width: none;
        gap: 10px;
        padding-left: 0;
        padding-right: max(0px, env(safe-area-inset-right));
        padding-bottom: 6px;
        box-sizing: border-box;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        overscroll-behavior-inline: contain;
    }

    /* Se añade únicamente a los ancestros del shortcode en mobile. */
    .lp-marcas-allow-overflow {
        overflow: visible !important;
        overflow-x: visible !important;
        clip-path: none !important;
        -webkit-clip-path: none !important;
        contain: none !important;
    }

    .lp-marca-card {
        flex-basis: 112px;
        min-width: 112px;
        min-height: 112px;
        padding: 12px 9px;
        gap: 8px;
    }

    .lp-marca-logo-wrap {
        width: 68px;
        height: 50px;
    }

    .lp-marca-logo {
        max-width: 68px;
        max-height: 50px;
    }

    .lp-marca-name {
        font-size: 11px;
    }
}


.lp-marca-card--image {
    padding: 0;
    gap: 0;
    background: transparent;
    border: 0;
    min-height: auto;
    overflow: visible;
}

.lp-marca-card--image:hover,
.lp-marca-card--image:focus-visible,
.lp-marca-card--image.is-active {
    background: transparent;
    border-color: transparent;
}

.lp-marca-card--image::after {
    left: 6px;
    right: 6px;
}

.lp-marca-card-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}
