/* Centro de ayuda público (/guides, /es/guias): portada y artículo.
   Rediseño 2026-10-01: misma identidad que la landing (azul marino #10172A,
   azul #2563EC, cian #07B6D5; Plus Jakarta Sans en títulos e Inter en texto).
   Portada: cabecera con buscador protagonista, tareas frecuentes y «Empieza
   por aquí», filtro por tema y tarjetas de tema con color propio. Artículo:
   color del tema, índice lateral con la sección activa, guías del tema,
   columna de lectura de ~68 caracteres, pasos numerados, avisos y capturas
   con marco.
   El shell público es siempre claro (central-public-shell.css fija los
   tokens claros en el body): sin modo oscuro propio. */

.hc {
    --hc-ink: #10172A;
    --hc-text: #1E293B;
    --hc-dim: #3D4A60;      /* 8,6:1 sobre #F9FAFC */
    --hc-faint: #526177;    /* 6,0:1 sobre #F9FAFC */
    --hc-blue: #2563EC;
    --hc-blue-ink: #1D4FD8;
    --hc-cyan: #07B6D5;
    --hc-surface: #FFFFFF;
    --hc-surface-2: #F3F6FA;
    --hc-line: rgba(16, 23, 42, .12);
    --hc-line-strong: rgba(16, 23, 42, .22);
    --hc-tip-bg: #ECFBFE; --hc-tip-line: #07B6D5; --hc-tip-ink: #0B6F84;
    --hc-warn-bg: #FFF8EB; --hc-warn-line: #D97706; --hc-warn-ink: #92400E;
    --hc-note-bg: #EEF3FF; --hc-note-line: #2563EC; --hc-note-ink: #1D4FD8;
    --hc-gutter: 24px;
    font-family: var(--u-font-body, "Inter", system-ui, sans-serif);
    color: var(--hc-text);
}

/* ---------- Tonos por tema ----------
   --tone: baldosa del icono y fondo del chip activo (texto blanco encima);
   --tone-ink: texto de acento; --tone-tint: fondo suave de la tarjeta.
   Contraste medido (WCAG): blanco/--tone ≥ 5,0:1; --tone-ink/--tone-tint
   ≥ 6,6:1; --tone-ink/blanco ≥ 7,1:1; #10172A/--tone-tint ≥ 15,9:1. */
