/* ============================================
   SLIDER STYLES
   ============================================ */

/* 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%; 
    margin: 0;
    padding: 0;
}

/* Eliminar espacio extra del hero slider */
.hero-slider-section {
    margin: 0 !important;
    padding: 0 !important;
}

/* Estilos para cada slide */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: block;
    transition: opacity 0.8s ease-in-out;
    z-index: 0;
    overflow: hidden;
}

/* Slide activo - determina la altura del contenedor */
.slide.active {
    position: relative;
    z-index: 1;
    opacity: 1;
    height: auto;
}

/* Slides inactivos */
.slide:not(.active) {
    opacity: 0;
    z-index: 0;
    pointer-events: none;
}

/* Slide solo imagen (sin texto) */
.slide.image-only {
    overflow: visible;
}

.slide.image-only img {
    object-fit: cover !important;
    width: 100% !important;
    height: 100% !important;
}

/* 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;
}

/* Estilos para imágenes del slider - contain por defecto */
.slide img {
    object-fit: contain !important;
    width: 100% !important;
    height: auto !important;
    display: block;
}

/* Slide solo imagen mantiene cover si es necesario */
.slide.image-only img {
    object-fit: cover !important;
}