/* ============================================================
   Blog — Sala de Lectura · Dr. Camilo Tarazona
   Dedicated blog index + long-form article reading layout.
   Reuses tokens, .post / .blog-grid, .crumb, .close-cta, .faq.
   ============================================================ */

/* ---------- Blog index hero ---------- */
.blog-hero { padding-top: 78px; }
.blog-hero .wrap { padding-block: clamp(48px,6vw,90px) clamp(28px,3vw,40px); max-width: 920px; text-align: center; }
.blog-hero .eyebrow { justify-content: center; }
.blog-hero .eyebrow::before { display: none; }
.blog-hero h1 { font-size: clamp(38px,5vw,68px); line-height: 1.04; margin: 18px 0 20px; }
.blog-hero .lede { max-width: 56ch; margin: 0 auto; }

/* ---------- Category filter ---------- */
.blog-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 34px; }
.blog-filter button {
  font-family: var(--font-body); font-size: 14px; font-weight: 600; color: var(--ink-2);
  background: var(--white); border: 1.5px solid var(--hair); border-radius: 999px;
  padding: 9px 18px; cursor: pointer; transition: all .22s;
}
.blog-filter button:hover { border-color: var(--gold); color: var(--forest); }
.blog-filter button.active { background: var(--olive); border-color: var(--olive); color: #fff; }

/* ---------- Featured post (first card, full width) ---------- */
.featured-post {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 0; margin-bottom: 30px;
  background: var(--white); border: 1px solid var(--hair); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .3s, box-shadow .3s, border-color .3s;
}
.featured-post:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(201,160,92,.5); }
.featured-post .fp-media { overflow: hidden; min-height: 320px; }
.featured-post .fp-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.3,1); }
.featured-post:hover .fp-media img { transform: scale(1.04); }
.featured-post .fp-body { padding: clamp(30px,4vw,52px); display: flex; flex-direction: column; gap: 16px; align-self: center; }
.featured-post .fp-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-d); }
.featured-post .fp-tag::before { content:""; width: 22px; height: 1.5px; background: var(--gold); }
.featured-post h2 { font-size: clamp(26px,3vw,40px); line-height: 1.1; }
.featured-post h2 a { transition: color .2s; }
.featured-post h2 a:hover { color: var(--olive); }
.featured-post .fp-dek { font-size: 16.5px; color: var(--ink-2); line-height: 1.6; max-width: 48ch; }
.featured-post .fp-meta { display: flex; align-items: center; gap: 12px; font-size: 13.5px; color: var(--ink-3); }
.featured-post .fp-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }

.post.hide { display: none; }

/* ============================================================
   ARTICLE (long-form reading)
   ============================================================ */
.article { padding-top: 78px; }
.article-head { max-width: 800px; margin: 0 auto; padding: clamp(34px,4vw,56px) var(--gutter) clamp(24px,3vw,36px); text-align: center; }
.article-head .crumb { justify-content: center; margin-bottom: 26px; }
.article-cat {
  display: inline-flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase; color: var(--olive);
  background: rgba(74,93,35,.08); border-radius: 999px; padding: 7px 15px;
}
.article-head h1 { font-size: clamp(32px,4.4vw,58px); line-height: 1.06; margin: 20px 0 18px; }
.article-dek { font-size: clamp(18px,2vw,22px); color: var(--ink-2); line-height: 1.55; max-width: 52ch; margin: 0 auto; font-family: var(--font-display); font-style: italic; }

/* Byline */
.byline { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 30px; }
.byline .ava { width: 46px; height: 46px; border-radius: 50%; background: var(--cream); border: 1px solid var(--hair); display: grid; place-items: center; flex: none; }
.byline .ava img { width: 30px; height: auto; }
.byline .bl-text { text-align: left; }
.byline .bl-name { font-size: 15px; font-weight: 700; color: var(--forest); }
.byline .bl-meta { font-size: 13px; color: var(--ink-3); display: flex; align-items: center; gap: 9px; margin-top: 2px; }
.byline .bl-meta .dot { width: 3.5px; height: 3.5px; border-radius: 50%; background: var(--gold); }

/* Featured figure */
.article-figure { max-width: 1000px; margin: 8px auto clamp(36px,5vw,60px); padding-inline: var(--gutter); }
.article-figure img { width: 100%; height: clamp(300px,42vw,520px); object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--sand); }
.article-figure figcaption { font-size: 13px; color: var(--ink-3); margin-top: 12px; text-align: center; font-style: italic; }

