/* Nexis: identidad clara para documentación y herramientas de programación. */
:root {
  --font-code:
    "Cascadia Code", "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  --bg: #f2f0eb;
  --bg-soft: #ebe8e1;
  --surface: #fff;
  --surface-hover: #fff;
  --border: #e3e0d9;
  --border-strong: #b9a9d9;
  --text: #292827;
  --text-soft: #66615d;
  --text-muted: #77716c;
  --primary: #421d24;
  --primary-dark: #32171c;
  --secondary: #d4c7ff;
  --accent: #714cb6;
  --green: #714cb6;
  --max-width: 1200px;
  --radius: 16px;
}
body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.65 var(--font-code);
}
h1,
h2,
h3,
h4,
.brand,
.nav-links a,
.button,
.home-action,
button,
input,
select,
textarea {
  font-family: var(--font-code);
}
code,
.inline-code,
pre,
kbd,
samp {
  font-family: var(--font-code);
}
code,
.inline-code {
  background: #eee9f5;
  color: #56388c;
}
.navbar {
  border-bottom: 1px solid var(--border);
  background: rgba(242, 240, 235, 0.9);
  backdrop-filter: blur(12px);
}
.brand {
  font-weight: 500;
}
.brand-mark {
  background: transparent;
  box-shadow: none;
}
.nav-links a {
  color: var(--text);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}
