/* =========================================================
   UBD Modular Bonito 1.8.9 · Recomendaciones bajo categorías
   ========================================================= */
html.ubd-category-ready body#category .ubd-category-showcase {
    --ubd-show-ink: #18333a;
    --ubd-show-muted: #667b80;
    width: min(100% - 28px, 1260px);
    margin: 24px auto 34px;
    padding: 22px;
    border: 1px solid rgba(24,51,58,.09);
    border-radius: 26px;
    background: #fbf8f4;
    box-shadow: 0 14px 34px rgba(24,51,58,.06);
    color: var(--ubd-show-ink);
    overflow: hidden;
}

html.ubd-category-ready body#category .ubd-category-showcase__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 17px;
}

html.ubd-category-ready body#category .ubd-category-showcase__eyebrow {
    display: inline-block;
    margin-bottom: 5px;
    color: #5da084;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

html.ubd-category-ready body#category .ubd-category-showcase h2 {
    margin: 0 0 5px !important;
    color: var(--ubd-show-ink) !important;
    font-family: "Protest Strike", Impact, sans-serif !important;
    font-size: clamp(27px, 3.6vw, 42px) !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    text-transform: uppercase;
}

html.ubd-category-ready body#category .ubd-category-showcase__head p {
    max-width: 680px;
    margin: 0 !important;
    color: var(--ubd-show-muted) !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
}

html.ubd-category-ready body#category .ubd-category-showcase__all {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 39px;
    padding: 9px 14px;
    border-radius: 999px;
    background: #18333a;
    color: #fff !important;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none !important;
}

html.ubd-category-ready body#category .ubd-category-showcase__rail {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

html.ubd-category-ready body#category .ubd-category-showcase__card {
    min-width: 0;
    overflow: hidden;
    border-radius: 20px;
    background: #f2ae69;
}
html.ubd-category-ready body#category .ubd-category-showcase__card:nth-child(5n + 2) { background:#ef9c7a; }
html.ubd-category-ready body#category .ubd-category-showcase__card:nth-child(5n + 3) { background:#efc65d; }
html.ubd-category-ready body#category .ubd-category-showcase__card:nth-child(5n + 4) { background:#9ac16f; }
html.ubd-category-ready body#category .ubd-category-showcase__card:nth-child(5n + 5) { background:#65aa91; }

html.ubd-category-ready body#category .ubd-category-showcase__card > a {
    display: grid;
    grid-template-rows: 170px auto;
    height: 100%;
    padding: 10px;
    color: var(--ubd-show-ink) !important;
    text-decoration: none !important;
}

html.ubd-category-ready body#category .ubd-category-showcase__media {
    display: grid;
    place-items: center;
    overflow: hidden;
}

html.ubd-category-ready body#category .ubd-category-showcase__media img {
    display: block;
    width: auto;
    height: auto;
    max-width: 94%;
    max-height: 158px;
    object-fit: contain;
}

html.ubd-category-ready body#category .ubd-category-showcase__info {
    display: grid;
    gap: 4px;
    min-height: 78px;
    padding: 11px 12px;
    border-radius: 15px;
    background: rgba(255,255,255,.78);
}

html.ubd-category-ready body#category .ubd-category-showcase__info strong {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    color: var(--ubd-show-ink);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
}

html.ubd-category-ready body#category .ubd-category-showcase__info b {
    align-self: end;
    color: #d96f3e;
    font-size: 14px;
    font-weight: 900;
}

@media (max-width: 899px) {
    html.ubd-category-ready body#category .ubd-category-showcase__rail {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 699px) {
    html.ubd-category-ready body#category .ubd-category-showcase {
        width: calc(100% - 18px);
        margin: 20px auto 26px;
        padding: 15px 13px 14px;
        border-radius: 21px;
    }

    html.ubd-category-ready body#category .ubd-category-showcase__head {
        align-items: center;
        gap: 10px;
        margin-bottom: 13px;
    }

    html.ubd-category-ready body#category .ubd-category-showcase__head p {
        display: none;
    }

    html.ubd-category-ready body#category .ubd-category-showcase h2 {
        font-size: 25px !important;
    }

    html.ubd-category-ready body#category .ubd-category-showcase__all {
        min-height: 34px;
        padding: 7px 10px;
        font-size: 10px;
    }

    html.ubd-category-ready body#category .ubd-category-showcase__rail {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: 42%;
        grid-template-columns: none;
        gap: 10px;
        width: calc(100% + 13px);
        margin-right: -13px;
        padding: 1px 13px 7px 1px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    html.ubd-category-ready body#category .ubd-category-showcase__rail::-webkit-scrollbar {
        display: none;
    }

    html.ubd-category-ready body#category .ubd-category-showcase__card {
        scroll-snap-align: start;
        border-radius: 17px;
    }

    html.ubd-category-ready body#category .ubd-category-showcase__card > a {
        grid-template-rows: 128px auto;
        padding: 8px;
    }

    html.ubd-category-ready body#category .ubd-category-showcase__media img {
        max-height: 118px;
    }

    html.ubd-category-ready body#category .ubd-category-showcase__info {
        min-height: 74px;
        padding: 9px 10px;
        border-radius: 13px;
    }

    html.ubd-category-ready body#category .ubd-category-showcase__info strong {
        font-size: 10.5px;
    }

    html.ubd-category-ready body#category .ubd-category-showcase__info b {
        font-size: 12px;
    }
}
