* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
:root {
  --bg: #0b0b0d;
  --panel: #151519;
  --ink: #f5f1e8;
  --muted: #a9a7b0;
  --line: rgba(255, 255, 255, 0.12);
  --acid: #ffd600;
  --purple: #3b0d8f;
  --sky: #9d7ae6;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    400 16.5px/1.65 "Manrope",
    system-ui,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--acid);
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-thickness: 2px;
}
a:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 3px;
  border-radius: 4px;
}
.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--acid);
  color: #111;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 700;
  z-index: 10;
}
.skip:focus {
  left: 12px;
}
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(18px, 3vw, 36px);
}
.foot i {
  color: var(--acid);
  font-style: normal;
}
.hero {
  padding: clamp(40px, 6vw, 80px) 0 clamp(24px, 3vw, 40px);
  border-bottom: 1px solid var(--line);
}
.kicker {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--acid);
}
h1 {
  font-size: clamp(38px, 5.4vw, 76px);
  line-height: 1;
  letter-spacing: -0.045em;
  margin: 14px 0 12px;
  font-weight: 600;
}
.meta {
  color: var(--muted);
  margin: 0;
  font-size: 14px;
}
.grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  padding: clamp(28px, 4vw, 52px) 0 80px;
}
.side {
  position: sticky;
  top: 88px;
  align-self: start;
  display: grid;
  gap: 28px;
  max-height: calc(100vh - 110px);
  overflow: auto;
}
.docs {
  display: grid;
  gap: 2px;
}
.docs a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 14.5px;
  padding: 8px 12px;
  border-radius: 10px;
}
.docs a:hover {
  color: var(--ink);
  background: var(--panel);
}
.docs a[aria-current] {
  color: #111;
  background: var(--acid);
}
.toc strong {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.toc ol {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: grid;
  gap: 4px;
}
.toc a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13.5px;
}
.toc a:hover {
  color: var(--ink);
}
.doc {
  max-width: 780px;
  min-width: 0;
}
.doc .lead {
  font-size: clamp(18px, 1.5vw, 21px);
  color: #d9d6de;
  margin-top: 0;
}
.doc h2 {
  font-size: clamp(22px, 2vw, 28px);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 44px 0 12px;
  scroll-margin-top: 90px;
}
.doc h3 {
  font-size: 18px;
  margin: 26px 0 8px;
  color: #e9e5f0;
}
.doc p,
.doc li {
  color: #cfccd6;
}
.doc b {
  color: var(--ink);
}
.doc ul,
.doc ol {
  padding-left: 22px;
}
.doc li {
  margin: 6px 0;
}
.doc ul.contact {
  list-style: none;
  padding: 18px 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.table-wrap {
  overflow-x: auto;
  margin: 18px 0;
  border: 1px solid var(--line);
  border-radius: 18px;
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 560px;
  font-size: 14.5px;
}
caption {
  text-align: left;
  padding: 14px 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
th,
td {
  padding: 11px 14px;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
thead th {
  background: var(--purple);
  color: #fff;
  border-top: 0;
}
tbody th {
  color: var(--ink);
  font-weight: 700;
  white-space: nowrap;
}
td {
  color: #cfccd6;
}
.foot {
  border-top: 1px solid var(--line);
  padding: 30px 0;
  color: var(--muted);
  font-size: 13.5px;
}
.foot-in {
  display: grid;
  gap: 10px;
}
.foot a {
  color: var(--ink);
}
/* Barra superior: mismas medidas y aspecto que la landing */
.topbar-wrap {
  position: sticky;
  top: 0;
  z-index: 80;
  padding: 14px 0 0;
}
.topbar {
  width: min(1440px, calc(100% - 2 * clamp(18px, 3vw, 44px)));
  margin: 0 auto;
  height: 68px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 12, 15, 0.68);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px 0 22px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
}
.dkx-brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: max-content;
  text-decoration: none;
}
.dkx-wm {
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--ink);
}
.dkx-wm i {
  font-style: normal;
  color: var(--acid);
}
.dkx-by {
  font-size: 11px;
  font-weight: 700;
  color: #8d8b94;
  letter-spacing: 0.02em;
}
.nav {
  display: flex;
  align-items: center;
  gap: 3px;
}
.nav a {
  color: #c7c5cd;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: normal;
  padding: 10px 11px;
  border-radius: 12px;
  text-decoration: none;
  transition: 0.2s;
}
.nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}
.nav a.nav-login {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #f5f1e8;
  margin-left: 8px;
  padding: 10px 14px;
}
.nav a.nav-login:hover {
  border-color: var(--acid);
  background: rgba(255, 214, 0, 0.08);
}
.nav a.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: #0c0c0f;
  padding: 11px 16px;
  margin-left: 6px;
}
.nav a.nav-cta:hover {
  background: var(--acid);
  color: #111;
}
.nav-cta .arr {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
}
@media (max-width: 1180px) {
  .nav a:not(.nav-login):not(.nav-cta) {
    display: none;
  }
  .nav a.nav-login {
    margin-left: auto;
  }
}
@media (max-width: 900px) {
  .topbar-wrap {
    padding-top: 12px;
  }
  .topbar {
    width: calc(100% - 28px);
    height: 62px;
    border-radius: 20px;
    padding-left: 16px;
  }
  .nav a.nav-cta {
    display: none;
  }
}
@media (max-width: 820px) {
  .dkx-by {
    display: none;
  }
}
@media (max-width: 650px) {
  .topbar {
    width: calc(100% - 24px);
  }
}
@media (max-width: 560px) {
  .nav a.nav-login {
    padding: 9px 12px;
    font-size: 12.5px;
  }
}

