/* =========================================================
   UBD Modular Bonito 1.6.7
   Navegación móvil, centro de ayuda y menú modular
   ========================================================= */

/* La vista privada sigue funcionando por sesión, pero ya no muestra etiquetas. */
.ubd-preview-fab,
.ubd-catalog-preview-toggle,
[data-ubd-preview-toggle],
.ubd-private-version-badge {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Categorías: se conserva el contenido SEO, pero se oculta el bloque decorativo verde. */
body#category .tv-category-block-wrapper > .tv-category-cover,
html.ubd-category-ready body#category .tv-category-block-wrapper > .tv-category-cover,
body#category .tv-category-block-wrapper > .tv-all-page-main-title-wrapper,
html.ubd-category-ready body#category .tv-category-block-wrapper > .tv-all-page-main-title-wrapper,
body#category .tv-category-block-wrapper .tv-category-cover,
html.ubd-category-ready body#category .tv-category-block-wrapper .tv-category-cover,
body#category .tv-category-block-wrapper .tv-all-page-main-title-wrapper,
html.ubd-category-ready body#category .tv-category-block-wrapper .tv-all-page-main-title-wrapper {
    display: none !important;
}

body#category .tv-category-block-wrapper,
html.ubd-category-ready body#category .tv-category-block-wrapper {
    padding-top: 0 !important;
    background: #fff !important;
}

/* =========================================================
   CENTRO DE AYUDA
   ========================================================= */
.ubd-help-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: block;
    border: 0;
    background: rgba(18, 39, 45, .48);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .24s ease, visibility .24s ease;
}

.ubd-help-backdrop.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.ubd-help-sheet {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2147483001;
    width: min(100%, 720px);
    max-height: min(88vh, 780px);
    margin: 0 auto;
    padding: 12px 16px calc(92px + env(safe-area-inset-bottom));
    overflow-y: auto;
    border: 1px solid rgba(255,255,255,.78);
    border-radius: 30px 30px 0 0;
    background: rgba(255,255,255,.98);
    box-shadow: 0 -24px 60px rgba(24,51,58,.20);
    transform: translateY(105%);
    visibility: hidden;
    transition: transform .32s cubic-bezier(.22,.8,.24,1), visibility .32s ease;
    overscroll-behavior: contain;
}

.ubd-help-sheet.is-open {
    transform: translateY(0);
    visibility: visible;
}

.ubd-help-grabber {
    width: 42px;
    height: 5px;
    margin: 0 auto 14px;
    border-radius: 999px;
    background: rgba(24,51,58,.13);
}

.ubd-help-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.ubd-help-head > div {
    display: grid;
    gap: 3px;
}

.ubd-help-head small {
    color: #5da084;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.ubd-help-head strong {
    color: #18333a;
    font-family: "Protest Strike", Impact, sans-serif;
    font-size: 28px;
    font-weight: 400;
    line-height: 1;
    text-transform: uppercase;
}

.ubd-help-close {
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 14px;
    background: #f7f2ec;
    color: #18333a;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}

.ubd-help-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(93,160,132,.10);
    color: #3b795f;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.ubd-help-status i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #25d366;
    box-shadow: 0 0 10px rgba(37,211,102,.68);
}

.ubd-help-status.is-offline {
    color: #a64e3c;
    background: rgba(231,130,82,.11);
}

.ubd-help-status.is-offline i {
    background: #e78252;
    box-shadow: 0 0 10px rgba(231,130,82,.45);
}

.ubd-help-quick {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
    margin-bottom: 12px;
}

.ubd-help-card,
.ubd-help-row,
.ubd-help-whatsapp,
.ubd-help-question {
    text-decoration: none !important;
}

.ubd-help-card {
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 7px;
    min-height: 104px;
    padding: 13px 8px;
    border: 0;
    border-radius: 21px;
    color: #18333a !important;
    text-align: center;
    cursor: pointer;
}