.hc, .hc-tone-default {
    --tone: #1D4ED8; --tone-ink: #1E40AF; --tone-tint: #EFF4FF;
}
.hc-tone-all             { --tone: #10172A; --tone-ink: #10172A; --tone-tint: #EEF1F6; }
.hc-tone-getting-started { --tone: #1D4ED8; --tone-ink: #1E40AF; --tone-tint: #EFF4FF; } /* azul */
.hc-tone-content         { --tone: #6D28D9; --tone-ink: #5B21B6; --tone-tint: #F5F1FF; } /* violeta */
.hc-tone-assessment      { --tone: #0F766E; --tone-ink: #115E59; --tone-tint: #EAF8F5; } /* verde azulado */
.hc-tone-teaching        { --tone: #B45309; --tone-ink: #92400E; --tone-tint: #FFF6E5; } /* ámbar */
.hc-tone-people          { --tone: #BE185D; --tone-ink: #9D174D; --tone-tint: #FFF0F6; } /* rosa */
.hc-tone-engagement      { --tone: #4338CA; --tone-ink: #3730A3; --tone-tint: #F0F1FF; } /* índigo */
.hc-tone-marketing       { --tone: #A21CAF; --tone-ink: #86198F; --tone-tint: #FCF0FE; } /* fucsia */
.hc-tone-website         { --tone: #0E7490; --tone-ink: #155E75; --tone-tint: #EAF8FC; } /* cian */
.hc-tone-domains         { --tone: #0369A1; --tone-ink: #075985; --tone-tint: #EBF5FC; } /* azul cielo */
.hc-tone-payments        { --tone: #15803D; --tone-ink: #166534; --tone-tint: #EDF9F1; } /* verde */
.hc-tone-account         { --tone: #475569; --tone-ink: #334155; --tone-tint: #F1F4F8; } /* pizarra */
.hc-tone-help            { --tone: #B91C1C; --tone-ink: #991B1B; --tone-tint: #FEF1F1; } /* rojo */

.hc h1, .hc h2, .hc h3, .hc h4 { font-family: var(--u-font-display, "Plus Jakarta Sans", system-ui, sans-serif); color: var(--hc-ink); text-wrap: balance; }
.hc-icon { width: 20px; height: 20px; flex: none; }
.hc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hc :is(a, button, summary, input):focus-visible { outline: 3px solid var(--hc-blue); outline-offset: 3px; }
.hc [hidden] { display: none !important; }

/* ---------- Migas ---------- */
.hc-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 20px; font-size: 14px; color: var(--hc-faint); }
.hc-crumbs a { color: var(--hc-dim); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; }
.hc-crumbs a:hover { color: var(--hc-blue-ink); text-decoration-color: currentColor; }

/* ---------- Botones ---------- */
.hc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 1.5px solid transparent; border-radius: 999px; font-size: 15px; font-weight: 700; text-decoration: none; transition: background-color .15s ease, border-color .15s ease; }
.hc-btn-primary { background: var(--hc-blue); color: #fff !important; }
.hc-btn-primary:hover { background: var(--hc-blue-ink); }
.hc-btn-primary:active { background: #1A43B8; }
.hc-btn-ghost { border-color: var(--hc-line-strong); background: var(--hc-surface); color: var(--hc-ink) !important; }
.hc-btn-ghost:hover { border-color: var(--hc-ink); }

/* =================================================================
   PORTADA
   ================================================================= */
.hc-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.hc-top--with-start { grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr); }
.hc-title { margin: 0 0 14px; font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.04; }
.hc-lead { max-width: 56ch; margin: 0 0 26px; color: var(--hc-dim); font-size: clamp(1.05rem, 1.4vw, 1.18rem); line-height: 1.6; text-wrap: pretty; }

/* Buscador protagonista */
.hc-search {
    display: flex; align-items: center; gap: 10px; max-width: 680px; margin: 0;
    padding: 7px 7px 7px 20px; border: 2px solid rgba(16, 23, 42, .18); border-radius: 999px; background: #fff;
    box-shadow: 0 2px 4px rgba(16, 23, 42, .04), 0 16px 40px rgba(37, 99, 236, .12);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.hc-search:focus-within { border-color: var(--hc-blue); box-shadow: 0 0 0 5px rgba(37, 99, 236, .18), 0 16px 40px rgba(37, 99, 236, .12); }
.hc-search-icon { width: 22px; height: 22px; color: var(--hc-blue-ink); flex: none; }
.hc-search input { flex: 1; min-width: 0; height: 54px; border: 0; outline: 0; background: transparent; font: inherit; font-size: 17px; color: var(--hc-ink); }
/* Revisión visual (2026-10-04): dentro del panel, sin el borde ni la altura
   de los campos del admin (la caja redondeada ya es el campo). */
body.u-body-admin.admin-panel .hc-search input[type="search"], body.u-body-admin .hc-search input { height: 54px !important; min-height: 54px !important; border: 0 !important; box-shadow: none !important; background: transparent !important; padding: 0 !important; }
.hc-search input:focus-visible { outline: 0; }
.hc-search input::placeholder { color: #5F6B80; } /* 5,3:1 sobre blanco */
.hc-search-btn { min-height: 54px; padding: 0 26px; border: 0; border-radius: 999px; cursor: pointer; background: var(--hc-blue); color: #fff; font: inherit; font-weight: 700; font-size: 16px; transition: background-color .15s ease; }
.hc-search-btn:hover { background: var(--hc-blue-ink); }
.hc-search-btn:focus-visible { outline: 3px solid var(--hc-ink); outline-offset: 2px; }
.hc-search-status { margin: 12px 0 0 22px; color: var(--hc-faint); font-size: 14px; font-variant-numeric: tabular-nums; }

/* Tareas frecuentes */
.hc-popular { margin-top: 26px; max-width: 680px; }
.hc .hc-popular-title { margin: 0 0 10px; color: var(--hc-dim); font-family: var(--u-font-body, "Inter", sans-serif); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.hc-popular-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.hc-popular-link {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 12px;
    border: 1px solid var(--hc-line-strong); border-radius: 12px; background: #fff;
    color: var(--hc-ink); font-size: 14.5px; font-weight: 600; text-decoration: none;
    transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.hc-popular-link .hc-icon { width: 18px; height: 18px; color: var(--tone); }
.hc-popular-link:hover { border-color: var(--tone); background: var(--tone-tint); color: var(--tone-ink); }

/* «Empieza por aquí»: recorrido en orden (de ahí los números). */
.hc-start { padding: 26px 26px 22px; border-radius: 22px; background: #10172A; color: #E6ECF5; box-shadow: 0 24px 48px rgba(16, 23, 42, .16); }
.hc-start h2 { margin: 0 0 16px; color: #fff; font-size: 1.15rem; font-weight: 800; }
.hc-start-list { margin: 0; padding: 0; list-style: none; }
.hc-start-link {
    display: flex; align-items: flex-start; gap: 14px; min-height: 44px; padding: 10px 8px; margin: 0 -8px;
    border-radius: 12px; color: #E6ECF5; text-decoration: none;
}
.hc-start-link:hover { background: rgba(255, 255, 255, .08); }
.hc-start-link:focus-visible { outline-color: var(--hc-cyan); }
.hc-start-num {
    display: inline-grid; place-items: center; flex: 0 0 30px; height: 30px; border-radius: 999px;
    border: 1.5px solid rgba(95, 212, 234, .6); color: #5FD4EA; font-weight: 800; font-size: 14px;
    font-variant-numeric: tabular-nums;
}
.hc-start-text { display: grid; gap: 2px; min-width: 0; }
.hc-start-text strong { color: #fff; font-size: 15px; font-weight: 650; line-height: 1.35; }
.hc-start-text span { color: #A9B8D0; font-size: 13px; } /* 8,9:1 sobre #10172A */
.hc-start-more { margin: 14px 0 0; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .14); color: #B8C4D9; font-size: 14px; line-height: 1.5; }
.hc-start-more a { color: #fff; font-weight: 700; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .45); text-underline-offset: 3px; }
.hc-start-more a:hover { text-decoration-color: #fff; }
.hc-start-more a:focus-visible { outline-color: var(--hc-cyan); }

.hc-results-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 36px 0 0; padding: 14px 18px; border: 1px solid var(--hc-line); border-radius: 14px; background: var(--hc-surface); }
.hc-results-bar p { margin: 0; font-weight: 600; }
.hc-results-bar a { color: var(--hc-blue-ink); font-weight: 700; }

/* Filtro por tema */
.hc-topics { margin-top: clamp(44px, 6vw, 68px); scroll-margin-top: 112px; }
.hc-topics-title { margin: 0 0 14px; font-size: 1.25rem; font-weight: 800; letter-spacing: -.015em; }
.hc-topics-list { display: flex; flex-wrap: wrap; gap: 8px; }
.hc-topic {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px 0 7px;
    border: 1px solid var(--hc-line-strong); border-radius: 999px; background: #fff;
    color: var(--hc-ink); font-size: 14px; font-weight: 600; text-decoration: none;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.hc-topic-dot { display: inline-grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 999px; background: var(--tone-tint); color: var(--tone); }
.hc-topic-dot .hc-icon { width: 16px; height: 16px; }
.hc-topic:hover { border-color: var(--tone); color: var(--tone-ink); }
.hc-topic.is-active { border-color: var(--tone); background: var(--tone); color: #fff; }
.hc-topic.is-active .hc-topic-dot { background: rgba(255, 255, 255, .2); color: #fff; }
.hc-topic-count { min-width: 24px; padding: 1px 7px; border-radius: 999px; background: var(--hc-surface-2); color: var(--hc-dim); font-size: 12px; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.hc-topic.is-active .hc-topic-count { background: rgba(255, 255, 255, .2); color: #fff; }

/* Tarjetas de tema (rejilla) → lista completa al elegir tema o buscar */
.hc-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 18px; margin-top: 24px; align-items: stretch; }
.hc-cat {
    display: flex; flex-direction: column; min-width: 0; padding: 20px 20px 16px;
    border: 1px solid rgba(16, 23, 42, .1); border-radius: 22px; background: var(--tone-tint);
    scroll-margin-top: 112px;
}
@supports (border-color: color-mix(in srgb, red 50%, white)) {
    .hc-cat { border-color: color-mix(in srgb, var(--tone) 22%, transparent); }
}
.hc-cat:focus { outline: none; }
.hc-cat:focus-visible { outline: 3px solid var(--tone); outline-offset: 3px; }
.hc-cat-head { display: flex; align-items: center; gap: 14px; }
.hc-cat-icon { display: inline-grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 14px; background: var(--tone); color: #fff; box-shadow: 0 6px 14px rgba(16, 23, 42, .12); }
.hc-cat-icon .hc-icon { width: 22px; height: 22px; }
.hc-cat-heading { min-width: 0; flex: 1; }
.hc-cat-heading h2 { margin: 0; font-size: 1.15rem; font-weight: 800; letter-spacing: -.015em; line-height: 1.25; }
.hc-cat-count { margin: 3px 0 0; color: var(--tone-ink); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.hc-cat-desc { margin: 12px 0 14px; color: #334155; font-size: 14.5px; line-height: 1.5; }
.hc-cat-return {
    display: none; align-items: center; gap: 6px; flex: none; min-height: 44px; padding: 0 16px 0 12px;
    border: 1px solid var(--hc-line-strong); border-radius: 999px; background: #fff;
    color: var(--hc-ink); font-size: 14px; font-weight: 700; text-decoration: none;
}
.hc-cat-return .hc-icon { width: 16px; height: 16px; }
.hc-cat-return:hover { border-color: var(--tone); color: var(--tone-ink); }

.hc-list { margin: 0; padding: 0; list-style: none; border: 1px solid rgba(16, 23, 42, .08); border-radius: 14px; background: #fff; overflow: hidden; }
.hc-list > li + li { border-top: 1px solid rgba(16, 23, 42, .08); }
.hc-row { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 11px 14px; color: inherit; text-decoration: none; transition: background-color .15s ease; }
.hc-row:hover { background: #FAFBFD; }
.hc-row:focus-visible { outline-offset: -3px; border-radius: 12px; }
.hc-row-main { display: grid; gap: 3px; flex: 1; min-width: 0; }
.hc-row-title { color: var(--hc-ink); font-family: var(--u-font-display, "Plus Jakarta Sans", sans-serif); font-size: 15px; font-weight: 700; line-height: 1.38; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: text-decoration-color .15s ease, color .15s ease; }
.hc-row:hover .hc-row-title { color: var(--tone-ink); text-decoration-color: currentColor; }
.hc-row-excerpt { color: var(--hc-dim); font-size: 14px; line-height: 1.5; }
.hc-row-meta { display: none; align-items: center; gap: 6px; flex: none; color: var(--hc-faint); font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hc-row-meta .hc-icon { width: 14px; height: 14px; }
.hc-row-go { width: 18px; height: 18px; color: var(--tone); transition: transform .15s ease; }
.hc-row:hover .hc-row-go { transform: translateX(3px); }

.hc-cat-more {
    display: none; align-self: flex-start; align-items: center; gap: 6px; min-height: 44px; margin-top: auto; padding: 12px 4px 0;
    color: var(--tone-ink); font-size: 14.5px; font-weight: 700; text-decoration: none;
}
.hc-cat-more .hc-icon { width: 16px; height: 16px; transition: transform .15s ease; }
.hc-cat-more:hover span { text-decoration: underline; text-underline-offset: 3px; }
.hc-cat-more:hover .hc-icon { transform: translateX(3px); }

/* Con JS: resumen = 4 primeras guías por tarjeta sin extracto + «Ver todas». */
.hc-cats.is-ready:not(.is-list) .hc-list > li:nth-child(n+5) { display: none; }
.hc-cats.is-ready:not(.is-list) .hc-row-excerpt { display: none; }
.hc-cats.is-ready:not(.is-list) .hc-cat-more { display: inline-flex; }

/* Lista (tema elegido o búsqueda): una columna, extracto de 1 línea y tiempo. */
.hc-cats.is-list { grid-template-columns: minmax(0, 1fr); gap: 22px; }
.hc-cats.is-list .hc-cat { padding: 24px; }
.hc-cats.is-list .hc-row { padding: 14px 18px; }
.hc-cats.is-list .hc-row-title { font-size: 16px; }
.hc-cats.is-list .hc-row-excerpt { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hc-cats.is-list .hc-row-meta { display: inline-flex; }
.hc-cats.is-topic .hc-cat { padding: clamp(22px, 3vw, 32px); }
.hc-cats.is-topic .hc-cat-icon { width: 54px; height: 54px; border-radius: 16px; }
.hc-cats.is-topic .hc-cat-icon .hc-icon { width: 26px; height: 26px; }
.hc-cats.is-topic .hc-cat-heading h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); }
.hc-cats.is-topic .hc-cat-desc { font-size: 15.5px; }
.hc-cats.is-topic .hc-cat-return { display: inline-flex; }

.hc-empty { padding: 28px; border: 1px dashed var(--hc-line-strong); border-radius: 16px; background: #fff; text-align: center; color: var(--hc-dim); }
.hc-empty p { margin: 4px 0; }

/* «Acatudy para tu academia»: páginas comerciales de la categoría de la guía */
.hc-related-pages { max-width: 46rem; margin: clamp(40px, 5vw, 56px) auto 0; padding: 22px 24px; border: 1px solid var(--hc-line); border-radius: 18px; background: var(--hc-surface); }
.hc-related-pages h2 { margin: 0 0 12px; font-size: 1.15rem; font-weight: 800; letter-spacing: -.01em; }
.hc-related-pages ul { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.hc-related-pages li { display: grid; gap: 2px; }
.hc-related-pages a { color: var(--hc-blue-ink); font-weight: 700; text-decoration: underline; text-decoration-color: rgba(29, 79, 216, .35); text-underline-offset: 3px; }
.hc-related-pages a:hover { text-decoration-color: currentColor; }
.hc-related-pages span { color: var(--hc-dim); font-size: 14.5px; line-height: 1.55; }

/* Cierre (portada y artículo) */
.hc-final {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px;
    margin-top: clamp(56px, 7vw, 88px); padding: clamp(24px, 4vw, 40px); border-radius: 24px;
    background: #10172A; color: #B8C4D9;
}
.hc-final > div:first-child { flex: 1 1 380px; }
.hc-final h2 { margin: 0 0 8px; color: #fff; font-size: clamp(1.35rem, 2.4vw, 1.75rem); font-weight: 800; letter-spacing: -.02em; }
.hc-final p { margin: 0; font-size: 15.5px; line-height: 1.6; }
.hc-final .hc-final-help { margin-top: 8px; color: #A9B8D0; font-size: 14px; }
.hc-final-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hc-final .hc-btn-ghost { border-color: rgba(255, 255, 255, .3); background: transparent; color: #fff !important; }
.hc-final .hc-btn-ghost:hover { border-color: #fff; }
.hc-final :is(a, button):focus-visible { outline-color: var(--hc-cyan); }

/* =================================================================
   ARTÍCULO
   ================================================================= */
.hc-layout { display: grid; grid-template-columns: 252px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.hc-layout--no-toc { grid-template-columns: minmax(0, 1fr); }
.hc-article { min-width: 0; max-width: 46rem; }
.hc-layout--no-toc .hc-article { margin-inline: auto; }

/* Columna lateral fija: índice de la guía + guías del tema */
.hc-side { position: sticky; top: 116px; display: grid; gap: 26px; max-height: calc(100vh - 136px); overflow-y: auto; overscroll-behavior: contain; padding: 2px 6px 12px 2px; scrollbar-width: thin; }
.hc-side-title { margin: 0 0 10px; color: var(--hc-ink); font-size: 12.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.hc-toc ol, .hc-side-topic ol { margin: 0; padding: 0; list-style: none; border-left: 2px solid rgba(16, 23, 42, .12); }
.hc-toc li a, .hc-side-topic li a {
    display: block; margin-left: -2px; padding: 7px 10px 7px 14px; border-left: 2px solid transparent; border-radius: 0 8px 8px 0;
    color: #334155; font-size: 14px; line-height: 1.4; text-decoration: none; /* 9,9:1 sobre el fondo */
    transition: color .15s ease, background-color .15s ease, border-color .15s ease;
}
.hc-toc li a:hover, .hc-side-topic li a:hover { color: var(--hc-ink); border-left-color: rgba(16, 23, 42, .35); background: rgba(16, 23, 42, .04); }
.hc-toc li a.is-active, .hc-side-topic li a.is-current { border-left-color: var(--tone); background: var(--tone-tint); color: var(--tone-ink); font-weight: 700; }
.hc-side-topic li a { font-size: 13.5px; }
.hc-side-top { display: inline-flex; align-items: center; min-height: 40px; margin-top: 8px; color: var(--hc-faint); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.hc-side-top:hover { color: var(--hc-ink); }
.hc-side-topic-link { display: flex; align-items: center; gap: 10px; min-height: 40px; margin-bottom: 8px; color: var(--tone-ink); font-size: 14px; font-weight: 700; text-decoration: none; }
.hc-side-topic-link:hover span:last-child { text-decoration: underline; text-underline-offset: 3px; }
.hc-side-topic-icon { display: inline-grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 9px; background: var(--tone); color: #fff; }
.hc-side-topic-icon .hc-icon { width: 16px; height: 16px; }

/* Cabecera del artículo */
.hc-article-head { margin-bottom: 30px; padding-bottom: 26px; border-bottom: 1px solid var(--hc-line); }
.hc-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px 0 5px; border: 1px solid transparent; border-radius: 999px; background: var(--tone-tint); color: var(--tone-ink); font-size: 14px; font-weight: 700; text-decoration: none; }
@supports (border-color: color-mix(in srgb, red 50%, white)) {
    .hc-chip { border-color: color-mix(in srgb, var(--tone) 25%, transparent); }
}
.hc-chip:hover { border-color: var(--tone); }
.hc-chip-icon { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 999px; background: var(--tone); color: #fff; }
.hc-chip-icon .hc-icon { width: 16px; height: 16px; }
.hc-article h1 { margin: 18px 0 14px; font-size: clamp(2rem, 4.2vw, 2.9rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.08; }
.hc-article-lead { max-width: 60ch; margin: 0 0 18px; color: var(--hc-dim); font-size: clamp(1.08rem, 1.5vw, 1.22rem); line-height: 1.6; text-wrap: pretty; }
.hc-article-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; list-style: none; color: var(--hc-faint); font-size: 14px; }
.hc-article-meta li { display: inline-flex; align-items: center; gap: 7px; }
.hc-article-meta .hc-icon { width: 16px; height: 16px; color: var(--tone); }

.hc-mobile-nav { display: none; gap: 10px; margin: 0 0 28px; }
.hc-toc-mobile { border: 1px solid var(--hc-line-strong); border-radius: 14px; background: var(--hc-surface); }
.hc-toc-mobile summary { display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 16px; cursor: pointer; color: var(--hc-ink); font-weight: 700; list-style: none; }
.hc-toc-mobile summary .hc-icon { width: 18px; height: 18px; color: var(--tone); }
.hc-toc-mobile summary::-webkit-details-marker { display: none; }
.hc-toc-mobile summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .15s ease; }
.hc-toc-mobile[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.hc-toc-mobile-count { min-width: 24px; padding: 1px 7px; border-radius: 999px; background: var(--tone-tint); color: var(--tone-ink); font-size: 12px; text-align: center; }
.hc-toc-mobile ol { margin: 0; padding: 0 16px 10px 44px; }
.hc-toc-mobile li { margin: 2px 0; color: var(--hc-faint); }
.hc-toc-mobile a { display: inline-flex; min-height: 40px; align-items: center; padding: 6px 0; color: #334155; line-height: 1.4; text-decoration: none; }
.hc-toc-mobile a:hover { color: var(--tone-ink); text-decoration: underline; }
.hc-toc-mobile a.is-current { color: var(--tone-ink); font-weight: 700; }

/* Tipografía de lectura */
.hc-prose { max-width: 68ch; color: var(--hc-text); font-size: 17px; line-height: 1.75; }
.hc-prose > :first-child { margin-top: 0; }
.hc-prose h2 { margin: 52px 0 16px; padding-top: 28px; border-top: 1px solid var(--hc-line); font-size: clamp(1.45rem, 2.2vw, 1.7rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.22; scroll-margin-top: 120px; }
.hc-prose h3 { margin: 30px 0 10px; font-size: 1.17rem; font-weight: 700; line-height: 1.35; scroll-margin-top: 120px; }
.hc-prose h4 { margin: 22px 0 8px; font-size: 1rem; font-weight: 700; }
.hc-prose p { margin: 0 0 18px; }
.hc-prose ul, .hc-prose ol { margin: 0 0 20px; padding-left: 1.4rem; }
.hc-prose ul { list-style: disc; }
.hc-prose ol { list-style: decimal; }
.hc-prose li { margin: 0 0 8px; }
.hc-prose li::marker { color: var(--hc-blue-ink); }
.hc-prose a { color: var(--hc-blue-ink); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.hc-prose a:hover { text-decoration-thickness: 2.5px; }
.hc-prose strong { color: var(--hc-ink); font-weight: 700; }
.hc-prose code { padding: 2px 6px; border-radius: 6px; background: #E8EEFD; color: #1E3A8A; font-family: var(--u-font-mono, ui-monospace, monospace); font-size: .86em; overflow-wrap: anywhere; }
.hc-prose pre { margin: 0 0 22px; padding: 16px 18px; overflow-x: auto; border-radius: 14px; background: #10172A; color: #E2E8F0; font-size: 14px; line-height: 1.65; }
.hc-prose pre code { padding: 0; background: none; color: inherit; font-size: inherit; }
.hc-prose img { max-width: 100%; height: auto; }
.hc-prose figure { margin: 0 0 24px; }
.hc-prose figcaption { margin-top: 10px; color: var(--hc-faint); font-size: 14px; line-height: 1.5; }
.hc-prose kbd { padding: 1px 6px; border: 1px solid var(--hc-line-strong); border-bottom-width: 2px; border-radius: 6px; background: var(--hc-surface); font-size: .85em; }

/* Ruta de menú del panel: <span class="ui">Courses → Subjects</span> */
.hc-prose .ui { display: inline; padding: 2px 8px; border: 1px solid var(--hc-line); border-radius: 6px; background: var(--hc-surface-2); color: var(--hc-ink); font-size: .9em; font-weight: 600; white-space: normal; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* Pasos numerados: <ol class="steps"><li><h3>…</h3><p>…</p></li></ol> */
.hc-prose ol.steps { counter-reset: hc-step; list-style: none; margin: 10px 0 30px; padding: 0; }
.hc-prose ol.steps > li { counter-increment: hc-step; position: relative; margin: 0; padding: 0 0 26px 58px; }
.hc-prose ol.steps > li::before {
    content: counter(hc-step); position: absolute; left: 0; top: 0; display: grid; place-items: center;
    width: 38px; height: 38px; border-radius: 12px; background: #10172A; color: #fff;
    font-family: var(--u-font-display, "Plus Jakarta Sans", sans-serif); font-size: 16px; font-weight: 800;
    font-variant-numeric: tabular-nums;
}
.hc-prose ol.steps > li::after { content: ""; position: absolute; left: 18px; top: 46px; bottom: 8px; width: 2px; border-radius: 2px; background: var(--hc-line); }
.hc-prose ol.steps > li:last-child { padding-bottom: 4px; }
.hc-prose ol.steps > li:last-child::after { display: none; }
.hc-prose ol.steps > li > h3:first-child { margin: 6px 0 8px; }
.hc-prose ol.steps > li > :last-child { margin-bottom: 0; }

/* Avisos: <div class="callout callout-tip|callout-warning|callout-note"><p class="callout-title">…</p>…</div> */
.hc-prose .callout { position: relative; margin: 0 0 24px; padding: 16px 20px 16px 52px; border: 1px solid; border-left-width: 4px; border-radius: 14px; font-size: 16px; line-height: 1.65; }
.hc-prose .callout > :last-child { margin-bottom: 0; }
.hc-prose .callout p { margin-bottom: 8px; }
.hc-prose .callout-title { margin: 0 0 4px !important; font-weight: 800; font-size: 15.5px; }
.hc-prose .callout::before { content: ""; position: absolute; left: 18px; top: 18px; width: 20px; height: 20px; background: currentColor; -webkit-mask: var(--hc-callout-icon) center / contain no-repeat; mask: var(--hc-callout-icon) center / contain no-repeat; }
.hc-prose .callout-tip { background: var(--hc-tip-bg); border-color: var(--hc-tip-line); }
.hc-prose .callout-tip::before, .hc-prose .callout-tip .callout-title { color: var(--hc-tip-ink); }
.hc-prose .callout-warning { background: var(--hc-warn-bg); border-color: var(--hc-warn-line); }
.hc-prose .callout-warning::before, .hc-prose .callout-warning .callout-title { color: var(--hc-warn-ink); }
.hc-prose .callout-note { background: var(--hc-note-bg); border-color: var(--hc-note-line); }
.hc-prose .callout-note::before, .hc-prose .callout-note .callout-title { color: var(--hc-note-ink); }
.hc-prose .callout:not(.callout-tip):not(.callout-warning):not(.callout-note) { background: var(--hc-note-bg); border-color: var(--hc-note-line); }
.hc-prose .callout { --hc-callout-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4M12 8h.01'/%3E%3C/svg%3E"); }
.hc-prose .callout-tip { --hc-callout-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6M10 22h4M12 2a7 7 0 0 0-4 12.7V17h8v-2.3A7 7 0 0 0 12 2z'/%3E%3C/svg%3E"); }
.hc-prose .callout-warning { --hc-callout-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.3 3.9 1.8 18a2 2 0 0 0 1.7 3h17a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0zM12 9v4M12 17h.01'/%3E%3C/svg%3E"); }

/* Tablas */
.hc-prose .table-wrap { margin: 0 0 24px; overflow-x: auto; border: 1px solid var(--hc-line); border-radius: 14px; background: #fff; }
.hc-prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.hc-prose th, .hc-prose td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--hc-line); }
.hc-prose th { background: var(--hc-surface-2); color: var(--hc-ink); font-weight: 700; font-size: 14px; }
.hc-prose tr:last-child td { border-bottom: 0; }
/* Dentro de una tabla, dominios y valores en <code> van enteros: si no
   caben, la tabla se desplaza dentro de .table-wrap (partials/a11y/
   scroll-regions la hace enfocable con teclado y le pone nombre). */
.hc-prose table code { white-space: nowrap; overflow-wrap: normal; }
.hc-prose .table-wrap { overscroll-behavior-x: contain; }
.hc-prose .table-wrap:focus-visible { outline: 3px solid var(--hc-blue-ink); outline-offset: 2px; }
@media (max-width: 640px) {
    .hc-prose table { font-size: 14px; }
    .hc-prose th, .hc-prose td { min-width: 8.5em; padding: 10px 12px; }
}

/* Resumen inicial: <div class="summary"><p class="callout-title">…</p><ul>…</ul></div> */
.hc-prose .summary { margin: 0 0 32px; padding: 20px 22px; border: 1px solid var(--hc-line); border-top: 3px solid var(--tone); border-radius: 18px; background: #fff; box-shadow: 0 1px 2px rgba(16, 23, 42, .04); }
.hc-prose .summary .callout-title { margin: 0 0 10px !important; color: var(--hc-ink); font-family: var(--u-font-display, "Plus Jakarta Sans", sans-serif); font-size: 16px; font-weight: 800; }
.hc-prose .summary ul { margin: 0; padding: 0; list-style: none; }
.hc-prose .summary li { position: relative; margin-bottom: 6px; padding-left: 28px; }
.hc-prose .summary li:last-child { margin-bottom: 0; }
.hc-prose .summary li::before {
    content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 5px;
    background: #E8EEFD url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231D4FD8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.2 4.2L19 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Capturas con marco de navegador: <figure class="shot"><a data-zoom><img></a><figcaption></figure> */
.hc-prose figure.shot { margin: 8px 0 26px; }
.hc-prose figure.shot a {
    position: relative; display: block; overflow: hidden; padding: 28px 6px 6px; cursor: zoom-in;
    border: 1px solid rgba(16, 23, 42, .16); border-radius: 14px; background: #E9EEF5;
    box-shadow: 0 1px 2px rgba(16, 23, 42, .06), 0 14px 34px rgba(16, 23, 42, .1);
}
.hc-prose figure.shot a::before {
    content: ""; position: absolute; left: 12px; top: 10px; width: 44px; height: 8px;
    background:
        radial-gradient(circle at 4px 4px, #F87171 3.5px, transparent 4px),
        radial-gradient(circle at 20px 4px, #FBBF24 3.5px, transparent 4px),
        radial-gradient(circle at 36px 4px, #34D399 3.5px, transparent 4px);
}
.hc-prose figure.shot a::after {
    content: ""; position: absolute; right: 12px; bottom: 12px; width: 36px; height: 36px; border-radius: 10px;
    background: rgba(16, 23, 42, .8) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m21 21-4.3-4.3M11 8v6M8 11h6'/%3E%3C/svg%3E") center / 18px no-repeat;
    opacity: 0; transition: opacity .15s ease;
}
.hc-prose figure.shot a:hover::after, .hc-prose figure.shot a:focus-visible::after { opacity: 1; }
.hc-prose figure.shot img { display: block; width: 100%; border-radius: 8px; background: #fff; box-shadow: 0 0 0 1px rgba(16, 23, 42, .06); }
.hc-prose ol.steps figure.shot { margin-top: 14px; }

/* Anterior / siguiente */
.hc-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 52px; padding-top: 28px; border-top: 1px solid var(--hc-line); }
.hc-pager-link { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border: 1px solid var(--hc-line-strong); border-radius: 14px; background: var(--hc-surface); color: inherit; text-decoration: none; transition: border-color .15s ease, background-color .15s ease; }
.hc-pager-link:hover { border-color: var(--tone); background: var(--tone-tint); }
.hc-pager-next { text-align: right; align-items: flex-end; }
.hc-pager-dir { display: inline-flex; align-items: center; gap: 6px; color: var(--hc-faint); font-size: 13.5px; font-weight: 600; }
.hc-pager-dir .hc-icon { width: 15px; height: 15px; }
.hc-pager-link strong { color: var(--hc-ink); font-family: var(--u-font-display, "Plus Jakarta Sans", sans-serif); font-size: 15.5px; line-height: 1.35; }
.hc-pager-link:hover strong { color: var(--tone-ink); }
.hc-pager-topic { color: var(--tone-ink); font-size: 13px; font-weight: 700; }

/* Guías relacionadas */
.hc-related { margin-top: clamp(56px, 7vw, 80px); }
.hc-related h2 { margin: 0 0 18px; font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; }
.hc-related-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.hc-related-card { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 20px; border: 1px solid var(--hc-line-strong); border-top: 4px solid var(--tone); border-radius: 16px; background: #fff; color: inherit; text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease; }
.hc-related-card:hover { border-color: var(--tone); box-shadow: 0 12px 28px rgba(16, 23, 42, .08); }
.hc-related-card strong { color: var(--hc-ink); font-family: var(--u-font-display, "Plus Jakarta Sans", sans-serif); font-size: 16px; line-height: 1.35; }
.hc-related-card:hover strong { color: var(--tone-ink); text-decoration: underline; text-underline-offset: 3px; }
.hc-related-cat { display: inline-flex; align-items: center; gap: 8px; color: var(--tone-ink); font-size: 13px; font-weight: 700; }
.hc-related-icon { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--tone); color: #fff; }
.hc-related-icon .hc-icon { width: 14px; height: 14px; }
.hc-related-excerpt { color: var(--hc-dim); font-size: 14.5px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Visor de capturas */
.hc-lightbox { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(2, 6, 23, .86); cursor: zoom-out; overscroll-behavior: contain; }
.hc-lightbox[hidden] { display: none; }
.hc-lightbox img { max-width: min(1600px, 100%); max-height: calc(100vh - 80px); border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); background: #fff; }
.hc-lightbox figcaption { position: absolute; left: 24px; right: 24px; bottom: 14px; color: #E2E8F0; font-size: 14px; text-align: center; }
.hc-lightbox button { position: absolute; top: 14px; right: 16px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
.hc-lightbox button:hover { background: rgba(255, 255, 255, .26); }
.hc-lightbox button:focus-visible { outline: 3px solid var(--hc-cyan); outline-offset: 2px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .hc-top--with-start { grid-template-columns: minmax(0, 1fr); }
    .hc-start { max-width: 680px; }
}
@media (max-width: 1024px) {
    .hc-layout { grid-template-columns: minmax(0, 1fr); }
    .hc-side { display: none; }
    .hc-mobile-nav { display: grid; }
    .hc-article { max-width: none; }
    .hc-related-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
    .hc-related-list { grid-template-columns: minmax(0, 1fr); }
    .hc-pager { grid-template-columns: minmax(0, 1fr); }
    .hc-cats.is-list .hc-row { flex-wrap: wrap; align-items: flex-start; }
    .hc-cats.is-list .hc-row-main { flex-basis: calc(100% - 34px); }
    .hc-cats.is-list .hc-row-go { margin-top: 3px; }
    .hc-cats.is-list .hc-row-meta { order: 3; flex-basis: 100%; }
    .hc-cats.is-topic .hc-cat-head { display: grid; grid-template-columns: auto minmax(0, 1fr); }
    .hc-cats.is-topic .hc-cat-return { order: -1; grid-column: 1 / -1; justify-self: start; margin-bottom: 4px; }
}
@media (max-width: 640px) {
    .hc-search { flex-wrap: wrap; padding: 8px; border-radius: 22px; }
    .hc-search-icon { margin-left: 10px; }
    .hc-search input { height: 48px; }
    .hc-search-btn { width: 100%; min-height: 48px; }
    .hc-search-status { margin-left: 4px; }
    .hc-popular-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hc-popular-link { height: 100%; padding: 8px 10px; font-size: 14px; line-height: 1.25; }
    .hc-topics-list { flex-wrap: nowrap; margin: 0 calc(-1 * var(--hc-gutter)); padding: 2px var(--hc-gutter) 8px; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
    .hc-topics-list::-webkit-scrollbar { display: none; }
    .hc-topic { flex: 0 0 auto; white-space: nowrap; }
    .hc-cat { padding: 18px 16px 14px; border-radius: 18px; }
    .hc-cats.is-list .hc-cat { padding: 18px 14px; }
    .hc-cats.is-list .hc-row { padding: 13px 14px; }
    .hc-cats.is-list .hc-row-excerpt { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
    .hc-start { padding: 22px 18px 18px; }
    .hc-prose { font-size: 16.5px; }
    .hc-prose ol.steps > li { padding-left: 50px; }
    .hc-prose ol.steps > li::before { width: 34px; height: 34px; font-size: 15px; }
    .hc-prose ol.steps > li::after { left: 16px; top: 42px; }
    .hc-prose .callout { padding: 14px 16px 14px 46px; }
    .hc-prose .callout::before { left: 15px; top: 16px; }
    .hc-prose figure.shot a { padding: 24px 4px 4px; border-radius: 12px; }
    .hc-final-actions, .hc-final-actions .hc-btn { width: 100%; }
}
/* Móvil: margen lateral de 16px (el contenedor público usa 24px). Solo se
   carga en las guías, así que no afecta al resto de páginas públicas. */
@media (max-width: 480px) {
    .public-shell-body .pub-main > .u-container { padding-inline: 16px; }
    .hc { --hc-gutter: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .hc-btn, .hc-topic, .hc-row, .hc-row-title, .hc-row-go, .hc-cat-more .hc-icon, .hc-popular-link, .hc-search, .hc-search-btn,
    .hc-pager-link, .hc-related-card, .hc-toc li a, .hc-side-topic li a, .hc-toc-mobile summary::after, .hc-prose figure.shot a::after { transition: none; }
    .hc-row:hover .hc-row-go, .hc-cat-more:hover .hc-icon { transform: none; }
}

/* Listas numeradas: el índice móvil muestra sus números también donde un
   reset (Tailwind/FlyonUI del panel) quita el estilo de lista. */
.hc-toc-mobile ol { list-style: decimal; }
.hc-prose ol:not(.steps) { list-style: decimal; }


/* =================================================================
   DENTRO DEL PANEL (Ayuda → Guías, layouts.ulearn-admin): mismas guías que
   la web pública, ajustadas a la cabecera fija del panel y con modo oscuro
   (html[data-u-theme="dark"]). Solo afecta a .hc--panel.
   ================================================================= */
.hc--panel { --hc-gutter: 16px; }
.hc--panel.hc-article-page { max-width: 1200px; margin-inline: auto; }
.hc--panel .hc-side { top: 88px; max-height: calc(100vh - 104px); }
.hc--panel .hc-prose h2, .hc--panel .hc-prose h3 { scroll-margin-top: 92px; }
.hc--panel .hc-topics, .hc--panel .hc-cat { scroll-margin-top: 92px; }
.hc--panel .hc-crumbs { margin-bottom: 16px; }
/* El panel da estilo propio a los <input>: el buscador conserva el de la web. */
.hc.hc--panel .hc-search input[type="search"] { height: 54px; min-height: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; outline: 0; color: var(--hc-ink); font: inherit; font-size: 17px; }
.hc.hc--panel .hc-search input[type="search"]:focus { box-shadow: none; outline: 0; border: 0; }
.hc--panel .hc-article h1 { margin-top: 14px; font-size: clamp(1.75rem, 3vw, 2.4rem); }
.hc--panel .hc-top { margin-top: 4px; }
.hc--panel .hc-topics { margin-top: 36px; }
.hc--panel .hc-final { margin-top: clamp(40px, 5vw, 64px); }
.hc--panel .hc-final .hc-final-help a { text-decoration: underline; text-underline-offset: 3px; }
/* Colores de enlace: el panel tiñe todos los <a> de .u-content con el color
   de marca (y en oscuro con #9db4ff, selector muy específico). «:not(#hc-panel)»
   sube la especificidad para recuperar los colores de la guía en ambos modos. */
.hc--panel:not(#hc-panel) .hc-crumbs a { color: var(--hc-dim); }
.hc--panel:not(#hc-panel) .hc-crumbs a:hover { color: var(--hc-blue-ink); }
.hc--panel:not(#hc-panel) :is(.hc-popular-link, .hc-topic, .hc-cat-return) { color: var(--hc-ink); }
.hc--panel:not(#hc-panel) :is(.hc-popular-link, .hc-topic, .hc-cat-return):hover { color: var(--tone-ink); }
.hc--panel:not(#hc-panel) .hc-topic.is-active { color: #fff; }
.hc--panel:not(#hc-panel) :is(.hc-row, .hc-pager-link, .hc-related-card) { color: var(--hc-text); }
.hc--panel:not(#hc-panel) .hc-start-link { color: #E6ECF5; }
.hc--panel:not(#hc-panel) :is(.hc-start-more a, .hc-final-help a) { color: #fff; }
.hc--panel:not(#hc-panel) :is(.hc-results-bar a, .hc-prose a) { color: var(--hc-blue-ink); }
.hc--panel:not(#hc-panel) :is(.hc-cat-more, .hc-side-topic-link, .hc-chip) { color: var(--tone-ink); }
.hc--panel:not(#hc-panel) :is(.hc-toc li a, .hc-side-topic li a, .hc-toc-mobile a) { color: #334155; }
html[data-u-theme="dark"] .hc--panel:not(#hc-panel) :is(.hc-toc li a, .hc-side-topic li a, .hc-toc-mobile a) { color: var(--hc-dim); }
.hc--panel:not(#hc-panel) :is(.hc-toc li a, .hc-side-topic li a, .hc-toc-mobile a):hover { color: var(--hc-ink); }
.hc--panel:not(#hc-panel) :is(.hc-toc li a.is-active, .hc-side-topic li a.is-current, .hc-toc-mobile a.is-current) { color: var(--tone-ink); }
.hc--panel:not(#hc-panel) .hc-side-top { color: var(--hc-faint); }
.hc--panel:not(#hc-panel) .hc-side-top:hover { color: var(--hc-ink); }
/* Tablas: el panel pone sus propios bordes y fondos a th/td. */
.hc--panel:not(#hc-panel) .hc-prose :is(th, td) { border: 0; border-bottom: 1px solid var(--hc-line); background: transparent; color: inherit; }
.hc--panel:not(#hc-panel) .hc-prose th { background: var(--hc-surface-2); color: var(--hc-ink); text-transform: none; letter-spacing: 0; font-size: 14px; }
.hc--panel:not(#hc-panel) .hc-prose tr:last-child td { border-bottom: 0; }
.hc--panel a.hc-btn:hover, .hc--panel a.hc-row:hover, .hc--panel .hc-related-card:hover, .hc--panel .hc-pager-link:hover { text-decoration: none; }

html[data-u-theme="dark"] .hc--panel {
    --hc-ink: #F2F4F7;
    --hc-text: #D0D5DD;
    --hc-dim: #B4BDCC;
    --hc-faint: #98A2B3;
    --hc-blue: #2563EC;
    --hc-blue-ink: #93B4FF;
    --hc-surface: #17213A;
    --hc-surface-2: #1E2A47;
    --hc-line: rgba(255, 255, 255, .1);
    --hc-line-strong: rgba(255, 255, 255, .18);
    --hc-tip-bg: rgba(7, 182, 213, .12); --hc-tip-line: #07B6D5; --hc-tip-ink: #6FE3F7;
    --hc-warn-bg: rgba(217, 119, 6, .14); --hc-warn-line: #D97706; --hc-warn-ink: #FCC777;
    --hc-note-bg: rgba(37, 99, 236, .16); --hc-note-line: #4F7DF3; --hc-note-ink: #A9C1FF;
    color: var(--hc-text);
}
/* Tonos por tema: fondo y texto de acento recalculados sobre el fondo oscuro. */
html[data-u-theme="dark"] .hc--panel,
html[data-u-theme="dark"] .hc--panel [class*="hc-tone-"] {
    --tone-tint: color-mix(in srgb, var(--tone) 20%, #17213A);
    --tone-ink: color-mix(in srgb, var(--tone) 35%, #FFFFFF);
}
html[data-u-theme="dark"] .hc--panel :is(.hc-search, .hc-popular-link, .hc-topic, .hc-cat-return, .hc-list, .hc-empty, .hc-related-card),
html[data-u-theme="dark"] .hc--panel .hc-prose :is(.table-wrap, .summary) { background: var(--hc-surface); }
html[data-u-theme="dark"] .hc--panel .hc-topic.is-active { background: var(--tone); }
html[data-u-theme="dark"] .hc--panel .hc-search { border-color: var(--hc-line-strong); box-shadow: none; }
html[data-u-theme="dark"] .hc--panel .hc-search:focus-within { border-color: var(--hc-blue); box-shadow: 0 0 0 4px rgba(37, 99, 236, .3); }
html[data-u-theme="dark"] .hc--panel .hc-search input::placeholder { color: #8E9AB0; }
html[data-u-theme="dark"] .hc--panel .hc-row:hover { background: var(--hc-surface-2); }
html[data-u-theme="dark"] .hc--panel :is(.hc-cat, .hc-list) { border-color: var(--hc-line); }
html[data-u-theme="dark"] .hc--panel .hc-list > li + li { border-top-color: var(--hc-line); }
html[data-u-theme="dark"] .hc--panel .hc-cat-desc { color: var(--hc-dim); }
html[data-u-theme="dark"] .hc--panel :is(.hc-toc, .hc-side-topic) ol { border-left-color: var(--hc-line-strong); }
html[data-u-theme="dark"] .hc--panel :is(.hc-toc, .hc-side-topic) li a,
html[data-u-theme="dark"] .hc--panel .hc-toc-mobile a { color: var(--hc-dim); }
html[data-u-theme="dark"] .hc--panel :is(.hc-toc, .hc-side-topic) li a:hover { color: var(--hc-ink); border-left-color: rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .05); }
html[data-u-theme="dark"] .hc--panel :is(.hc-toc li a.is-active, .hc-side-topic li a.is-current, .hc-toc-mobile a.is-current) { color: var(--tone-ink); }
html[data-u-theme="dark"] .hc--panel :is(.hc-start, .hc-final) { background: #0B1222; border: 1px solid var(--hc-line); box-shadow: none; }
html[data-u-theme="dark"] .hc--panel .hc-chip-icon,
html[data-u-theme="dark"] .hc--panel .hc-side-topic-icon,
html[data-u-theme="dark"] .hc--panel .hc-related-icon,
html[data-u-theme="dark"] .hc--panel .hc-cat-icon { box-shadow: none; }
html[data-u-theme="dark"] .hc--panel .hc-prose code { background: rgba(147, 180, 255, .14); color: #C7D7FF; }
html[data-u-theme="dark"] .hc--panel .hc-prose pre { background: #0B1222; border: 1px solid var(--hc-line); }
html[data-u-theme="dark"] .hc--panel .hc-prose ol.steps > li::before { background: var(--hc-blue); }
html[data-u-theme="dark"] .hc--panel .hc-prose .summary { box-shadow: none; }
html[data-u-theme="dark"] .hc--panel .hc-prose .summary li::before { background-color: rgba(147, 180, 255, .16); }
html[data-u-theme="dark"] .hc--panel .hc-prose figure.shot a { background: #1E2A47; border-color: var(--hc-line-strong); box-shadow: 0 14px 34px rgba(0, 0, 0, .35); }
html[data-u-theme="dark"] .hc--panel .hc-related-card:hover { box-shadow: 0 12px 28px rgba(0, 0, 0, .35); }

@media (max-width: 1024px) {
    .hc--panel .hc-layout { gap: 0; }
}
@media (max-width: 480px) {
    .hc--panel .hc-article h1 { font-size: 1.65rem; }
    .hc--panel .hc-final { padding: 22px 18px; border-radius: 18px; }
}
html[data-u-theme="dark"] .hc--panel:not(#hc-panel) :is(.hc-toc li a, .hc-side-topic li a, .hc-toc-mobile a):hover { color: var(--hc-ink); }
html[data-u-theme="dark"] .hc--panel:not(#hc-panel) :is(.hc-toc li a.is-active, .hc-side-topic li a.is-current, .hc-toc-mobile a.is-current) { color: var(--tone-ink); }

/* =================================================================
   MAQUETA DE DOCUMENTACIÓN (2026-10-02)
   Menú con todas las guías por tema (cada tema con su color) | artículo |
   «En esta página». ≥1280 px: tres columnas; 1025-1279: menú + artículo
   (el índice de la página pasa a desplegable); ≤1024: una columna con los
   desplegables de siempre. En el panel (hay sidebar) los cortes suben.
   ================================================================= */
.hc-layout--docs { grid-template-columns: 248px minmax(0, 1fr) 208px; gap: clamp(28px, 3.2vw, 48px); }
.hc-layout--docs.hc-layout--no-otp { grid-template-columns: 248px minmax(0, 1fr); }
.hc-layout--docs .hc-article { max-width: 44rem; margin-inline: auto; width: 100%; }
.hc-layout--docs .hc-otp { order: 3; }

/* Menú lateral */
.hc-nav { position: sticky; top: 108px; max-height: calc(100vh - 128px); overflow-y: auto; overscroll-behavior: contain; padding: 0 8px 24px 0; scrollbar-width: thin; }
.hc-nav-search { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 8px; height: 42px; margin: 0 0 18px; padding: 0 10px; border: 1px solid var(--hc-line-strong); border-radius: 12px; background: var(--hc-surface); box-shadow: 0 6px 14px -10px rgba(16, 23, 42, .35); }
.hc-nav-search:focus-within { border-color: var(--hc-blue); box-shadow: 0 0 0 3px rgba(37, 99, 236, .16); }
.hc-nav-search .hc-icon { width: 16px; height: 16px; flex: none; color: var(--hc-faint); }
.hc-nav-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--hc-ink); font: inherit; font-size: 14px; }
.hc-nav-search input::-webkit-search-cancel-button { display: none; }
.hc-nav-search kbd { flex: none; padding: 2px 6px; border: 1px solid var(--hc-line-strong); border-radius: 6px; background: var(--hc-surface-2); color: var(--hc-faint); font: 600 11px/1.4 ui-monospace, monospace; }
.hc-nav-group { margin: 0 0 18px; }
.hc-nav-group[hidden], .hc-nav-group li[hidden] { display: none; }
.hc-nav-title { display: flex; align-items: center; gap: 9px; margin: 0 0 6px; color: var(--hc-ink); font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.hc-nav-icon { display: inline-grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 7px; background: var(--tone-tint); color: var(--tone); }
.hc-nav-group.is-current .hc-nav-icon { background: var(--tone); color: #fff; }
.hc-nav-icon .hc-icon { width: 14px; height: 14px; }
.hc-nav-group ul { margin: 0; padding: 0 0 0 11px; list-style: none; border-left: 2px solid color-mix(in srgb, var(--tone) 22%, transparent); }
.hc-nav-group li a { display: block; margin-left: -13px; padding: 6px 10px 6px 12px; border-left: 2px solid transparent; border-radius: 0 8px 8px 0; color: var(--hc-dim); font-size: 13.5px; line-height: 1.4; text-decoration: none; transition: color .15s, background-color .15s, border-color .15s; }
.hc-nav-group li a:hover { color: var(--tone-ink); background: var(--tone-tint); }
.hc-nav-group li a.is-current { border-left-color: var(--tone); background: var(--tone-tint); color: var(--tone-ink); font-weight: 700; }
.hc-nav-empty { margin: 0; color: var(--hc-faint); font-size: 13px; line-height: 1.5; }

/* «En esta página» (derecha) */
.hc-otp .hc-toc ol { border-left-color: color-mix(in srgb, var(--tone) 22%, transparent); }
.hc-otp .hc-toc li a { font-size: 13px; }

/* Título con el icono del tema (como el icono de página de una doc) */
.hc-layout--docs .hc-article h1 { display: flex; align-items: flex-start; gap: 14px; font-size: clamp(1.7rem, 2.4vw, 2.1rem); letter-spacing: -.02em; line-height: 1.18; }
.hc-h1-icon { display: inline-grid; place-items: center; flex: none; width: 46px; height: 46px; margin-top: 2px; border-radius: 13px; background: var(--tone); color: #fff; box-shadow: 0 8px 18px -8px var(--tone); }
.hc-h1-icon .hc-icon { width: 24px; height: 24px; }
.hc-layout--docs .hc-prose h2 { scroll-margin-top: 110px; }
.hc-layout--docs .hc-prose a:not(.hc-btn) { text-decoration-color: color-mix(in srgb, var(--tone) 55%, transparent); }

/* Desplegables: con el menú visible sobra «En este tema». */
@media (min-width: 1025px) {
    .hc-layout--docs .hc-toc-mobile--topic { display: none; }
}
@media (max-width: 1279px) {
    .hc-layout--docs, .hc-layout--docs.hc-layout--no-otp { grid-template-columns: 240px minmax(0, 1fr); }
    .hc-layout--docs .hc-otp { display: none; }
    .hc-layout--docs .hc-mobile-nav { display: grid; }
}
@media (max-width: 1024px) {
    .hc-layout--docs, .hc-layout--docs.hc-layout--no-otp { grid-template-columns: minmax(0, 1fr); }
    .hc-nav { display: none; }
    .hc-layout--docs .hc-article h1 { gap: 12px; }
    .hc-h1-icon { width: 38px; height: 38px; border-radius: 11px; }
    .hc-h1-icon .hc-icon { width: 20px; height: 20px; }
}
/* Panel: hay sidebar del panel, así que tres columnas solo en pantallas grandes. */
.hc--panel.hc-article-page:has(.hc-layout--docs) { max-width: 1440px; }
.hc--panel .hc-nav { top: 84px; max-height: calc(100vh - 100px); }
@media (max-width: 1599px) {
    .hc--panel .hc-layout--docs, .hc--panel .hc-layout--docs.hc-layout--no-otp { grid-template-columns: 236px minmax(0, 1fr); }
    .hc--panel .hc-layout--docs .hc-otp { display: none; }
    .hc--panel .hc-layout--docs .hc-mobile-nav { display: grid; }
}
@media (max-width: 1199px) {
    .hc--panel .hc-layout--docs, .hc--panel .hc-layout--docs.hc-layout--no-otp { grid-template-columns: minmax(0, 1fr); }
    .hc--panel .hc-nav { display: none; }
    .hc--panel .hc-layout--docs .hc-toc-mobile--topic { display: block; }
}
html[data-u-theme="dark"] .hc--panel .hc-nav-search { background: var(--hc-surface); }
html[data-u-theme="dark"] .hc--panel .hc-nav-group li a { color: var(--hc-dim); }
html[data-u-theme="dark"] .hc--panel .hc-nav-group li a:is(:hover, .is-current) { color: var(--tone-ink); }
@media (prefers-reduced-motion: reduce) { .hc-nav-group li a { transition: none; } }
/* Ajustes: el buscador no hereda tamaños de los inputs globales; sin chip de tema (el icono ya va con el título). */
.hc-nav-search input[type="search"] { height: 40px; margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; line-height: 40px; white-space: nowrap; text-overflow: ellipsis; }
.hc-layout--docs .hc-article-head .hc-chip { display: none; }
.hc-layout--docs .hc-article h1 { margin-top: 4px; font-weight: 780; }

/* Accesibilidad (WCAG 1.4.3): en el panel en modo noche el texto que se
   escribe en el buscador salía oscuro sobre fondo oscuro. */
html[data-u-theme="dark"] body.u-body-admin .hc--panel .hc-search input { color: var(--hc-ink) !important; }
