/* Ajustes del inicio para pantallas de teléfono. */
.dh-mobile-slider {
    display: none;
}

@media (max-width: 575px) {
    .dh-intro-section {
        margin-bottom: 1.2rem;
    }

    .dh-intro-slider-container::before,
    .dh-intro-slider .dh-intro-slide .slide-image::before {
        padding-top: 65% !important;
    }

    .dh-intro-slider .dh-intro-slide .slide-image > img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .dh-intro-slider .dh-intro-slide .slide-image::after {
        content: '';
        position: absolute;
        inset: 0;
        z-index: 3;
        background: linear-gradient(90deg, rgba(5, 27, 46, .64), rgba(5, 27, 46, .2) 72%, transparent);
        pointer-events: none;
    }

    .dh-intro-slider .dh-intro-slide .dh-intro-content,
    .dh-intro-slider .dh-intro-slide .dh-intro-content--dark,
    .dh-intro-slider .dh-intro-slide .dh-intro-eyebrow {
        color: #fff !important;
    }

    .dh-intro-slider .dh-intro-slide .dh-intro-eyebrow,
    .dh-intro-slider .dh-intro-slide .dh-intro-title,
    .dh-intro-slider .dh-intro-slide .dh-intro-description {
        text-shadow: 0 1px 5px rgba(0, 0, 0, .65);
    }

    .dh-intro-slider .dh-intro-slide .dh-intro-content {
        left: 5%;
        width: 62%;
        max-width: 23rem;
        padding: 0;
    }

    .dh-intro-slider .dh-intro-eyebrow {
        margin-bottom: .35rem;
        font-size: clamp(.9rem, 2.7vw, 1.1rem);
        line-height: 1.25;
        letter-spacing: 0;
    }

    .dh-intro-slider .dh-intro-title {
        margin-bottom: .35rem;
        font-size: clamp(1.55rem, 5vw, 2.15rem);
        line-height: 1.15;
    }

    .dh-intro-slider .dh-intro-description {
        font-size: clamp(1rem, 3vw, 1.25rem);
        line-height: 1.3;
    }

    .dh-intro-slider .dh-intro-button {
        min-width: 0;
        min-height: 2.8rem;
        margin-top: .7rem;
        padding: .45rem .8rem;
        font-size: 1rem;
    }

    .dh-intro-slider.owl-nav-inside .owl-dots {
        right: auto;
        bottom: .4rem;
        left: 50%;
        transform: translateX(-50%);
    }

    .dh-intro-side-column,
    .dh-home-page .dh-aside-banner-column {
        display: none !important;
    }

    .dh-home-page .dh-promo-image-row .dh-promo-banner {
        height: clamp(15rem, 43vw, 18rem);
    }

    .dh-home-page .dh-promo-image-row .dh-promo-banner > img {
        height: 100%;
        aspect-ratio: auto;
        object-fit: cover;
    }

    .dh-home-page .dh-promo-image-row .dh-promo-banner .banner-content .dh-promo-banner__button {
        min-width: 0;
        padding: .7rem 1rem;
        color: #18374b;
    }

    .dh-home-page .dh-promo-image-row .dh-promo-banner .banner-content .dh-promo-banner__button:is(:hover, :focus-visible) {
        color: #fff;
    }

    .dh-home-page .dh-home-banners {
        display: flex;
        gap: 0;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .dh-home-page .dh-home-banners::-webkit-scrollbar,
    .dh-home-page .dh-home-products__grid::-webkit-scrollbar,
    .dh-home-page .dh-cat1__products::-webkit-scrollbar {
        display: none;
    }

    .dh-home-page .dh-home-banner,
    .dh-home-page .dh-home-banner--3 {
        flex: 0 0 100%;
        aspect-ratio: 580 / 250;
        scroll-snap-align: start;
    }

    .dh-home-page .dh-home-banner > img {
        object-fit: cover;
    }

    .dh-home-page .dh-home-after-banners {
        margin-bottom: .6rem !important;
    }

    .dh-home-page .dh-home-after-brands {
        margin-bottom: 1.2rem !important;
    }

    .dh-home-page #marcas {
        padding: .6rem 1rem .7rem;
    }

    .dh-home-page .brands-carousel .brand {
        height: 4.4rem;
        min-height: 4.4rem;
        padding: .2rem .35rem;
    }

    .dh-home-page .brands-carousel .brand img {
        max-height: 3.1rem;
    }

    .dh-home-page .dh-home-lazy--featured,
    .dh-home-page .dh-home-products {
        padding: 1.8rem 1.2rem 1.4rem;
    }

    .dh-home-page .dh-home-lazy__heading,
    .dh-home-page .dh-home-products__header {
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .dh-home-page .dh-home-lazy--featured .dh-home-lazy__cards {
        display: flex;
        gap: .8rem;
        overflow: hidden;
    }

    .dh-home-page .dh-home-lazy--featured .dh-home-lazy__card {
        flex: 0 0 100%;
        min-height: 33rem;
    }

    .dh-home-page .dh-home-products__grid {
        display: flex;
        grid-template-columns: none;
        gap: .8rem;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .dh-home-page .dh-home-products__grid > .dh-home-product {
        flex: 0 0 100%;
        scroll-snap-align: start;
    }

    .dh-home-page .dh-home-products .dh-home-product__media {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: minmax(0, 1fr);
        height: 24rem;
        padding: 3.6rem 1.5rem .8rem;
    }

    .dh-home-page .dh-home-products .dh-home-product__image-link {
        min-height: 0;
    }

    .dh-home-page .dh-home-products .dh-home-product__image,
    .dh-home-page .dh-home-products .dh-home-product__image-hover {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

    .dh-home-page .dh-home-products .dh-home-product__body {
        align-items: center;
        min-height: 0;
        padding: .9rem 1.3rem 1.4rem;
        text-align: center;
    }

    .dh-home-page .dh-home-products .dh-home-product__name,
    .dh-home-page .dh-home-products .dh-home-product__purchase {
        width: 100%;
    }

    .dh-home-page .dh-home-products .dh-home-product__price-line,
    .dh-home-page .dh-home-products .dh-home-product__purchase-meta,
    .dh-home-page .dh-home-products .dh-home-product__variants {
        justify-content: center;
    }

    .dh-home-page .dh-home-products .dh-home-product__variants--color {
        justify-content: flex-start;
    }

    .dh-home-page .dh-cat1 {
        gap: .9rem;
        margin-bottom: 2rem;
    }

    .dh-home-page .dh-cat1__feature {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        min-height: 25rem;
    }

    .dh-home-page .dh-cat1__category,
    .dh-home-page .dh-cat1__promo {
        min-height: 0;
        padding: 1.5rem 1.6rem;
    }

    .dh-home-page .dh-cat1__category {
        align-items: flex-start;
        background: linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .74));
    }

    .dh-home-page .dh-cat1__category h2,
    .dh-home-page .dh-cat1--long-name .dh-cat1__category h2 {
        font-size: clamp(1.55rem, 4.6vw, 1.9rem);
    }

    .dh-home-page .dh-cat1__rule {
        margin: .7rem 0 .35rem;
    }

    .dh-home-page .dh-cat1__points li {
        padding-block: .15rem;
        font-size: 1rem;
    }

    .dh-home-page .dh-cat1__promo {
        gap: .8rem;
        padding-top: 2.8rem;
        background: linear-gradient(180deg, transparent, rgba(9, 30, 47, .72));
    }

    .dh-home-page .dh-cat1__copy h3 {
        font-size: clamp(1.55rem, 4.6vw, 1.9rem);
        line-height: 1.3;
    }

    .dh-home-page .dh-cat1__copy p {
        margin-top: .4rem;
        font-size: 1.1rem;
    }

    .dh-home-page .dh-cat1__button {
        width: max-content;
        max-width: 100%;
        height: 3rem;
    }

    .dh-home-page .dh-cat1__products {
        display: flex;
        grid-template-columns: none;
        gap: .8rem;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .dh-home-page .dh-cat1__products > .dh-cat1__product,
    .dh-home-page .dh-cat1__products > .dh-cat1__product:last-child:nth-child(odd) {
        flex: 0 0 100%;
        width: auto;
        scroll-snap-align: start;
    }

    .dh-home-page .dh-cat1__product-media {
        grid-template-rows: minmax(0, 1fr);
        height: 22rem;
        padding: 2.8rem 1.2rem .6rem;
        overflow: hidden;
    }

    .dh-home-page .dh-cat1__product-media img {
        max-width: 100%;
        max-height: 100%;
        min-height: 0;
        object-fit: contain;
    }

    .dh-home-page .dh-cat1__product-info {
        align-items: center;
        padding: .9rem 1rem 1.3rem;
        text-align: center;
    }

    .dh-home-page .dh-cat1__product-info h4 {
        min-height: 0;
    }

    .dh-home-page .dh-cat1__purchase {
        width: 100%;
    }

    .dh-home-page .dh-cat1__price,
    .dh-home-page .dh-cat1__meta {
        justify-content: center;
    }

    .dh-home-page .dh-aside-offers__header {
        text-align: center;
    }

    .dh-home-page .dh-aside-offers__header::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .dh-home-page .dh-aside-offer .dh-home-product__media {
        height: 22rem;
        padding: 3.2rem 1.5rem .8rem;
    }

    .dh-home-page .dh-aside-offer .dh-home-product__body {
        align-items: center;
        padding: 1rem 1.3rem 1.4rem;
        text-align: center;
    }

    .dh-home-page .dh-aside-offer .dh-home-product__purchase {
        width: 100%;
    }

    .dh-home-page .dh-aside-offer__price-row,
    .dh-home-page .dh-aside-offer__stock-row,
    .dh-home-page .dh-aside-offer .dh-home-product__price-line {
        justify-content: center;
    }

    .dh-home-page .dh-mobile-slider {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: .8rem;
        min-height: 4rem;
        margin: .35rem 0 0;
        color: #4d7087;
        font-size: 1.2rem;
        font-weight: 500;
    }

    .dh-home-page .dh-mobile-slider__buttons {
        display: flex;
        gap: .6rem;
    }

    .dh-home-page .dh-mobile-slider__button {
        display: grid;
        width: 3.6rem;
        height: 3.6rem;
        padding: 0;
        place-items: center;
        border: 1px solid #d1e3ed;
        border-radius: 50%;
        background: #0079bc;
        color: #fff;
        font-size: 2rem;
        line-height: 1;
        cursor: pointer;
    }

    .dh-home-page .dh-mobile-slider__button:disabled {
        background: #fff;
        color: #afcbd9;
        cursor: default;
    }

    .dh-home-page .dh-mobile-slider__button:focus-visible {
        outline: 2px solid #005e98;
        outline-offset: 2px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dh-home-page .dh-home-banners,
    .dh-home-page .dh-home-products__grid,
    .dh-home-page .dh-cat1__products {
        scroll-behavior: auto;
    }
}
