/**
 * articulo-guia.css — capa editorial tipo monografía / artículo de investigación
 * Se activa con class="articulo-investigacion" en <body>. Debe enlazarse después
 * del <style> inline de cada guía para poder sobrescribir reglas con la misma clase.
 */
@import url("https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,500;0,8..60,600;0,8..60,700;1,8..60,400&display=swap");

:root {
  --article-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --article-ui: "Inter", "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --article-paper: #f7f6f3;
  --article-ink: #1a2332;
  --article-ink-muted: #3d4a5c;
  --article-rule: rgba(26, 35, 50, 0.12);
}

body.articulo-investigacion {
  background: var(--article-paper);
  color: var(--article-ink);
  font-kerning: normal;
  font-feature-settings: "kern" 1, "liga" 1, "onum" 1;
}

body.articulo-investigacion header,
body.articulo-investigacion footer {
  font-family: var(--article-ui);
}

/* Medida de columna tipo libro */
body.articulo-investigacion .container {
  max-width: 42rem;
}

body.articulo-investigacion .article-breadcrumb,
body.articulo-investigacion .article-meta,
body.articulo-investigacion .article-tag {
  font-family: var(--article-ui);
  letter-spacing: 0.02em;
}

body.articulo-investigacion .article-lecturas {
  font-family: var(--article-ui);
  font-size: 0.78rem;
  color: var(--article-ink-muted);
  margin-top: 0.9rem;
  line-height: 1.45;
  letter-spacing: 0.01em;
}

body.articulo-investigacion .article-lecturas__label {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  color: var(--article-ink-muted);
  margin-right: 0.4rem;
}

body.articulo-investigacion .article-lecturas__icon {
  display: block;
  flex-shrink: 0;
  opacity: 0.82;
}

body.articulo-investigacion .article-lecturas__n {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--article-ink);
}

body.articulo-investigacion .article-tag {
  background: transparent;
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 2px;
  font-weight: 600;
  font-size: 0.65rem;
}

body.articulo-investigacion .article-hero {
  font-family: var(--article-serif);
  border-bottom: none;
  padding-bottom: 2.75rem;
}

body.articulo-investigacion .article-hero::after {
  content: "";
  display: block;
  width: 100%;
  max-width: 6rem;
  height: 0;
  border-top: 1px solid var(--article-rule);
  border-bottom: 1px solid var(--article-rule);
  padding-bottom: 2px;
  margin-top: 1.75rem;
}

body.articulo-investigacion .article-hero h1 {
  font-family: var(--article-serif);
  font-weight: 700;
  font-size: clamp(1.65rem, 3.6vw, 2.35rem);
  line-height: 1.22;
  letter-spacing: -0.015em;
  color: var(--article-ink);
}

body.articulo-investigacion .article-lead {
  font-family: var(--article-serif);
  font-size: 1.08rem;
  line-height: 1.82;
  color: var(--article-ink-muted);
  max-width: none;
}

body.articulo-investigacion .article-body {
  font-family: var(--article-serif);
  padding-top: 2.5rem;
  padding-bottom: 3.25rem;
}

body.articulo-investigacion .article-body h2 {
  font-family: var(--article-serif);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: var(--article-ink);
  margin: 2.85rem 0 0.85rem;
  padding: 0 0 0.4rem;
  border-top: none;
  border-bottom: 1px solid var(--article-rule);
}

body.articulo-investigacion .article-body h2:first-child {
  margin-top: 0;
}

body.articulo-investigacion .article-body h3 {
  font-family: var(--article-serif);
  font-size: 1.05rem;
  font-weight: 600;
  font-style: italic;
  color: var(--article-ink);
  margin: 1.65rem 0 0.5rem;
  line-height: 1.4;
}

body.articulo-investigacion .article-body p {
  font-size: 1.0625rem;
  line-height: 1.82;
  color: var(--article-ink-muted);
  margin-bottom: 0.95rem;
}

@media (min-width: 640px) {
  body.articulo-investigacion .article-body p {
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    -webkit-hyphens: auto;
  }
}

body.articulo-investigacion .article-body ul,
body.articulo-investigacion .article-body ol {
  font-size: 1.02rem;
  line-height: 1.78;
  color: var(--article-ink-muted);
  padding-left: 1.35rem;
  margin-bottom: 1.1rem;
}

body.articulo-investigacion .article-body li {
  margin-bottom: 0.45rem;
  hyphens: auto;
  -webkit-hyphens: auto;
}

body.articulo-investigacion .article-body li::marker {
  color: rgba(61, 74, 92, 0.55);
}

