/* Documentación REST integrada: estilos limitados al manual, sin alterar la web común. */
/* Redoc sincroniza el índice durante el scroll; la animación global deshace su selección. */
html:has(.rest-docs-reference-shell){scroll-behavior:auto}
.rest-docs-intro{padding-block:24px 0;font-size:.9rem}.rest-docs-intro a{color:var(--primary-strong,#0c4fd8)}
.rest-api-docs{--docs-border:#dce5ef;--docs-ink:#172b45;--docs-muted:#526278;--docs-blue:#0c4fd8;color:var(--docs-ink);max-width:1440px;margin:auto;padding:22px 24px 60px;line-height:1.65;min-width:0}
.rest-api-docs a{color:var(--docs-blue)}.rest-docs-main code{font-family:Consolas,"Liberation Mono",monospace}
.rest-docs-tabs{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:24px}.rest-docs-tabs a{padding:9px 17px;border:1px solid var(--docs-border);border-radius:24px;text-decoration:none;font-weight:650;background:#fff}.rest-docs-tabs a[aria-current=page]{color:#fff;background:var(--docs-blue);border-color:var(--docs-blue)}
.rest-docs-layout{display:grid;grid-template-columns:210px minmax(0,1fr);gap:30px}.rest-docs-layout aside{position:sticky;top:145px;align-self:start;max-height:calc(100vh - 160px);overflow:auto;padding:12px 0}.rest-docs-layout aside strong{font-size:.8rem;text-transform:uppercase;letter-spacing:.05em;color:var(--docs-muted)}.rest-docs-layout aside nav{display:flex;flex-direction:column;gap:8px;margin-top:12px}.rest-docs-layout aside a{border-left:2px solid var(--docs-border);padding:4px 0 4px 12px;text-decoration:none;font-size:.84rem}.rest-docs-layout aside a:hover{border-color:var(--docs-blue)}.rest-docs-main{min-width:0}
.rest-api-docs .hero{padding:12px 4px 28px;min-height:0;display:block;background:none}.rest-api-docs h1{font-size:clamp(1.75rem,3vw,2.6rem);line-height:1.2;margin:16px 0}.rest-api-docs .hero p{font-size:1.05rem;color:var(--docs-muted)}.rest-api-docs .badges{display:flex;gap:8px}.rest-api-docs .badges span{padding:2px 12px;border-radius:16px;background:#e4edff;color:var(--docs-blue);font-size:.78rem;font-weight:750}
.rest-api-docs .card{background:#fff;border:1px solid var(--docs-border);border-radius:16px;padding:25px 28px;margin:0 0 24px;box-shadow:0 4px 18px #172b4506;scroll-margin-top:145px;min-width:0}.rest-api-docs .card.important,.rest-api-docs .card.overview{border-top:4px solid var(--docs-blue)}.rest-api-docs .card h2{font-size:1.35rem;line-height:1.3;margin:0 0 14px}.rest-api-docs .card p{margin:0;color:#344b65;overflow-wrap:anywhere}
.rest-api-docs .section-heading{display:flex;align-items:start;justify-content:space-between;gap:18px}.rest-api-docs .section-heading p{max-width:680px}.rest-api-docs .detail-link{white-space:nowrap;font-size:.85rem;font-weight:650;text-decoration:none}.rest-api-docs .connection-summary{display:flex;flex-wrap:wrap;gap:10px;margin:20px 0;padding:14px 16px;border:1px solid var(--docs-border);border-radius:9px;background:#f4f7fd;font-size:.8rem;overflow-wrap:anywhere;min-width:0}
.rest-api-docs .table-scroll{overflow:auto;max-width:100%;overscroll-behavior-x:contain}.rest-docs-main table{border-collapse:collapse;width:100%;font-size:.85rem}.rest-docs-main caption{text-align:left;font-weight:750;padding:14px 0}.rest-docs-main th,.rest-docs-main td{text-align:left;vertical-align:top;border-bottom:1px solid var(--docs-border);padding:12px 10px}.rest-docs-main th{background:#edf2fc}.rest-docs-main td code{font-size:.76rem}
.rest-api-docs .endpoint-table{table-layout:fixed;font-size:.8rem}.rest-api-docs .endpoint-table thead{display:table;width:100%;table-layout:fixed}.rest-api-docs .endpoint-table thead th:first-child{width:72px}.rest-api-docs .endpoint-table thead th:nth-child(2){width:34%}.rest-api-docs .endpoint-table tbody{display:block;width:100%}.rest-api-docs .endpoint-table tbody tr{display:grid;grid-template-columns:72px 34% minmax(0,1fr) minmax(0,1fr);border-bottom:1px solid var(--docs-border);padding:14px 0}.rest-api-docs .endpoint-table tbody th{display:contents}.rest-api-docs .endpoint-table tbody td{border:0;padding:0 10px;grid-row:1}.rest-api-docs .endpoint-table tbody td:first-child{grid-column:1}.rest-api-docs .endpoint-table tbody td:nth-child(3){grid-column:3}.rest-api-docs .endpoint-table tbody td:nth-child(4){grid-column:4}.rest-api-docs .endpoint-path{grid-column:2;grid-row:1;padding:0 10px;font-size:.77rem;word-break:break-word}.rest-api-docs .endpoint-table tr.recommended{background:#f2f6ff;border-left:3px solid var(--docs-blue)}.rest-api-docs .row-detail{display:block;margin-top:5px;font-size:.75rem;text-decoration:none}
.rest-api-docs .method{display:inline-block;font:750 .67rem/1.4 system-ui,sans-serif;letter-spacing:.03em;border-radius:5px;padding:4px 7px}.rest-api-docs .method-get{color:#126449;background:#e4f3ec}.rest-api-docs .method-post{color:#0756ac;background:#e4edff}.rest-api-docs .inline-example{grid-column:2/-1;grid-row:2;margin:8px 10px 0;min-width:0}.rest-api-docs summary{cursor:pointer}.rest-api-docs summary:focus-visible{outline:3px solid #f6bb47;outline-offset:3px}.rest-api-docs .inline-example summary{font-size:.75rem;color:var(--docs-blue);font-weight:650}
.rest-docs-main pre{margin:0;background:#102d3b;color:#e5f6fb;border-radius:8px;overflow:auto;padding:17px;font-size:.8rem;line-height:1.6;max-width:100%;tab-size:2;white-space:pre}.rest-api-docs .inline-example pre{margin-top:10px;max-height:360px;font-size:.76rem}.rest-api-docs .code-example{margin-top:18px;border:1px solid var(--docs-border);border-radius:8px;overflow:hidden}.rest-api-docs .code-example summary{padding:12px 14px;background:#edf2fc;color:#33516f;font-size:.84rem;font-weight:650;overflow-wrap:anywhere}.rest-api-docs .code-example pre{border-radius:0}
.rest-api-docs .overview h3{font-size:.82rem;text-transform:uppercase;letter-spacing:.05em;color:var(--docs-muted);margin:20px 0 12px}.rest-api-docs .quick-flow{list-style:none;counter-reset:step;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 24px;padding:0}.rest-api-docs .quick-flow li{counter-increment:step;border:1px solid var(--docs-border);background:#f7f9fd;border-radius:9px;padding:14px;display:grid;grid-template-columns:24px minmax(0,1fr);gap:6px 8px;align-content:start}.rest-api-docs .quick-flow li:before{content:counter(step);background:var(--docs-blue);color:#fff;border-radius:50%;font-size:.75rem;width:23px;height:23px;display:grid;place-items:center}.rest-api-docs .quick-flow strong{font-size:.88rem;line-height:1.5}.rest-api-docs .quick-flow span{grid-column:2;font-size:.79rem;color:var(--docs-muted);line-height:1.6;overflow-wrap:anywhere}
.rest-api-docs .confirmation-note{margin-top:18px!important;padding:14px 16px;border-left:3px solid var(--docs-blue);background:#f0f5fd;font-size:.84rem}.rest-api-docs .compatibility-note{margin-top:16px;font-size:.82rem}.rest-api-docs .compatibility-note summary{color:var(--docs-muted);font-weight:650}.rest-api-docs .compatibility-note p{padding-top:8px}.rest-api-docs .downloads{display:flex;flex-wrap:wrap;gap:12px;margin-top:16px}.rest-api-docs .downloads a{display:inline-block;padding:9px 16px;border:1px solid #c3d7f6;border-radius:8px;font-weight:650;text-decoration:none;background:#f7faff}
.rest-docs-reference-intro{padding:12px 4px 25px;max-width:1000px}.rest-docs-reference-intro p{color:var(--docs-muted)}.rest-docs-endpoint-index{padding:12px 16px;border:1px solid var(--docs-border);border-radius:9px}.rest-docs-endpoint-index summary{font-weight:650}.rest-docs-endpoint-index code{font-size:.83rem;overflow-wrap:anywhere}.rest-docs-reference-shell{background:#fff;border:1px solid var(--docs-border);border-radius:12px;min-width:0;min-height:360px}.rest-api-docs-reference{max-width:1680px}
@media(max-width:1100px){.rest-docs-layout{grid-template-columns:180px minmax(0,1fr);gap:20px}.rest-api-docs .section-heading{flex-direction:column;gap:10px}.rest-api-docs .quick-flow{grid-template-columns:1fr}.rest-api-docs .quick-flow span{font-size:.82rem}}
@media(max-width:800px){.rest-api-docs{padding:18px 16px 36px}.rest-docs-layout{display:block}.rest-docs-layout aside{position:static;max-height:none;margin-bottom:22px}.rest-docs-layout aside nav{flex-direction:row;flex-wrap:wrap;gap:5px 12px}.rest-docs-layout aside a{border:0;padding:2px 0}.rest-api-docs .card{padding:22px 18px;scroll-margin-top:90px}.rest-api-docs .endpoint-table{min-width:650px}.rest-api-docs .connection-summary{font-size:.72rem}.rest-api-docs .card.overview{padding:22px 14px}.rest-docs-tabs a{font-size:.86rem}.rest-docs-reference-shell{border-radius:8px}}
