/* CB23 — 404 / vacío listado (tokens --tb-* / --fs-* / --r-*) */

body#pagenotfound #wrapper .container,
body.page-category #content.weu-not-found,
body.page-search #content.weu-not-found {
    max-width: 960px;
}

#content.weu-not-found {
    padding: 32px 0 48px;
}

.weu-not-found__card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin: 0 auto;
    padding: 28px 24px 24px;
    background: var(--tb-white);
    border: 1px solid var(--tb-line);
    border-radius: var(--r-sm);
    box-shadow: none;
    text-align: left;
}

.weu-not-found__badge {
    display: inline-flex;
    align-self: flex-start;
    margin: 0 0 16px;
    background: var(--tb-ink) !important;
    color: var(--tb-white) !important;
    font-size: var(--fs-xs); /* 12 */
    font-weight: 700;
    font-style: italic;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: var(--lh-title);
}

.weu-not-found__title {
    margin: 0 0 12px;
    max-width: 36rem;
    font-size: var(--fs-3xl); /* 32 */
    font-weight: 800;
    line-height: var(--lh-title);
    color: var(--tb-ink);
}

.weu-not-found__text {
    margin: 0 0 24px;
    max-width: 42rem;
    font-size: var(--fs-base); /* 16 */
    font-weight: 400;
    line-height: var(--lh-text);
    color: var(--tb-ink-2);
}

/* CB23: primario neutro 52px + lupa 19px; móvil ancho completo */
.weu-not-found__search.tb-btn--neutral {
    width: 100%;
    min-height: 52px;
    gap: 10px;
    margin: 0 0 28px;
}

.weu-not-found__search-icon {
    width: 19px;
    height: 19px;
    flex: 0 0 auto;
    color: inherit;
    background-color: currentColor;
}

.weu-not-found__routes {
    margin: 0 0 8px;
}

.weu-not-found__routes-label {
    margin: 0 0 12px;
    font-size: var(--fs-xs); /* 12 */
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: var(--lh-title);
    color: var(--tb-ink-2);
}

.weu-not-found__routes-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.weu-not-found__route {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 10px 12px;
    border-radius: var(--r-sm);
    background: var(--tb-surface);
    color: var(--tb-ink);
    font-size: var(--fs-sm); /* 14 */
    font-weight: 700;
    line-height: var(--lh-title);
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.weu-not-found__route:hover,
.weu-not-found__route:focus-visible {
    background: var(--tb-surface-hover);
    color: var(--tb-ink);
    text-decoration: none;
}

.weu-not-found__route > .tbc-heroicon:first-child {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    color: var(--tb-ink);
    background-color: currentColor;
}

.weu-not-found__route > span {
    flex: 1 1 auto;
    min-width: 0;
}

.weu-not-found__route-chevron {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    margin-left: auto;
    color: var(--tb-ink-2);
    background-color: currentColor;
}

.weu-not-found__footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--tb-line);
}

.weu-not-found__contact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: var(--fs-sm); /* 14 */
    font-weight: 400;
    line-height: var(--lh-text);
    color: var(--tb-ink-2);
}

.weu-not-found__contact .tbc-heroicon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    color: var(--tb-ink);
    background-color: currentColor;
}

.weu-not-found__contact a {
    color: var(--tb-ink);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.weu-not-found__contact a:hover,
.weu-not-found__contact a:focus-visible {
    color: var(--tb-ink-hover);
}

.weu-not-found__home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: var(--fs-xs); /* 12 */
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: var(--lh-title);
    color: var(--tb-ink);
    text-decoration: none;
}

.weu-not-found__home .tbc-heroicon {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    color: inherit;
    background-color: currentColor;
}

.weu-not-found__home:hover,
.weu-not-found__home:focus-visible {
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (min-width: 768px) {
    .weu-not-found__card {
        padding: 36px 40px 32px;
    }

    .weu-not-found__routes-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .weu-not-found__footer {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
    }
}

@media (max-width: 575.98px) {
    .weu-not-found__title {
        font-size: var(--fs-2xl); /* 28 */
    }

    .weu-not-found__card {
        padding: 24px 16px 20px;
        border-left: 0;
        border-right: 0;
        border-radius: 0;
    }
}