/* ==========================================================================
   Menú (botón ☰ y panel). Visible hasta 1180 px.
   ========================================================================== */
.menu-btn {
  display: none;
  flex: none;
  position: relative;
  width: 44px;
  height: 44px;
  margin-left: 8px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}
.menu-btn span,
.menu-btn:before {
  content: "";
  position: absolute;
  left: 13px;
  width: 18px;
  height: 1.5px;
  background: #fff;
  transition:
    transform 0.25s,
    top 0.25s;
}
.menu-btn span {
  top: 18px;
}
.menu-btn:before {
  top: 25px;
}
.menu-btn.active span {
  top: 21px;
  transform: rotate(45deg);
}
.menu-btn.active:before {
  top: 21px;
  transform: rotate(-45deg);
}

.dk-menu {
  line-height: normal;
  position: fixed;
  inset: 0;
  z-index: 79;
  visibility: hidden;
  pointer-events: none;
}
.dk-menu.open {
  visibility: visible;
  pointer-events: auto;
}
.dk-menu-bg {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 8, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.25s;
}
.dk-menu-panel {
  position: absolute;
  top: var(--menu-top, 84px);
  left: 12px;
  right: 12px;
  max-width: 520px;
  margin-left: auto;
  max-height: calc(100dvh - var(--menu-top, 84px) - 16px);
  overflow-y: auto;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background: #121216;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(-8px) scale(0.98);
  transform-origin: top right;
  transition:
    opacity 0.22s,
    transform 0.22s;
}
.dk-menu.open .dk-menu-bg {
  opacity: 1;
}
.dk-menu.open .dk-menu-panel {
  opacity: 1;
  transform: none;
}
.dk-menu-links {
  display: grid;
}
.dk-menu-links a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 14px;
  border-radius: 16px;
  color: var(--ink);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.dk-menu-links a + a {
  background: linear-gradient(rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.06)) top center / calc(100% - 28px) 1px no-repeat;
}
.dk-menu-links a:hover,
.dk-menu-links a:focus-visible {
  background: rgba(255, 255, 255, 0.06);
}
.dk-menu-links span {
  width: 20px;
  color: #77757f;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.dk-menu-links i {
  margin-left: auto;
  color: #77757f;
  font-style: normal;
}
.dk-menu-links a.is-active,
.dk-menu-links a.is-active span,
.dk-menu-links a.is-active i {
  color: var(--acid);
}
.dk-menu-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 54px;
  margin: 8px 6px 6px;
  border-radius: 16px;
  background: var(--acid);
  color: #111;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
}
body.dk-menu-open {
  overflow: hidden;
}
@media (max-width: 1180px) {
  .menu-btn {
    display: block;
  }
  .topbar .nav {
    margin-left: auto;
  }
}
@media (min-width: 1181px) {
  .dk-menu {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .dk-menu-bg,
  .dk-menu-panel {
    transition: none;
  }
}

/* Barra lateral */
.side {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}
.side::-webkit-scrollbar {
  width: 6px;
}
.side::-webkit-scrollbar-track {
  background: transparent;
}
.side::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 6px;
}
.docs a {
  border: 1px solid transparent;
}
@media (max-width: 860px) {
  .grid {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 20px;
    gap: 22px;
  }
  .side {
    position: static;
    max-height: none;
    overflow: visible;
    gap: 0;
  }
  .toc {
    display: none;
  }
  .docs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scroll-padding-inline: clamp(18px, 3vw, 36px);
    margin: 0 calc(-1 * clamp(18px, 3vw, 36px));
    padding: 4px clamp(18px, 3vw, 36px) 10px;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 28px), transparent);
  }
  .docs::-webkit-scrollbar {
    display: none;
  }
  .docs a {
    flex: none;
    white-space: nowrap;
    scroll-snap-align: start;
    border-color: var(--line);
    border-radius: 999px;
    padding: 9px 14px;
    font-size: 13.5px;
    background: var(--panel);
  }
  .docs a[aria-current] {
    border-color: var(--acid);
  }
  .hero {
    padding-top: 36px;
  }
}
@media (max-width: 640px) {
  body {
    font-size: 16px;
  }
  .doc h2 {
    margin-top: 34px;
  }
  .table-wrap {
    border: 0;
    overflow: visible;
  }
  table.stack {
    min-width: 0;
    display: block;
  }
  table.stack caption {
    display: block;
    padding: 0 0 10px;
  }
  table.stack thead {
    display: none;
  }
  table.stack tbody {
    display: grid;
    gap: 10px;
  }
  table.stack tr {
    display: grid;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    background: var(--panel);
  }
  table.stack th,
  table.stack td {
    display: grid;
    grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
    gap: 10px;
    border-top: 1px solid var(--line);
    padding: 10px 14px;
    white-space: normal;
  }
  table.stack tr > *:first-child {
    border-top: 0;
    background: var(--purple);
    color: #fff;
    grid-template-columns: 1fr;
  }
  table.stack tr > *:first-child::before {
    display: none;
  }
  table.stack [data-label]::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 700;
  }
  .foot-in {
    font-size: 13px;
  }
}
@media print {
  .topbar-wrap,
  .dk-menu,
  .side,
  .foot,
  .skip {
    display: none;
  }
  body {
    background: #fff;
    color: #000;
  }
  .doc p,
  .doc li,
  td {
    color: #000;
  }
  .grid {
    display: block;
  }
}
