.dn-catalog-hero,
.dn-catalog-hero *,
.dn-catalog-hero *::before,
.dn-catalog-hero *::after {
    box-sizing: border-box;
}

.dn-catalog-hero {
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: 500px;
    margin-top: -68px;
    color: #15191d;
    overflow: visible;
    background: #fff;
    font-family: Poppins, Arial, sans-serif;
    isolation: isolate;
}

.dn-catalog-hero__media {
    position: absolute;
    /*
     * El HERO sube 68 px para conservar la integración con el encabezado.
     * La imagen comienza debajo de esa zona: nunca queda detrás del header.
     */
    top: 68px;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: -2;
    overflow: hidden;
    background: #fff;
}

.dn-catalog-hero__media picture,
.dn-catalog-hero__media img {
    display: block;
    width: 100%;
    height: 100%;
}

.dn-catalog-hero__media img {
    object-fit: cover;
    object-position: right center;
}

/*
 * La imagen horizontal ya trae su propia transición hacia el blanco en el
 * lado izquierdo. Esta capa protege únicamente la unión superior con el
 * encabezado, que comparte espacio visual con el HERO en escritorio.
 */
@media (min-width: 768px) {
    .dn-catalog-hero__media::after {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 2;
        pointer-events: none;
        background: linear-gradient(
            to bottom,
            rgba(255, 255, 255, .98) 0%,
            rgba(255, 255, 255, .88) 6%,
            rgba(255, 255, 255, .24) 17%,
            rgba(255, 255, 255, 0) 28%
        );
    }
}

.dn-catalog-hero__inner {
    display: flex;
    align-items: center;
    width: calc(100% - 48px);
    max-width: 1280px;
    min-height: 500px;
    margin: 0 auto;
    padding: 46px 0 34px;
}

.dn-catalog-hero__content {
    position: relative;
    z-index: 2;
    width: min(56%, 680px);
}

/*
 * Spotlight funcional detrás del buscador. No es una tarjeta ni una banda:
 * es un halo gris muy leve que devuelve contraste al CTA sin romper el
 * fondo blanco ni competir con la fotografía.
 */
.dn-catalog-hero__content::before {
    content: "";
    position: absolute;
    left: -78px;
    bottom: -42px;
    z-index: -1;
    width: min(730px, calc(100% + 130px));
    height: 225px;
    pointer-events: none;
    background: radial-gradient(
        ellipse 76% 62% at 44% 58%,
        rgba(222, 226, 230, .78) 0%,
        rgba(239, 241, 243, .48) 43%,
        rgba(255, 255, 255, 0) 78%
    );
}

.dn-catalog-hero__eyebrow {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 0 0 14px;
    color: #e30613;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.dn-catalog-hero__eyebrow::before {
    content: "";
    flex: 0 0 30px;
    width: 30px;
    height: 2px;
    background: #e30613;
}

body .dn-catalog-hero .dn-catalog-hero__title {
    display: block !important;
    margin: 0;
    color: #11161a;
    font-size: clamp(36px, 3.25vw, 46px);
    font-weight: 800;
    line-height: 1.03;
    letter-spacing: -1.6px;
    text-transform: uppercase;
    visibility: visible !important;
    opacity: 1 !important;
}

body .dn-catalog-hero .dn-catalog-hero__title span,
body .dn-catalog-hero .dn-catalog-hero__title strong {
    display: block;
    white-space: nowrap;
}

body .dn-catalog-hero .dn-catalog-hero__title strong {
    margin-top: 4px;
    color: #11161a;
    font-weight: 800;
}

.dn-catalog-hero__description {
    max-width: 590px;
    margin: 16px 0 12px;
    color: #343b43;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.55;
}

.dn-catalog-hero .dn-header-product-search {
    position: relative;
    z-index: 100;
    width: 100%;
    margin: 27px 0 0;
    padding: 0;
    color: #252525;
    background: transparent;
}

