/* =========================================================
   Banner Slider Widget — Estilos Frontend
   ========================================================= */

.bsw-slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.bsw-swiper {
    width: 100%;
    height: 100%;
}

/* ── Slide ── */
.bsw-swiper .swiper-slide {
    width: 100%;
    height: 100%;
    display: block;
    position: relative;
}

/* ── Link de slide ── */
.bsw-slide-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    cursor: pointer;
}

/* ── Contenedor de imagen ── */
.bsw-slide-image {
    position: relative;
    width: 100%;
    aspect-ratio: var(--bsw-ratio-desktop, 16 / 6);
    height: auto;
    overflow: hidden;
    display: block;
}

/* Tablet */
@media (max-width: 1024px) and (min-width: 768px) {
    .bsw-slide-image {
        aspect-ratio: var(--bsw-ratio-tablet, 16 / 9);
    }
}

/* Mobile */
@media (max-width: 767px) {
    .bsw-slide-image {
        aspect-ratio: var(--bsw-ratio-mobile, 3 / 4) !important;
        height: auto !important;
    }
}

.bsw-slide-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
}

/* ── Imagen Mobile (oculta en desktop) ── */
.bsw-img-mobile {
    display: none !important;
}

/* ── En mobile se oculta desktop y se muestra mobile ── */
@media (max-width: 767px) {
    .bsw-img-desktop {
        display: none !important;
    }
    .bsw-img-mobile {
        display: block !important;
    }
}

/* ── Flechas de navegación ── */
.bsw-slider-wrapper .swiper-button-prev,
.bsw-slider-wrapper .swiper-button-next {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.35);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.bsw-slider-wrapper .swiper-button-prev:hover,
.bsw-slider-wrapper .swiper-button-next:hover {
    background-color: rgba(0, 0, 0, 0.60);
    transform: scale(1.05);
}

.bsw-slider-wrapper .swiper-button-prev::after,
.bsw-slider-wrapper .swiper-button-next::after {
    font-size: 18px;
    color: #ffffff;
    font-weight: 700;
}

/* ── Paginación (dots) ── */
.bsw-slider-wrapper .swiper-pagination {
    bottom: 12px;
}

.bsw-slider-wrapper .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    transition: background 0.25s ease, transform 0.25s ease;
}

.bsw-slider-wrapper .swiper-pagination-bullet-active {
    background: #ffffff;
    transform: scale(1.3);
}

/* ── Fade effect ── */
.bsw-swiper.swiper-fade .swiper-slide {
    pointer-events: none;
}

.bsw-swiper.swiper-fade .swiper-slide-active {
    pointer-events: auto;
}