/* Prose */
.article-prose { max-width: 720px; margin: 0 auto; padding-inline: var(--gutter); }
.article-prose > p { font-size: clamp(17px,1.75vw,19.5px); line-height: 1.78; color: var(--ink); margin-bottom: 26px; }
.article-prose > p.first::first-letter {
  font-family: var(--font-display); font-size: 3.6em; line-height: .82; float: left;
  color: var(--olive); padding: 8px 14px 0 0; font-weight: 600;
}
.article-prose h2 {
  font-size: clamp(24px,2.8vw,34px); line-height: 1.15; margin: 44px 0 18px;
  color: var(--forest); scroll-margin-top: 100px;
}
.article-prose h3 { font-size: clamp(20px,2.2vw,25px); margin: 32px 0 14px; color: var(--forest); }
.article-prose ul { margin: 0 0 26px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 13px; }
.article-prose ul li { position: relative; padding-left: 30px; font-size: clamp(16px,1.7vw,18.5px); line-height: 1.65; color: var(--ink); }
.article-prose ul li::before {
  content:""; position: absolute; left: 4px; top: 11px; width: 9px; height: 9px;
  border-radius: 2px; background: var(--gold); transform: rotate(45deg);
}
.article-prose a.inline { color: var(--olive); font-weight: 600; border-bottom: 1.5px solid var(--gold); }
.article-prose a.inline:hover { background: rgba(201,160,92,.12); }

/* Pull quote */
.pullquote {
  margin: 40px 0; padding: 8px 0 8px 30px; border-left: 3px solid var(--gold);
  font-family: var(--font-display); font-style: italic; font-size: clamp(22px,2.6vw,30px);
  line-height: 1.4; color: var(--forest);
}

/* Callout box — "Cuándo consultar" */
.callout {
  margin: 36px 0; background: var(--white); border: 1px solid var(--hair); border-left: 4px solid var(--olive);
  border-radius: var(--radius-sm); padding: 26px 30px; box-shadow: var(--shadow-sm);
}
.callout .co-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.callout .co-head svg { width: 24px; height: 24px; color: var(--olive); flex: none; }
.callout .co-head h4 { font-size: 19px; color: var(--forest); }
.callout ul { margin: 0; }
.callout p { font-size: 16px; color: var(--ink-2); line-height: 1.6; }

/* Key points box (forest) */
.keypoints {
  margin: 40px 0; background: var(--forest); color: #ECE8DC; border-radius: var(--radius);
  padding: clamp(28px,4vw,40px); position: relative; overflow: hidden;
}
.keypoints .kp-eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.keypoints h4 { color: #fff; font-size: clamp(21px,2.4vw,27px); margin-bottom: 18px; line-height: 1.2; }
.keypoints ul { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.keypoints ul li { position: relative; padding-left: 30px; font-size: 16px; line-height: 1.55; color: #D9D6C8; }
.keypoints ul li::before { content:""; position: absolute; left: 2px; top: 8px; width: 10px; height: 10px; border-radius: 2px; background: var(--gold); transform: rotate(45deg); }
.keypoints .leaf-mark { opacity: .07; right: -50px; bottom: -60px; width: 280px; filter: brightness(2); }

/* Author bio card */
.author-card {
  max-width: 720px; margin: clamp(40px,5vw,64px) auto 0; padding: 32px 34px;
  background: var(--cream); border: 1px solid var(--hair); border-radius: var(--radius);
  display: flex; gap: 24px; align-items: flex-start;
}
.author-card .ac-photo { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; flex: none; background: var(--sand); border: 2px solid var(--white); box-shadow: var(--shadow-sm); }
.author-card .ac-name { font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--forest); }
.author-card .ac-role { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--olive); margin: 4px 0 12px; }
.author-card .ac-bio { font-size: 15px; color: var(--ink-2); line-height: 1.6; }
.author-card .ac-cta { margin-top: 14px; }

/* Related articles */
.related { border-top: 1px solid var(--hair); margin-top: clamp(48px,6vw,80px); }
.related .rel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
.related .rel-head h3 { font-size: clamp(24px,2.8vw,34px); }

@media (max-width: 920px) {
  .featured-post { grid-template-columns: 1fr; }
  .featured-post .fp-media { min-height: 240px; aspect-ratio: 16/10; }
}
@media (max-width: 620px) {
  .author-card { flex-direction: column; align-items: center; text-align: center; gap: 16px; }
  .byline .bl-text { text-align: center; }
  .byline { flex-direction: column; gap: 10px; }
}
