/* ============================================
   SLIDER STYLES
   ============================================ */

/* Swiper Container Styles */
.swiper-container.sliderthree-active {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.banner-home-section {
    position: relative;
}

@media (max-width: 767px) {
    .banner-home-section .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

.swiper-wrapper {
    display: flex;
    width: 100%;
    position: relative;
}

.swiper-slide {
    flex-shrink: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-slide-img {
    width: 100%;
    display: block;
}

.banner-slide-img img,
.banner-slide-img picture {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
}

.banner-slide-img picture img {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
}

/* Asegurar que todas las imágenes tengan la misma altura en el slider */
.swiper-slide {
    height: auto;
}

/* Forzar altura mínima para mantener consistencia visual */
.swiper-container.sliderthree-active {
    min-height: 405px;
}

@media (max-width: 767px) {
    .swiper-container.sliderthree-active {
        min-height: auto;
    }
}

@media (min-width: 768px) {
    .swiper-container.sliderthree-active {
        min-height: 500px;
    }
}

.swiper-wrapper-container {
    position: relative;
    width: 100%;
}

.tpsliderthree__pagination {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 8px;
    z-index: 10;
    width: 100% !important;
    margin-top: 20px;
    padding: 0;
}

.tpsliderthree__pagination .swiper-pagination-bullet {
    width: 12px !important;
    height: 12px !important;
    border-radius: 50% !important;
    border: 2px solid rgba(185, 78, 181, 0.3) !important;
    background-color: transparent !important;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 1 !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

.tpsliderthree__pagination .swiper-pagination-bullet:hover {
    transform: scale(1.2);
}

.tpsliderthree__pagination .swiper-pagination-bullet-active {
    width: 12px !important;
    background-color: #B94EB5 !important;
    border-color: #B94EB5 !important;
    border-radius: 50% !important;
    opacity: 1 !important;
}

/* Animaciones personalizadas */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Contenedor principal del slider */
.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Estilos para cada slide */
.slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease-in-out;
    z-index: 0;
    overflow: hidden;
}

/* Slide solo imagen (sin texto) */
.slide.image-only {
    position: relative !important;
    overflow: hidden;
    border-radius: 0.5rem;
}

.slide.image-only img {
    object-fit: cover !important;
    width: 100% !important;
    height: 100% !important;
    display: block;
}

.slide.active {
    z-index: 1;
}

.slide:not(.active) {
    opacity: 0;
    z-index: 0;
}

/* Contenido del slide */
.slide-content {
    transition: all 0.8s ease-out;
}

.slide.active .slide-content {
    opacity: 1;
    transform: translateY(0);
}

.slide:not(.active) .slide-content {
    opacity: 0;
    transform: translateY(30px);
}

/* Animaciones para elementos del contenido */
.animate-fadeInUp {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.animation-delay-200 {
    animation-delay: 0.2s;
}

.animation-delay-400 {
    animation-delay: 0.4s;
}

/* Botones de navegación */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 12px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.slider-btn-prev {
    left: 16px;
}

.slider-btn-next {
    right: 16px;
}

.slider-btn svg {
    width: 24px;
    height: 24px;
}

/* Indicadores dots */
.slider-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.dot:hover {
    background-color: rgba(255, 255, 255, 0.75);
}

.dot.active {
    width: 24px;
    background-color: white;
    border-radius: 12px;
}

/* Barra de progreso */
.slider-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.3);
    z-index: 10;
}

.slider-progress-bar {
    height: 100%;
    background-color: white;
    transition: width 5s linear;
    width: 0%;
}

/* Responsive */
@media (max-width: 768px) {
    .slider-btn {
        padding: 10px;
    }

    .slider-btn svg {
        width: 20px;
        height: 20px;
    }

    .slider-btn-prev {
        left: 8px;
    }

    .slider-btn-next {
        right: 8px;
    }

    .slider-dots {
        bottom: 16px;
    }
}

/* Smooth transitions globales */
.slider-container * {
    transition-property: opacity, transform, background-color, width;
}

/* Asegurar que todas las imágenes del slider usen cover */
.slide img {
    object-fit: cover !important;
    width: 100% !important;
    height: 100% !important;
}

