/* Carrusel principal — Swiper GL (efecto WebGL del demo) */

.main-swiper-wrap {
    --swiper-navigation-color: #ffffff;
    --swiper-navigation-size: 44px;
    --swiper-navigation-sides-offset: 12px;
    --main-carousel-height: 480px;
    width: 100%;
    background: #000000;
}

.main-swiper.swiper {
    user-select: none;
    box-sizing: border-box;
    overflow: hidden;
    width: 100%;
    height: var(--main-carousel-height);
    padding: 0;
    background: #000000;
}

.main-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: relative;
    box-sizing: border-box;
}

.main-swiper .swiper-slide-bg-image,
.main-swiper .swiper-gl-image {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    z-index: 0;
    /* fill: la imagen completa se ajusta al alto del carrusel sin recortarse;
       cuando el alto esta limitado se comprime ligeramente en vertical. */
    object-fit: fill;
    object-position: center center;
    border-radius: inherit;
    opacity: 1;
}

.main-swiper .swiper-slide-content {
    width: 100%;
    height: 100%;
    display: flex;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    padding: 32px 16px;
    flex-direction: column;
    gap: 0;
    align-items: flex-start;
    justify-content: flex-end;
    pointer-events: none;
}

.main-swiper .swiper-slide-text {
    color: rgba(255, 255, 255, 1);
    text-align: left;
    font-size: clamp(1.25rem, 3vw, 2.75rem);
    line-height: 1.4;
    font-weight: bold;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
    max-width: min(90%, 48rem);
}

.main-swiper .swiper-slide-link {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: block;
    text-indent: -9999px;
    overflow: hidden;
}

.main-swiper .swiper-button-prev,
.main-swiper .swiper-button-next {
    z-index: 5;
}

/* Puntos de navegacion debajo del slider, sobre franja blanca, con el
   mismo estilo que el carrusel de documentos (activo dorado con halo). */
.main-swiper-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    padding: 1rem 1rem 0.35rem;
    background: #ffffff;
}

.main-swiper-dots .swiper-pagination-bullet {
    width: 13px;
    height: 13px;
    margin: 0 !important;
    border-radius: 50%;
    background: #1b396a;
    opacity: 0.28;
    transition: opacity 0.25s ease, transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.main-swiper-dots .swiper-pagination-bullet:hover {
    opacity: 0.6;
}

.main-swiper-dots .swiper-pagination-bullet-active {
    background: #bc955c;
    opacity: 1;
    transform: scale(1.35);
    box-shadow: 0 0 0 4px rgba(188, 149, 92, 0.25);
}

html[data-theme="dark"] .main-swiper-dots {
    background: #0b1220;
}

html[data-theme="dark"] .main-swiper-dots .swiper-pagination-bullet {
    background: #9fc0ee;
}

html[data-theme="dark"] .main-swiper-dots .swiper-pagination-bullet-active {
    background: #bc955c;
}

.main-swiper-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 280px;
    color: #807e82;
    background: #f4f6f9;
}

@media (max-width: 767.98px) {
    .main-swiper-wrap {
        --main-carousel-height: 320px;
    }

    .main-swiper .swiper-slide-content {
        padding: 20px 12px;
    }
}
