/* Página interior de contenido v2 — requiere design-system.css */
/* ===== Artículo ===== */
.article { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 2.25rem 2.5rem; box-shadow: var(--shadow-sm); }
.article > p, .article li { font-size: 0.98rem; color: var(--text-secondary); line-height: 1.75; }
.article > p { margin-bottom: 1.1rem; max-width: 70ch; }
.article .lead { font-size: 1.1rem; color: var(--text-primary); font-weight: 500; }
.article h2 { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.01em; margin: 2rem 0 0.8rem; scroll-margin-top: 78px; }
.article h2 span { color: var(--blue-mid); }
.article h3 { font-size: 1.05rem; font-weight: 700; margin: 1.5rem 0 0.6rem; }
.article ul, .article ol { margin: 0 0 1.1rem 1.35rem; }
.article li { margin-bottom: 0.4rem; }
.article a.inline { color: var(--blue-mid); font-weight: 600; }
.article a.inline:hover { text-decoration: underline; }

/* Índice */
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1rem 1.25rem; margin-bottom: 1.75rem; }
.toc-title { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 0.5rem; }
.toc ol { list-style: none; margin: 0; display: flex; flex-direction: column; gap: 0.3rem; }
.toc a { font-size: 0.85rem; font-weight: 500; color: var(--blue-mid); }
.toc a:hover { text-decoration: underline; }

/* Cajas destacadas */
.box { border-radius: var(--radius-sm); padding: 1rem 1.25rem; margin: 1.25rem 0; font-size: 0.9rem; line-height: 1.65; }
.box strong:first-child { display: block; margin-bottom: 0.25rem; }
.box-tip  { background: var(--green-pale); border: 1px solid #a7f3d0; color: #065f46; }
.box-warn { background: var(--amber-pale); border: 1px solid #fde68a; color: #78350f; }
.box-info { background: var(--blue-pale); border: 1px solid #c7dbfc; color: #1e3a8a; }

/* Tabla del artículo */
.mini-wrap { overflow-x: auto; margin: 1.25rem 0; -webkit-overflow-scrolling: touch; }
.mini-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; min-width: 420px; }
.mini-table th { background: var(--blue-dark); color: #fff; text-align: left; padding: 0.6rem 0.9rem; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; }
.mini-table td { border-bottom: 1px solid var(--border); padding: 0.6rem 0.9rem; color: var(--text-secondary); }
.mini-table tr:last-child td { border-bottom: none; }
.mini-table td strong { color: var(--text-primary); }

/* CTA embebido */
.article-cta {
  background: linear-gradient(135deg, #071d4a 0%, var(--blue-dark) 60%, var(--blue-light) 100%);
  color: #fff; border-radius: var(--radius); padding: 1.5rem 1.75rem; margin: 1.75rem 0;
  display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap;
}
.article-cta-text { flex: 1; min-width: 200px; }
.article-cta-text h3 { font-size: 1.05rem; font-weight: 700; margin: 0 0 0.25rem; }
.article-cta-text p { font-size: 0.85rem; opacity: 0.9; margin: 0; }
.article-cta a { background: #fff; color: var(--blue-dark); font-size: 0.875rem; font-weight: 700; padding: 0.6rem 1.4rem; border-radius: var(--radius-pill); white-space: nowrap; transition: var(--transition); }
.article-cta a:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.25); }

.article-footer { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--border); font-size: 0.78rem; color: var(--text-muted); }

/* FAQ dentro del artículo */
.faq-item { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 0.75rem; }
.faq-q { padding: 0.9rem 1.15rem; display: flex; justify-content: space-between; align-items: center; cursor: pointer; gap: 1rem; font-size: 0.9rem; font-weight: 600; width: 100%; background: none; border: none; text-align: left; color: inherit; }
.faq-q .chev { width: 22px; height: 22px; border-radius: 50%; background: var(--blue-pale); color: var(--blue-dark); display: flex; align-items: center; justify-content: center; font-size: 0.7rem; flex-shrink: 0; transition: var(--transition); }
.faq-item.open .chev { transform: rotate(45deg); }
.faq-a { display: none; padding: 0.875rem 1.15rem 1rem; font-size: 0.875rem; color: var(--text-secondary); border-top: 1px solid var(--border); }
.faq-item.open .faq-a { display: block; }

/* Relacionados */
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.25rem; }
.related-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem; transition: var(--transition); }
.related-card:hover { border-color: var(--blue-light); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.related-tag { font-size: 0.62rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--blue-mid); }
.related-title { font-size: 0.88rem; font-weight: 600; line-height: 1.4; margin-top: 0.35rem; color: var(--text-primary); }
.section-title-sm { font-size: 1.2rem; font-weight: 700; margin-top: 2.5rem; letter-spacing: -0.01em; }
.section-title-sm span { color: var(--blue-mid); }

@media (max-width: 1024px) { .related-grid { grid-template-columns: 1fr; } }
@media (max-width: 768px) { .article { padding: 1.5rem 1.25rem; } }
