/* ==========================================================================
   Buyesia Pay — Referencia de la API (developers)
   Estilos de la documentación pública servida en /developers.
   ========================================================================== */

body.docs-screen {
    --b-surface: var(--bp-surface);
    --b-surface-2: var(--bp-surface-2);
    --b-ink: var(--bp-ink);
    --b-ink-2: var(--bp-ink-2);
    --b-muted: var(--bp-muted);
    --b-line: var(--bp-line);
    --b-line-2: var(--bp-line-2);
    --b-brand: var(--bp-brand);
    --b-brand-2: var(--bp-brand-2);
    --b-brand-soft: var(--bp-brand-soft);
    --b-accent: var(--bp-accent);
    --b-ok: var(--bp-ok);
    --b-ok-soft: var(--bp-ok-soft);
    --b-danger: #DC2626;
    --b-radius-lg: var(--bp-radius-lg);
    --b-radius-pill: var(--bp-pill);
    --b-shadow-1: var(--bp-shadow-1);
    --b-shadow-2: var(--bp-shadow-2);
    --b-ease: var(--bp-ease);
}

body.docs-screen .main { padding-bottom: 72px; }

body.docs-screen .docs-page-container {
    max-width: none;
    width: 100%;
    padding-left: clamp(16px, 3vw, 44px);
    padding-right: clamp(16px, 3vw, 44px);
}

.docs-shell { display: flex; flex-direction: column; gap: 28px; }

.docs-hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--b-radius-lg);
    padding: 40px;
    background: linear-gradient(150deg, #0B1526, #16233B 55%, #0B1526);
    color: #fff;
}
.docs-hero::after {
    content: "";
    position: absolute;
    width: 340px;
    height: 340px;
    right: -130px;
    top: -170px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 196, 0, .32), transparent 65%);
}
.docs-hero .docs-kicker { color: var(--b-accent); }
.docs-hero h1 { font-size: clamp(28px, 3.6vw, 40px); color: #fff; margin: 8px 0 12px; letter-spacing: -.02em; }
.docs-lead { color: rgba(255, 255, 255, .74); font-size: 16px; max-width: 720px; margin: 0; }
.docs-meta { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 24px; position: relative; z-index: 1; }
.docs-meta-item { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: rgba(255, 255, 255, .6); }
.docs-meta-item b { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.docs-meta-item code { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 12.5px; color: #fff; }
.docs-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; position: relative; z-index: 1; }
.docs-chip { font-size: 11.5px; font-weight: 700; letter-spacing: .04em; padding: 4px 11px; border-radius: var(--b-radius-pill); background: rgba(255, 255, 255, .1); color: #fff; }
.docs-chip.is-network { background: rgba(255, 196, 0, .16); color: var(--b-accent); }

.docs-layout { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 36px; align-items: start; min-width: 0; }

.docs-console-rail {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}
.docs-console-rail .docs-console { margin-bottom: 0; }
.docs-console-tester {
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--b-line);
    border-radius: 16px;
    background: var(--b-surface);
}
.docs-console-tester-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.docs-console-tester select {
    width: 100%;
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid var(--b-line);
    border-radius: 10px;
    background: var(--b-surface);
    color: var(--b-ink);
    font: inherit;
    font-size: 12.5px;
}
.docs-console-tester select:focus { outline: none; border-color: var(--b-brand); box-shadow: 0 0 0 4px var(--b-brand-soft); }
.docs-console-try .docs-try { margin-top: 0; padding: 0; border: 0; background: transparent; }
.docs-console-try .docs-try-head > span:first-child { display: none; }

@media (min-width: 1280px) {
    .docs-layout { grid-template-columns: 240px minmax(0, 1fr) 340px; }
    .docs-console-rail {
        grid-column: auto;
        position: sticky;
        top: 124px;
        max-height: calc(100vh - 150px);
        overflow-y: auto;
        padding-right: 2px;
        overscroll-behavior: contain;
        scrollbar-width: none;
        -ms-overflow-style: none;
        transition: top .28s var(--b-ease);
    }
    .docs-console-rail::-webkit-scrollbar { display: none; width: 0; height: 0; }
    .docs-console-rail .docs-console {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
        gap: 12px 14px;
    }
    .docs-console-rail .docs-console-item:nth-child(3),
    .docs-console-rail .docs-console-actions,
    .docs-console-rail .docs-console-form,
    .docs-console-rail .docs-console-hint,
    .docs-console-rail .docs-console-log { grid-column: 1 / -1; }
    .docs-console-rail .docs-console-actions { margin-left: 0; justify-content: flex-start; }
    body.docs-header-hidden .docs-console-rail { top: 24px; }
}

.docs-sidebar {
    position: sticky;
    top: 124px;
    transition: top .28s var(--b-ease);
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: calc(100vh - 150px);
    padding: 10px;
    border: 1px solid var(--b-line);
    border-radius: 18px;
    background: var(--b-surface);
    box-shadow: var(--b-shadow-1);
    overflow: hidden;
    min-width: 0;
}
.docs-sidebar__head {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 2px;
}
.docs-sidebar__scroll {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 2px 4px 2px 2px;
    overscroll-behavior: contain;
    min-width: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.docs-sidebar__scroll::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}
.docs-nav-group.is-hidden { display: none; }
.docs-nav-heading { font-size: 11px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--b-muted); margin-bottom: 10px; }
.docs-nav { display: flex; flex-direction: column; gap: 2px; }
.docs-nav-link { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; color: var(--b-ink-2); font-size: 13.5px; font-weight: 550; transition: background-color .18s var(--b-ease), color .18s var(--b-ease); }
.docs-nav-link:hover { background: var(--b-surface-2); color: var(--b-ink); }
.docs-nav-link.is-active { background: var(--b-brand-soft); color: var(--b-brand); font-weight: 700; }
.docs-nav-link.is-hidden { display: none; }
.docs-nav-link .docs-method { padding: 3px 7px; font-size: 9.5px; }
.docs-sidebar-foot { flex: none; padding-top: 10px; border-top: 1px solid var(--b-line); }
.docs-sidebar-cta { display: block; text-align: center; padding: 12px; border-radius: 12px; background: var(--b-brand); color: #fff; font-weight: 650; font-size: 13.5px; }
.docs-sidebar-cta:hover { background: var(--b-brand-2); color: #fff; }

.docs-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.docs-crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--b-muted); }
.docs-crumbs a { color: var(--b-muted); }
.docs-crumbs a:hover { color: var(--b-ink); }
.docs-search { display: flex; align-items: center; gap: 10px; min-width: 270px; height: 42px; padding: 0 14px; border-radius: var(--b-radius-pill); border: 1px solid var(--b-line); background: var(--b-surface); }
.docs-search svg { width: 17px; height: 17px; color: var(--b-muted); flex: none; }
.docs-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 14px; color: var(--b-ink); }