.ubd-help-card:nth-child(1) { background: #fff0d8; }
.ubd-help-card:nth-child(2) { background: #e8f4e2; }
.ubd-help-card:nth-child(3) { background: #e6f3f2; }

.ubd-help-card svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ubd-help-card strong {
    font-size: 11px;
    font-weight: 900;
    line-height: 1.15;
    text-transform: uppercase;
}

.ubd-help-list {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
}

.ubd-help-row {
    display: grid;
    grid-template-columns: 40px minmax(0,1fr) auto;
    align-items: center;
    gap: 11px;
    min-height: 62px;
    padding: 10px 13px;
    border: 1px solid rgba(24,51,58,.08);
    border-radius: 18px;
    background: #fff;
    color: #18333a !important;
    box-shadow: 0 7px 18px rgba(24,51,58,.045);
}

.ubd-help-row > span:first-child {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 13px;
    background: #f7f2ec;
    font-size: 20px;
}

.ubd-help-row strong {
    display: block;
    font-size: 13px;
    font-weight: 900;
}

.ubd-help-row small {
    display: block;
    margin-top: 2px;
    color: #687b80;
    font-size: 10px;
    font-weight: 600;
}

.ubd-help-row b {
    color: #93b56d;
    font-size: 20px;
}

.ubd-help-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
}

.ubd-help-question,
.ubd-help-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 12px;
    border-radius: 17px;
    font-size: 12px;
    font-weight: 900;
    text-align: center;
}

.ubd-help-question {
    background: #18333a;
    color: #fff !important;
}

.ubd-help-whatsapp {
    background: #25d366;
    color: #fff !important;
}

/* =========================================================
   MENÚ DE CATEGORÍAS MODULAR
   ========================================================= */
.ubd-mod-menu-sheet,
.ubd-catalog-shell-menu {
    background: rgba(255,255,255,.985) !important;
}

.ubd-mod-menu-grid,
.ubd-catalog-shell-menu-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-flow: dense !important;
    gap: 10px !important;
    padding: 2px !important;
}

.ubd-mod-menu-grid > a,
.ubd-catalog-shell-menu-grid > a {
    position: relative !important;
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 11px !important;
    min-height: 92px !important;
    padding: 14px !important;
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 22px !important;
    color: #18333a !important;
    text-align: left !important;
    text-decoration: none !important;
    box-shadow: 0 10px 22px rgba(24,51,58,.07) !important;
}

