/*
 * ================================================================
 *  EL MAPA DEL DINERO — article.css
 *  Plantilla de artículo individual (fondo claro, lectura larga)
 *  Usa las variables --l-* definidas en sections.css (tema claro)
 * ================================================================
 */

.article-page { background:var(--l-bg); }

/* ----------------------------------------------------------------
   HERO DEL ARTÍCULO
---------------------------------------------------------------- */
.article-hero {
  padding      : 152px 0 48px;
  border-bottom: 1px solid var(--l-border);
}

.article-crumb {
  display        : inline-flex;
  align-items    : center;
  gap            : 6px;
  font-size      : 13px;
  font-weight    : 500;
  color          : var(--l-gold);
  margin-bottom  : 36px;
  transition     : gap 0.2s;
}
.article-crumb:hover { gap:10px; text-decoration:underline; }

.article-icon {
  width         : 56px;
  height        : 56px;
  border-radius : 50%;
  display       : flex;
  align-items   : center;
  justify-content: center;
  margin-bottom : 24px;
}
.article-icon svg { width:26px; height:26px; }

.article-tag {
  display        : inline-block;
  font-size      : 11px;
  font-weight    : 600;
  letter-spacing : 0.14em;
  text-transform : uppercase;
  padding        : 6px 14px;
  border-radius  : 100px;
  margin-bottom  : 22px;
}

.article-title {
  font-family    : var(--font-display);
  font-size      : clamp(30px, 4.4vw, 46px);
  font-weight    : 600;
  line-height    : 1.2;
  letter-spacing : -0.01em;
  color          : var(--l-text);
  max-width      : 800px;
  margin-bottom  : 22px;
}

.article-dek {
  font-size     : 19px;
  font-weight   : 400;
  line-height   : 1.6;
  color         : var(--l-muted);
  max-width     : 660px;
  margin-bottom : 28px;
}

.article-meta {
  display    : flex;
  align-items: center;
  gap        : 10px;
  font-size  : 13px;
  color      : var(--l-dim);
}
.article-meta .dot { opacity:0.6; }

/* ----------------------------------------------------------------
   CUERPO DEL ARTÍCULO
---------------------------------------------------------------- */
.article-body { max-width:700px; padding:56px 0 8px; }

.article-body p {
  font-size  : 17px;
  line-height: 1.85;
  color      : var(--l-muted);
  margin-bottom: 18px;
}

.article-body h2 {
  font-family  : var(--font-display);
  font-size    : clamp(22px, 3vw, 28px);
  font-weight  : 600;
  line-height  : 1.3;
  color        : var(--l-text);
  margin       : 52px 0 18px;
}
.article-body h2:first-of-type { margin-top:4px; }

.article-body h3 {
  font-family : var(--font-display);
  font-size   : 19px;
  font-weight : 600;
  color       : var(--l-text);
  margin      : 30px 0 12px;
}

.article-body strong { color:var(--l-text); font-weight:600; }
.article-body em     { font-style:italic; }

.article-body ol { margin:6px 0 26px; padding-left:22px; }
.article-body ol li {
  margin-bottom: 12px;
  font-size    : 16px;
  line-height  : 1.75;
  color        : var(--l-muted);
  padding-left : 6px;
}
.article-body ol li strong { color:var(--l-text); }

.article-table-wrap {
  overflow-x    : auto;
  margin        : 8px 0 30px;
  border        : 1px solid var(--l-border);
  border-radius : var(--r-md);
}
.article-body table {
  width           : 100%;
  border-collapse : collapse;
  font-size       : 14.5px;
  background      : var(--l-white);
}
.article-body th {
  text-align     : left;
  font-family    : var(--font-body);
  font-size      : 11px;
  font-weight    : 600;
  letter-spacing : 0.06em;
  text-transform : uppercase;
  color          : var(--l-dim);
  padding        : 12px 16px;
  border-bottom  : 1px solid var(--l-border);
  background     : rgba(13,19,32,0.02);
  white-space    : nowrap;
}
.article-body td {
  padding      : 11px 16px;
  border-bottom: 1px solid var(--l-border);
  color        : var(--l-muted);
  font-variant-numeric: tabular-nums;
}
.article-body tr:last-child td { border-bottom:none; }

