/* =====================================================================
   Centro de ayuda — "Manual" (documentación oscura)
   Shell propio: no depende de landing.css ni de landing-home.css
   ===================================================================== */

body.page-help-center {
    --kb-bg: #0e1116;
    --kb-bg-soft: #12161e;
    --kb-surface: #161b24;
    --kb-surface-hover: #1b212c;
    --kb-line: rgba(146, 160, 184, 0.18);
    --kb-line-soft: rgba(146, 160, 184, 0.1);
    --kb-text: #eceff5;
    --kb-text-2: #c3cad8;
    --kb-muted: #8d96a8;
    --kb-faint: #67707f;
    --kb-accent: #fee801;
    --kb-accent-soft: rgba(254, 232, 1, 0.12);
    --kb-topbar-h: 58px;
    --kb-nav-w: 268px;
    --kb-max: 1360px;
    --kb-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

    margin: 0;
    min-height: 100vh;
    background: var(--kb-bg);
    color: var(--kb-text);
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

body.page-help-center .site-shell,
body.page-help-center .help-shell {
    min-height: 100vh;
    padding: 0;
}

.kb-sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.kb-page {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--kb-bg);
}

/* Textura de puntos: reemplaza los halos del diseño anterior. */
.kb-page::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(146, 160, 184, 0.13) 1px, transparent 1px);
    background-size: 24px 24px;
    -webkit-mask-image: linear-gradient(#000 0, rgba(0, 0, 0, 0.25) 45%, transparent 78%);
    mask-image: linear-gradient(#000 0, rgba(0, 0, 0, 0.25) 45%, transparent 78%);
}

/* ---------- Topbar plano ---------- */
.kb-topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    border-bottom: 1px solid var(--kb-line);
    background: rgba(14, 17, 22, 0.92);
    backdrop-filter: blur(14px);
}

.kb-topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: min(100% - 40px, var(--kb-max));
    min-height: var(--kb-topbar-h);
    margin: 0 auto;
}

.kb-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.kb-brand__logo {
    display: block;
    width: auto;
    height: 24px;
}