.nav-links .button-nav-install {
  border: 1px solid var(--text);
  border-radius: 8px;
  background: var(--secondary);
  color: var(--text);
  font-weight: 500;
}
.menu-toggle span {
  background: var(--text);
}
footer.footer {
  border-top: 1px solid var(--border);
  background: var(--primary);
  color: rgba(255, 255, 255, 0.72);
}
.footer-brand {
  color: #fff;
}
.footer-links a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Portada: presentación breve, ejemplo y accesos a docs y paquetes. */
.home-main {
  padding: 0 0 70px;
}
.home-hero {
  max-width: 920px;
  padding-top: 82px;
  padding-bottom: 64px;
}
.home-kicker {
  margin: 0 0 26px;
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 0.08em;
}
.home-kicker span {
  color: var(--accent);
}
.home-hero h1 {
  max-width: 780px;
  margin: 0 0 20px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.12;
  letter-spacing: -0.075em;
  font-weight: 500;
}
.home-hero h1 span {
  color: var(--primary);
}
.home-lead {
  max-width: 650px;
  margin: 0 0 26px;
  color: var(--text-soft);
  font-size: 14px;
}
.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.home-action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 12px;
  transition:
    background 0.18s ease,
    border-color 0.18s ease;
}
.home-action-primary {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
}
.home-action-primary:hover {
  background: var(--primary-dark);
}
.home-action-secondary {
  background: transparent;
  color: var(--text);
}
.home-action-secondary:hover {
  border-color: var(--text);
}
.home-code {
  max-width: 660px;
  margin-top: 52px;
  overflow: hidden;
  border: 1px solid #3e3836;
  border-radius: 10px;
  background: #292827;
  color: #f2f0eb;
}
.home-code-head {
  display: flex;
  justify-content: space-between;
  padding: 9px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #c4bdb7;
  font-size: 10px;
}
.home-code pre {
  overflow-x: auto;
  margin: 0;
  padding: 19px 17px;
  font: 12px/1.8 var(--font-code);
}
.home-code code {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
}
.code-comment {
  color: #aaa39b;
}
.code-keyword {
  color: #d4c7ff;
}
.code-string {
  color: #e0c29d;
}
.code-function {
  color: #d6b5da;
}
.home-paths {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--border);
}
.home-path {
  display: grid;
  grid-template-columns: 36px 1fr 18px;
  gap: 12px;
  align-items: start;
  padding: 20px 16px 20px 0;
  color: var(--text);
}
.home-path + .home-path {
  padding-left: 22px;
  border-left: 1px solid var(--border);
}
.home-path-index {
  color: var(--accent);
  font-size: 10px;
}
.home-path-copy {
  display: grid;
  gap: 4px;
}
.home-path-copy strong {
  font-size: 13px;
  font-weight: 600;
}
.home-path-copy small {
  color: var(--text-soft);
  font-size: 11px;
}
.home-path-arrow {
  color: var(--accent);
}
.home-path:hover .home-path-copy strong {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Descargas: solo versiones completas del instalador. */
.downloads-page {
  padding-top: 38px;
  padding-bottom: 72px;
}
.downloads-page .section-header p:not(.section-label) {
  margin: 12px 0 0;
  color: var(--text-soft);
  font-size: 13px;
}
.downloads-page .section-header p a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.comp-block {
  margin-bottom: 34px;
}
.comp-head {
  margin-bottom: 16px;
}
.comp-head-title {
  display: flex;
  align-items: center;
  gap: 12px;
}
.comp-icon {
  display: none;
}
.comp-head h3 {
  margin: 0;
  color: var(--text);
  font-size: 18px;
  font-weight: 500;
}
.comp-head p {
  margin: 4px 0 0;
  color: var(--text-soft);
  font-size: 12px;
}
.comp-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.releases-subtitle {
  margin: 0 0 8px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 500;
}
.releases-table-container {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
}
.releases-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 11px;
}
.releases-table th,
.releases-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.releases-table th {
  background: var(--bg-soft);
  color: var(--text);
  font-weight: 500;
}
.releases-table tr:last-child td {
  border-bottom: 0;
}
.rel-date,
.cell-empty {
  color: var(--text-muted);
}
.version-badge,
.rel-type {
  display: inline-block;
  padding: 3px 7px;
  border-radius: 5px;
  background: #eee9f5;
  color: #56388c;
  font: 10px/1.4 var(--font-code);
}
.badge-demo,
.badge-alpha,
.badge-beta,
.badge-official {
  background: #eee9f5;
  color: #56388c;
}
.artifacts-cell {
  min-width: 180px;
}
.art-link,
.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 2px 4px 2px 0;
  padding: 6px 8px;
  border: 1px solid #d9cdea;
  border-radius: 6px;
  background: #f4f0fa;
  color: #56388c;
  font: 10px/1.5 var(--font-code);
  white-space: nowrap;
}
.art-link:hover,
.link-btn:hover {
  border-color: #b8a5d7;
  background: #eee9f5;
}
.changelog summary {
  color: var(--accent);
  font-size: 11px;
  cursor: pointer;
}
.changelog-hint {
  color: var(--text-muted);
  font-size: 10px;
}
.changelog-body {
  min-width: min(340px, 60vw);
  margin-top: 8px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8f7f4;
}
.changelog-body h1,
.changelog-body h2,
.changelog-body h3 {
  color: var(--text);
}
.changelog-body p,
.changelog-body li {
  color: var(--text-soft);
  font-size: 11px;
}
.changelog-body code {
  background: #eee9f5;
  color: #56388c;
}
.no-releases {
  padding: 14px;
  border: 1px dashed var(--border);
  border-radius: 8px;
  color: var(--text-soft);
}
.no-releases a {
  color: var(--accent);
}
.docs-loading {
  padding: 54px 16px;
  color: var(--text-muted);
  text-align: center;
}
.docs-loading i {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
}
.docs-error {
  padding: 42px 16px;
  color: var(--text-soft);
  text-align: center;
}
.docs-error > i {
  color: #b88b3d;
}