body.articulo-investigacion .article-body a {
  color: #9a7b24;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

body.articulo-investigacion .article-body a:hover {
  color: #7a6218;
}

body.articulo-investigacion .article-body strong {
  color: var(--article-ink);
  font-weight: 600;
}

/* Infografías: títulos de figura más claros que el h2 de capítulo */
body.articulo-investigacion .infografia-section h2 {
  font-size: 1.15rem;
  font-weight: 700;
  font-style: normal;
  letter-spacing: -0.01em;
  margin: 0 0 0.75rem;
  padding: 0;
  border-bottom: none;
}

body.articulo-investigacion .infografia-section h3 {
  font-size: 1rem;
  font-style: normal;
}

body.articulo-investigacion .infografia-fig figcaption {
  font-family: var(--article-serif);
  font-size: 0.84rem;
  line-height: 1.72;
  text-align: left;
}

body.articulo-investigacion .infografia-fig .infografia-credit {
  font-family: var(--article-ui);
}

/* Callouts como nota al margen / recuadro sobrio */
body.articulo-investigacion .callout {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--article-rule);
  border-left-width: 3px;
  border-left-color: rgba(212, 175, 55, 0.65);
  border-radius: 2px;
  padding: 1rem 1.25rem;
  margin: 1.65rem 0;
}

body.articulo-investigacion .callout p {
  font-family: var(--article-serif);
  font-size: 0.98rem;
  line-height: 1.75;
  color: var(--article-ink-muted);
  text-align: left;
}

/* CTA: mantener legibilidad de botones */
body.articulo-investigacion .article-cta {
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--article-rule);
  box-shadow: none;
}

body.articulo-investigacion .article-cta h2 {
  font-family: var(--article-serif);
  font-size: 1.2rem;
  font-weight: 700;
  font-style: normal;
  border-bottom: none;
  margin: 0 0 0.65rem;
  padding: 0;
}

body.articulo-investigacion .article-cta p {
  font-size: 1rem;
  text-align: center;
}

body.articulo-investigacion .article-cta .btn {
  font-family: var(--article-ui);
}

/* Referencias bibliográficas (unificado en todas las guías articulo-investigacion) */
body.articulo-investigacion .article-references {
  margin-top: 2.25rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--article-rule);
  font-family: var(--article-serif);
  font-size: 0.76rem;
  line-height: 1.65;
  color: var(--article-ink-muted);
}

body.articulo-investigacion .article-body h2.article-references-heading {
  font-family: var(--article-ui);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-style: normal;
  color: var(--article-ink);
  border-top: none;
  border-bottom: none;
  margin: 0 0 0.45rem;
  padding: 0;
  line-height: 1.35;
}

body.articulo-investigacion .article-references-intro {
  margin: 0 0 0.75rem;
  font-family: var(--article-serif);
  font-size: 0.74rem;
  line-height: 1.65;
  color: var(--article-ink-muted);
}

body.articulo-investigacion .article-references-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.8rem;
  line-height: 1.68;
}

body.articulo-investigacion .article-references-list li {
  padding-left: 0.75rem;
  border-left: 2px solid rgba(154, 123, 36, 0.38);
  margin: 0;
}

body.articulo-investigacion .article-references-list em {
  font-style: italic;
  color: var(--article-ink);
}

body.articulo-investigacion .article-references-list a {
  color: #9a7b24;
  word-break: break-word;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

body.articulo-investigacion .article-references-list a:hover {
  color: #7a6218;
}

/* Tarjetas y grillas auxiliares (p. ej. lavado) */
body.articulo-investigacion .sintoma-item h5 {
  font-family: var(--article-ui);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
}

body.articulo-investigacion .sintoma-item p {
  font-family: var(--article-serif);
  font-size: 0.86rem;
  line-height: 1.65;
  text-align: left;
}

body.articulo-investigacion .etapa-card h4 {
  font-family: var(--article-ui);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.articulo-investigacion .etapa-card p,
body.articulo-investigacion .etapa-card .intensidad {
  font-family: var(--article-serif);
  text-align: left;
}

/* Tablas comparativas: cifras y etiquetas en sans */
body.articulo-investigacion .compare-table,
body.articulo-investigacion .compare-table caption {
  font-family: var(--article-ui);
}

body.articulo-investigacion .compare-table td,
body.articulo-investigacion .compare-table th {
  font-size: 0.82rem;
}

@media (max-width: 720px) {
  body.articulo-investigacion .container {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }

  body.articulo-investigacion .article-body h2:not(.article-references-heading) {
    font-size: 1.12rem;
  }

  body.articulo-investigacion .article-body p {
    text-align: left;
  }

  body.articulo-investigacion .article-references {
    margin-top: 1.75rem;
    padding-top: 1.1rem;
  }
}