.kb-brand__tag {
    padding: 3px 7px;
    border: 1px solid var(--kb-line);
    border-radius: 4px;
    color: var(--kb-muted);
    font-family: var(--kb-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.kb-topbar__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.kb-topbar__index {
    display: none;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    border: 1px solid var(--kb-line);
    border-radius: 6px;
    background: transparent;
    color: var(--kb-text-2);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.kb-topbar__index:hover {
    border-color: var(--kb-accent);
    color: var(--kb-text);
}

.kb-topbar__home {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border: 1px solid transparent;
    border-radius: 6px;
    color: var(--kb-muted);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.14s ease, border-color 0.14s ease;
}

.kb-topbar__home:hover {
    border-color: var(--kb-line);
    color: var(--kb-text);
}

.kb-topbar__home i {
    font-size: 11px;
}

/* ---------- Shell de dos columnas ---------- */
.kb-shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: var(--kb-nav-w) minmax(0, 1fr);
    align-items: stretch;
    flex: 1;
    width: min(100% - 40px, var(--kb-max));
    margin: 0 auto;
}

.kb-main {
    min-width: 0;
    padding: 44px 0 0 46px;
}

/* ---------- Índice lateral ---------- */
.kb-nav {
    border-right: 1px solid var(--kb-line);
}

.kb-nav__backdrop {
    display: none;
}

.kb-nav__panel {
    position: sticky;
    top: var(--kb-topbar-h);
    padding: 40px 26px 40px 0;
    max-height: calc(100vh - var(--kb-topbar-h));
    overflow-y: auto;
    scrollbar-width: thin;
}

.kb-nav__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.kb-nav__label {
    color: var(--kb-faint);
    font-family: var(--kb-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.kb-nav__close {
    display: none;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--kb-line);
    border-radius: 6px;
    background: transparent;
    color: var(--kb-text);
    cursor: pointer;
}

.kb-nav__tree {
    display: grid;
    gap: 2px;
}

.kb-nav__empty {
    color: var(--kb-muted);
    font-size: 14px;
}

.kb-nav__group {
    border-top: 1px solid var(--kb-line-soft);
}

.kb-nav__group:first-of-type {
    border-top: 0;
}

.kb-nav__summary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 4px;
    list-style: none;
    cursor: pointer;
    color: var(--kb-text-2);
}

.kb-nav__summary::-webkit-details-marker {
    display: none;
}

.kb-nav__summary:hover {
    color: var(--kb-text);
}

.kb-nav__num {
    color: var(--kb-faint);
    font-family: var(--kb-mono);
    font-size: 11px;
    font-weight: 600;
}

.kb-nav__group.is-active .kb-nav__num {
    color: var(--kb-accent);
}

.kb-nav__group-title {
    flex: 1;
    min-width: 0;
    font-size: 13.5px;
    font-weight: 650;
    letter-spacing: -0.01em;
}

.kb-nav__group.is-active .kb-nav__group-title {
    color: var(--kb-text);
}

.kb-nav__count {
    color: var(--kb-faint);
    font-family: var(--kb-mono);
    font-size: 11px;
}

.kb-nav__chevron {
    color: var(--kb-faint);
    font-size: 10px;
    transition: transform 0.16s ease;
}

.kb-nav__group[open] .kb-nav__chevron {
    transform: rotate(180deg);
}

.kb-nav__list {
    list-style: none;
    margin: 0 0 12px;
    padding: 0 0 0 22px;
    display: grid;
    gap: 1px;
    border-left: 1px solid var(--kb-line-soft);
    margin-left: 8px;
}

.kb-nav__all,
.kb-nav__link {
    display: block;
    margin-left: -23px;
    padding: 6px 10px 6px 22px;
    border-left: 2px solid transparent;
    color: var(--kb-muted);
    font-size: 13.5px;
    line-height: 1.45;
    text-decoration: none;
    transition: color 0.14s ease, border-color 0.14s ease, background 0.14s ease;
}

.kb-nav__all {
    color: var(--kb-faint);
    font-family: var(--kb-mono);
    font-size: 11.5px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.kb-nav__all:hover,
.kb-nav__link:hover {
    color: var(--kb-text);
    border-left-color: var(--kb-line);
}

.kb-nav__link.is-active {
    border-left-color: var(--kb-accent);
    background: var(--kb-accent-soft);
    color: var(--kb-text);
    font-weight: 600;
}

/* ---------- Encabezado de página ---------- */
.kb-head {
    padding-bottom: 34px;
    border-bottom: 1px solid var(--kb-line);
}

.kb-head--doc {
    padding-bottom: 26px;
}

.kb-eyebrow {
    margin: 0 0 14px;
    color: var(--kb-accent);
    font-family: var(--kb-mono);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.kb-title {
    margin: 0;
    color: var(--kb-text);
    font-size: clamp(1.9rem, 3.6vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.08;
}

.kb-title--doc {
    font-size: clamp(1.7rem, 3.2vw, 2.25rem);
}

.kb-lead {
    max-width: 62ch;
    margin: 14px 0 0;
    color: var(--kb-muted);
    font-size: 1.02rem;
    line-height: 1.65;
}

.kb-head__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 18px 0 0;
    color: var(--kb-faint);
    font-family: var(--kb-mono);
    font-size: 11.5px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.kb-dot {
    color: var(--kb-line);
}

/* ---------- Buscador rectangular ---------- */
.kb-search {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 560px;
    margin-top: 24px;
    border: 1px solid var(--kb-line);
    border-radius: 8px;
    background: var(--kb-bg-soft);
    transition: border-color 0.14s ease;
}

.kb-search:focus-within {
    border-color: rgba(254, 232, 1, 0.55);
}

.kb-search--compact {
    max-width: 420px;
    margin-top: 20px;
}

.kb-search__icon {
    position: absolute;
    left: 14px;
    color: var(--kb-faint);
    font-size: 14px;
    pointer-events: none;
}

.kb-search__input {
    box-sizing: border-box;
    flex: 1;
    min-width: 0;
    min-height: 46px;
    padding: 0 12px 0 38px !important;
    border: 0 !important;
    border-radius: 8px 0 0 8px;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    color: var(--kb-text) !important;
    color-scheme: dark;
    appearance: none;
    -webkit-appearance: none;
    font: inherit;
    font-size: 15px;
    outline: none !important;
    box-shadow: none !important;
}

.kb-search--compact .kb-search__input {
    min-height: 40px;
    font-size: 14px;
}

.kb-search__input::placeholder {
    color: var(--kb-faint) !important;
    opacity: 1;
}

.kb-search__submit {
    flex-shrink: 0;
    align-self: stretch;
    padding: 0 16px;
    border: 0;
    border-left: 1px solid var(--kb-line);
    border-radius: 0 8px 8px 0;
    background: transparent;
    color: var(--kb-text-2);
    font: inherit;
    font-size: 13px;
    font-weight: 650;
    cursor: pointer;
    transition: background 0.14s ease, color 0.14s ease;
}

.kb-search__submit:hover {
    background: var(--kb-accent);
    color: #0e1116;
}

body.page-help-center input[type="search"]::-webkit-search-decoration,
body.page-help-center input[type="search"]::-webkit-search-cancel-button,
body.page-help-center input[type="search"]::-webkit-search-results-button,
body.page-help-center input[type="search"]::-webkit-search-results-decoration {
    display: none;
    -webkit-appearance: none;
}

body.page-help-center input[type="search"]:-webkit-autofill,
body.page-help-center input[type="search"]:-webkit-autofill:hover,
body.page-help-center input[type="search"]:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--kb-text);
    box-shadow: 0 0 0 1000px var(--kb-bg-soft) inset;
    transition: background-color 9999s ease-in-out 0s;
}

/* ---------- Bloques ---------- */
.kb-block {
    margin-top: 46px;
}

.kb-block__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.kb-block__title {
    margin: 0;
    color: var(--kb-text);
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.kb-block__link {
    color: var(--kb-muted);
    font-family: var(--kb-mono);
    font-size: 11.5px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
}

.kb-block__link:hover {
    color: var(--kb-accent);
}

/* ---------- Resultados / destacados ---------- */
.kb-hits {
    display: grid;
    gap: 1px;
    border: 1px solid var(--kb-line);
    border-radius: 8px;
    background: var(--kb-line-soft);
    overflow: hidden;
}

.kb-hits--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.kb-hit {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    background: var(--kb-bg);
    text-decoration: none;
    transition: background 0.14s ease;
}

.kb-hit:hover {
    background: var(--kb-surface-hover);
}

.kb-hit__body {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.kb-hit__cat {
    color: var(--kb-faint);
    font-family: var(--kb-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.kb-hit__title {
    color: var(--kb-text);
    font-size: 0.98rem;
    font-weight: 650;
    letter-spacing: -0.01em;
    line-height: 1.35;
}

.kb-hit__summary {
    color: var(--kb-muted);
    font-size: 13.5px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.kb-hit__arrow {
    margin-left: auto;
    color: var(--kb-faint);
    font-size: 14px;
    transition: transform 0.14s ease, color 0.14s ease;
}

.kb-hit:hover .kb-hit__arrow {
    color: var(--kb-accent);
    transform: translateX(3px);
}

/* ---------- Índice de temas (home) ---------- */
.kb-index {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--kb-line);
}

.kb-index__row {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 32px;
    padding: 26px 0;
    border-bottom: 1px solid var(--kb-line);
}

.kb-index__meta {
    min-width: 0;
}

.kb-index__num {
    display: block;
    margin-bottom: 8px;
    color: var(--kb-accent);
    font-family: var(--kb-mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.kb-index__title {
    margin: 0;
    font-size: 1.14rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.kb-index__title a {
    color: var(--kb-text);
    text-decoration: none;
}

.kb-index__title a:hover {
    color: var(--kb-accent);
}

.kb-index__desc {
    max-width: 46ch;
    margin: 8px 0 0;
    color: var(--kb-muted);
    font-size: 14px;
    line-height: 1.6;
}

.kb-index__count {
    display: inline-block;
    margin-top: 12px;
    color: var(--kb-faint);
    font-family: var(--kb-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.kb-index__links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    align-content: start;
}

.kb-index__links a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    border-radius: 6px;
    color: var(--kb-text-2);
    font-size: 14px;
    text-decoration: none;
    transition: background 0.14s ease, color 0.14s ease;
}

.kb-index__links a span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kb-index__links a i {
    margin-left: auto;
    color: transparent;
    font-size: 12px;
    transition: color 0.14s ease;
}

.kb-index__links a:hover {
    background: var(--kb-surface);
    color: var(--kb-text);
}

.kb-index__links a:hover i {
    color: var(--kb-accent);
}

.kb-index__more {
    color: var(--kb-faint) !important;
    font-family: var(--kb-mono);
    font-size: 11.5px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* ---------- Lista de tutoriales (categoría) ---------- */
.kb-doclist {
    list-style: none;
    margin: 30px 0 0;
    padding: 0;
    border-top: 1px solid var(--kb-line);
}

.kb-doclist li {
    border-bottom: 1px solid var(--kb-line);
}

.kb-doclist__row {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 20px 14px 20px 6px;
    text-decoration: none;
    transition: background 0.14s ease, padding-left 0.14s ease;
}

.kb-doclist__row:hover {
    background: var(--kb-surface);
    padding-left: 12px;
}

.kb-doclist__num {
    padding-top: 2px;
    color: var(--kb-faint);
    font-family: var(--kb-mono);
    font-size: 12px;
    font-weight: 600;
}

.kb-doclist__row:hover .kb-doclist__num {
    color: var(--kb-accent);
}

.kb-doclist__body {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.kb-doclist__title {
    color: var(--kb-text);
    font-size: 1rem;
    font-weight: 650;
    letter-spacing: -0.01em;
}

.kb-doclist__summary {
    max-width: 72ch;
    color: var(--kb-muted);
    font-size: 13.5px;
    line-height: 1.55;
}

.kb-doclist__arrow {
    margin-left: auto;
    padding-top: 2px;
    color: var(--kb-faint);
    font-size: 14px;
    transition: transform 0.14s ease, color 0.14s ease;
}

.kb-doclist__row:hover .kb-doclist__arrow {
    color: var(--kb-accent);
    transform: translateX(3px);
}

/* ---------- Migas ---------- */
.kb-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    color: var(--kb-faint);
    font-family: var(--kb-mono);
    font-size: 11.5px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.kb-crumbs a {
    color: var(--kb-muted);
    text-decoration: none;
}

.kb-crumbs a:hover {
    color: var(--kb-accent);
}

.kb-crumbs__current {
    color: var(--kb-text-2);
}

/* ---------- Artículo + tabla de contenidos ---------- */
.kb-article {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 216px;
    gap: 48px;
    align-items: start;
    margin-top: 30px;
}

.kb-article--full {
    grid-template-columns: minmax(0, 1fr);
}

.kb-toc {
    min-width: 0;
}

.kb-toc__inner {
    position: sticky;
    top: calc(var(--kb-topbar-h) + 32px);
    display: grid;
    gap: 10px;
    padding-left: 18px;
    border-left: 1px solid var(--kb-line);
    max-height: calc(100vh - var(--kb-topbar-h) - 60px);
    overflow-y: auto;
}

.kb-toc__label {
    color: var(--kb-faint);
    font-family: var(--kb-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.kb-toc__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 2px;
}

.kb-toc__link {
    display: block;
    padding: 4px 0;
    color: var(--kb-muted);
    font-size: 13px;
    line-height: 1.45;
    text-decoration: none;
    transition: color 0.14s ease;
}

.kb-toc__link--h3 {
    padding-left: 12px;
    font-size: 12.5px;
    color: var(--kb-faint);
}

.kb-toc__link:hover {
    color: var(--kb-text);
}

.kb-toc__link.is-active {
    color: var(--kb-accent);
    font-weight: 600;
}

/* ---------- Contenido del tutorial ---------- */
.kb-prose {
    min-width: 0;
    max-width: 76ch;
    color: var(--kb-text-2);
    font-size: 16px;
    line-height: 1.75;
}

.kb-prose > *:first-child {
    margin-top: 0;
}

.kb-prose > h2:first-child {
    padding-top: 0;
    border-top: 0;
}

.kb-prose p {
    margin: 0 0 1.1rem;
}

.kb-prose p b,
.kb-prose p strong,
.kb-prose li b,
.kb-prose li strong {
    color: var(--kb-text);
    font-weight: 700;
}

.kb-prose h2,
.kb-prose h3,
.kb-prose h4 {
    color: var(--kb-text);
    letter-spacing: -0.02em;
    line-height: 1.3;
    scroll-margin-top: calc(var(--kb-topbar-h) + 24px);
}

.kb-prose h2 {
    margin: 2.4rem 0 0.9rem;
    padding-top: 1.6rem;
    border-top: 1px solid var(--kb-line-soft);
    font-size: 1.32rem;
    font-weight: 700;
}

.kb-prose h3 {
    margin: 1.9rem 0 0.7rem;
    font-size: 1.1rem;
    font-weight: 650;
}

.kb-prose h4 {
    margin: 1.5rem 0 0.6rem;
    font-size: 1rem;
    font-weight: 650;
}

.kb-prose a {
    color: var(--kb-text);
    text-decoration: underline;
    text-decoration-color: var(--kb-accent);
    text-underline-offset: 3px;
}

.kb-prose a:hover {
    color: var(--kb-accent);
}

.kb-prose ul,
.kb-prose ol {
    margin: 0 0 1.1rem;
    padding-left: 1.25rem;
}

.kb-prose li {
    margin-bottom: 0.35rem;
}

.kb-prose li::marker {
    color: var(--kb-faint);
}

.kb-prose img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1.4rem 0;
    padding: 6px;
    border: 1px solid var(--kb-line);
    border-radius: 8px;
    background: var(--kb-bg-soft);
}

.kb-prose blockquote {
    margin: 1.4rem 0;
    padding: 2px 0 2px 18px;
    border-left: 2px solid var(--kb-accent);
    color: var(--kb-text);
}

.kb-prose blockquote p:last-child {
    margin-bottom: 0;
}

.kb-prose p.hc-note {
    margin-top: -0.6rem;
    color: var(--kb-faint);
    font-size: 0.85rem;
    line-height: 1.55;
}

.kb-prose code {
    padding: 2px 6px;
    border: 1px solid var(--kb-line);
    border-radius: 4px;
    background: var(--kb-bg-soft);
    color: var(--kb-text);
    font-family: var(--kb-mono);
    font-size: 0.86em;
}

.kb-prose pre {
    margin: 1.4rem 0;
    padding: 16px 18px;
    border: 1px solid var(--kb-line);
    border-radius: 8px;
    background: var(--kb-bg-soft);
    overflow-x: auto;
}

.kb-prose pre code {
    padding: 0;
    border: 0;
    background: transparent;
}

.kb-prose hr {
    height: 1px;
    margin: 2rem 0;
    border: 0;
    background: var(--kb-line);
    opacity: 1;
}

.kb-prose table {
    width: 100%;
    margin: 1.4rem 0;
    border-collapse: collapse;
    font-size: 14px;
}

.kb-prose th,
.kb-prose td {
    padding: 10px 12px;
    border: 1px solid var(--kb-line);
    text-align: left;
}

.kb-prose th {
    background: var(--kb-surface);
    color: var(--kb-text);
    font-family: var(--kb-mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ---------- Seguí con ---------- */
.kb-next__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    border: 1px solid var(--kb-line);
    border-radius: 8px;
    background: var(--kb-line-soft);
    overflow: hidden;
}

.kb-next__list a {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 100%;
    padding: 15px 18px;
    background: var(--kb-bg);
    color: var(--kb-text-2);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.14s ease, color 0.14s ease;
}

.kb-next__list a:hover {
    background: var(--kb-surface-hover);
    color: var(--kb-text);
}

.kb-next__list a i {
    margin-left: auto;
    color: var(--kb-faint);
    font-size: 13px;
}

.kb-next__list a:hover i {
    color: var(--kb-accent);
}

/* ---------- Estado vacío ---------- */
.kb-empty {
    padding: 34px 22px;
    border: 1px dashed var(--kb-line);
    border-radius: 8px;
    color: var(--kb-muted);
}

.kb-empty p {
    margin: 0;
    max-width: 52ch;
    font-size: 14.5px;
    line-height: 1.6;
}

/* ---------- Footer ---------- */
.kb-footer {
    margin-top: 64px;
    border-top: 1px solid var(--kb-line);
}

.kb-footer__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 26px;
    padding: 24px 0 40px;
}

.kb-footer__note {
    margin: 0;
    color: var(--kb-muted);
    font-size: 13.5px;
}

.kb-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-left: auto;
}

.kb-footer__links a {
    color: var(--kb-text-2);
    font-size: 13.5px;
    text-decoration: none;
}

.kb-footer__links a:hover {
    color: var(--kb-accent);
}

.kb-footer__copy {
    color: var(--kb-faint);
    font-family: var(--kb-mono);
    font-size: 11.5px;
    letter-spacing: 0.06em;
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
    .kb-article {
        grid-template-columns: minmax(0, 1fr) 190px;
        gap: 34px;
    }

    .kb-main {
        padding-left: 34px;
    }
}

@media (max-width: 1000px) {
    .kb-shell {
        grid-template-columns: minmax(0, 1fr);
    }

    .kb-main {
        padding: 30px 0 0;
    }

    .kb-topbar__index {
        display: inline-flex;
    }

    .kb-index__row {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .kb-index__links {
        border-top: 1px solid var(--kb-line-soft);
        padding-top: 8px;
    }

    /* Índice como panel deslizante */
    .kb-nav {
        position: fixed;
        inset: 0;
        z-index: 60;
        border-right: 0;
        visibility: hidden;
        pointer-events: none;
    }

    .kb-nav.is-open {
        visibility: visible;
        pointer-events: auto;
    }

    .kb-nav__backdrop {
        display: block;
        position: absolute;
        inset: 0;
        background: rgba(4, 6, 10, 0.7);
        opacity: 0;
        transition: opacity 0.22s ease;
    }

    .kb-nav.is-open .kb-nav__backdrop {
        opacity: 1;
    }

    .kb-nav__panel {
        position: absolute;
        top: 0;
        left: 0;
        width: min(86vw, 340px);
        height: 100%;
        max-height: none;
        padding: 22px 20px 40px;
        background: var(--kb-bg-soft);
        border-right: 1px solid var(--kb-line);
        transform: translateX(-100%);
        transition: transform 0.24s ease;
    }

    .kb-nav.is-open .kb-nav__panel {
        transform: translateX(0);
    }

    .kb-nav__close {
        display: inline-flex;
    }

    .kb-article {
        grid-template-columns: minmax(0, 1fr);
        gap: 26px;
    }

    .kb-toc {
        order: -1;
    }

    .kb-toc__inner {
        position: static;
        max-height: none;
        padding: 16px 18px;
        border-left: 0;
        border: 1px solid var(--kb-line);
        border-radius: 8px;
        background: var(--kb-bg-soft);
    }
}

@media (max-width: 640px) {
    .kb-topbar__inner,
    .kb-shell {
        width: min(100% - 28px, var(--kb-max));
    }

    .kb-topbar__home {
        display: none;
    }

    .kb-hits--two,
    .kb-next__list {
        grid-template-columns: minmax(0, 1fr);
    }

    .kb-search {
        max-width: none;
    }

    .kb-doclist__row {
        gap: 13px;
        padding: 16px 8px 16px 4px;
    }

    .kb-footer__inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .kb-footer__links {
        margin-left: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.page-help-center * {
        transition: none !important;
    }
}
