/*** GENERAL ***/
.nt_banners_home {
    --nt-radius: 8px;
    --nt-gap-desktop: 24px;
    --nt-gap-mobile: 16px;

    /* Desktop */
    --nt-banner-desktop-height: 460px;

    /* Móvil: el principal es un 35% más alto */
    --nt-banner-mobile-small-height: 200px;
    --nt-banner-mobile-main-height: 270px;

    display: flex;
    gap: var(--nt-gap-desktop);
    margin-bottom: 24px;
}

.nt_banners_home a,
.nt_banners_home .datatext {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: var(--nt-radius);
}

.nt_banners_home picture,
.nt_banners_home img {
    display: block;
    width: 100%;
}

.nt_banners_home img {
    height: auto;
    filter: brightness(0.90) contrast(1.04);
}

.nt_banners_home .splide__slide {
    padding: 0;
}

/*** FLECHAS SLIDER ***/
.nt_banners_home .splide__arrow {
    top: 50%;
}

.nt_banners_home .splide__arrow--prev {
    right: inherit;
}

#splide_nt_banners_home .splide__arrow {
    width: 30px !important;
    height: 30px !important;
    padding: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background-color: #f1f0f0;
    box-shadow: none;
    opacity: .5;
    transition: opacity .2s ease;
    transform: translateY(-50%);
}

#splide_nt_banners_home .splide__arrow:hover {
    opacity: .9;
}

#splide_nt_banners_home .splide__arrow--prev {
    left: 5px;
}

#splide_nt_banners_home .splide__arrow--next {
    right: 5px;
}

#splide_nt_banners_home.splide .splide__track,
.format_1 .splide .splide__track {
    margin-left: 0;
    margin-right: 0;
}

