/* ── NAV — sticky, uses .nav-inner ── */
nav {
  position: sticky; top: 0;
  background: rgba(250,250,245,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
  z-index: 100; padding: 0 2rem;
}
nav .nav-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center;
  justify-content: space-between; height: 64px;
}
nav .logo { font-family: 'Playfair Display', serif; font-size: 1.35rem; font-weight: 600; color: var(--green-dark); text-decoration: none; letter-spacing: -0.02em; }
nav .logo span { color: var(--terracota); }
nav ul { display: flex; list-style: none; gap: 2rem; }
nav ul a { font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-light); text-decoration: none; transition: color 0.2s; }
nav ul a:hover { color: var(--green); }

/* ── LAYOUT ── */
.page-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 2rem 6rem;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 5rem;
  position: relative;
  z-index: 1;
}

/* ── BREADCRUMB ── */
.breadcrumb {
  font-size: 0.78rem; color: var(--ink-light);
  letter-spacing: 0.04em; margin-bottom: 2.5rem;
  grid-column: 1 / -1;
}
.breadcrumb a { color: var(--green); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 0.4rem; }

/* ── ARTICLE HEADER ── */
.article-header { margin-bottom: 3rem; }
.kicker {
  font-size: 0.75rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--terracota);
  font-weight: 700; margin-bottom: 0.75rem;
}
h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600; color: var(--green-dark);
  line-height: 1.15; margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}
.article-intro {
  font-size: 1.15rem; color: var(--ink-light);
  line-height: 1.7; margin-bottom: 1.5rem;
  font-weight: 300;
}
.article-meta {
  font-size: 0.8rem; color: var(--ink-light);
  display: flex; gap: 1.5rem; flex-wrap: wrap;
  padding-top: 1.5rem; border-top: 1px solid var(--rule);
}

/* ── ARTICLE BODY ── */
.article-body h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.65rem; font-weight: 600;
  color: var(--green-dark); margin: 3rem 0 1rem;
  line-height: 1.25;
}
.article-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem; font-weight: 600;
  color: var(--ink); margin: 2rem 0 0.75rem;
}
.article-body p {
  font-size: 1rem; color: var(--ink);
  margin-bottom: 1.25rem; line-height: 1.85;
}
.article-body ul, .article-body ol {
  margin: 0.75rem 0 1.5rem 1.5rem;
}
.article-body li {
  font-size: 1rem; color: var(--ink);
  margin-bottom: 0.5rem; line-height: 1.75;
}
.article-body a { color: var(--green); }
.article-body strong { font-weight: 700; color: var(--ink); }
.article-body hr {
  border: none; border-top: 1px solid var(--rule);
  margin: 3rem 0;
}

/* ── CALLOUT BOXES ── */
.callout {
  border-radius: 4px; padding: 1.25rem 1.5rem;
  margin: 2rem 0; font-size: 0.97rem;
}
.callout-green {
  background: #e8f4f0;
  border-left: 4px solid var(--green);
}
.callout-terracota {
  background: #fdf0ea;
  border-left: 4px solid var(--terracota);
}
.callout-ink {
  background: #f0f0ec;
  border-left: 4px solid var(--ink-light);
}
.callout strong { display: block; margin-bottom: 0.4rem; color: var(--green-dark); }
.callout-terracota strong { color: var(--terracota); }

/* ── GRADOS GRID ── */
.grados-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}
.grado-card {
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 1.25rem;
  background: white;
}
.grado-card .grado-num {
  font-size: 0.72rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--terracota);
  font-weight: 700; margin-bottom: 0.5rem;
}
.grado-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem; color: var(--green-dark);
  margin: 0 0 0.75rem;
}
.grado-card p {
  font-size: 0.88rem; color: var(--ink-light);
  line-height: 1.6; margin-bottom: 0;
}
.grado-card .puntos {
  font-size: 0.82rem; font-weight: 700;
  color: var(--green); margin-top: 0.75rem;
}

/* ── AYUDAS GRID ── */
.ayudas-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}
.ayuda-card {
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 1.25rem;
  background: white;
}
.ayuda-card .ayuda-tag {
  font-size: 0.72rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--terracota);
  font-weight: 700; margin-bottom: 0.5rem;
}
.ayuda-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem; color: var(--green-dark);
  margin: 0 0 0.6rem;
}
.ayuda-card p {
  font-size: 0.88rem; color: var(--ink-light);
  line-height: 1.6; margin-bottom: 0;
}

