/**
 * Banner Slider Styles
 */

/* Espaciador para header fixed */
.header-spacer {
    height: 100px;
    margin-top: 0;
}

@media (max-width: 768px) {
    .header-spacer {
        height: 102px;
    }
}

.banner-slider-wrapper {
    position: relative;
    width: 100%;

    overflow: visible;
    padding-bottom: 80px;
    margin-top: 0;
}

.banner-slider-wrapper .splide {
    width: 100%;

}

@media (max-width: 768px) {
    .banner-slider-wrapper .splide {

    }
}


.banner-slider-wrapper .splide__track {
    width: 100%;
    height: 100%;
}

.banner-slider-wrapper .splide__list {
    width: 100%;
    height: 100%;
}

.banner-slider-wrapper .splide__slide {
    width: 100%;
    height: 100%;
}

.banner-slide {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #f8f9fa;
}

/* Banner Images (responsive with CSS) */
.banner-slide .banner-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Desktop: mostrar desktop, ocultar mobile */
.banner-slide .banner-image-desktop {
    display: block;
}

.banner-slide .banner-image-mobile {
    display: none;
}

/* Mobile: ocultar desktop, mostrar mobile */
@media (max-width: 768px) {
    .banner-slide .banner-image-desktop {
        display: none;
    }

    .banner-slide .banner-image-mobile {
        display: block;
    }
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 100%);
    z-index: 1;
}

.banner-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
    cursor: pointer;
}

/* Navigation Arrows */
.banner-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #fff;
    font-size: 50px;
    width: 60px;
    height: 60px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-nav:hover {
    background: transparent;
    transform: translateY(-50%) scale(1.2);
    color: #0A8CCC;
}

.banner-nav i {
    font-size: 50px !important;
    line-height: 1;
}

.banner-nav svg {
    display: none !important;
}

.banner-prev {
    left: 30px;
}

.banner-next {
    right: 30px;
}

/* Dots Indicator */
.banner-dots {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.banner-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid #3F265F;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.banner-dot:hover {
    background: #3F265F;
    transform: scale(1.2);
}

.banner-dot.active,
.banner-dots .splide__pagination__page.is-active {
    background: #3F265F !important;
    border: 2px solid #3F265F !important;
    width: 16px;
    height: 16px;
}

/* Responsive */
@media (max-width: 768px) {

    .banner-slider-wrapper {

        margin-top: 0;
    }


    /* Ocultar flechas en mobile */
    .banner-nav {
        display: none;
    }


        .banner-dots {
            bottom: -42px;
            gap: 8px;
        }


    .banner-dot {
        width: 10px;
        height: 10px;
    }

    .banner-dot.active {
        width: 12px;
        height: 12px;
    }
}

/* Loading State */
.banner-slide.loading {
    background-color: #333;
}

.banner-slide.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: banner-spinner 0.8s linear infinite;
}

@keyframes banner-spinner {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Banner Text Content */
.banner-content {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 3;
    pointer-events: none;
}

.banner-text-wrapper {
    max-width: 800px;
}

.banner-content.text-left .banner-text-wrapper {
    margin-left: 0;
    margin-right: auto;
}

.banner-content.text-center .banner-text-wrapper {
    margin-left: auto;
    margin-right: auto;
}

.banner-content.text-right .banner-text-wrapper {
    margin-left: auto;
    margin-right: 0;
}

.banner-text-title {
    color: #FFF;
    font-family: Manrope;
    font-size: 50px;
    font-style: normal;
    font-weight: 400;
    line-height: 70px;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
    animation: fadeInUp 1s ease-out 0.3s both;
}

.banner-text-subtitle {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 0;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
    opacity: 0.95;
    animation: fadeInUp 1s ease-out 0.6s both;
}

/* Animation for banner text */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments for banner text */
@media (max-width: 991.98px) {
    .banner-text-title {
        font-size: 2.5rem;
    }

    .banner-text-subtitle {
        font-size: 1.25rem;
    }

    .banner-text-wrapper {
        max-width: 600px;
    }
}

@media (max-width: 767.98px) {
    .banner-text-title {
        font-size: 2rem;
    }

    .banner-text-subtitle {
        font-size: 1.1rem;
    }

    .banner-text-wrapper {
        max-width: 100%;
        padding: 0 1rem;
    }

    /* Center text on mobile for better readability */
    .banner-content.text-left,
    .banner-content.text-right {
        text-align: center !important;
    }

    .banner-content.text-left .banner-text-wrapper,
    .banner-content.text-right .banner-text-wrapper {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 575.98px) {
    .banner-text-title {
        font-size: 1.75rem;
    }

    .banner-text-subtitle {
        font-size: 1rem;
    }
}
