/* ============================================================
   OLGA PALOMARES · CSS COMPARTIDO — ARTÍCULOS DE BLOG
   Se carga DESPUÉS de styles.css y SOLO en las 6 páginas de
   artículo (blog-*.html y rendimiento-sentirse-observado.html).
   Contiene lo que es idéntico entre esos 6 artículos: cabecera,
   prose, callouts, citas, panel destacado, CTA de artículo,
   relacionados y pie de artículo.

   Lo que cambia de un artículo a otro (states-grid, compare-grid,
   myth-list, impact-grid, example-box, etc.) se queda en el
   <style> propio de cada artículo, cargado después de este.
   ============================================================ */

/* ── CABECERA DE ARTÍCULO ── */
.article-header { padding: clamp(40px,6vw,72px) var(--gutter) clamp(32px,4vw,52px); max-width: var(--max); margin-inline: auto; }
.article-meta-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 24px; }
.article-cat {
  display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 999px; background: var(--amber-pale); color: var(--amber-dark);
}
.article-date, .article-read { font-size: .82rem; color: var(--slate); font-weight: 600; }
.article-title {
  font-family: var(--serif); font-size: clamp(2rem,5vw,3.4rem); font-weight: 700;
  letter-spacing: -.04em; line-height: 1.06; color: var(--ink); margin-bottom: 20px; max-width: 22ch;
}
.article-intro { font-size: clamp(1.05rem,1.8vw,1.2rem); color: var(--slate); line-height: 1.78; max-width: 60ch; margin-bottom: 28px; font-weight: 500; }
.article-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 420px) {
  .article-actions .btn,
  .article-cta-actions .btn {
    width: 100%;
    justify-content: center;
    white-space: normal;
    text-align: center;
  }
}

/* ── IMAGEN DE CABECERA ── */
.article-hero-img { width: 100%; max-height: 520px; object-fit: cover; object-position: center 35%; display: block; }
.article-hero-fallback { width: 100%; max-height: 280px; min-height: 180px; background: linear-gradient(135deg,var(--sage-pale) 0%,var(--amber-pale) 100%); display: flex; align-items: center; justify-content: center; font-size: 4rem; }
.article-hero-caption { padding: 10px var(--gutter); font-size: .78rem; color: var(--slate); text-align: center; max-width: var(--max); margin-inline: auto; }
.article-hero-caption a { color: var(--slate); text-decoration: underline; }

/* ── PROSE ── */
.prose { padding: clamp(40px,5vw,64px) var(--gutter); max-width: calc(var(--max-prose) + var(--gutter)*2); margin-inline: auto; }
.prose h2 {
  font-family: var(--serif); font-size: clamp(1.5rem,2.5vw,2rem); font-weight: 700;
  letter-spacing: -.025em; line-height: 1.15; color: var(--ink); margin: clamp(40px,5vw,56px) 0 16px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-family: var(--serif); font-size: 1.2rem; font-weight: 700; color: var(--ink-soft); margin: 28px 0 10px; }
.prose p { font-size: 1.02rem; color: var(--ink-soft); line-height: 1.82; margin-bottom: 18px; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--ink); font-weight: 700; }

.prose-list { list-style: none; padding: 0; margin: 14px 0 22px; display: flex; flex-direction: column; gap: 9px; }
.prose-list li { display: flex; align-items: flex-start; gap: 10px; font-size: .97rem; color: var(--ink-soft); line-height: 1.62; }
.prose-list li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sage); margin-top: .5em; flex-shrink: 0; }
.prose-list--amber li::before { background: var(--amber); }
.prose-list--check li::before {
  content: "✓"; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: none; color: var(--sage-dark); font-size: .78rem; font-weight: 800; border: 1.5px solid var(--sage); margin-top: .22em;
}

/* ── CALLOUT ── */
.callout { background: linear-gradient(135deg,var(--sage-pale),rgba(232,150,58,.06)); border-left: 4px solid var(--sage); border-radius: 0 var(--r-lg) var(--r-lg) 0; padding: 22px 24px; margin: clamp(24px,3vw,36px) 0; }
.callout p { font-size: .97rem; color: var(--ink-soft); margin: 0; line-height: 1.72; }
.callout-title { font-weight: 800; color: var(--sage-dark); margin-bottom: 8px; font-size: .88rem; text-transform: uppercase; letter-spacing: .06em; }
.callout--amber { background: linear-gradient(135deg,var(--amber-pale),rgba(74,124,142,.05)); border-left-color: var(--amber); }
.callout--amber .callout-title { color: var(--amber-dark); }
.article-summary { margin-top: 0; }
.prose > .article-summary:first-child + h2 { margin-top: clamp(32px,4vw,44px); }