.article-body ul { margin:6px 0 26px; }
.article-body ul li {
  position     : relative;
  padding-left : 22px;
  margin-bottom: 12px;
  font-size    : 16px;
  line-height  : 1.75;
  color        : var(--l-muted);
}
.article-body ul li::before {
  content      : '';
  position     : absolute;
  left:0; top:9px;
  width:6px; height:6px;
  border-radius: 50%;
  background   : var(--gold);
}
.article-body ul li strong { color:var(--l-text); }

/* Frase de impacto — línea aislada en negrita en el original */
.article-emphasis {
  font-family  : var(--font-display);
  font-style   : italic;
  font-size    : clamp(20px, 2.6vw, 25px);
  line-height  : 1.5;
  color        : var(--l-text);
  border-left  : 3px solid var(--gold);
  padding      : 2px 0 2px 24px;
  margin       : 8px 0 32px;
}

/* Líneas de "diálogo interno" / autoengaño — cursivas en secuencia */
.article-quote-line {
  font-style   : italic;
  font-size    : 16.5px;
  line-height  : 1.6;
  color        : var(--l-text);
  padding-left : 18px;
  border-left  : 2px solid rgba(158,110,26,0.35);
  margin-bottom: 10px;
}

/* Palabra clave aislada (ej. "Personales.") */
.article-keyword {
  font-family : var(--font-display);
  font-style  : italic;
  font-size   : 22px;
  color       : var(--l-gold);
  margin      : 4px 0 28px;
}

/* ----------------------------------------------------------------
   CTA — CIERRE CON REFERENCIA AL LIBRO
---------------------------------------------------------------- */
.article-cta {
  margin        : 48px 0 8px;
  padding       : 40px 36px;
  background    : var(--l-white);
  border        : 1px solid var(--l-border);
  border-left   : 4px solid var(--gold);
  border-radius : var(--r-lg);
}
.article-cta-eyebrow {
  display        : block;
  font-size      : 11px;
  font-weight    : 600;
  letter-spacing : 0.16em;
  text-transform : uppercase;
  color          : var(--l-gold);
  margin-bottom  : 14px;
}
.article-cta h2 { margin:0 0 16px !important; font-size:clamp(20px,2.6vw,26px); }
.article-cta p  { color:var(--l-muted); margin-bottom:14px; }
.article-cta p:last-of-type { margin-bottom:24px; }

/* ----------------------------------------------------------------
   NAV INFERIOR + RELACIONADOS
---------------------------------------------------------------- */
.article-footer-nav {
  max-width    : 700px;
  margin       : 56px auto 0;
  padding      : 28px 0 0;
  border-top   : 1px solid var(--l-border);
  display      : flex;
  justify-content: space-between;
  align-items  : center;
  flex-wrap    : wrap;
  gap          : 16px;
}
.article-footer-nav a { color:var(--l-gold); font-size:14px; font-weight:500; }
.article-footer-nav a:hover { text-decoration:underline; }

.article-related { padding:64px 0 110px; border-top:1px solid var(--l-border); margin-top:32px; }
.article-related h3 {
  font-family:var(--font-display); font-size:22px; font-weight:600;
  color:var(--l-text); margin-bottom:28px;
}
.article-related-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }

/* Blog-card en versión clara (mismo componente que .blog-card, override de tema) */
.article-related .blog-card {
  background  : var(--l-white);
  border-color: var(--l-border);
  box-shadow  : 0 1px 4px rgba(0,0,0,0.04), 0 4px 20px rgba(0,0,0,0.06);
}
.article-related .blog-card:hover {
  border-color: rgba(201,168,76,0.30);
  box-shadow  : 0 4px 20px rgba(0,0,0,0.08), 0 16px 44px rgba(0,0,0,0.10);
}
.article-related .blog-tag-pill {
  background:rgba(13,19,32,0.06); color:#3D4A5C; border-color:rgba(0,0,0,0.08);
}
.article-related .blog-date    { color:#9AA3B0; }
.article-related .blog-title   { color:var(--l-text); }
.article-related .blog-card:hover .blog-title { color:var(--gold); }
.article-related .blog-excerpt { color:#5A6478; }
.article-related .blog-read    { color:var(--gold); }

/* ----------------------------------------------------------------
   RESPONSIVE
---------------------------------------------------------------- */
@media (max-width:900px) {
  .article-related-grid { grid-template-columns:1fr; }
}
@media (max-width:768px) {
  .article-hero { padding:120px 0 40px; }
  .article-body { padding:40px 0 8px; }
  .article-cta  { padding:28px 24px; }
}
