/* ==========================================================================
   PeFactura · portal del desarrollador /docs/ (F220). Rediseño 2026-11-10, inspirado en las guías de Angular22 pero para API:
   barra de la documentación fija con buscador, índice lateral con las secciones de la página actual, contenido a todo el ancho y,
   en pantallas anchas, el código A LA DERECHA del texto (pares .pair y ejemplos .example) para no hacer scroll de más.
   Se carga después de css/estilos.css (sitio) y assets/api/estilos.css (ventanas de código VS Code, métodos, estados, formulario).
   1 barra de la documentación y buscador · 2 esqueleto (índice + contenido) · 3 encabezado y prosa · 4 notas y tablas
   5 pares texto/código · 6 ejemplos · 7 portada y pie del artículo · 8 herramientas (referencia, Swagger) · 9 playground
   10 responsive. Fuente editable: landing/docs/assets/docs.css → pefactura.pe/docs/assets/docs.css.
   ========================================================================== */
:root {
    --docs-bar-height: 60px;
    --docs-sidebar: 290px;
    --docs-read: 860px;
    --docs-gutter: clamp(18px, 3vw, 52px);
}
.docs-body { background: var(--papel); }
html:has(.docs-body) { scroll-padding-top: calc(var(--docs-bar-height) + 18px); }

