/* Lof Slider CSS */

.lof-slider-container {
    position: relative;
    overflow: hidden;
    width: 100%;
}

/* Contenedor en altura automática */
.lof-slider-container.height-auto {
    height: auto;
    background-color: #000000; /* Fondo por defecto */
}

/* Contenedor en altura fija */
.lof-slider-container.height-fixed {
    height: 600px;
}

.lof-slider-wrapper {
    position: relative;
    height: 100%;
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.lof-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

/* Slide en altura automática */
.height-auto .lof-slide {
    position: relative;
    width: 100%;
    height: auto;
}

/* Ocultar slides inactivos en altura automática */
.height-auto .lof-slide:not(.active) {
    display: none;
}

.lof-slide.active {
    opacity: 1;
}

/* Fondo del slide en altura automática */
.height-auto .lof-slide-background {
    position: relative;
    width: 100%;
    height: auto;
    display: block;
}

/* Imagen en altura automática - Mostrar completa */
.height-auto .lof-slide-background img {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
}

.lof-slide.active {
    opacity: 1;
}

/* Fondo del slide */
.lof-slide-background {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: #000000; /* Color de fondo por defecto */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Fondo del slide en altura automática */
.height-auto .lof-slide-background {
    position: relative;
    width: 100%;
    height: auto;
    display: block;
}

/* Imagen en altura automática - Mostrar completa */
.height-auto .lof-slide-background img {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
}

/* Imagen en altura fija */
.height-fixed .lof-slide-background {
    position: absolute;
    top: 0;
    left: 0;
}

.height-fixed .lof-slide-background img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.lof-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    opacity: 0.3;
}

.lof-slide-content-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    padding: 40px;
    box-sizing: border-box;
    z-index: 2;
}

/* Posiciones del contenido */
.lof-slide-content-wrapper.top-left {
    align-items: flex-start;
    justify-content: flex-start;
}

.lof-slide-content-wrapper.top-center {
    align-items: flex-start;
    justify-content: center;
}

.lof-slide-content-wrapper.top-right {
    align-items: flex-start;
    justify-content: flex-end;
}

.lof-slide-content-wrapper.center-left {
    align-items: center;
    justify-content: flex-start;
}

.lof-slide-content-wrapper.center-center {
    align-items: center;
    justify-content: center;
}

.lof-slide-content-wrapper.center-right {
    align-items: center;
    justify-content: flex-end;
}

.lof-slide-content-wrapper.bottom-left {
    align-items: flex-end;
    justify-content: flex-start;
}

.lof-slide-content-wrapper.bottom-center {
    align-items: flex-end;
    justify-content: center;
}

.lof-slide-content-wrapper.bottom-right {
    align-items: flex-end;
    justify-content: flex-end;
}

.lof-slide-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 30px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    animation: lofFadeInUp 1s ease-out;
}

.lof-slide-content.no-background {
    background: transparent;
    padding: 0;
}

@keyframes lofFadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lof-slide-title {
    margin: 0 0 15px 0;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
}

.lof-slide-subtitle {
    margin: 0 0 20px 0;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.4;
    color: #ffffff;
}

.lof-slide-text {
    margin: 0 0 25px 0;
    font-size: 18px;
    line-height: 1.6;
    color: #ffffff;
}

.lof-slide-button {
    display: inline-block;
    padding: 12px 30px;
    background: #0073e6;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.lof-slide-button:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 115, 230, 0.3);
}

.lof-slide-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Navegación */
.lof-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.lof-slider-nav:hover {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.lof-slider-prev {
    left: 20px;
}

.lof-slider-next {
    right: 20px;
}

/* Paginación */
.lof-slider-pagination {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.lof-slider-pagination-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.lof-slider-pagination-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.lof-slider-pagination-dot.active {
    background: #ffffff;
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.2);
}

/* Responsive */
@media (max-width: 768px) {
    .height-fixed {
        height: 400px !important;
    }
    
    .lof-slide-content-wrapper {
        padding: 20px;
    }
    
    .lof-slide-content {
        padding: 20px;
    }
    
    .lof-slide-content.no-background {
        padding: 0;
    }
    
    .lof-slide-title {
        font-size: 32px;
    }
    
    .lof-slide-subtitle {
        font-size: 18px;
    }
    
    .lof-slide-text {
        font-size: 16px;
    }
    
    .lof-slider-nav {
        width: 40px;
        height: 40px;
    }
    
    .lof-slider-prev {
        left: 10px;
    }
    
    .lof-slider-next {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .height-fixed {
        height: 300px !important;
    }
    
    .lof-slide-title {
        font-size: 24px;
        margin-bottom: 10px;
    }
    
    .lof-slide-subtitle {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .lof-slide-text {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .lof-slide-button {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Estilos para el editor de Elementor */
.elementor-editor-active .lof-slider-container {
    min-height: 300px;
}
