/* Smart Slider - Estilos Frontend */

.smart-slider {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.smart-slider-container {
    position: relative;
    width: 100%;
    height: 400px; /* Altura por defecto - será sobrescrita por inline styles */
    overflow: hidden;
}

.smart-slider-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: block;
    text-decoration: none;
    color: inherit;
}

.smart-slider-slide.active {
    opacity: 1;
}

.smart-slider-slide img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
}

.smart-slider-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

/* Flechas de navegación */
.smart-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    color: #fff;
    border: none;
    width: 60px;
    height: 60px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    background-color: inherit !important;
}

.smart-slider-nav:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-50%) scale(1.1);
}

.smart-slider-prev {
    left: 20px;
}

.smart-slider-next {
    right: 20px;
}

/* Dots de navegación - Posicionados más abajo */
.smart-slider-dots {
    position: absolute;
    bottom: 15px; /* Mucho más pegados abajo */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 9px;
    z-index: 10;
}

.smart-slider-dot {
    width: 6px;
    height: 11px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 6px !important;
}

.smart-slider-dot.active {
    background: #000;
    transform: scale(1.2);
}

.smart-slider-dot:hover {
    background: rgba(0, 0, 0, 0.7);
}

/* Estados de carga y transición */
.smart-slider-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%; /* Usar toda la altura del contenedor */
    background: #f8f9fa;
    color: #666;
    font-size: 18px;
}

/* Responsive */
@media (max-width: 768px) {
    .smart-slider-container {
        height: 300px !important; /* Forzar altura en móviles */
    }
    
    .smart-slider-nav {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }
    
    .smart-slider-prev {
        left: 10px;
    }
    
    .smart-slider-next {
        right: 10px;
    }
    
    .smart-slider-dots {
        bottom: 2px; /* Ajustado para móviles */
    }
    
    .smart-slider-dot {
        width: 3px;
        height: 3px;
    }
}

@media (max-width: 480px) {
    .smart-slider-container {
        height: 250px !important; /* Forzar altura en móviles pequeños */
    }
    
    .smart-slider-dots {
        bottom: 1px; /* Aún más abajo en móviles pequeños */
    }
} 