/* Categoría de Inicio, configurada desde SIAC. */
.dh-cat1 {
    display: grid;
    grid-template-columns: minmax(0, 32%) minmax(0, 1fr);
    gap: 1.4rem;
    align-items: stretch;
    margin: 0 0 3rem;
    min-width: 0;
    font-family: 'Poppins', sans-serif;
}

.dh-cat1--solo { grid-template-columns: minmax(0, 1fr); }

.dh-cat1__feature {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-width: 0;
    min-height: 39rem;
    overflow: hidden;
    border-radius: 0;
    background: #e9eef1;
}

.dh-cat1__background {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dh-cat1__category,
.dh-cat1__promo {
    position: relative;
    z-index: 1;
    min-width: 0;
    padding: 2.8rem 2.2rem;
}

.dh-cat1__category {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(2px);
    color: #183b50;
}

.dh-cat1__category h2 {
    margin: 0;
    color: #193d54;
    font-size: clamp(1.8rem, 1.45vw, 2.35rem);
    font-weight: 600;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.dh-cat1--long-name .dh-cat1__category h2 {
    font-size: clamp(1.5rem, 1.05vw, 1.7rem);
}

.dh-cat1__rule {
    width: 3.5rem;
    height: 2px;
    margin: 1.6rem 0 1rem;
    background: #1585b7;
}

.dh-cat1__points { margin: 0; padding: 0; list-style: none; }

.dh-cat1__points li {
    position: relative;
    padding: .35rem 0 .35rem 1.3rem;
    color: #365467;
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.dh-cat1__points li::before {
    position: absolute;
    left: 0;
    color: #1686b6;
    content: '•';
}

.dh-cat1__promo {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2rem;
    padding-top: 4rem;
    background: linear-gradient(90deg, rgba(11, 34, 49, .21), rgba(11, 34, 49, .52));
    color: #fff;
}

.dh-cat1__copy h3 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.8rem, 1.45vw, 2.25rem);
    font-weight: 600;
    line-height: 1.3;
    overflow-wrap: anywhere;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .22);
}

.dh-cat1__copy p {
    margin: .9rem 0 0;
    color: rgba(255, 255, 255, .94);
    font-size: 1.35rem;
    font-weight: 400;
    line-height: 1.48;
    overflow-wrap: anywhere;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .22);
}

.dh-cat1__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    height: 3.4rem;
    padding: 0 1.2rem;
    border: 0;
    border-radius: .3rem;
    background: rgba(255, 255, 255, .24);
    color: #fff;
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    box-shadow: none;
    transition: background-color .25s ease, color .25s ease;
}