.docs-main { min-width: 0; }
.docs-section { padding: 6px 0 48px; scroll-margin-top: 126px; }
.docs-section + .docs-section { border-top: 1px solid var(--b-line); padding-top: 48px; }
.docs-kicker { display: inline-block; font-size: 11px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--b-brand); margin-bottom: 10px; }
.docs-section-head h2 { font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 12px; }
.docs-section-head p { color: var(--b-muted); font-size: 15px; max-width: 720px; }
.docs-muted { color: var(--b-muted); font-size: 14px; }

.docs-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin: 22px 0; }
.docs-card { position: relative; background: var(--b-surface); border: 1px solid var(--b-line); border-radius: 16px; padding: 22px; box-shadow: var(--b-shadow-1); }
.docs-card h3 { font-size: 15.5px; margin-bottom: 8px; }
.docs-card p { color: var(--b-muted); font-size: 13.5px; margin-bottom: 12px; }
.docs-card code { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 12px; color: var(--b-ink-2); }
.docs-card-step { position: absolute; top: -12px; left: 22px; width: 26px; height: 26px; border-radius: 50%; background: var(--b-accent); color: #0B1526; display: grid; place-items: center; font-size: 12px; font-weight: 800; box-shadow: 0 8px 18px rgba(255, 196, 0, .35); }

.docs-steps { list-style: none; margin: 20px 0; padding: 0; counter-reset: docs-step; display: grid; gap: 12px; }
.docs-steps li { position: relative; padding: 14px 18px 14px 54px; background: var(--b-surface); border: 1px solid var(--b-line); border-radius: 14px; }
.docs-steps li::before { counter-increment: docs-step; content: counter(docs-step); position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; background: var(--b-brand-soft); color: var(--b-brand); display: grid; place-items: center; font-size: 12.5px; font-weight: 800; }
.docs-steps b { display: block; font-size: 14px; }
.docs-steps span { color: var(--b-muted); font-size: 13.5px; }

.docs-note { display: flex; flex-direction: column; gap: 3px; border-radius: 14px; padding: 14px 16px; margin-top: 16px; font-size: 13.5px; border: 1px solid transparent; }
.docs-note b { font-size: 13px; }
.docs-note.is-info { background: rgba(108, 75, 244, .08); border-color: rgba(108, 75, 244, .22); color: #4C31C4; }

.docs-endpoint-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 26px; margin-top: 22px; align-items: start; }
.docs-endpoint-info { min-width: 0; }
.docs-endpoint-code { min-width: 0; position: sticky; top: 124px; }

.docs-endpoint-bar { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--b-surface-2); border: 1px solid var(--b-line); margin-bottom: 16px; }
.docs-endpoint-bar code { flex: 1; min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 12.5px; color: var(--b-ink-2); overflow-x: auto; white-space: nowrap; }