/*** HOME FORMATOS ***/
.nt_banners_home.format_2,
.nt_banners_home.format_3 {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.format_2 .ntb-slider {
    width: calc(75% - 20px);
    margin-right: 20px;
}

.format_2 .ntb-slider_small {
    width: 25%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.format_3 {
    margin-top: 12px;
}

.format_3 .ntb-slider_small {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.format_4 .ntb-slider_small {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.format_4 .banner_homesmall {
    width: calc(25% - 15px);
}

/*** TEXTO SOBRE BANNERS ***/
.nt-banner-text,
.nt-banner-small-text {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 20;
    transform: translate(-50%, -50%);
    color: #fff;
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
    text-shadow: 0 4px 18px rgba(0, 0, 0, .85);
    pointer-events: none;
}

.nt-banner-text {
    width: 90%;
    max-width: 720px;
    font-size: 46px;
    letter-spacing: -0.03em;
}

.nt-banner-small-text {
    width: 88%;
    font-size: 24px;
}

/*** DESKTOP: DOS COLUMNAS COMPACTAS + COVER ***/
@media (min-width: 992px) {
    .nt_banners_home.format_2,
    .nt_banners_home.format_3 {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--nt-gap-desktop);
        align-items: stretch;
    }

    .nt_banners_home.format_2 .ntb-slider,
    .nt_banners_home.format_3 .ntb-slider,
    .nt_banners_home.format_2 .ntb-slider_small,
    .nt_banners_home.format_3 .ntb-slider_small {
        width: 100%;
        max-width: none;
        margin: 0;
    }

    .nt_banners_home.format_2 .ntb-slider,
    .nt_banners_home.format_3 .ntb-slider,
    #splide_nt_banners_home,
    #splide_nt_banners_home .splide__track,
    #splide_nt_banners_home .splide__list,
    #splide_nt_banners_home .splide__slide,
    #splide_nt_banners_home .splide__slide a,
    #splide_nt_banners_home .splide__slide .datatext,
    #splide_nt_banners_home .splide__slide picture {
        height: var(--nt-banner-desktop-height);
    }

    .nt_banners_home.format_2 .ntb-slider_small,
    .nt_banners_home.format_3 .ntb-slider_small {
        height: var(--nt-banner-desktop-height);
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .nt_banners_home.format_2 .banner_homesmall,
    .nt_banners_home.format_3 .banner_homesmall {
        flex: 1;
        min-height: 0;
    }

    .nt_banners_home.format_2 .banner_homesmall a,
    .nt_banners_home.format_2 .banner_homesmall .datatext,
    .nt_banners_home.format_2 .banner_homesmall picture,
    .nt_banners_home.format_3 .banner_homesmall a,
    .nt_banners_home.format_3 .banner_homesmall .datatext,
    .nt_banners_home.format_3 .banner_homesmall picture {
        height: 100%;
    }

    .nt_banners_home.format_2 img,
    .nt_banners_home.format_3 img {
        height: 100%;
        object-fit: cover;
        object-position: center center;
    }
}

/*** MÓVIL: PRIMER BANNER 35% MÁS ALTO + COVER ***/
@media (max-width: 991px) {
    .nt_banners_home,
    .nt_banners_home.format_2,
    .nt_banners_home.format_3 {
        display: flex;
        flex-direction: column;
        gap: var(--nt-gap-mobile);
        margin-bottom: 24px;
    }

    .format_2 .ntb-slider,
    .format_2 .ntb-slider_small,
    .format_3 .ntb-slider,
    .format_3 .ntb-slider_small {
        width: 100%;
        margin: 0;
    }

    .format_2 .ntb-slider_small,
    .format_3 .ntb-slider_small {
        display: flex;
        flex-direction: column;
        gap: var(--nt-gap-mobile);
    }

    #splide_nt_banners_home,
    #splide_nt_banners_home .splide__track,
    #splide_nt_banners_home .splide__list,
    #splide_nt_banners_home .splide__slide,
    #splide_nt_banners_home .splide__slide a,
    #splide_nt_banners_home .splide__slide .datatext,
    #splide_nt_banners_home .splide__slide picture {
        height: var(--nt-banner-mobile-main-height) !important;
        min-height: var(--nt-banner-mobile-main-height) !important;
    }

    .nt_banners_home .banner_homesmall,
    .nt_banners_home .banner_homesmall a,
    .nt_banners_home .banner_homesmall .datatext,
    .nt_banners_home .banner_homesmall picture {
        height: var(--nt-banner-mobile-small-height) !important;
        min-height: var(--nt-banner-mobile-small-height) !important;
    }

    .nt_banners_home img {
        width: 100%;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center center;
    }

    .nt-banner-text {
        font-size: 32px;
        max-width: 90%;
    }

    .nt-banner-small-text {
        font-size: 20px;
        max-width: 88%;
    }

    .format_4 .banner_homesmall {
        width: calc(50% - 10px);
    }
}

@media (max-width: 575px) {
    .nt_banners_home {
        --nt-banner-mobile-small-height: 190px;
        --nt-banner-mobile-main-height: 257px;
        --nt-gap-mobile: 14px;

        margin-bottom: 18px;
    }

    .nt-banner-text {
        font-size: 25px;
        max-width: 90%;
    }

    .nt-banner-small-text {
        font-size: 18px;
        max-width: 88%;
    }
}

/*** PRODUCT ***/
.nt_banners_product .bannerproduct {
    margin-top: 12px;
}

.nt_banners_product img {
    width: 100%;
    height: auto;
}

/*** CATEGORY ***/
.nt_banners_category {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

.nt_banners_category .bannercategory {
    width: 100%;
    display: table;
}

.nt_banners_category .bannercategory img {
    width: 100%;
    height: auto;
}

/*** CATEGORY LIST ***/
.banner_productlist {
    width: 100% !important;
    margin: 0 8px 16px;
    padding: 32px;
    position: relative;
    background-color: #fff;
    border-radius: 8px;
}

.banner_productlist .title {
    max-width: calc(100% - 24px);
    font-weight: 600;
    font-size: 1.2rem;
}

.banner_productlist .icon_info i {
    position: absolute;
    right: 2rem;
    top: 2rem;
}

.banner_horizontal {
    width: 100% !important;
    position: relative;
    margin: 0 8px 16px;
}

.banner_horizontal img {
    width: 100%;
    height: auto;
}

.banner_productlist .banner_custom {
    display: flex;
    flex-wrap: wrap;
}

.banner_productlist .contenido_banner {
    width: 70%;
}

.banner_productlist .img_banner {
    width: 30%;
    display: flex;
    justify-content: flex-end;
}

.banner_productlist .img_banner img {
    max-width: 120px;
    height: auto;
}

.banner_vertical {
    width: calc(25% - 16px);
    min-height: 350px;
    max-height: 394px;
    margin: 0;
    padding: 0 8px;
    display: flex;
    flex-direction: column;
}

.banner_vertical a,
.banner_vertical span.datatext {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

.banner_vertical img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.nt_banners_home img {
    border-radius: .8em;
}
@media (max-width: 991px) {
    .banner_vertical {
        width: calc(33.33% - 16px);
    }

    .banner_productlist {
        padding: 16px;
    }

    .banner_productlist .contenido_banner,
    .banner_productlist .img_banner {
        width: 100%;
    }

    .banner_productlist .img_banner {
        margin-top: 16px;
        justify-content: center;
    }

    .banner_productlist .icon_info i {
        right: 1rem;
        top: 1.4rem;
    }
}

@media (max-width: 767px) {
    .banner_vertical {
        width: calc(50% - 16px);
        max-height: 353px;
    }
}