.dh-cat1__button i {
    width: 0;
    margin-left: 0;
    overflow: hidden;
    opacity: 0;
    transition: width .25s ease, margin-left .25s ease, opacity .2s ease;
}
.dh-cat1__button:hover,
.dh-cat1__button:focus-visible {
    border: 0;
    background: rgba(255, 255, 255, .92);
    color: #263440;
    text-decoration: none;
    box-shadow: none;
}
.dh-cat1__button:hover i,
.dh-cat1__button:focus-visible i { width: 1em; margin-left: .7rem; opacity: 1; }
.dh-cat1__button:focus-visible { outline: 2px solid #167ca9; outline-offset: 3px; }

.dh-cat1__products {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.2rem;
    min-width: 0;
}

.dh-cat1__product {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: #fff;
    transition: transform .2s ease;
}

.dh-cat1__product:hover {
    transform: translateY(-2px);
}

.dh-cat1__product-media {
    position: relative;
    display: grid;
    place-items: center;
    height: 17.8rem;
    padding: 1.1rem .4rem .3rem;
    background: #fff;
    color: inherit;
    text-decoration: none;
}

.dh-cat1__product-media:hover { color: inherit; }
.dh-cat1__product-media:focus-visible,
.dh-cat1__product-info h4 a:focus-visible { outline: 2px solid #167ca9; outline-offset: -2px; }

.dh-cat1__product-media img {
    width: 94%;
    height: 100%;
    object-fit: contain;
    transition: transform .25s ease;
}

.dh-cat1__product-media img[data-family-image],
.dh-cat1__product-media img[data-family-hover-image] {
    transition: opacity .16s ease-out, transform .25s ease;
}

.dh-cat1__product-media img[data-family-image].is-preview-hidden { opacity: 0; }
.dh-cat1__product-media img[data-family-hover-image] {
    right: auto;
    left: 3%;
    opacity: 0;
}
.dh-cat1__product-media img[data-family-hover-image].is-ready { opacity: 1; }

.dh-cat1__product:hover .dh-cat1__product-media img { transform: scale(1.035); }

.dh-cat1__product-empty { color: #c4d5de; font-size: 3.4rem; }

.dh-cat1__badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 1;
    max-width: calc(100% - 2rem);
    padding: .45rem .75rem;
    border-radius: .2rem;
    background: #e7f3f9;
    color: #12678f;
    font-size: .95rem;
    font-weight: 600;
    line-height: 1.2;
    overflow-wrap: anywhere;
}
.dh-cat1__badge[data-tone="discount"],
.dh-cat1__badge[data-tone="lot"] { background: #fff0e9; color: #bd531f; }
.dh-cat1__badge[data-tone="new"] { background: #eaf5f1; color: #168364; }

.dh-cat1__product-info {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
    padding: .6rem .75rem 1rem;
    text-align: left;
}

.dh-cat1__brand {
    max-width: 100%;
    margin-bottom: .45rem;
    color: #7b91a0;
    font-size: .95rem;
    font-weight: 400;
    letter-spacing: .025em;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dh-cat1__product-info h4 {
    display: -webkit-box;
    min-height: 4.1rem;
    margin: 0;
    overflow: hidden;
    color: #193d52;
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    font-weight: 400;
    letter-spacing: .02em;
    line-height: 1.6;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.dh-cat1__product-info h4 a { color: inherit; text-decoration: none; }
.dh-cat1__product-info h4 a:hover { color: #167ca9; }

.dh-cat1__purchase { margin-top: .8rem; }

.dh-cat1__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .2rem .55rem;
    line-height: 1.3;
}
.dh-cat1__amount { display: inline-flex; align-items: baseline; gap: .35rem; white-space: nowrap; }
.dh-cat1__price small { color: #8196a4; font-size: .9rem; font-weight: 400; }
.dh-cat1__price strong { color: #198754; font-size: 1.4rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.dh-cat1__price strong.dh-cat1__price-ask { color: #477387; font-size: 1.2rem; }
.dh-cat1__price del { color: #9ca9b2; font-size: 1rem; font-weight: 400; }
.dh-cat1__price-ask { color: #477387; font-size: 1.2rem; }
.dh-cat1__meta { display: flex; align-items: center; gap: .4rem; min-width: 0; margin-top: .2rem; white-space: nowrap; }
.dh-cat1__stock { display: inline-flex; flex: none; align-items: center; gap: .3rem; color: #667b88; font-size: .9rem; font-weight: 400; line-height: 1.3; }
.dh-cat1__stock::before { width: .4rem; height: .4rem; flex: none; border-radius: 50%; background: #34a36f; content: ''; }
.dh-cat1__stock[data-state="unavailable"]::before { background: #ba7780; }
.dh-cat1__unit { display: inline-flex; flex: 1 1 auto; min-width: 0; overflow: hidden; color: #8798a3; font-size: .85rem; line-height: 1.3; white-space: nowrap; }
.dh-cat1__unit::before { content: '('; flex: none; }
.dh-cat1__unit::after { content: ')'; flex: none; }
.dh-cat1__unit [data-family-presentation] { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 1299px) {
    .dh-cat1 { grid-template-columns: minmax(0, 1fr); }
    .dh-cat1__feature { min-height: 34rem; }
    .dh-cat1__product-media { height: 17.8rem; }
}

@media (max-width: 900px) {
    .dh-cat1__products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dh-cat1__product:last-child:nth-child(odd) { grid-column: 1 / -1; width: calc(50% - .6rem); justify-self: center; }
}

@media (max-width: 575px) {
    .dh-cat1__feature { grid-template-columns: minmax(0, 1fr); min-height: 0; }
    .dh-cat1__category,
    .dh-cat1__promo { min-height: 21rem; padding: 2.3rem 2rem; }
    .dh-cat1__promo { padding-top: 3rem; }
    .dh-cat1__products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
    .dh-cat1__product-media { height: 14.5rem; }
    .dh-cat1__product-info { padding: .6rem .8rem 1rem; }
    .dh-cat1__price strong { font-size: 1.35rem; }
}

@media (prefers-reduced-motion: reduce) {
    .dh-cat1__product,
    .dh-cat1__product-media img,
    .dh-cat1__button,
    .dh-cat1__button i { transition: none; }
}
