/* Estilos de las páginas de contenido estático (generado por scripts/seo/build-content.mjs).
   Colores de marca: verde #32D372 (fondos y acentos) y azul #0D233F (texto).
   Para texto y enlaces se usa #0B7A3B, un verde más oscuro que cumple contraste AA sobre blanco. */
/* Todo en @layer base para que las utilidades de Tailwind del footer (contenido/footer.css) tengan prioridad. */
@layer base {
:root {
  --green: #32d372;
  --green-text: #0b7a3b;
  --navy: #0d233f;
  --ink: #1f2d3d;
  --muted: #55657a;
  --line: #e3e8ee;
  --bg-soft: #f4f8f6;
  --radius: 14px;
  --wrap: 1080px;
  --prose: 720px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.65;
  font-size: 17px;
}
a { color: var(--green-text); text-underline-offset: 2px; }
a:hover { color: var(--navy); }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 4px; }
img { max-width: 100%; height: auto; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 5; }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 64px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: baseline; text-decoration: none; color: var(--navy); font-size: 26px; letter-spacing: -0.04em; margin: 0; }
.logo-light { font-weight: 300; }
.logo-bold { font-weight: 800; position: relative; }
.logo-dot { position: absolute; top: 4px; right: -8px; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.site-header nav { margin-left: auto; }
.nav { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.nav a { color: var(--navy); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a[aria-current='page'], .nav a:hover { color: var(--green-text); }

/* Buttons */
.btn { display: inline-block; background: var(--green); color: var(--navy); font-weight: 800; text-decoration: none; padding: 12px 20px; border-radius: 999px; border: 2px solid var(--green); }
.btn:hover { background: #2bbd65; color: var(--navy); }
.btn-small { padding: 8px 14px; font-size: 14px; }
.btn-ghost { background: transparent; border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }

/* Breadcrumbs */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 20px 0; margin: 0; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: '›'; margin-right: 6px; }
.crumbs { padding: 0; }

/* Article */
.prose { max-width: calc(var(--prose) + 40px); }
.page-head { padding: 28px 0 8px; }
.kicker { text-transform: uppercase; letter-spacing: 0.08em; font-size: 13px; font-weight: 800; color: var(--green-text); margin: 0 0 8px; }
h1 { font-size: clamp(30px, 5vw, 44px); line-height: 1.12; letter-spacing: -0.02em; color: var(--navy); margin: 0 0 14px; }
h2 { font-size: clamp(22px, 3vw, 28px); line-height: 1.25; color: var(--navy); margin: 40px 0 12px; }
h3 { font-size: 19px; color: var(--navy); margin: 26px 0 8px; }
.lead { font-size: 20px; color: var(--ink); margin: 0 0 12px; }
.meta { color: var(--muted); font-size: 14px; margin: 0; }
section { scroll-margin-top: 80px; }
ul, ol { padding-left: 22px; }
li { margin: 6px 0; }
blockquote { margin: 20px 0; padding: 14px 18px; border-left: 4px solid var(--green); background: var(--bg-soft); border-radius: 0 var(--radius) var(--radius) 0; }
.callout { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin: 20px 0; }
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { counter-increment: step; position: relative; padding-left: 48px; margin: 16px 0; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--green); color: var(--navy); font-weight: 800; display: flex; align-items: center; justify-content: center; }
table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 16px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--navy); background: var(--bg-soft); }
.table-scroll { overflow-x: auto; }

/* TOC */
.toc { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin: 22px 0; background: #fff; }
.toc-title { font-weight: 800; color: var(--navy); margin: 0 0 6px; }
.toc ul { margin: 0; padding-left: 18px; }

/* FAQ, sources */
.faq details { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; margin: 10px 0; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--navy); }
.faq details > div { margin-top: 8px; }
.sources { font-size: 15px; color: var(--muted); border-top: 1px solid var(--line); margin-top: 40px; }

/* CTA */
.cta { background: var(--navy); color: #fff; border-radius: 22px; padding: 32px 28px; margin: 48px auto; max-width: calc(var(--wrap) - 40px); }
.cta h2 { color: #fff; margin-top: 0; }
.cta p { max-width: 640px; }
.cta .btn-ghost { border-color: #fff; color: #fff; }
.cta .btn-ghost:hover { background: #fff; color: var(--navy); }
.cta-buttons { display: flex; flex-wrap: wrap; gap: 12px; }

/* Cards */
.related { margin-bottom: 48px; }
.cards { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.cards li { margin: 0; }
.cards a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); background: #fff; }
.cards a:hover { border-color: var(--green); box-shadow: 0 4px 18px rgba(13, 35, 63, 0.08); }
.cards strong { color: var(--navy); line-height: 1.3; }
.cards span { font-size: 15px; color: var(--muted); }
.cards time { font-size: 13px; color: var(--muted); margin-top: auto; }
.cards-blog { grid-template-columns: 1fr; }

/* Footer del SPA (contenido/footer.css): restablece lo que en la app hace el preflight de Tailwind. */
.mb-footer { font-size: 12px; line-height: 1.5; }
.mb-footer *, .mb-footer *::before, .mb-footer *::after { box-sizing: border-box; border: 0 solid; }
.mb-footer :where(h4, h5, p, ul, li) { margin: 0; padding: 0; }
.mb-footer ul { list-style: none; }
.mb-footer a { color: inherit; text-decoration: inherit; }
.mb-footer img, .mb-footer svg { vertical-align: middle; }
.mb-footer svg { display: block; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-header { position: static; }
  .header-inner { padding-top: 10px; padding-bottom: 10px; gap: 8px 14px; }
  .site-header nav { order: 3; margin-left: 0; width: 100%; overflow-x: auto; }
  .nav { flex-wrap: nowrap; gap: 16px; white-space: nowrap; padding-bottom: 4px; }
  .site-header .btn-small { margin-left: auto; }
  .lead { font-size: 18px; }
}
}
