:root {
  color-scheme: dark;
  --ground: #020617;
  --panel: #0b1424;
  --line: rgba(255,255,255,.10);
  --line-soft: rgba(255,255,255,.055);
  --ink: #f1f5f9;
  --read: #cbd5e1;
  --note: #94a3b8;
  --dim: #7d8da4;
  --cyan: #22d3ee;
  --cyan-hi: #67e8f9;
  --cyan-deep: #0891b2;
  --amber: #fbbf24;
  --nav-h: 60px;
}
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('Assets/fonts/sora-latin.woff2?v=fc575ebf') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('Assets/fonts/sora-latin-ext.woff2?v=05dc9078') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--read);
  font-family: "Sora", ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(34,211,238,.26); color: #fff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.num, code { font-variant-numeric: tabular-nums; }

.bar {
  position: sticky; top: 0; z-index: 10;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-left: max(24px, env(safe-area-inset-left));
  padding-right: max(24px, env(safe-area-inset-right));
  background: rgba(2,6,23,.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.bar a.brand {
  display: flex; align-items: center; gap: 9px; text-decoration: none;
  color: var(--ink); font-weight: 600; font-size: .9375rem;
  min-height: 44px; padding-right: 4px;
}
.bar img { width: 26px; height: 26px; }
.bar .cta {
  font-size: .8125rem; font-weight: 500; text-decoration: none;
  background: #06b6d4; color: #020617;
  padding: 9px 16px; border-radius: 999px; white-space: nowrap;
  transition: background-color 160ms ease;
}
.bar .cta:hover { background: var(--cyan); }

.wrap {
  max-width: 760px; margin: 0 auto;
  padding-top: 40px;
  padding-bottom: max(100px, env(safe-area-inset-bottom));
  padding-left: max(24px, env(safe-area-inset-left));
  padding-right: max(24px, env(safe-area-inset-right));
}

nav.crumbs { font-size: .8125rem; color: var(--note); margin-bottom: 30px; }
nav.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
nav.crumbs li { display: flex; align-items: center; gap: 8px; }
nav.crumbs li + li::before { content: "/"; color: #334155; }
nav.crumbs a { color: var(--note); text-decoration: none; display: inline-block; padding: 6px 0; }
nav.crumbs a:hover { color: var(--cyan-hi); }
nav.crumbs [aria-current] { color: var(--read); display: inline-block; padding: 6px 0; }

h1 {
  font-size: clamp(1.85rem, 4.4vw, 2.5rem);
  font-weight: 700; letter-spacing: -.03em; line-height: 1.1;
  color: var(--ink); margin: 0 0 12px; text-wrap: balance;
}
.deck { font-size: 1.0625rem; color: var(--note); margin: 0 0 20px; max-width: 62ch; }
p { margin: 0 0 1.05em; max-width: 70ch; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
strong { color: var(--ink); font-weight: 600; }
a { color: var(--cyan-hi); text-underline-offset: 3px; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .84em; color: var(--cyan-hi);
  background: rgba(34,211,238,.08); border: 1px solid rgba(34,211,238,.16);
  border-radius: 4px; padding: .08em .36em; white-space: nowrap;
}

.sello-v {
  display: flex; flex-wrap: wrap; gap: 8px 10px;
  margin: 0 0 34px; padding: 0; list-style: none;
}
.sello-v li {
  font-size: .6875rem; font-weight: 600;
  letter-spacing: .09em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 4px; white-space: nowrap;
  color: var(--cyan); border: 1px solid rgba(34,211,238,.4);
  background: rgba(34,211,238,.1);
  font-variant-numeric: tabular-nums;
}
.sello-v li.gris { color: var(--note); border-color: var(--line); background: rgba(255,255,255,.03); }

.toc {
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  padding: 22px 24px; margin: 0 0 40px;
}
.toc h2 {
  font-size: .75rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
  color: var(--note); margin: 0 0 14px;
}
.toc ol {
  margin: 0; padding: 0; list-style: none;
  columns: 2; column-gap: 32px;
  font-size: .875rem; font-variant-numeric: tabular-nums;
}
.toc li { margin-bottom: 2px; break-inside: avoid; }
.toc a { color: var(--read); text-decoration: none; display: block; padding: 5px 0; }
.toc a:hover { color: var(--cyan-hi); }
.toc .n { color: var(--dim); margin-right: 7px; }

section.cl {
  border-top: 1px solid var(--line);
  padding: 30px 0 4px;
  scroll-margin-top: calc(var(--nav-h) + 16px);
}
section.cl h2 {
  font-size: 1.1875rem; font-weight: 600; letter-spacing: -.015em;
  color: var(--ink); margin: 0 0 14px; text-wrap: balance;
}
section.cl h2 .n {
  color: var(--cyan-deep); font-variant-numeric: tabular-nums;
  margin-right: 10px; font-weight: 700;
}
section.cl h3 {
  font-size: .8125rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
  color: var(--note); margin: 24px 0 10px;
}

ul.dash { list-style: none; margin: 0 0 1.05em; padding: 0; max-width: 70ch; }
ul.dash li { position: relative; padding-left: 20px; margin-bottom: .5em; }
ul.dash li::before { content: ""; position: absolute; left: 2px; top: .78em; width: 7px; height: 1px; background: var(--cyan-deep); }
ul.dash li:last-child { margin-bottom: 0; }
ol.letras { margin: 0 0 1.05em; padding-left: 26px; max-width: 70ch; list-style: lower-alpha; }
ol.letras li { margin-bottom: .55em; padding-left: 4px; }
ol.letras li::marker { color: var(--cyan-deep); font-weight: 600; }
ol.letras li:last-child { margin-bottom: 0; }

dl.defs { margin: 0 0 1.05em; max-width: 70ch; }
dl.defs dt { color: var(--ink); font-weight: 600; margin-top: 14px; }
dl.defs dt:first-child { margin-top: 0; }
dl.defs dd { margin: 2px 0 0; }

.aviso {
  border-left: 2px solid var(--amber);
  background: rgba(251,191,36,.055);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px; margin: 0 0 1.05em;
  font-size: .9375rem;
}
.aviso p { max-width: none; }
.aviso .et {
  display: block; font-size: .6875rem; font-weight: 600;
  letter-spacing: .09em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 6px;
}

.scroll { overflow-x: auto; margin: 0 0 1.05em; }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: .9375rem; }
th {
  font-size: .6875rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
  color: var(--note); text-align: left; padding: 0 16px 10px 0;
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
td { padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line-soft); vertical-align: top; line-height: 1.55; }
th:last-child, td:last-child { padding-right: 0; }
tr:last-child td { border-bottom: 0; }
td.k { color: var(--ink); font-weight: 600; }
td.g { font-variant-numeric: tabular-nums; white-space: nowrap; }

footer.pie {
  border-top: 1px solid var(--line); margin-top: 50px; padding-top: 22px;
  font-size: .8125rem; color: var(--note);
}
footer.pie p { max-width: 70ch; }
footer.pie a { color: var(--cyan-hi); display: inline-block; padding: 8px 0; }
footer.pie .sello { color: var(--dim); font-size: .75rem; line-height: 1.6; }
footer.pie .rutas { margin-top: 6px; }

@media (pointer: coarse) {
  nav.crumbs a, nav.crumbs [aria-current] { padding: 10px 0; }
  footer.pie a { padding: 11px 0; }
  .toc a { padding: 8px 0; }
  .bar .cta { min-height: 44px; display: inline-flex; align-items: center; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 30px 20px 70px; }
  .bar { padding: 0 20px; }
  .bar .brand span { display: none; }
  .toc { padding: 18px 18px; }
  .toc ol { columns: 1; }
  .scroll table { min-width: 0; }
  .scroll th { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

.wrap a.cta {
  display: inline-block; margin: 6px 0 4px;
  padding: 13px 30px; border-radius: 999px;
  background: var(--cyan-deep); color: #020617;
  font-weight: 600; text-decoration: none;
  min-height: 44px; line-height: 1.5;
}
.wrap a.cta:hover { background: var(--cyan); }

.gris { color: var(--note); }

.scroll table caption {
  caption-side: bottom; text-align: left;
  color: var(--note); font-size: .8125rem; padding-top: 10px;
}