.ubd-mod-menu-grid > a:nth-child(1),
.ubd-catalog-shell-menu-grid > a:nth-child(1) { background: #ffe8c9 !important; }
.ubd-mod-menu-grid > a:nth-child(2),
.ubd-catalog-shell-menu-grid > a:nth-child(2) { background: #e5f2dc !important; }
.ubd-mod-menu-grid > a:nth-child(3),
.ubd-catalog-shell-menu-grid > a:nth-child(3) { background: #fce3da !important; }
.ubd-mod-menu-grid > a:nth-child(4),
.ubd-catalog-shell-menu-grid > a:nth-child(4) { background: #dff0ed !important; }
.ubd-mod-menu-grid > a:nth-child(5),
.ubd-catalog-shell-menu-grid > a:nth-child(5) { background: #fff0bf !important; }
.ubd-mod-menu-grid > a:nth-child(6),
.ubd-catalog-shell-menu-grid > a:nth-child(6) { background: #f1e6fa !important; }
.ubd-mod-menu-grid > a:nth-child(7),
.ubd-catalog-shell-menu-grid > a:nth-child(7) { background: #e4f0ff !important; }
.ubd-mod-menu-grid > a:nth-child(8),
.ubd-catalog-shell-menu-grid > a:nth-child(8) { background: #e9f5eb !important; }

.ubd-mod-menu-grid > a:nth-child(3n),
.ubd-catalog-shell-menu-grid > a:nth-child(3n),
.ubd-catalog-shell-menu-grid > a:last-child {
    grid-column: span 2 !important;
}

.ubd-mod-menu-icon,
.ubd-menu-card-icon {
    display: grid !important;
    place-items: center !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 15px !important;
    background: rgba(255,255,255,.68) !important;
    color: #18333a !important;
}

.ubd-mod-menu-icon svg,
.ubd-menu-card-icon svg {
    width: 25px !important;
    height: 25px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.8 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

.ubd-menu-card-copy,
.ubd-mod-menu-grid > a > span:last-child {
    display: grid !important;
    gap: 3px !important;
}

.ubd-catalog-shell-menu-grid > a strong,
.ubd-mod-menu-grid > a strong {
    color: #18333a !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    line-height: 1.1 !important;
}

.ubd-catalog-shell-menu-grid > a small,
.ubd-mod-menu-grid > a small {
    color: #687b80 !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
}

/* Navegación inferior: misma jerarquía en todas las páginas. */
.ubd-mod-bottom-nav [data-ubd-help-open],
.ubd-catalog-bottom-nav [data-ubd-help-open] {
    color: #18333a !important;
}

.ubd-help-open-lock {
    overflow: hidden !important;
}

@media (min-width: 700px) {
    .ubd-help-sheet {
        right: 18px;
        bottom: 18px;
        left: auto;
        width: min(460px, calc(100% - 36px));
        max-height: min(82vh, 760px);
        padding-bottom: 24px;
        border-radius: 28px;
        transform: translateY(30px) scale(.98);
        opacity: 0;
    }
    .ubd-help-sheet.is-open {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@media (max-width: 380px) {
    .ubd-help-sheet {
        padding-right: 12px;
        padding-left: 12px;
    }
    .ubd-help-quick {
        gap: 7px;
    }
    .ubd-help-card {
        min-height: 96px;
        padding: 10px 5px;
    }
    .ubd-help-actions {
        grid-template-columns: 1fr;
    }
    .ubd-mod-menu-grid,
    .ubd-catalog-shell-menu-grid {
        gap: 8px !important;
    }
    .ubd-mod-menu-grid > a,
    .ubd-catalog-shell-menu-grid > a {
        grid-template-columns: 38px minmax(0,1fr) !important;
        min-height: 84px !important;
        padding: 11px !important;
    }
    .ubd-mod-menu-icon,
    .ubd-menu-card-icon {
        width: 38px !important;
        height: 38px !important;
    }
}

/* =========================================================
   1.6.9 · Centro de ayuda: todos los enlaces en drawer grande
   ========================================================= */
.ubd-help-sheet {
    width: min(100%, 920px) !important;
    max-height: min(92vh, 900px) !important;
}

.ubd-help-sheet.is-detail {
    height: min(94vh, 920px) !important;
    max-height: min(94vh, 920px) !important;
    padding-bottom: calc(18px + env(safe-area-inset-bottom)) !important;
}

.ubd-help-shell,
.ubd-help-view {
    min-height: 0;
}

.ubd-help-sheet.is-detail .ubd-help-shell,
.ubd-help-sheet.is-detail .ubd-help-view {
    height: calc(100% - 8px);
}

.ubd-help-head-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.ubd-help-back {
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 14px;
    background: #f7f2ec;
    color: #18333a;
    font-size: 31px;
    line-height: 1;
    cursor: pointer;
}

.ubd-help-card,
.ubd-help-row,
.ubd-help-question,
.ubd-help-whatsapp,
.ubd-help-choice {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    font-family: inherit;
}

.ubd-help-frame-wrap {
    position: relative;
    height: calc(100% - 68px);
    min-height: 520px;
    overflow: hidden;
    border: 1px solid rgba(24,51,58,.09);
    border-radius: 22px;
    background: #f7f2ec;
}

.ubd-help-frame-loading {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: grid;
    place-items: center;
    padding: 24px;
    color: #687b80;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
}

.ubd-help-frame {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #fff;
    opacity: 0;
    transition: opacity .18s ease;
}

.ubd-help-frame.is-loaded {
    opacity: 1;
}

.ubd-help-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.ubd-help-choice {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 112px;
    padding: 16px;
    border: 0;
    border-radius: 22px;
    color: #18333a;
    text-align: left;
    cursor: pointer;
}

.ubd-help-choice-orange { background: #fff0d8; }
.ubd-help-choice-blue { background: #e4f0ff; }

.ubd-help-choice > span {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 15px;
    background: rgba(255,255,255,.78);
    font-size: 24px;
}

.ubd-help-choice small,
.ubd-help-choice strong,
.ubd-help-choice p {
    display: block;
}

.ubd-help-choice small {
    margin-bottom: 2px;
    color: #e78252;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ubd-help-choice strong {
    font-size: 15px;
    font-weight: 900;
}

.ubd-help-choice p {
    margin: 4px 0 0;
    color: #687b80;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.35;
}

.ubd-help-choice b {
    color: #93b56d;
    font-size: 24px;
}

.ubd-help-whatsapp-view {
    display: grid;
    justify-items: center;
    gap: 10px;
    max-width: 520px;
    margin: 28px auto 0;
    padding: 28px 20px;
    border-radius: 26px;
    background: #eaf9ef;
    text-align: center;
}

.ubd-help-whatsapp-view > span {
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    border-radius: 22px;
    background: #25d366;
    font-size: 31px;
}

.ubd-help-whatsapp-view h3 {
    margin: 4px 0 0;
    color: #18333a;
    font-size: 22px;
    font-weight: 900;
}

.ubd-help-whatsapp-view p {
    max-width: 390px;
    margin: 0;
    color: #687b80;
    font-size: 13px;
    line-height: 1.55;
}

.ubd-help-whatsapp-view a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    margin-top: 8px;
    padding: 12px 22px;
    border-radius: 17px;
    background: #25d366;
    color: #fff !important;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none !important;
}

@media (max-width: 699px) {
    .ubd-help-sheet {
        max-height: 94vh !important;
        padding-right: 12px !important;
        padding-left: 12px !important;
    }

    .ubd-help-sheet.is-detail {
        height: 94vh !important;
        max-height: 94vh !important;
    }

    .ubd-help-frame-wrap {
        height: calc(100% - 64px);
        min-height: 0;
        border-radius: 18px;
    }

    .ubd-help-choice-grid {
        grid-template-columns: 1fr;
    }

    .ubd-help-head strong {
        font-size: 24px;
    }
}