.docs-method { display: inline-flex; align-items: center; justify-content: center; flex: none; font-size: 10.5px; font-weight: 800; letter-spacing: .05em; padding: 4px 9px; border-radius: 7px; }
.docs-method.is-post { background: rgba(14, 159, 110, .14); color: #0E9F6E; }
.docs-method.is-get { background: rgba(59, 130, 246, .14); color: #2563EB; }

.docs-copy { flex: none; border: 1px solid var(--b-line); background: var(--b-surface); color: var(--b-ink-2); border-radius: 8px; padding: 6px 11px; font: inherit; font-size: 12px; font-weight: 650; cursor: pointer; transition: border-color .18s var(--b-ease), color .18s var(--b-ease), background-color .18s var(--b-ease); }
.docs-copy:hover { border-color: var(--b-line-2); color: var(--b-ink); }
.docs-copy.is-copied { background: var(--b-ok-soft); border-color: transparent; color: var(--b-ok); }
.docs-copy-sm { padding: 5px 9px; font-size: 11px; }

.docs-table { overflow-x: auto; border: 1px solid var(--b-line); border-radius: 14px; background: var(--b-surface); margin: 16px 0; }
.docs-table table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.docs-table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--b-muted); padding: 11px 14px; border-bottom: 1px solid var(--b-line); white-space: nowrap; }
.docs-table td { padding: 12px 14px; border-bottom: 1px solid var(--b-line); vertical-align: top; }
.docs-table tr:last-child td { border-bottom: 0; }
.docs-table code { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 12.5px; color: var(--b-ink); }

.docs-flag { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: var(--b-radius-pill); }
.docs-flag.is-required { background: var(--b-brand-soft); color: var(--b-brand); }
.docs-flag.is-optional { background: var(--b-surface-2); color: var(--b-muted); }