/* ── REFERENCIAS ── */
.article-references { margin-top: clamp(40px,5vw,56px); padding-top: 28px; border-top: 1px solid var(--smoke); }
.article-references h2 { margin-top: 0; font-size: clamp(1.3rem,2vw,1.65rem); }
.article-references ol { padding-left: 1.3rem; display: flex; flex-direction: column; gap: 12px; }
.article-references li { padding-left: 4px; color: var(--slate); font-size: .88rem; line-height: 1.65; }
.article-references a { color: var(--sage-dark); text-decoration: underline; text-underline-offset: 3px; }
.article-references a:hover { color: var(--ink); }

/* ── CITA ── */
.article-quote {
  margin: clamp(28px,4vw,44px) 0; padding: 26px 28px; background: var(--white); border: 1px solid var(--smoke);
  border-left: 4px solid var(--amber); border-radius: 0 var(--r-lg) var(--r-lg) 0; box-shadow: var(--shadow-xs);
  font-family: var(--serif); font-size: clamp(1.05rem,2vw,1.25rem); font-style: italic; font-weight: 600; color: var(--ink-soft); line-height: 1.55;
}

/* ── PANEL DESTACADO ── */
.highlight-panel {
  background: linear-gradient(135deg,var(--sage-ghost),var(--amber-pale)); border: 1px solid var(--smoke); border-radius: var(--r-lg);
  padding: clamp(24px,3vw,36px); margin: clamp(24px,3vw,36px) 0; position: relative; overflow: hidden;
}
.highlight-panel::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg,var(--sage),var(--amber)); border-radius: var(--r-lg) var(--r-lg) 0 0; }
.highlight-panel h2, .highlight-panel-title { font-family: var(--serif); font-size: 1.25rem; font-weight: 700; color: var(--ink); margin-bottom: 14px; margin-top: 0; }
.highlight-panel .prose-list { margin-bottom: 0; }

/* ── CTA DE ARTÍCULO ── */
.article-cta {
  background: var(--ink); border-radius: var(--r-xl); padding: clamp(36px,5vw,56px) clamp(28px,4vw,48px);
  margin: clamp(48px,6vw,80px) var(--gutter); max-width: calc(var(--max-prose) + var(--gutter)*2); margin-inline: auto;
  position: relative; overflow: hidden; text-align: center;
}
.article-cta::before { content: ""; position: absolute; right: -40px; top: -40px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle,rgba(74,124,142,.18) 0%,transparent 70%); pointer-events: none; }
.article-cta > * { position: relative; z-index: 1; }
.article-cta-tag { font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--sage-mid); display: block; margin-bottom: 12px; }
.article-cta-title { font-family: var(--serif); font-size: clamp(1.5rem,3vw,2.2rem); font-weight: 700; letter-spacing: -.025em; color: var(--white); line-height: 1.1; margin-bottom: 12px; }
.article-cta-sub { font-size: .97rem; color: rgba(255,255,255,.55); line-height: 1.7; margin-bottom: 28px; }
.article-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 14px; }
.article-cta-note { font-size: .78rem; color: rgba(255,255,255,.30); letter-spacing: .04em; }

/* ── RELACIONADOS ── */
.related-section { padding: 0 var(--gutter) clamp(48px,6vw,80px); max-width: calc(var(--max-prose) + var(--gutter)*2); margin-inline: auto; }
.related-title { font-family: var(--serif); font-size: 1.3rem; font-weight: 700; color: var(--ink); margin-bottom: 18px; letter-spacing: -.02em; }
.related-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.related-list li a {
  display: flex; align-items: center; gap: 10px; padding: 14px 18px; background: var(--white); border: 1px solid var(--smoke);
  border-radius: var(--r); font-size: .93rem; font-weight: 600; color: var(--ink-soft); transition: all var(--dur) var(--ease); box-shadow: var(--shadow-xs);
}
.related-list li a:hover { background: var(--sage-ghost); border-color: var(--sage-pale); color: var(--ink); transform: translateX(4px); }
.related-list li a::before { content: "→"; color: var(--sage); font-weight: 800; transition: transform var(--dur) var(--ease); }
.related-list li a:hover::before { transform: translateX(3px); }

/* ── PIE DE ARTÍCULO ── */
.article-footer { padding: clamp(32px,4vw,52px) var(--gutter) clamp(48px,6vw,80px); max-width: calc(var(--max-prose) + var(--gutter)*2); margin-inline: auto; border-top: 1px solid var(--smoke); }
.article-author { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.article-author-icon { width: 52px; height: 52px; border-radius: 50%; background: var(--sage-pale); display: grid; place-items: center; font-size: 1.4rem; flex-shrink: 0; }
.article-author-name { font-weight: 700; color: var(--ink); font-size: .97rem; margin-bottom: 2px; }
.article-author-name a { color: inherit; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: color var(--dur) var(--ease), text-decoration-color var(--dur) var(--ease); }
.article-author-name a:hover { color: var(--sage-dark); text-decoration-color: currentColor; }
.article-author-role { font-size: .82rem; color: var(--slate); }
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.article-tag { display: inline-flex; align-items: center; padding: 5px 12px; background: var(--sage-pale); color: var(--sage-dark); border-radius: 999px; font-size: .78rem; font-weight: 700; }
