/* ── Wrapper exterior (fondo + padding) ─────────────────────────── */
.rvd-marcas-wrapper {
    width: 100%;
}

/* ── Grilla ─────────────────────────────────────────────────────── */
.rvd-marcas-grid {
    display: grid;
    grid-template-columns: repeat(var(--rvd-marcas-cols, 4), 1fr);
    gap: var(--rvd-marcas-gap, 20px);
}

@media (max-width: 767px) {
    .rvd-marcas-grid {
        grid-template-columns: repeat(var(--rvd-marcas-cols-mobile, 2), 1fr);
    }
}

/* ── Ítem individual ────────────────────────────────────────────── */
.rvd-marca-item {
    text-align: center;
    height: 100%;
}

.rvd-marca-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    background: #fff;
    height: 100%;
    box-sizing: border-box;
    transition: opacity 0.2s ease;
}

a.rvd-marca-inner.has-link:hover {
    opacity: 0.75;
    text-decoration: none;
}

.rvd-marca-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 10px;
}

.rvd-marca-img {
    max-width: 100%;
    height: auto;
    max-height: 90px;
    width: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.rvd-marca-name {
    font-size: 13px;
    color: #444;
    font-weight: 500;
    line-height: 1.3;
    margin-top: 4px;
}

.rvd-marcas-empty {
    color: #aaa;
    text-align: center;
    padding: 20px;
}

/* ── Carrusel: swiper core mínimo ───────────────────────────────── */
.rvd-marcas-carousel-wrap {
    position: relative;
}

.rvd-marcas-slider.swiper {
    overflow: hidden;
    list-style: none;
    padding: 0;
    position: relative;
    z-index: 1;
}

.rvd-marcas-slider .swiper-wrapper {
    display: flex;
    align-items: stretch;
    transition-property: transform;
    box-sizing: content-box;
}

.rvd-marcas-slider .swiper-slide {
    flex-shrink: 0;
    height: auto;
}

/* ── Flechas: solo el ícono, sin background ni sombra ───────────── */
/* Especificidad doble (.wrap .arrow.prev/next) para pisar style.css del slider */
.rvd-marcas-carousel-wrap .rvd-arrow.rvd-slider-prev,
.rvd-marcas-carousel-wrap .rvd-arrow.rvd-slider-next {
    background: none;
    box-shadow: none;
    border-radius: 0;
}

.rvd-marcas-carousel-wrap .rvd-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--wd-primary-color, #7eb93f);
    transition: opacity 0.2s, transform 0.2s;
}

.rvd-marcas-carousel-wrap .rvd-arrow:hover {
    opacity: 0.65;
    transform: translateY(-50%);
    background: none;
    box-shadow: none;
}

/* Desktop: flechas en los bordes del contenedor */
.rvd-marcas-carousel-wrap .rvd-slider-prev { left: 0; }
.rvd-marcas-carousel-wrap .rvd-slider-next { right: 0; }

.rvd-marcas-carousel-wrap .rvd-arrow svg {
    stroke: currentColor;
    flex-shrink: 0;
    display: block;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.28));
}

/* Mobile: flechas overlay con más separación de los bordes */
@media (max-width: 767px) {
    .rvd-marcas-carousel-wrap .rvd-slider-prev { left: 32px; }
    .rvd-marcas-carousel-wrap .rvd-slider-next { right: 32px; }
}

/* ── Dots ───────────────────────────────────────────────────────── */
.rvd-marcas-slider .swiper-pagination {
    position: relative;
    text-align: center;
    margin-top: 14px;
    line-height: 1;
}

.rvd-marcas-slider .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    display: inline-block;
    border-radius: 50%;
    background: var(--wd-primary-color, #7eb93f);
    opacity: 0.35;
    margin: 0 4px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.rvd-marcas-slider .swiper-pagination-bullet-active {
    opacity: 1;
}
