:root { color-scheme: dark; }
* { box-sizing: border-box; }
body {
  margin: 0; background: #0B0B0F; color: #F4F4F7;
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, system-ui, sans-serif;
}
.wrap { max-width: 720px; margin: 0 auto; padding: 64px 24px 96px; }
a { color: #9A8CFF; }
h1 { font-size: 40px; line-height: 1.15; letter-spacing: -1px; margin: 0 0 8px; }
h2 { font-size: 22px; margin: 48px 0 12px; letter-spacing: -0.3px; }
h3 { font-size: 16px; margin: 28px 0 8px; color: #F4F4F7; }
p, li { color: #C9C9D6; }
li { margin: 6px 0; }
.lead { font-size: 19px; color: #C9C9D6; margin: 0 0 8px; }
.mark { display: block; width: 44px; height: 44px; border: 5px solid #7C6CF0; border-radius: 50%; position: relative; margin-bottom: 24px; }
.mark::after { content: ""; position: absolute; inset: 7px; background: #7C6CF0; border-radius: 50%; }
pre {
  background: #15151D; border: 1px solid #2A2A38; border-radius: 12px;
  padding: 18px; overflow-x: auto; font-size: 13px; line-height: 1.55;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: #E7E7F0;
}
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; color: #9A8CFF; }
pre code { color: inherit; }
table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; display: block; overflow-x: auto; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #2A2A38; vertical-align: top; }
th { color: #9A9AAD; font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 700; }
.note { border-left: 3px solid #7C6CF0; padding: 4px 0 4px 16px; margin: 24px 0; color: #C9C9D6; }
footer { margin-top: 80px; padding-top: 24px; border-top: 1px solid #2A2A38; color: #65657A; font-size: 14px; }
footer a { color: #9A9AAD; margin-right: 18px; }
.date { color: #65657A; font-size: 14px; }
.qr { background: #fff; border-radius: 16px; padding: 14px; width: min(100%, 320px); margin: 24px 0; }
.qr svg { display: block; width: 100%; height: auto; }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 34px; font-weight: 700; letter-spacing: 3px; color: #F4F4F7; margin: 4px 0 20px; }
.boton { display: inline-block; background: #7C6CF0; color: #fff; padding: 14px 26px; border-radius: 12px; font-weight: 700; text-decoration: none; }

/* --- /empresas: la guía para empresas (índice lateral, ejemplos con pestañas) --- */
.docs-page .wrap { max-width: 1120px; }
.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; align-items: start; }
.docs .doc { min-width: 0; max-width: 760px; }
.toc { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.toc a { color: #9A9AAD; text-decoration: none; padding: 7px 12px; border-left: 2px solid #2A2A38; }
.toc a:hover { color: #F4F4F7; }
.toc a.on { color: #F4F4F7; border-left-color: #7C6CF0; }
h2[id], h3[id] { scroll-margin-top: 24px; }
.doc h2 { margin-top: 56px; padding-top: 8px; }
.doc table.ref td:first-child { white-space: nowrap; }
.bloque { position: relative; }
.bloque pre { margin: 12px 0; padding-right: 76px; }
.copiar {
  position: absolute; top: 20px; right: 10px; background: #22222E; color: #C9C9D6;
  border: 1px solid #34344A; border-radius: 8px; padding: 4px 10px; font: inherit; font-size: 12px; cursor: pointer;
}
.copiar:hover { background: #2C2C3C; color: #fff; }
.copiar.ok { background: #7C6CF0; border-color: #7C6CF0; color: #fff; }
.ej { margin: 16px 0; }
.ej.js .bloque pre { margin-top: 0; border-top-left-radius: 0; }
.tabs { display: flex; gap: 4px; }
.tabs button {
  background: #15151D; color: #9A9AAD; border: 1px solid #2A2A38; border-bottom: 0;
  border-radius: 10px 10px 0 0; padding: 7px 16px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
.tabs button.on { background: #7C6CF0; border-color: #7C6CF0; color: #fff; }
.ej:not(.js) pre { margin: 12px 0; }
@media (max-width: 860px) {
  .docs-page .wrap { padding: 28px 16px 72px; }
  .docs { display: block; }
  .toc {
    position: sticky; top: 0; z-index: 5; flex-direction: row; overflow-x: auto; gap: 6px;
    margin: 0 -16px 24px; padding: 10px 16px; background: #0B0B0F; border-bottom: 1px solid #2A2A38;
    -webkit-overflow-scrolling: touch;
  }
  .toc a { white-space: nowrap; border: 1px solid #2A2A38; border-radius: 999px; padding: 6px 12px; }
  .toc a.on { border-color: #7C6CF0; }
  h1 { font-size: 32px; }
  .doc h2 { margin-top: 44px; }
  .bloque pre { padding: 44px 16px 16px; font-size: 12.5px; }
  .copiar { top: 20px; right: 8px; }
  h2[id], h3[id] { scroll-margin-top: 64px; }
}
