/* Home hero — overlays live INSIDE .ev-home-hero-frame */

.ev-site-header {
    position: relative;
    z-index: 2000;
}

.jetmenu,
.navbackground {
    position: relative;
    z-index: 2010;
}

#home-slider-container.ev-home-hero,
.ev-home-hero {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
    margin: 0 0 16px;
    box-sizing: border-box;
}

.ev-product-shelf {
    position: relative;
    z-index: 1;
}

#home-slider-container {
    margin-top: 36px;
}

@media screen and (max-width: 767px) {
    #home-slider-container {
        margin-top: 0;
    }
}

.ev-home-hero-frame {
    position: relative !important;
    display: block;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    background: #f5f5f5;
}

.ev-home-hero-track {
    display: -webkit-box !important;
    display: -ms-flexbox !important;
    display: flex !important;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    -ms-flex-wrap: nowrap !important;
    flex-wrap: nowrap !important;
    width: 100%;
    max-width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.ev-home-hero-track::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.ev-home-hero-slide {
    -webkit-box-flex: 0 !important;
    -ms-flex: 0 0 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    min-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    scroll-snap-align: start;
    box-sizing: border-box;
}

/* Solo el link-imagen del slider; no aplicar a títulos/CTA de noticias */
#home-slider-container .ev-home-hero-slide > a,
.ev-home-hero-slide a.home-news-card__image {
    display: block;
    line-height: 0;
}

.ev-home-hero-slide img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
}

.ev-home-hero-nav {
    display: none !important;
    position: absolute !important;
    top: 50% !important;
    bottom: auto !important;
    z-index: 6 !important;
    width: 44px !important;
    height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: #6f1c48 !important;
    color: #fff !important;
    font-size: 30px !important;
    line-height: 44px !important;
    text-align: center !important;
    cursor: pointer;
    -webkit-transform: translateY(-50%) !important;
    -ms-transform: translateY(-50%) !important;
    transform: translateY(-50%) !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.22);
    opacity: 0.92;
    overflow: visible !important;
}

.ev-home-hero-nav:hover,
.ev-home-hero-nav:focus {
    opacity: 1;
    background: #5c1228 !important;
    color: #fff !important;
    outline: none;
    text-decoration: none;
}

.ev-home-hero-prev {
    left: 12px !important;
    right: auto !important;
}

.ev-home-hero-next {
    right: 12px !important;
    left: auto !important;
}

.ev-home-hero-nav span {
    display: block;
    line-height: 44px;
    margin: 0;
}

.ev-home-hero-dots {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 12px !important;
    top: auto !important;
    z-index: 6 !important;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    width: 100%;
    margin: 0;
    padding: 0;
    pointer-events: none;
}

.ev-home-hero-dot {
    pointer-events: auto;
    position: relative !important;
    display: inline-block !important;
    -webkit-box-flex: 0;
    -ms-flex: 0 0 8px;
    flex: 0 0 8px;
    width: 8px !important;
    height: 8px !important;
    min-width: 8px !important;
    margin: 0 4px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.7) !important;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    line-height: 0 !important;
    font-size: 0 !important;
}

.ev-home-hero-dot.is-active {
    background: #6f1c48 !important;
    -webkit-transform: scale(1.3);
    -ms-transform: scale(1.3);
    transform: scale(1.3);
}

.ev-home-hero:not(.ev-home-hero-multi) .ev-home-hero-nav,
.ev-home-hero:not(.ev-home-hero-multi) .ev-home-hero-dots {
    display: none !important;
}

@media screen and (max-width: 767px) {
    #home-slider-container.ev-home-hero,
    .ev-home-hero {
        margin-bottom: 8px;
    }

    #home-slider-container .ev-home-hero-slide img {
        height: 168px;
        max-height: 168px;
        -o-object-fit: cover;
        object-fit: cover;
        -o-object-position: center center;
        object-position: center center;
    }

    .ev-home-hero-nav {
        display: none !important;
    }

    .ev-home-hero-dots {
        bottom: 8px !important;
    }
}

@media screen and (min-width: 768px) {
    .ev-home-hero.ev-home-hero-multi .ev-home-hero-nav {
        display: block !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ev-home-hero-track {
        scroll-behavior: auto;
    }
}

#home-slider-container .bx-controls,
#home-slider-container .bx-pager,
.ev-home-hero .bx-controls,
.ev-home-hero .bx-pager {
    display: none !important;
}
