/* Documentación Necesitas */

.docs-body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  background: var(--bg, #0f0f12);
  color: var(--text, #e8e8ed);
  line-height: 1.6;
}

.docs-shell {
  max-width: 52rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 4rem;
}

.docs-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border, #2a2a32);
}

.docs-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: inherit;
  font-weight: 600;
}

.docs-brand-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: linear-gradient(135deg, #7c5cff, #5b8def);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
}

.docs-nav-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.docs-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  line-height: 1.2;
  margin: 0 0 0.5rem;
}

.docs-hero p {
  color: var(--muted, #9a9aa8);
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
}

.docs-toc {
  background: var(--surface, #1a1a22);
  border: 1px solid var(--border, #2a2a32);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 2.5rem;
}

.docs-toc h2 {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted, #9a9aa8);
}

.docs-toc ol {
  margin: 0;
  padding-left: 1.25rem;
}

.docs-toc a {
  color: #a78bfa;
  text-decoration: none;
}

.docs-toc a:hover {
  text-decoration: underline;
}

.docs-section {
  margin-bottom: 2.5rem;
}

.docs-section h2 {
  font-size: 1.35rem;
  margin: 0 0 1rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border, #2a2a32);
}

.docs-section h3 {
  font-size: 1.05rem;
  margin: 1.5rem 0 0.5rem;
}

.docs-section p,
.docs-section li {
  color: var(--text-soft, #c8c8d4);
}

.docs-section ul,
.docs-section ol {
  padding-left: 1.25rem;
}

.docs-table-wrap {
  overflow-x: auto;
  margin: 1rem 0;
}

.docs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.docs-table th,
.docs-table td {
  border: 1px solid var(--border, #2a2a32);
  padding: 0.5rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.docs-table th {
  background: var(--surface, #1a1a22);
}

.docs-table code {
  font-size: 0.85em;
}

.docs-code-block {
  position: relative;
  margin: 1rem 0;
}

.docs-code-block pre {
  margin: 0;
  padding: 1rem 1.1rem;
  background: #12121a;
  border: 1px solid var(--border, #2a2a32);
  border-radius: 10px;
  overflow-x: auto;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.8rem;
  line-height: 1.5;
}

.docs-code-block .btn-copy {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
}

.docs-callout {
  border-left: 3px solid #7c5cff;
  background: rgba(124, 92, 255, 0.08);
  padding: 0.75rem 1rem;
  border-radius: 0 8px 8px 0;
  margin: 1rem 0;
  font-size: 0.95rem;
}

.docs-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.docs-footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border, #2a2a32);
  font-size: 0.85rem;
  color: var(--muted, #9a9aa8);
}

[data-theme='light'] .docs-body {
  --bg: #f6f6f8;
  --text: #1a1a22;
  --text-soft: #3a3a48;
  --muted: #6a6a78;
  --border: #d8d8e0;
  --surface: #fff;
}

[data-theme='light'] .docs-code-block pre {
  background: #f0f0f5;
}

.docs-shell-wide {
  max-width: 58rem;
}

.docs-figure {
  margin: 1.25rem 0 1.5rem;
  border: 1px solid var(--border, #2a2a32);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface, #1a1a22);
}

.docs-figure img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.docs-figure figcaption {
  padding: 0.65rem 0.9rem;
  font-size: 0.85rem;
  color: var(--muted, #9a9aa8);
  border-top: 1px solid var(--border, #2a2a32);
  line-height: 1.45;
}

.docs-tutorial ol,
.docs-tutorial ul {
  margin-bottom: 1rem;
}

.docs-tutorial li + li {
  margin-top: 0.35rem;
}
