/* 
==============================================
SIAPET SPA - Slider Styles
==============================================
*/

/* ===== HERO SLIDER SECTION ===== */
.hero-slider {
    position: relative;
    overflow: hidden;
}

.hero-slide {
    height: 80vh;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}

.min-vh-80 {
    min-height: 80vh;
}

.hero-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 27, 94, 0.85) 0%, rgba(0, 27, 94, 0.6) 50%, rgba(0, 27, 94, 0.3) 100%);
    z-index: 1;
}

.hero-slide-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    padding: 2rem 0;
    animation: fadeIn 1s ease-out;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 30px;
    margin-bottom: 1.5rem;
}

.hero-slide h1 {
    line-height: 1.2;
}

.hero-slide .lead {
    font-weight: 400;
    max-width: 90%;
    line-height: 1.6;
}

/* Estilos para la imagen lateral */
.hero-slide-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-side-image {
    max-height: 350px;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
    border-radius: 12px;
}

.hero-slide-image-mobile {
    margin: 0 auto 0.5rem;
    display: block;
    width: 100%;
    text-align: center;
    z-index: 5;
    position: relative;
    padding: 0;
    background-color: transparent;
    overflow: visible;
}

.hero-side-image-mobile {
    max-height: none;
    width: 100%;
    max-width: 220px;
    height: auto;
    margin: 0 auto;
    display: block;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
    border-radius: 12px;
    object-fit: contain;
}

/* Estilos para los botones CTA */
.hero-cta .btn {
    transition: all 0.3s ease;
    padding: 0.75rem 1.75rem;
}

.hero-cta .btn-primary:hover {
    background-color: var(--primary-dark);
}

.hero-cta .btn-outline-light:hover {
    background-color: var(--white);
    color: var(--primary);
}

/* Estilos para los botones en móvil */
.hero-mobile-cta {
    margin-top: 0.25rem;
    margin-bottom: 1rem;
    padding: 0 1rem;
}

.hero-mobile-cta .hero-cta {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.hero-mobile-cta .btn {
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* Estilos para los indicadores del carrusel */
.carousel-indicators {
    margin-bottom: 2rem;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    margin: 0 5px;
}

.carousel-indicators button.active {
    background-color: var(--white);
    transform: scale(1.2);
}

/* Estilos para los controles del carrusel */
.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
    z-index: 20;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.4);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 24px;
    height: 24px;
}

/* Animaciones para los slides */
.carousel-item.active .hero-slide-content {
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Ajustes responsivos para el slider */
@media (max-width: 991.98px) {
    .hero-slide {
        height: 70vh;
    }
    
    .hero-slide-content {
        padding: 1.5rem 0;
        text-align: center;
    }
    
    .hero-slide h1 {
        font-size: 2.2rem;
    }
    
    .hero-cta {
        justify-content: center;
    }
}

@media (max-width: 767.98px) {
    .hero-slide {
        height: auto;
        min-height: 85vh;
        align-items: flex-start;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    .hero-slide-content {
        padding: 1rem 0 0.5rem;
        text-align: center;
        margin: 0 auto;
        max-width: 90%;
    }
    
    .hero-slide-content h1,
    .hero-slide-content p {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-badge {
        margin: 0 auto;
        display: inline-block;
    }
    
    .hero-slide .container {
        padding-left: 25px;
        padding-right: 25px;
    }
    
    .hero-slide h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .hero-badge {
        font-size: 0.7rem;
        margin-bottom: 1rem;
    }
    
    .hero-slide .lead {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-cta .btn {
        display: block;
        width: 100%;
        margin-bottom: 0.75rem;
    }
}

@media (max-width: 575.98px) {
    .hero-slide {
        min-height: 80vh;
        padding-bottom: 1rem;
    }
    
    .hero-slide h1 {
        font-size: 1.5rem;
    }
    
    .carousel-indicators {
        margin-bottom: 1rem;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
        background-color: rgba(0, 0, 0, 0.3);
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .carousel-control-prev {
        left: 10px;
    }
    
    .carousel-control-next {
        right: 10px;
    }
}