.dn-catalog-hero .dn-header-product-search__inner {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.dn-catalog-hero .dn-header-product-search__shell {
    width: 100%;
    max-width: 650px;
}

.dn-catalog-hero .dn-header-product-search__form {
    height: 58px;
    border-color: #bcc3c9;
    background: #fff;
    border-radius: 7px;
    box-shadow: 0 14px 32px rgba(22, 28, 34, .16), 0 2px 7px rgba(22, 28, 34, .07);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.dn-catalog-hero .dn-header-product-search__form:focus-within {
    border-color: rgba(227, 6, 19, .70);
    box-shadow: 0 10px 28px rgba(22, 28, 34, .11), 0 0 0 3px rgba(227, 6, 19, .09);
}

.dn-catalog-hero .dn-header-product-search__field,
.dn-catalog-hero .dn-header-product-search__form input[type="search"],
.dn-catalog-hero .dn-header-product-search__form button {
    height: 56px;
}

.dn-catalog-hero .dn-header-product-search__form input[type="search"] {
    padding-right: 18px;
    font-size: 15px;
    line-height: 56px;
}

.dn-catalog-hero .dn-header-product-search__form button {
    flex-basis: 120px;
    width: 120px;
    min-width: 120px;
    font-size: 13px;
}

.dn-catalog-hero .dn-header-product-search__hint {
    margin: 0 0 9px;
    color: #4f5860;
    font-size: 11.5px;
    font-weight: 500;
}

.dn-catalog-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 28px;
    margin-top: 0;
}

.dn-catalog-hero__catalog-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #252b31;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: underline;
    text-decoration-color: #b8bdc1;
    text-underline-offset: 4px;
    transition: color .18s ease, text-decoration-color .18s ease;
}

.dn-catalog-hero__catalog-link:hover,
.dn-catalog-hero__catalog-link:focus {
    color: #e30613;
    text-decoration-color: #e30613;
}

.dn-catalog-hero__catalog-link span {
    color: #e30613;
    font-size: 17px;
    line-height: 1;
    transition: transform .18s ease;
}

.dn-catalog-hero__catalog-link:hover span,
.dn-catalog-hero__catalog-link:focus span {
    transform: translateX(4px);
}

@media (max-width: 1100px) {
    .dn-catalog-hero__content {
        width: 60%;
    }

    body .dn-catalog-hero .dn-catalog-hero__title {
        font-size: clamp(34px, 4vw, 44px);
    }
}

@media (max-width: 767px) {
    .dn-catalog-hero {
        display: flex;
        flex-direction: column;
        min-height: 0;
        margin-top: 0;
        overflow: visible;
    }

    .dn-catalog-hero__inner {
        order: 1;
        display: block;
        width: 100%;
        min-height: 0;
        padding: 38px 18px 20px;
    }

    .dn-catalog-hero__content {
        width: 100%;
    }

    .dn-catalog-hero__media {
        position: relative;
        inset: auto;
        z-index: 0;
        order: 2;
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 3;
        margin-top: -8px;
    }

    .dn-catalog-hero__media img {
        object-position: center center;
        transform: none;
    }

    .dn-catalog-hero__media::after {
        display: none;
    }

    .dn-catalog-hero__eyebrow {
        margin-bottom: 12px;
        font-size: 12px;
    }

    body .dn-catalog-hero .dn-catalog-hero__title {
        font-size: clamp(34px, 10.5vw, 46px);
        line-height: 1;
        letter-spacing: -1.4px;
    }

    body .dn-catalog-hero .dn-catalog-hero__title span,
    body .dn-catalog-hero .dn-catalog-hero__title strong {
        white-space: normal;
    }

    body .dn-catalog-hero .dn-catalog-hero__title strong {
        margin-top: 5px;
    }

    .dn-catalog-hero__description {
        margin: 16px 0 12px;
        font-size: 15px;
        line-height: 1.5;
    }

    .dn-catalog-hero .dn-header-product-search__form {
        height: 50px;
        box-shadow: 0 7px 20px rgba(22, 28, 34, .09);
        border-color: #d4d7da;
    }

    .dn-catalog-hero .dn-header-product-search__field,
    .dn-catalog-hero .dn-header-product-search__form input[type="search"],
    .dn-catalog-hero .dn-header-product-search__form button {
        height: 48px;
    }

    .dn-catalog-hero .dn-header-product-search__form input[type="search"] {
        padding-left: 40px;
        font-size: 14px;
        line-height: 48px;
    }

    .dn-catalog-hero .dn-header-product-search__form button {
        flex-basis: 50px;
        width: 50px;
        min-width: 50px;
    }

    .dn-catalog-hero .dn-header-product-search__button-label {
        display: none;
    }

    .dn-catalog-hero .dn-header-product-search__button-icon {
        display: block;
    }

    .dn-catalog-hero__actions {
        align-items: flex-start;
        gap: 15px;
        margin-top: 0;
    }

    .dn-catalog-hero__catalog-link {
        font-size: 12px;
    }

    .dn-catalog-hero .dn-header-product-search {
        margin-top: 22px;
    }
}

@media (max-width: 390px) {
    .dn-catalog-hero__inner {
        padding-right: 14px;
        padding-left: 14px;
    }

    body .dn-catalog-hero .dn-catalog-hero__title {
        font-size: 34px;
    }

    .dn-catalog-hero__actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .dn-catalog-hero__catalog-link {
        width: max-content;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dn-catalog-hero__catalog-link,
    .dn-catalog-hero__catalog-link span,
    .dn-catalog-hero .dn-header-product-search__form {
        transition: none;
    }
}