/* ── STEPS ── */
.steps { margin: 2rem 0; }
.step {
  display: flex; gap: 1.25rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--rule);
}
.step:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.step-num {
  flex-shrink: 0;
  width: 40px; height: 40px;
  background: var(--green-dark);
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; font-weight: 600;
}
.step-body h3 { margin-top: 0.1rem; }
.step-body p { margin-bottom: 0.5rem; }
.step-body p:last-child { margin-bottom: 0; }

/* ── PRESTACIONES TABLE ── */
.prestaciones-table {
  width: 100%; border-collapse: collapse;
  margin: 1.5rem 0; font-size: 0.9rem;
}
.prestaciones-table th {
  background: var(--green-dark); color: white;
  padding: 0.65rem 1rem; text-align: left;
  font-weight: 700; font-size: 0.78rem; letter-spacing: 0.04em;
}
.prestaciones-table td {
  padding: 0.7rem 1rem; border-bottom: 1px solid var(--rule);
  vertical-align: top; line-height: 1.5;
}
.prestaciones-table tr:last-child td { border-bottom: none; }
.prestaciones-table tr:nth-child(even) td { background: rgba(74,124,111,0.04); }
.check { color: var(--green); font-weight: 700; }
.dash { color: var(--rule); }

/* ── DATA TABLE ── */
.data-table {
  width: 100%; border-collapse: collapse;
  margin: 1.5rem 0; font-size: 0.9rem;
}
.data-table th {
  background: var(--green-dark); color: white;
  padding: 0.65rem 1rem; text-align: left;
  font-weight: 700; font-size: 0.78rem; letter-spacing: 0.04em;
}
.data-table td {
  padding: 0.7rem 1rem; border-bottom: 1px solid var(--rule);
  vertical-align: top; line-height: 1.5;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:nth-child(even) td { background: rgba(74,124,111,0.04); }
.data-table td strong { color: var(--green-dark); }

/* ── FAQ ── */
.faq { margin: 2rem 0; }
.faq-item {
  border-bottom: 1px solid var(--rule);
  padding: 1.25rem 0;
}
.faq-item:first-child { border-top: 1px solid var(--rule); }
.faq-q {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem; font-weight: 600;
  color: var(--green-dark); margin-bottom: 0.75rem;
  cursor: pointer;
}
.faq-a {
  font-size: 0.97rem; color: var(--ink);
  line-height: 1.8;
}

/* ── CTA ── */
.cta-box {
  background: var(--green-dark);
  border-radius: 4px;
  padding: 2.5rem;
  text-align: center;
  margin: 4rem 0 2rem;
}
.cta-box .cta-eyebrow {
  font-size: 0.75rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: rgba(255,255,255,0.6);
  font-weight: 700; margin-bottom: 0.75rem;
}
.cta-box h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; color: white;
  font-weight: 600; margin-bottom: 1rem;
  line-height: 1.3;
}
.cta-box p {
  font-size: 0.97rem; color: rgba(255,255,255,0.75);
  margin-bottom: 1.75rem; line-height: 1.7;
}
.cta-btn {
  display: inline-block;
  background: var(--terracota); color: white;
  padding: 0.9rem 2rem; border-radius: 2px;
  font-size: 0.88rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s;
}
.cta-btn:hover { background: #b5623d; }

/* ── SIDEBAR ── */
.sidebar { padding-top: 0.5rem; }
.sidebar-block {
  background: white;
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.sidebar-block h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem; font-weight: 600;
  color: var(--green-dark); margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--rule);
}
.toc-list { list-style: none; padding: 0; }
.toc-list li { margin-bottom: 0.5rem; }
.toc-list a {
  font-size: 0.85rem; color: var(--ink-light);
  text-decoration: none; line-height: 1.4;
  display: block; transition: color 0.2s;
}
.toc-list a:hover { color: var(--green); }
.related-link {
  display: block; font-size: 0.9rem;
  color: var(--green); text-decoration: none;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--rule);
  line-height: 1.4;
}
.related-link:last-child { border-bottom: none; }
.related-link:hover { color: var(--green-dark); }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--rule);
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative; z-index: 1;
}
footer .footer-inner { max-width: 700px; margin: 0 auto; }
footer .footer-logo { font-family: 'Playfair Display', serif; font-size: 1.1rem; color: var(--green-dark); font-weight: 600; margin-bottom: 1rem; }
footer .footer-links { display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
footer .footer-links a { font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-light); text-decoration: none; }
footer .footer-links a:hover { color: var(--green); }
footer p { font-size: 0.78rem; color: var(--ink-light); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .page-wrapper { grid-template-columns: 1fr; gap: 3rem; }
  .sidebar { display: none; }
}

@media (max-width: 600px) {
  .grados-grid { grid-template-columns: 1fr; }
  .ayudas-grid { grid-template-columns: 1fr; }
}