/* 1. Barra de la documentación (clara) y buscador */
.docs-bar { position: sticky; background: rgba(255, 255, 255, .96); color: var(--tinta); border-bottom: 1px solid var(--linea); }
.docs-bar-row { display: flex; align-items: center; gap: 16px; min-height: var(--docs-bar-height); padding: 0 var(--docs-gutter) 0 22px; }
.docs-bar .api-bar-brand { color: var(--tinta); }
.docs-bar .api-bar-brand .ic, .docs-bar .api-bar-brand b { color: var(--azul); }
.docs-bar .api-bar-nav { justify-content: flex-end; }
.docs-bar .api-bar-nav a { color: var(--suave); }
.docs-bar .api-bar-nav a:hover { background: var(--niebla); color: var(--tinta); }
.docs-bar .api-bar-nav a[aria-current] { background: #e6edff; color: var(--azul-fuerte); }
.docs-menu-btn { display: none; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; font: inherit; font-size: .9rem; font-weight: 700; color: var(--tinta); background: var(--niebla); border: 1px solid var(--linea); border-radius: 10px; cursor: pointer; }
.docs-search { position: relative; flex: 0 1 460px; min-width: 160px; margin-left: 12px; }
.docs-search input { width: 100%; min-height: 40px; padding: 8px 40px; font: inherit; font-size: .94rem; color: var(--tinta); background: var(--niebla); border: 1px solid var(--linea); border-radius: 999px; }
.docs-search input:focus { background: var(--papel); border-color: var(--azul); }
.docs-search input::placeholder { color: #6b7394; }
.docs-search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); display: flex; color: var(--suave); pointer-events: none; }
.docs-search-icon .ic { width: 18px; height: 18px; }
.docs-search-key { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); padding: 2px 7px; font-family: var(--code-font); font-size: .75rem; font-weight: 700; color: var(--suave); background: var(--papel); border: 1px solid var(--linea); border-radius: 6px; pointer-events: none; }
.docs-results { position: absolute; top: calc(100% + 8px); left: 0; z-index: 60; width: min(580px, 92vw); max-height: 70vh; overflow-y: auto; padding: 6px; background: var(--papel); border: 1px solid var(--linea); border-radius: 14px; box-shadow: var(--sombra-alta); }
.docs-results a { display: block; padding: 9px 12px; border-radius: 10px; color: var(--tinta); text-decoration: none; }
.docs-results a:hover, .docs-results a.is-active { background: var(--niebla); }
.result-title { display: block; font-weight: 700; line-height: 1.35; }
.result-meta { display: block; font-size: .84rem; color: var(--suave); }
.result-empty { margin: 0; padding: 12px; color: var(--suave); }
.docs-results mark { background: #fff1b8; color: inherit; border-radius: 3px; }

/* 2. Esqueleto: índice lateral fijo + contenido a todo el ancho */
.docs-shell { display: grid; grid-template-columns: var(--docs-sidebar) minmax(0, 1fr); align-items: start; }
.docs-sidebar { position: sticky; top: var(--docs-bar-height); height: calc(100vh - var(--docs-bar-height)); overflow-y: auto; padding: 24px 14px 48px 18px; background: #fbfcff; border-right: 1px solid var(--linea); scrollbar-width: thin; }
.docs-nav-title { margin: 20px 10px 6px; font-size: .74rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--suave); }
.docs-nav-title:first-child { margin-top: 0; }
.docs-nav ul { list-style: none; margin: 0; padding: 0; }
.docs-nav a { display: block; padding: 6px 10px; border-radius: 9px; color: var(--texto); font-size: .95rem; font-weight: 600; line-height: 1.35; text-decoration: none; }
.docs-nav a:hover { background: var(--niebla); color: var(--tinta); }
.docs-nav a[aria-current="page"] { background: #e6edff; color: var(--azul-fuerte); font-weight: 800; }
.docs-nav .docs-subnav { margin: 4px 0 10px 14px; padding-left: 10px; border-left: 2px solid var(--linea); }
.docs-subnav a { position: relative; padding: 4px 10px; font-size: .86rem; font-weight: 500; color: var(--suave); }
.docs-subnav a.is-active { color: var(--azul-fuerte); font-weight: 700; }
.docs-subnav a.is-active::before { content: ""; position: absolute; left: -12px; top: 4px; bottom: 4px; width: 2px; background: var(--azul); border-radius: 2px; }
.docs-main { min-width: 0; padding: 26px var(--docs-gutter) 72px; }
.docs-article { max-width: 1480px; }

/* 3. Encabezado del artículo y prosa (el texto corrido a --docs-read; tablas, pares y ejemplos a todo el ancho) */
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0 8px; margin: 0 0 18px; padding: 0; font-size: .88rem; color: var(--suave); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: #a9b0cc; }
.breadcrumb a { color: var(--suave); text-decoration: none; }
.breadcrumb a:hover { color: var(--azul-fuerte); text-decoration: underline; }
.docs-article-head { margin-bottom: 30px; padding-bottom: 24px; border-bottom: 1px solid var(--linea); }
.docs-eyebrow { margin: 0 0 8px; font-size: .8rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--azul); }
.docs-article-head h1, .docs-tool-head h1 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); margin-bottom: .35em; }
.docs-lead { max-width: 76ch; margin: 0; font-size: 1.15rem; line-height: 1.6; color: var(--suave); }
.docs-article > p, .docs-article > ul, .docs-article > ol, .docs-article > aside, .docs-article > h2, .docs-article > h3, .docs-article > h4, .pair-text { max-width: var(--docs-read); }
.docs-article h2 { margin: 2.2em 0 .7em; font-size: clamp(1.4rem, 2.2vw, 1.8rem); }
.docs-article h3 { margin: 1.7em 0 .6em; font-size: 1.2rem; }
.docs-article h4 { margin: 1.5em 0 .5em; font-size: 1.05rem; color: var(--tinta); }
.docs-article-head + h2, .docs-cards + h2 { margin-top: .4em; }
.anchor { margin-left: .4em; color: #a9b0cc; font-weight: 600; text-decoration: none; opacity: 0; transition: opacity .15s ease; }
h2:hover > .anchor, h3:hover > .anchor, h4:hover > .anchor, .anchor:focus-visible { opacity: 1; }
.docs-list { padding-left: 1.3em; }
.docs-list li { margin-bottom: .4em; }
.docs-list li::marker { color: var(--azul); }
.docs-list ul { margin: .4em 0 0; padding-left: 1.2em; }
.note, .docs-note { font-size: .93rem; color: var(--suave); }
.link-btn { padding: 0; font: inherit; color: var(--azul); background: none; border: 0; text-decoration: underline; cursor: pointer; }

/* 4. Notas (> **Importante:** …) y tablas */
.note-box { position: relative; margin: 0 0 1.4em; padding: 14px 18px 14px 52px; background: #eef3ff; border: 1px solid #d6e0fb; border-radius: 14px; font-size: .98rem; }
.note-box::before { content: "i"; position: absolute; left: 16px; top: 15px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--azul); color: #fff; font-size: .8rem; font-weight: 800; }
.note-importante, .note-aviso { background: #fff7ed; border-color: #fbd5ad; }
.note-importante::before, .note-aviso::before { content: "!"; background: #c2410c; }
.note-consejo { background: #ecfdf3; border-color: #b7ebcb; }
.note-consejo::before { content: "✓"; background: var(--ok); }
.table-wrap { margin: 0 0 1.5em; overflow-x: auto; background: var(--papel); border: 1px solid var(--linea); border-radius: 14px; }
.table-wrap:focus-visible { outline-offset: 2px; }
.docs-table { font-size: .94rem; }
.docs-table th, .docs-table td { padding: 10px 14px; }
.docs-table thead th { font-size: .76rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--suave); background: var(--niebla); }
.docs-table th[scope="row"] { font-weight: 700; color: var(--tinta); }
.docs-table tbody tr:hover { background: #fafbff; }
.ops-table th a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.ops-table th a code { background: none; border: 0; padding: 0; color: var(--tinta); }
.catalog-table td, .catalog-table th { white-space: nowrap; }

/* 5. Pares: texto a la izquierda (sigue a la vista) y código a la derecha */
.pair { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; align-items: start; margin: 0 0 1.5em; }
.pair-text { position: sticky; top: calc(var(--docs-bar-height) + 20px); }
.pair-text > :last-child { margin-bottom: 0; }
.pair-code { min-width: 0; }
.pair-code .code-window { margin: 0; }
.docs-article > .code-window { max-width: 1100px; }

/* 6. Ejemplos de la API: explicación a la izquierda, petición y respuesta en pestañas a la derecha */
.example { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; align-items: start; padding: 30px 0; border-top: 1px solid var(--linea); }
.example + .example { padding-top: 30px; }
.example-text { position: sticky; top: calc(var(--docs-bar-height) + 20px); min-width: 0; }
.example-text > :last-child { margin-bottom: 0; }
.example-head h3, .example-head h4 { margin: 0 0 .45em; font-size: 1.18rem; }
.example-endpoint { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; }
.example-endpoint code { padding: 0; font-weight: 600; color: var(--tinta); background: none; border: 0; }
.example-flag { padding: 8px 12px; font-size: .9rem; color: var(--warn); background: var(--warn-soft); border-radius: 10px; }
.example-expect, .example-depends { font-size: .9rem; color: var(--suave); }
.example-notes { padding-left: 1.2em; font-size: .94rem; }
.example-notes li { margin-bottom: .35em; }
.example-actions { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 8px; font-size: .94rem; }
.example-code { min-width: 0; }
.example-code .code-window { margin: 0; }
.code-window-example .code-body:last-child { max-height: 540px; overflow-y: auto; }
.code-tab .status { margin-left: 2px; padding: 0 6px; font-size: .72rem; }
.code-note { margin: 0; padding: 16px 18px; font-size: .92rem; }

/* 7. Portada del portal (tarjetas) y pie del artículo */
.docs-article > .docs-cards { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-width: 1180px; margin: 0 0 2.2em; padding: 0; }
.docs-card { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 18px 20px; color: var(--texto); text-decoration: none; background: var(--papel); border: 1px solid var(--linea); border-radius: 16px; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.docs-card:hover { color: var(--texto); border-color: #9db4f7; box-shadow: var(--sombra); transform: translateY(-2px); }
.docs-card-ic { width: 40px; height: 40px; padding: 9px; border-radius: 12px; color: var(--azul); background: linear-gradient(135deg, #e6edff, #f1eaff); }
.docs-card-title { font-size: 1.05rem; font-weight: 800; color: var(--tinta); }
.docs-card-text { font-size: .92rem; line-height: 1.5; color: var(--suave); }
.docs-article-footer { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--linea); font-size: .9rem; color: var(--suave); }
.docs-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.docs-pager a { display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; font-weight: 800; color: var(--tinta); text-decoration: none; border: 1px solid var(--linea); border-radius: 14px; }
.docs-pager a:hover { border-color: var(--azul); color: var(--azul-fuerte); }
.docs-pager a span { font-size: .8rem; font-weight: 700; color: var(--suave); }
.pager-next { grid-column: 2; text-align: right; }

/* 8. Herramientas: referencia (Scalar), Swagger UI y Postman */
.boton-sm { min-height: 40px; padding: 8px 14px; font-size: .9rem; border-radius: 11px; }
.docs-tool-bar { padding: 24px var(--docs-gutter) 10px; }
.docs-tool-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
.docs-tool-head h1 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.docs-tool-head .docs-lead { font-size: 1rem; }
.docs-tool-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.docs-tool-main { padding: 10px var(--docs-gutter) 56px; }
.docs-cdn-notice { margin: 0 0 16px; padding: 14px 18px; background: var(--warn-soft); border: 1px solid #fbd5ad; border-radius: 14px; }
.docs-cdn-notice p { margin: 0; }
.docs-scalar { min-height: 70vh; border: 1px solid var(--linea); border-radius: 16px; overflow: hidden; }
.docs-swagger { min-height: 60vh; }

/* 9. Playground: ejemplos | petición | respuesta, a todo el ancho */
.pg { display: grid; grid-template-columns: 290px minmax(0, 1.05fr) minmax(0, 1fr); gap: 18px; align-items: start; padding: 10px var(--docs-gutter) 56px; }
.pg-side, .pg-request, .pg-response { min-width: 0; background: var(--papel); border: 1px solid var(--linea); border-radius: 16px; }
.pg-side { position: sticky; top: calc(var(--docs-bar-height) + 14px); display: flex; flex-direction: column; max-height: calc(100vh - var(--docs-bar-height) - 28px); }
.pg-side-head { position: relative; padding: 12px; border-bottom: 1px solid var(--linea); }
.pg-side-head .docs-search-icon { left: 24px; }
.pg-side-head input { width: 100%; min-height: 40px; padding: 8px 12px 8px 38px; font: inherit; font-size: .92rem; color: var(--tinta); background: var(--niebla); border: 1px solid var(--linea); border-radius: 10px; }
.pg-list { overflow-y: auto; padding: 6px 8px 12px; scrollbar-width: thin; }
.pg-list details { margin: 2px 0; }
.pg-list summary { display: flex; align-items: center; justify-content: space-between; padding: 7px 8px; font-size: .9rem; font-weight: 800; color: var(--tinta); border-radius: 8px; cursor: pointer; list-style: none; }
.pg-list summary::-webkit-details-marker { display: none; }
.pg-list summary:hover { background: var(--niebla); }
.pg-list summary .count { font-size: .8rem; font-weight: 600; color: var(--suave); }
.pg-list ul { list-style: none; margin: 0; padding: 0 0 4px; }
.pg-list button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 8px 6px 10px; font: inherit; font-size: .88rem; text-align: left; color: var(--texto); background: none; border: 0; border-radius: 8px; cursor: pointer; }
.pg-list button:hover { background: var(--niebla); color: var(--tinta); }
.pg-list button[aria-current="true"] { background: #e6edff; color: var(--azul-fuerte); font-weight: 700; }
.pg-list button .method { flex: none; min-width: 40px; text-align: center; font-size: .62rem; }
.pg-list .pg-empty, .pg-loading { padding: 12px; font-size: .9rem; color: var(--suave); }
.pg-list mark { background: #fff1b8; color: inherit; }
.pg-request, .pg-response { padding: 18px; }
.pg-current-title { margin: 0 0 4px; font-size: 1.08rem; font-weight: 800; color: var(--tinta); }
.pg-current-desc { margin: 0 0 14px; font-size: .92rem; color: var(--suave); }
.pg-form { display: grid; gap: 14px; }
.pg-url-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: stretch; }
.pg-url-row .pg-base { grid-column: 1 / -1; order: -1; }
.pg-form input, .pg-form select, .pg-form textarea { min-width: 0; min-height: 42px; padding: 9px 11px; font: inherit; font-size: .92rem; color: var(--tinta); background: var(--papel); border: 1.5px solid #8a93b8; border-radius: 10px; }
.pg-method, .pg-base, .pg-path, .pg-token-inputs input, #pg-idem, #pg-extra { font-family: var(--code-font); font-size: .86rem; }
.pg-method { font-weight: 700; }
.pg-form .field-help { margin: -6px 0 0; }
.pg-token-row .field label { font-size: .92rem; }
.pg-token-inputs { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; }
.pg-headers { display: grid; gap: 10px; margin: 0; padding: 10px 14px 12px; border: 1px solid var(--linea); border-radius: 12px; }
.pg-headers legend { padding: 0 6px; font-size: .92rem; font-weight: 700; color: var(--tinta); }
.pg-header-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.pg-header-row label { font-size: .9rem; font-weight: 700; color: var(--tinta); }
.pg-header-row label .field-help { display: block; font-weight: 400; }
.pg-header-row textarea { grid-column: 2 / -1; resize: vertical; }
.pg-body-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.pg-body-head label { font-size: .92rem; font-weight: 700; color: var(--tinta); }
.pg-body-tools { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pg-json-state { font-size: .82rem; font-weight: 700; }
.pg-json-state.is-ok { color: var(--ok); }
.pg-json-state.is-error { color: var(--bad); }
.pg-editor { display: grid; grid-template-columns: auto minmax(0, 1fr); overflow: hidden; background: var(--code-bg); border: 1px solid var(--code-edge); border-radius: 12px; }
.pg-gutter { margin: 0; padding: 12px 8px 12px 14px; overflow: hidden; font-family: var(--code-font); font-size: 13px; line-height: 1.65; text-align: right; color: var(--code-gutter); background: var(--code-bar); border-right: 1px solid var(--code-edge); user-select: none; }
.pg-form .pg-textarea { min-height: 260px; padding: 12px 14px; font-family: var(--code-font); font-size: 13px; line-height: 1.65; color: var(--code-text); background: transparent; border: 0; border-radius: 0; white-space: pre; overflow: auto; resize: vertical; tab-size: 2; }
.pg-form .pg-textarea:focus-visible { outline-offset: -3px; }
.pg-tabs .tablist { display: flex; flex-wrap: wrap; gap: 2px; margin-bottom: 14px; border-bottom: 1px solid var(--linea); }
.pg-tabs .tab { padding: 10px 14px; font: inherit; font-size: .92rem; font-weight: 700; color: var(--suave); background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; }
.pg-tabs .tab:hover { color: var(--tinta); }
.pg-tabs .tab[aria-selected="true"] { color: var(--azul-fuerte); border-bottom-color: var(--azul); }
.pg-status-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 4px 0 12px; }
.pg-time { font-family: var(--code-font); font-size: .85rem; color: var(--suave); }
.pg-links { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.pg-resp-headers { margin-bottom: 12px; border: 1px solid var(--linea); border-radius: 12px; }
.pg-resp-headers > summary { padding: 8px 12px; font-size: .9rem; font-weight: 700; cursor: pointer; }
.pg-headers-table td { padding: 6px 12px; font-family: var(--code-font); font-size: .8rem; overflow-wrap: anywhere; }
.pg-headers-table td:first-child { white-space: nowrap; color: var(--suave); }
.pg-headers-table tr.is-highlight td { font-weight: 700; color: var(--azul-fuerte); }
.pg-resp-body-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; font-size: .92rem; font-weight: 700; }
.pg-resp-body-head > span:last-child { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.pg-json { min-height: 80px; max-height: 70vh; overflow: auto; padding: 12px 16px; font-family: var(--code-font); font-size: 13px; line-height: 1.65; color: var(--code-text); background: var(--code-bg); border: 1px solid var(--code-edge); border-radius: 12px; }
.pg-json:empty::before { content: "La respuesta aparecerá aquí."; font-family: var(--letra); color: var(--suave); }
.pg-json details { margin: 0; }
.pg-json details > summary { display: inline; cursor: pointer; list-style: none; }
.pg-json details > summary::-webkit-details-marker { display: none; }
.pg-json details > summary::before { content: "▸"; display: inline-block; width: 1em; color: var(--code-gutter); }
.pg-json details[open] > summary::before { content: "▾"; }
.pg-json details > summary .fold-hint { display: none; color: var(--code-gutter); }
.pg-json details:not([open]) > summary .fold-hint { display: inline; }
.pg-json .json-children { padding-left: 1.4em; }
.pg-json .json-row { white-space: pre-wrap; overflow-wrap: anywhere; }
.pg-json .k { color: #0451a5; }
.pg-json .s { color: #a31515; }
.pg-json .n { color: #098658; }
.pg-json .w { color: #0000ff; }
.pg-json .p { color: var(--code-text); }
.pg-json a { color: #a31515; }
.pg-pdf iframe { width: 100%; height: 70vh; margin-top: 12px; background: #fff; border: 1px solid var(--linea); border-radius: 12px; }
.pg-code-langs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
.pg-lang { padding: 6px 12px; font: inherit; font-size: .88rem; font-weight: 700; color: var(--suave); background: transparent; border: 1px solid var(--linea); border-radius: 999px; cursor: pointer; }
.pg-lang.is-active, .pg-lang[aria-pressed="true"] { color: var(--azul-fuerte); background: #e6edff; border-color: transparent; }
.pg-response .code-window { margin: 0; }
.pg-history { list-style: none; display: grid; gap: 6px; margin: 0; padding: 0; }
.pg-history button { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; gap: 10px; align-items: center; width: 100%; padding: 8px 10px; font: inherit; font-size: .86rem; text-align: left; color: var(--texto); background: var(--papel); border: 1px solid var(--linea); border-radius: 10px; cursor: pointer; }
.pg-history button:hover { border-color: var(--azul); }
.pg-history .hist-url { overflow: hidden; font-family: var(--code-font); font-size: .8rem; color: var(--suave); text-overflow: ellipsis; white-space: nowrap; }
.pg-history .hist-time { font-size: .78rem; color: var(--suave); white-space: nowrap; }

/* 10. Responsive */
@media (max-width: 1500px) {
    .pg-token-inputs { grid-template-columns: auto auto minmax(0, 1fr); }
    .pg-token-inputs input { grid-column: 1 / -1; }
}
@media (max-width: 1280px) {
    .pair, .example { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .pair-text, .example-text { position: static; }
    .pg { grid-template-columns: 270px minmax(0, 1fr); }
    .pg-response { grid-column: 1 / -1; }
    .docs-bar .api-bar-nav a { padding: 0 9px; }
}
@media (max-width: 1020px) {
    :root { --docs-bar-height: 56px; }
    .docs-shell { grid-template-columns: minmax(0, 1fr); }
    .docs-sidebar { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--linea); }
    .docs-js .docs-sidebar { position: fixed; top: 0; bottom: 0; left: 0; z-index: 70; width: min(330px, 88vw); height: auto; border-right: 1px solid var(--linea); box-shadow: var(--sombra-alta); transform: translateX(-104%); visibility: hidden; transition: transform .25s ease, visibility .25s; }
    .docs-js .docs-sidebar.is-open { transform: none; visibility: visible; }
    .docs-menu-btn { display: inline-flex; }
    .docs-article > .docs-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .docs-bar .api-bar-nav { display: none; }
    .docs-search { flex: 1 1 auto; margin-left: 0; }
    .pg { grid-template-columns: minmax(0, 1fr); }
    .pg-side { position: static; max-height: none; }
    .pg-list { max-height: 50vh; }
}
@media (max-width: 760px) {
    .docs-bar { position: sticky; }
    .docs-bar-row { gap: 10px; padding: 0 12px; }
    .docs-bar .api-bar-cta, .docs-search-key { display: none; }
    .docs-main { padding-top: 18px; }
    .docs-pager { grid-template-columns: minmax(0, 1fr); }
    .pager-next { grid-column: auto; }
    .pg-url-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .pg-url-row .pg-path { grid-column: 1 / 2; }
    .pg-header-row { grid-template-columns: minmax(0, 1fr); }
    .pg-header-row textarea { grid-column: auto; }
    .pg-header-row .boton { justify-self: start; }
    .pg-token-inputs { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
    .docs-article > .docs-cards { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
    .docs-bar .api-bar-brand { display: none; }
    .pg-url-row { grid-template-columns: minmax(0, 1fr); }
    .pg-url-row .pg-path { grid-column: auto; }
}