.docs-code { border: 1px solid rgba(255, 255, 255, .1); border-radius: 16px; overflow: hidden; background: #0A0F1C; box-shadow: var(--b-shadow-2); }
.docs-code-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-bottom: 1px solid rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .03); }
.docs-tabs { display: flex; gap: 4px; }
.docs-tab { border: 0; background: transparent; color: rgba(255, 255, 255, .5); font: inherit; font-size: 12px; font-weight: 650; padding: 6px 11px; border-radius: 8px; cursor: pointer; transition: color .18s var(--b-ease), background-color .18s var(--b-ease); }
.docs-tab:hover { color: #fff; }
.docs-tab.is-active { background: rgba(255, 255, 255, .1); color: #fff; }
.docs-code .docs-copy { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .75); }
.docs-code .docs-copy:hover { color: #fff; }
.docs-code .docs-copy.is-copied { background: rgba(52, 211, 153, .16); color: #34D399; }
.docs-code-body { position: relative; }
.docs-pre { display: none; margin: 0; padding: 16px 18px; max-height: 420px; overflow: auto; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 12.5px; line-height: 1.75; color: #C7D2E4; white-space: pre; }
.docs-pre.is-active { display: block; }
.docs-response { border-top: 1px solid rgba(255, 255, 255, .08); }
.docs-response-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; }
.docs-response-title { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.docs-status { font-size: 11px; font-weight: 750; padding: 3px 9px; border-radius: var(--b-radius-pill); background: rgba(52, 211, 153, .16); color: #34D399; }
.docs-status.is-pending { background: var(--b-surface-2); color: var(--b-muted); }
.docs-status.is-error { background: rgba(220, 38, 38, .14); color: #F87171; }
.docs-response-head .docs-copy { margin-left: auto; }

.docs-code-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; margin-top: 20px; }
.docs-limits { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-top: 20px; }
.docs-limit { background: var(--b-surface-2); border: 1px solid var(--b-line); border-radius: 14px; padding: 16px; }
.docs-limit b { display: block; font-size: 13px; margin-bottom: 4px; }
.docs-limit span { color: var(--b-muted); font-size: 13px; }

.docs-try { margin-top: 18px; border: 1px solid var(--b-line); border-radius: 14px; padding: 16px; background: var(--b-surface); }
.docs-try-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.docs-try-head > span:first-child { font-size: 12px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--b-muted); }
.docs-try-badge { font-size: 10.5px; font-weight: 700; padding: 3px 8px; border-radius: var(--b-radius-pill); background: var(--b-brand-soft); color: var(--b-brand); }
.docs-try-path { margin-left: auto; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 11.5px; color: var(--b-muted); }
.docs-try-note { font-size: 12.5px; color: var(--b-muted); margin-bottom: 14px; }
.docs-try-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.docs-try-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.docs-try-label { font-size: 10.5px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--b-muted); }
.docs-try-label i { font-style: normal; color: var(--b-danger); }
.docs-try-field input,
.docs-try-field select { min-height: 42px; padding: 8px 12px; border: 1px solid var(--b-line); border-radius: 10px; font: inherit; font-size: 14px; background: var(--b-surface); color: var(--b-ink); outline: none; }
.docs-try-field input:focus,
.docs-try-field select:focus { border-color: var(--b-brand); box-shadow: 0 0 0 4px var(--b-brand-soft); }
.docs-try-actions { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.docs-try-result { margin-top: 14px; border-radius: 12px; overflow: hidden; background: #0A0F1C; border: 1px solid rgba(255, 255, 255, .1); }
.docs-try-result.is-ok { border-color: rgba(52, 211, 153, .38); }
.docs-try-result.is-error { border-color: rgba(248, 113, 113, .38); }
.docs-try-result-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.docs-try-result-head .docs-copy { margin-left: auto; background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .75); }
.docs-try-result-head .docs-copy:hover { color: #fff; }
.docs-try-result-head .docs-copy.is-copied { background: rgba(52, 211, 153, .16); color: #34D399; }
.docs-try-result-head .docs-flag.is-mode { background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .75); text-transform: lowercase; }
.docs-try-result-head .docs-flag.is-mode[data-mode="live"] { background: rgba(52, 211, 153, .16); color: #34D399; }
.docs-try-result-head .docs-flag.is-mode[data-mode="sandbox"] { background: rgba(255, 196, 0, .16); color: var(--b-accent); }
.docs-try-result-body { margin: 0; padding: 14px 16px; max-height: 300px; overflow: auto; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 12px; line-height: 1.7; color: #C7D2E4; white-space: pre-wrap; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1080px) {
    .docs-layout { grid-template-columns: 1fr; gap: 24px; }
    .docs-sidebar { position: static; max-height: none; overflow: visible; display: flex; flex-direction: column; gap: 0; padding: 12px; }
    .docs-sidebar__head { display: none; }
    .docs-sidebar__scroll { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 16px; overflow: visible; padding: 0; }
    .docs-sidebar-foot { padding-top: 12px; }
    .docs-endpoint-grid { grid-template-columns: 1fr; }
    .docs-endpoint-code { position: static; }
    .docs-code-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    body.docs-screen .docs-page-container { padding-left: 14px; padding-right: 14px; }
    body.docs-screen .main { padding-bottom: 48px; }
    .docs-hero { padding: 28px 22px; }
    .docs-meta { gap: 18px; }
    .docs-search { min-width: 0; width: 100%; }
    .docs-endpoint-bar { flex-wrap: wrap; }
}

/* ==========================================================================
   Toolbar, consola persistente y sidebar replegable
   ========================================================================== */

.docs-toolbar-left,
.docs-toolbar-right { display: flex; align-items: center; gap: 12px; min-width: 0; }
.docs-toolbar-right { flex-wrap: wrap; justify-content: flex-end; }

.docs-sidebar__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--b-surface-2);
    color: var(--b-ink-2);
    cursor: pointer;
    transition: background-color .15s var(--b-ease), color .15s var(--b-ease), transform .2s var(--b-ease);
}
.docs-sidebar__toggle:hover,
.docs-sidebar__toggle:focus-visible { background: var(--b-brand-soft); color: var(--b-brand); outline: none; }
.docs-sidebar__toggle:focus-visible { box-shadow: 0 0 0 2px var(--b-brand); }
.docs-sidebar__toggle svg { width: 17px; height: 17px; }

.docs-nav-heading { display: flex; align-items: center; gap: 7px; }
.docs-nav-heading i { font-size: 13px; color: var(--b-muted); }
.docs-nav-link i { flex: none; font-size: 14px; opacity: .85; }

.docs-console {
    position: static;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px 28px;
    padding: 14px 18px;
    margin-bottom: 24px;
    border: 1px solid var(--b-line);
    border-radius: 16px;
    background: var(--b-surface);
    box-shadow: none;
}
.docs-console-item { display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; min-width: 0; }
.docs-console-label { font-size: 10.5px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; color: var(--b-muted); }
.docs-console-item b { font-size: 13px; color: var(--b-ink); }
.docs-console-item b.is-sandbox { color: var(--b-accent); }
.docs-console-item b.is-live { color: var(--b-ok); }
.docs-console-item b.is-error { color: var(--b-danger); }
.docs-console-item code { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 12px; color: var(--b-ink-2); }
.docs-console-item small { color: var(--b-muted); font-size: 11.5px; }
.docs-console-actions { margin-left: auto; display: flex; gap: 8px; }
[data-docs-console-form][hidden] { display: none; }
.docs-console-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; width: 100%; border-top: 1px solid var(--b-line); padding-top: 12px; }
.docs-console-form input {
    flex: 1;
    min-width: 220px;
    min-height: 38px;
    padding: 6px 12px;
    border: 1px solid var(--b-line);
    border-radius: 10px;
    background: var(--b-surface);
    color: var(--b-ink);
    font: inherit;
    font-size: 13px;
}
.docs-console-form input:focus { outline: none; border-color: var(--b-brand); box-shadow: 0 0 0 4px var(--b-brand-soft); }
.docs-console-error { color: var(--b-danger); font-size: 12.5px; display: none; }
.docs-console-error.is-visible { display: inline; }
.docs-console-log { flex-basis: 100%; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.docs-console-log:empty { display: none; }
.docs-console-log-item { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 11.5px; color: var(--b-muted); }
.docs-console-log-item.is-error { color: var(--b-danger); }
.docs-console-hint { flex-basis: 100%; margin: 0; font-size: 11.5px; color: var(--b-muted); }

.docs-try-token-note {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--b-brand-soft);
    color: var(--b-brand);
    font-size: 12.5px;
    font-weight: 600;
}

.docs-error-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.docs-error-example { min-width: 0; }
.docs-error-example-head { display: flex; align-items: center; gap: 10px; margin: 8px 0; font-size: 13.5px; }

@media (max-width: 1080px) {
    .docs-console { position: static; }
    .docs-console-actions { margin-left: 0; }
}

@media (max-width: 720px) {
    .docs-toolbar-left, .docs-toolbar-right { width: 100%; }
    .docs-toolbar-right { justify-content: flex-start; }
    .docs-console { padding: 12px 14px; gap: 12px 18px; }
    .docs-console-form input { min-width: 0; }
}

@media (min-width: 1440px) {
    .docs-endpoint-grid { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 34px; }
    .docs-endpoint-code { top: 150px; }
}

@media (min-width: 1081px) {
    .docs-layout.is-sidebar-collapsed { grid-template-columns: 4.75rem minmax(0, 1fr); gap: 22px; }
    .docs-layout.is-sidebar-collapsed .docs-sidebar { padding: 8px; }
    .docs-layout.is-sidebar-collapsed .docs-sidebar__head { justify-content: center; }
    .docs-layout.is-sidebar-collapsed .docs-sidebar__scroll { padding: 0; gap: 14px; }
    .docs-layout.is-sidebar-collapsed .docs-nav-heading { justify-content: center; margin-bottom: 4px; }
    .docs-layout.is-sidebar-collapsed .docs-nav-heading span { display: none; }
    .docs-layout.is-sidebar-collapsed .docs-nav-heading i { font-size: 15px; }
    .docs-layout.is-sidebar-collapsed .docs-nav-link { justify-content: center; gap: 0; padding: .55rem; }
    .docs-layout.is-sidebar-collapsed .docs-nav-link i { font-size: 1.1rem; }
    .docs-layout.is-sidebar-collapsed .docs-nav-label,
    .docs-layout.is-sidebar-collapsed .docs-method { display: none; }
    .docs-layout.is-sidebar-collapsed .docs-sidebar-foot { display: none; }
    .docs-layout.is-sidebar-collapsed .docs-sidebar__toggle {
        width: 100%;
        height: 2.5rem;
        border: 1px solid var(--b-line);
        border-radius: 10px;
        transform: rotate(180deg);
    }
}

@media (max-width: 1080px) {
    .docs-sidebar__toggle { display: none; }
}

/* Header que se oculta al desplazarse hacia abajo */
.site-header { transition: padding .3s var(--b-ease), transform .3s var(--b-ease); }
.site-header.is-header-hidden { transform: translateY(-110%); }
body.docs-header-hidden .docs-sidebar { top: 24px; }

.docs-try .btn-primary { background: var(--b-brand); border-color: var(--b-brand); }
.docs-try .btn-primary:hover,
.docs-try .btn-primary:focus { background: var(--b-brand-2); border-color: var(--b-brand-2); }
