/* Paginas nuevas del programa creativo (blog y hoja SUTA). Solo se carga en esas paginas:
   no cambia ninguna pagina existente. Tokens con contraste AA comprobado (ver docs/creativo/IDENTIDAD.md). */
body.ec-blog {
  --ec-bg: #fbfcf8;
  --ec-surface: #ffffff;
  --ec-text: #192524;
  --ec-muted: #56635f;
  --ec-line: #dce6e2;
  --ec-teal: #0b5c5a;
  --ec-blue: #3667a6;
  --ec-gray: #7d8b87;
  --ec-gold: #9a6200;
  --ec-gold-soft: #fbf1d9;
  background: var(--ec-bg);
  color: var(--ec-text);
}
@media (prefers-color-scheme: dark) {
  body.ec-blog {
    --ec-bg: #101b1a;
    --ec-surface: #172422;
    --ec-text: #e6eeeb;
    --ec-muted: #a9b8b3;
    --ec-line: #2c3d3a;
    --ec-teal: #5fc4b8;
    --ec-blue: #8db2e8;
    --ec-gray: #8d9c97;
    --ec-gold: #e8b04f;
    --ec-gold-soft: #2a2414;
  }
  body.ec-blog .site-header { background: rgba(16, 27, 26, .94); border-bottom-color: var(--ec-line); }
  body.ec-blog nav a { color: var(--ec-muted); }
  body.ec-blog nav a:hover { background: var(--ec-surface); color: var(--ec-text); }
  body.ec-blog .brand { color: var(--ec-text); }
  body.ec-blog .secondary-button { background: transparent; color: var(--ec-text); border-color: var(--ec-line); }
  body.ec-blog .primary-button { background: var(--ec-teal); color: #101b1a; }
}
body.ec-blog .fine-print,
body.ec-blog .last-updated,
body.ec-blog .ec-lede,
body.ec-blog .ec-article p { color: var(--ec-muted); }
body.ec-blog .ec-article strong,
body.ec-blog .ec-article h1,
body.ec-blog .ec-article h2 { color: var(--ec-text); }
body.ec-blog .ec-article a:not(.primary-button):not(.secondary-button) { color: var(--ec-teal); }
body.ec-blog .eyebrow { color: var(--ec-teal); }

.ec-article { max-width: 760px; padding: 32px 0 56px; }
.ec-article section { margin-top: 40px; }
.ec-article h1 { font-size: clamp(2rem, 6vw, 3.2rem); line-height: 1.05; }
.ec-article h2 { font-size: clamp(1.35rem, 3.6vw, 1.85rem); line-height: 1.15; margin-bottom: .7rem; }
.ec-article p, .ec-steps li { font-size: 1.04rem; line-height: 1.62; }
.ec-lede { font-size: 1.15rem !important; }

.ec-answer {
  margin-top: 26px;
  padding: 20px 22px;
  border-left: 5px solid var(--ec-gold);
  background: var(--ec-gold-soft);
  border-radius: 6px;
}
.ec-answer h2 { font-size: 1.1rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: .4rem; }
.ec-answer p { margin: 0; color: var(--ec-text) !important; }

.ec-figure {
  margin: 22px 0 10px;
  padding: 16px;
  border: 1px solid var(--ec-line);
  border-radius: 8px;
  background: var(--ec-surface);
}
.ec-figure figcaption { display: grid; gap: 2px; margin-bottom: 10px; color: var(--ec-text); }
.ec-figure figcaption span { color: var(--ec-muted); font-size: .9rem; }
.ec-chart { display: block; width: 100%; max-width: 640px; height: auto; overflow: visible; }
.ec-chart text { font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; font-variant-numeric: tabular-nums; }
.ec-chart-label { fill: var(--ec-text); font-size: 11px; }
.ec-chart-value { fill: var(--ec-text); font-size: 11px; font-weight: 700; }
.ec-chart-note { fill: var(--ec-muted); font-size: 10px; }
.ec-chart-group { fill: var(--ec-muted); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.ec-chart-axis { stroke: var(--ec-line); stroke-width: 1; }
.ec-bar-suta { fill: var(--ec-gold); }
.ec-bar-teal { fill: var(--ec-teal); }
.ec-bar-blue { fill: var(--ec-blue); }
.ec-bar-gray { fill: var(--ec-gray); }
.ec-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 0; margin: 10px 0 0; font-size: .9rem; color: var(--ec-text); }
.ec-legend li { display: inline-flex; align-items: center; gap: 6px; }
.ec-swatch { display: inline-block; width: 12px; height: 12px; border-radius: 2px; }
.ec-swatch.ec-bar-suta { background: var(--ec-gold); }
.ec-swatch.ec-bar-teal { background: var(--ec-teal); }
.ec-swatch.ec-bar-blue { background: var(--ec-blue); }
.ec-swatch.ec-bar-gray { background: var(--ec-gray); }

.ec-table-wrap { overflow-x: auto; }
.ec-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; color: var(--ec-text); }
.ec-table caption { text-align: left; color: var(--ec-muted); font-size: .9rem; padding-bottom: 6px; }
.ec-table th, .ec-table td { padding: 8px 6px; border-bottom: 1px solid var(--ec-line); text-align: left; font-size: .95rem; }
.ec-table td { white-space: nowrap; }
.ec-details { margin-top: 12px; }
.ec-details summary { cursor: pointer; font-weight: 700; color: var(--ec-teal); padding: 6px 0; }

.ec-steps { padding-left: 1.3rem; color: var(--ec-muted); }
.ec-steps li { margin-bottom: .6rem; }
.ec-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 18px; }
.ec-text-link { font-weight: 700; }

.ec-posts { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
.ec-post { padding: 18px 20px; border: 1px solid var(--ec-line); border-radius: 8px; background: var(--ec-surface); }
.ec-post h2 { font-size: 1.3rem; margin-bottom: .4rem; }
.ec-post h2 a { text-decoration: none; }
.ec-post p { margin-bottom: .3rem; }
.ec-post-meta { font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ec-gold) !important; font-weight: 700; }

@media (max-width: 560px) {
  .ec-article { padding-top: 22px; }
  .ec-figure { padding: 12px 10px; }
  .ec-cta .primary-button, .ec-cta .secondary-button { width: 100%; justify-content: center; text-align: center; }
  .ec-table th, .ec-table td { font-size: .88rem; padding: 7px 4px; }
}
