/* ─── PAGE HEADER ─── */
.page-header {
  padding: 140px 5% 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 700px;
  background: radial-gradient(circle, var(--teal-glow) 0%, transparent 70%);
  pointer-events: none;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal-dark);
  background: var(--teal-glow);
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 20px;
}

.page-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 16px;
}

.page-header .meta {
  font-size: 0.88rem;
  color: var(--ink-muted);
}

/* ─── LAYOUT ─── */
.layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 5% 100px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: start;
  position: relative;
  z-index: 1;
}

/* ─── SIDEBAR / ÍNDICE ─── */
.sidebar {
  position: sticky;
  top: 100px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.sidebar h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 14px;
}

.sidebar ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar ul a {
  display: block;
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
  line-height: 1.4;
}

.sidebar ul a:hover {
  background: var(--teal-glow);
  color: var(--teal-dark);
}

/* ─── DOCUMENT ─── */
.document {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 48px;
  box-shadow: var(--shadow-card);
}

.doc-section {
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.doc-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.doc-section h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.doc-section h2 .num {
  width: 28px; height: 28px;
  background: var(--teal-glow);
  color: var(--teal-dark);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.doc-section p {
  font-size: 0.93rem;
  color: var(--ink-soft);
  line-height: 1.8;
  margin-bottom: 12px;
}

.doc-section p:last-child { margin-bottom: 0; }

.doc-section ul {
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0;
}

.doc-section ul li {
  font-size: 0.93rem;
  color: var(--ink-soft);
  line-height: 1.6;
  padding-left: 20px;
  position: relative;
}

.doc-section ul li::before {
  content: '·';
  position: absolute;
  left: 6px;
  color: var(--teal);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.4;
}

.doc-section h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin: 20px 0 10px;
}

.highlight-box {
  background: var(--teal-glow);
  border-left: 3px solid var(--teal);
  border-radius: 0 10px 10px 0;
  padding: 16px 20px;
  margin: 16px 0;
}

.highlight-box p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 0;
}

.contact-box {
  background: var(--ink);
  border-radius: 14px;
  padding: 24px;
  margin-top: 16px;
}

.contact-box p {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.contact-box p:last-child { margin-bottom: 0; }

.contact-box strong { color: var(--white); }

/* ─── RESPONSIVE ─── */
@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .document { padding: 28px; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  nav ul { display: none; }
}
