/*
============================================================
ATINAWEB - SLIDER PRINCIPAL
Archivo: css/slider.css
============================================================
*/

.home_banner_area {
    position: relative;
    width: 100%;
    min-height: 650px;
    overflow: hidden;
    background: #111;
}

.home_slider {
    position: relative;
    width: 100%;
    min-height: 650px;
    overflow: hidden;
}

.home_slide {
    position: absolute;
    inset: 0;
    width: 100%;
    min-height: 650px;
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.04);
    transition:
        opacity 0.4s ease,
        visibility 0.4s ease,
        transform 10s ease;
    z-index: 1;
}

.home_slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    z-index: 2;
}

.slide_background {
    position: absolute;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    background: #111;
}

.slide_background img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover;
    object-position: center;
    display: block;
}

.slide_overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.82) 0%,
            rgba(0, 0, 0, 0.65) 38%,
            rgba(0, 0, 0, 0.30) 72%,
            rgba(0, 0, 0, 0.18) 100%
        );
}

.home_slide .container {
    position: relative;
    z-index: 3;
}

.home_slide .banner_content {
    max-width: 760px;
    padding: 80px 0 100px;
    color: #fff;
}

.home_slide .banner_content h5 {
    margin: 0 0 18px;
    color: #fff;
    font-size: 18px;
    line-height: 1.5;
    font-weight: 500;
    letter-spacing: 0.3px;
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.7s ease 0.15s, transform 0.7s ease 0.15s;
}

.home_slide .banner_content h2 {
    margin: 0 0 20px;
    color: #fff;
    font-size: 48px;
    line-height: 1.15;
    font-weight: 700;
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.7s ease 0.25s, transform 0.7s ease 0.25s;
}

.home_slide .banner_content p {
    max-width: 620px;
    margin: 0 0 30px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 17px;
    line-height: 1.7;
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.7s ease 0.35s, transform 0.7s ease 0.35s;
}

.home_slide .banner_content .banner_btn {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.7s ease 0.45s, transform 0.7s ease 0.45s;
}

.home_slide.active .banner_content h5,
.home_slide.active .banner_content h2,
.home_slide.active .banner_content p,
.home_slide.active .banner_content .banner_btn {
    opacity: 1;
    transform: translateY(0);
}

.slide_number {
    display: inline-block;
    margin-bottom: 22px;
    color: #fff;
    font-size: 13px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 3px;
    opacity: 0.85;
}

/* Indicadores Circulares */
.slider_dots {
    position: absolute;
    left: 50%;
    bottom: 35px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(-50%);
}

.slider_dot {
    width: 14px;
    height: 14px;
    padding: 0;
    border: 2px solid #AECB04;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    opacity: 0.85;
    transition: all 0.3s ease;
}

.slider_dot:hover,
.slider_dot:focus {
    opacity: 1;
    background: #AECB04;
    outline: none;
}

.slider_dot.active {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border-color: #588605;
    background: #588605;
    opacity: 1;
}

/* Mantener el menú lateral por encima del slider */
.home_banner_area .side_menu {
    position: absolute;
    z-index: 20;
}

/* Tablets */
@media (max-width: 991px) {
    .home_banner_area,
    .home_slider,
    .home_slide {
        min-height: 600px;
    }

    .home_slide .banner_content {
        max-width: 680px;
        padding: 90px 35px 100px;
    }

    .home_slide .banner_content h2 {
        font-size: 40px;
    }

    .home_slide .banner_content h5 {
        font-size: 16px;
    }

    .home_slide .banner_content p {
        font-size: 16px;
    }
}

/* Móviles */
@media (max-width: 767px) {
    .home_banner_area,
    .home_slider,
    .home_slide {
        min-height: 620px;
    }

    .home_slide .banner_content {
        max-width: 100%;
        padding: 105px 25px 105px;
        text-align: left;
    }

    .home_slide .banner_content h5 {
        margin-bottom: 14px;
        font-size: 15px;
        line-height: 1.5;
    }

    .home_slide .banner_content h2 {
        margin-bottom: 16px;
        font-size: 32px;
        line-height: 1.2;
    }

    .home_slide .banner_content p {
        margin-bottom: 25px;
        font-size: 15px;
        line-height: 1.6;
    }

    .slide_number {
        margin-bottom: 17px;
        font-size: 11px;
    }

    .slider_dots {
        bottom: 42px;
    }

    .slider_dot {
        width: 12px;
        height: 12px;
    }

    .slider_dot.active {
        width: 14px;
        height: 14px;
        border-radius: 50%;
    }

    .slide_overlay {
        background:
            linear-gradient(
                90deg,
                rgba(0, 0, 0, 0.82) 0%,
                rgba(0, 0, 0, 0.62) 100%
            );
    }
}

/* Pantallas muy pequeñas */
@media (max-width: 480px) {
    .home_banner_area,
    .home_slider,
    .home_slide {
        min-height: 580px;
    }

    .home_slide .banner_content {
        padding: 90px 20px 100px;
    }

    .home_slide .banner_content h2 {
        font-size: 28px;
    }

    .home_slide .banner_content h5 {
        font-size: 14px;
    }

    .home_slide .banner_content p {
        font-size: 14px;
    }
}

/* Respeta las preferencias de accesibilidad del usuario */
@media (prefers-reduced-motion: reduce) {
    .home_slide,
    .home_slide .banner_content h5,
    .home_slide .banner_content h2,
    .home_slide .banner_content p,
    .home_slide .banner_content .banner_btn {
        transition: none;
    }
}