:root { color-scheme: light; }
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: #1e293b;
  background: #ffffff;
  line-height: 1.65;
}
a { color: #1d4ed8; }
.site-header {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-header .brand { font-weight: 700; color: #1e293b; text-decoration: none; font-size: 1.05rem; }
.site-header nav a { margin-left: 20px; font-size: 0.9rem; font-weight: 500; text-decoration: none; color: #475569; }
.site-header nav a:hover { color: #1d4ed8; }
main { max-width: 720px; margin: 0 auto; padding: 8px 20px 48px; }
h1 { font-size: 1.9rem; font-weight: 800; color: #0f172a; line-height: 1.25; margin: 0.4em 0 0.3em; }
h2 { font-size: 1.3rem; font-weight: 700; color: #0f172a; margin: 1.6em 0 0.5em; }
p { margin: 0.9em 0; }
.lead { color: #475569; font-size: 1.05rem; }
.meta { color: #94a3b8; font-size: 0.85rem; }
ul { padding-left: 1.3em; }
li { margin: 0.4em 0; }
.back a { text-decoration: none; font-size: 0.9rem; }
.post-list { list-style: none; padding: 0; margin: 24px 0; }
.post-card { border: 1px solid #e2e8f0; border-radius: 12px; margin-bottom: 14px; overflow: hidden; }
.post-card a { display: block; text-decoration: none; color: inherit; }
.post-card-body { padding: 16px 20px 18px; }
.post-card h2 { margin: 0 0 6px; font-size: 1.1rem; }
.post-card p { margin: 0 0 8px; color: #475569; font-size: 0.95rem; }
.post-card:hover { border-color: #1d4ed8; }
.hero-banner { margin: 20px 0 28px; border-radius: 16px; overflow: hidden; line-height: 0; }
.hero-banner svg { display: block; width: 100%; height: auto; }
.hero-banner-sm { margin: 0; border-radius: 0; }
.hero-banner-sm svg { max-height: 140px; object-fit: cover; }
.site-footer { max-width: 720px; margin: 0 auto; padding: 24px 20px 40px; color: #94a3b8; font-size: 0.85rem; border-top: 1px solid #e2e8f0; }
/* Firma del autor al pie del artículo. */
.autor {
  margin: 40px 0 0; padding: 20px 22px;
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px;
}
.autor-nombre { margin: 0; font-weight: 700; color: #0f172a; }
.autor-cargo { margin: 2px 0 10px; font-size: .88rem; color: #2563eb; font-weight: 600; }
.autor-bio { margin: 0; font-size: .92rem; color: #475569; }

/* Tablas de datos (tabla de tramos de RETA y similares). El contenedor
   .tabla-scroll lleva el desplazamiento lateral en móvil, para que una tabla
   ancha no obligue a mover toda la página de lado. */
.tabla-scroll { overflow-x: auto; margin: 22px 0; border: 1px solid #e2e8f0; border-radius: 10px; }
.tabla-scroll table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tabla-scroll th, .tabla-scroll td { padding: 9px 13px; text-align: left; border-bottom: 1px solid #eef2f7; white-space: nowrap; }
.tabla-scroll thead th { background: #f1f5f9; color: #475569; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.tabla-scroll tbody tr:last-child td { border-bottom: none; }
.tabla-scroll tbody tr:nth-child(even) { background: #f8fafc; }
.tabla-scroll td.num { text-align: right; font-variant-numeric: tabular-nums; }
.tabla-scroll td.txt { white-space: normal; min-width: 190px; }
.tabla-nota { font-size: .86rem; color: #64748b; margin-top: -10px; }
.dato-destacado {
  background: #eff6ff; border-left: 4px solid #2563eb; border-radius: 0 8px 8px 0;
  padding: 14px 18px; margin: 22px 0;
}
.dato-destacado p { margin: 0; }

.cta-box {
  margin: 2.8em 0 1em;
  padding: 32px 28px;
  border-radius: 18px;
  background: linear-gradient(135deg, #1e3a8a, #1d4ed8);
  text-align: center;
}
.cta-box h2 { color: #ffffff; margin: 0 0 8px; }
.cta-box p { color: #bfdbfe; margin: 0 0 20px; font-size: 1rem; }
.cta-button {
  display: inline-block;
  background: #ffffff;
  color: #1d4ed8;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 30px;
  border-radius: 10px;
  text-decoration: none;
  transition: background-color 0.15s ease;
}
.cta-button:hover { background: #dbeafe; }
.related { margin-top: 2.5em; }
.related h2 { margin-bottom: 0.8em; }
.related-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.related-card { border: 1px solid #e2e8f0; border-radius: 12px; }
.related-card a { display: block; padding: 14px 16px; text-decoration: none; color: inherit; }
.related-card h3 { margin: 0 0 4px; font-size: 0.98rem; color: #0f172a; }
.related-card p { margin: 0; color: #64748b; font-size: 0.88rem; }
.related-card:hover { border-color: #1d4ed8; }