/* Documentación: superficies claras; bloques de código mantienen contraste. */
.docs-wrap {
  padding-top: 26px;
  padding-bottom: 56px;
}
.docs-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}
.docs-sidebar {
  position: sticky;
  top: 82px;
  max-height: calc(100vh - 98px);
  overflow-y: auto;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.58);
}
.docs-sidebar-head {
  margin-bottom: 16px;
}
.docs-sidebar-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
}
.docs-sidebar-brand i,
.docs-nav li a i {
  color: var(--accent);
}
.docs-nav-section {
  margin-bottom: 18px;
}
.docs-nav-section h4 {
  margin: 0 0 7px;
  padding-left: 8px;
  color: var(--text-muted);
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.docs-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.docs-nav li a {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 8px;
  border-radius: 6px;
  color: var(--text-soft);
  font-size: 11px;
  line-height: 1.4;
}
.docs-nav li a:hover {
  background: #eee9f5;
  color: var(--text);
}
.docs-nav li.active a {
  background: #eee9f5;
  color: var(--text);
  box-shadow: inset 2px 0 var(--accent);
}
.docs-nav li a i {
  width: 14px;
  font-size: 10px;
  text-align: center;
}
.docs-mobile-nav {
  display: none;
}
.docs-mobile-nav > summary {
  margin-bottom: 16px;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-size: 12px;
  cursor: pointer;
  list-style: none;
}
.docs-mobile-nav > summary::-webkit-details-marker {
  display: none;
}
.docs-mobile-nav .docs-nav {
  padding: 4px 0 12px;
}
.docs-content {
  min-width: 0;
}
.doc-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}
.doc-title {
  font-size: clamp(25px, 3.4vw, 36px);
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.06em;
}
.doc-edit-link,
.docs-source-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 10px;
  white-space: nowrap;
}
.doc-edit-link:hover,
.docs-source-link:hover {
  color: var(--accent);
  border-color: var(--border-strong);
}
.markdown-body {
  padding-bottom: 22px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.75;
}
.markdown-body > *:first-child {
  margin-top: 12px;
}
.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4 {
  margin: 1.8rem 0 0.7rem;
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: -0.04em;
  scroll-margin-top: 24px;
}
.markdown-body h1 {
  font-size: 1.8em;
}
.markdown-body h2 {
  padding-bottom: 7px;
  border-bottom: 1px solid var(--border);
  font-size: 1.45em;
}
.markdown-body h3 {
  font-size: 1.2em;
}
.markdown-body h4 {
  font-size: 1.05em;
}
.markdown-body p {
  margin: 0.8rem 0;
  color: var(--text-soft);
}
.markdown-body strong {
  color: var(--text);
}
.markdown-body ul,
.markdown-body ol {
  margin: 0.8rem 0;
  padding-left: 1.4rem;
  color: var(--text-soft);
}
.markdown-body li {
  margin: 0.3rem 0;
}
.markdown-body hr {
  margin: 1.8rem 0;
  border: 0;
  border-top: 1px solid var(--border);
}
.markdown-body a {
  color: var(--accent);
}
.markdown-body a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.markdown-body blockquote {
  margin: 1rem 0;
  padding: 0.8rem 1rem;
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  background: #eee9f5;
  color: var(--text-soft);
}
.markdown-body blockquote p {
  margin: 0.25rem 0;
}
.markdown-body code {
  padding: 0.12em 0.35em;
  border-radius: 4px;
  background: #eee9f5;
  color: #56388c;
  font-size: 0.86em;
}
.markdown-body table {
  width: 100%;
  margin: 1.2rem 0;
  border: 1px solid var(--border);
  border-collapse: collapse;
  font-size: 0.9em;
}
.markdown-body th,
.markdown-body td {
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.markdown-body th {
  background: #eee9f5;
  color: var(--text);
  font-weight: 500;
}
.markdown-body tr:last-child td {
  border-bottom: 0;
}
.markdown-body tbody tr:hover {
  background: rgba(66, 29, 36, 0.035);
}
.nexis-code {
  position: relative;
  overflow-x: auto;
  margin: 1.2rem 0;
  padding: 1rem 1.1rem;
  border: 1px solid #342f2d;
  border-radius: 9px;
  background: #292827;
  color: #f2f0eb;
  font: 11px/1.7 var(--font-code);
}
.nexis-code code {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
}
.nexis-code .k,
.nexis-code .kd {
  color: #d4c7ff;
}
.nexis-code .kt,
.nexis-code .kc {
  color: #a9d4d1;
}
.nexis-code .s,
.nexis-code .s1,
.nexis-code .s2,
.nexis-code .sc {
  color: #d6b996;
}
.nexis-code .mf,
.nexis-code .mi {
  color: #e8ca8d;
}
.nexis-code .c,
.nexis-code .c1,
.nexis-code .cm {
  color: #aaa39b;
  font-style: italic;
}
.nexis-code .nb,
.nexis-code .nn,
.nexis-code .bp {
  color: #d6b5da;
}
.nexis-code .ne {
  color: #e39488;
}
.nexis-code .o {
  color: #d1c9c3;
}
.nexis-code .p {
  color: #b8b0aa;
}
.doc-pagination {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.doc-pagination-item {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}
.doc-pagination-item:hover {
  border-color: var(--border-strong);
}
.doc-pagination-item.is-next {
  align-items: flex-end;
  text-align: right;
}
.doc-pagination-item.is-empty {
  visibility: hidden;
}
.doc-pagination-label {
  color: var(--text-muted);
  font-size: 10px;
}
.doc-pagination-title {
  color: var(--accent);
  font-size: 12px;
}
.docs-error h1 {
  margin-bottom: 8px;
  color: var(--text);
  font-size: 18px;
}
.docs-error p {
  max-width: 480px;
  margin: 0 auto 20px;
}

/* Instalación: pasos y avisos legibles, sin paneles oscuros decorativos. */
.install-page {
  padding-top: 34px;
  padding-bottom: 72px;
}
.install-hero {
  margin-bottom: 28px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-soft);
}
.install-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.install-eyebrow::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}
.install-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -0.06em;
}
.install-hero p {
  max-width: 760px;
  color: var(--text-soft);
  font-size: 13px;
}
.install-os-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
}
.os-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #fff;
  color: var(--text-soft);
  font-size: 11px;
}
.os-tab.active {
  border-color: #c8b8df;
  background: #eee9f5;
  color: var(--text);
}
.os-tab.future {
  opacity: 0.65;
}
.install-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.install-sidebar {
  position: sticky;
  top: 82px;
  align-self: start;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
}
.install-sidebar h3 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 11px;
  font-weight: 600;
}
.install-sidebar nav {
  display: grid;
  gap: 3px;
}
.install-sidebar a {
  display: block;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--text-soft);
  font-size: 10px;
}
.install-sidebar a:hover,
.install-sidebar a:focus-visible {
  border-color: #e1d7f0;
  background: #eee9f5;
  color: var(--text);
  outline: none;
}
.install-content {
  min-width: 0;
}
.install-content pre {
  margin: 10px 0;
  padding: 12px 14px;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  font-family: "JetBrains Mono", "Cascadia Code", Consolas, monospace;
  font-size: 13px;
  line-height: 1.5;
  overflow-x: auto;
}
.install-content pre code {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
}
.install-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 13px;
}
.install-content table th,
.install-content table td {
  padding: 8px 10px;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.install-section {
  margin-bottom: 20px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}
.install-section h2 {
  margin: 0 0 10px;
  font-size: clamp(21px, 3vw, 30px);
  font-weight: 500;
  letter-spacing: -0.04em;
}
.install-section h3 {
  margin: 18px 0 8px;
  font-size: 16px;
  font-weight: 500;
}
.install-section p,
.install-section li {
  color: var(--text-soft);
  font-size: 12px;
}
.install-section ul,
.install-section ol {
  margin: 12px 0;
  padding-left: 1.25rem;
}
.install-section strong {
  color: var(--text);
}
.install-index {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.install-step-box {
  display: flex;
  height: 100%;
  flex-direction: column;
  gap: 7px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #f8f7f4;
}
.install-step-box .num {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 6px;
  background: #eee9f5;
  color: #56388c;
  font-size: 11px;
}
.install-step-box h4 {
  margin: 0;
  font-size: 13px;
}
.install-step-box p {
  margin: 0;
  font-size: 11px;
}
.install-download {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

@media (max-width: 900px) {
  .docs-layout,
  .install-layout {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .docs-sidebar {
    display: none;
  }
  .docs-mobile-nav {
    display: block;
  }
  .install-sidebar {
    position: static;
  }
}
@media (max-width: 600px) {
  .home-hero {
    padding-top: 56px;
    padding-bottom: 42px;
  }
  .home-hero h1 {
    font-size: clamp(34px, 10vw, 46px);
  }
  .home-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .home-paths {
    grid-template-columns: 1fr;
  }
  .home-path {
    padding: 17px 0;
  }
  .home-path + .home-path {
    padding-left: 0;
    border-top: 1px solid var(--border);
    border-left: 0;
  }
  .home-code {
    margin-top: 36px;
  }
  .docs-wrap,
  .downloads-page,
  .install-page {
    padding-top: 22px;
  }
  .docs-layout {
    gap: 10px;
  }
  .doc-head {
    flex-direction: column;
    gap: 10px;
  }
  .markdown-body {
    font-size: 12px;
  }
  .doc-pagination {
    grid-template-columns: 1fr;
  }
  .install-hero,
  .install-section {
    padding: 18px;
  }
  .install-layout {
    grid-template-columns: 1fr;
  }
  .releases-table th,
  .releases-table td {
    padding: 9px;
  }
}
