/* ============================================================
   Oporto · Blog (index + article)
   Zinnia's LAYOUT, Oporto's colors + fonts (blue #00769F, Inter
   Tight / Inter). Reuses the site tokens, header, footer, buttons
   and .ph slots from styles.css. New rules prefixed .blog-/.art-.
   Linked AFTER styles.css.
   ============================================================ */

/* light page (homepage body is dark because of the hero) */
body.blog-page{ background:var(--white); color:var(--ink); }

/* keep the header in its solid state from the top of a blog page */
.blog-page .site-header{ background:rgba(242,241,238,.94); backdrop-filter:blur(14px); color:var(--ink);
  padding-top:calc(10px + env(safe-area-inset-top,0px)); padding-bottom:10px; box-shadow:0 1px 0 var(--line); }
.blog-page .site-header .brand-logo--white{ display:none; }
.blog-page .site-header .brand-logo--dark{ display:block; }
.blog-page .site-header .brand-logo{ height:36px; }
.blog-page .site-header .lang .is-active{ color:#fff; background:var(--ink); }
/* current-section underline on the Blog link */
.blog-page .nav a[href$="/blog/"]::after{ right:0; }

/* ---------- shared wrap for the article column ---------- */
.art-wrap{ width:100%; max-width:1000px; margin-inline:auto; padding-inline:var(--gutter); }

/* ====================  BLOG INDEX  ==================== */
.blog-head{ padding:calc(120px + env(safe-area-inset-top,0px)) 0 clamp(40px,6vw,72px); background:var(--cream); }
.blog-head .wrap{ max-width:900px; }
.blog-head .eyebrow{ margin-bottom:18px; }
.blog-head h1{ font-family:var(--font-head); font-weight:800; letter-spacing:-.03em; line-height:1.0;
  font-size:clamp(40px,6vw,74px); margin:0 0 18px; }
.blog-head p{ font-weight:300; font-size:clamp(17px,1.5vw,21px); color:var(--gray); max-width:620px; margin:0; }

.blog-list{ padding-block:clamp(48px,7vw,96px); background:var(--white); }
.blog-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:clamp(24px,3vw,40px); }
@media (max-width:1000px){ .blog-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:640px){ .blog-grid{ grid-template-columns:1fr; } }

/* Card = Zinnia card shape: rounded image, blue title, gray excerpt,
   "LEER ARTÍCULO →" in blue uppercase. No category eyebrow on the card. */
.bcard{ display:flex; flex-direction:column; text-decoration:none; color:inherit; }
.bcard .ph{ aspect-ratio:16/11; border-radius:var(--radius); overflow:hidden; }
.bcard h2{ font-family:var(--font-head); font-weight:700; letter-spacing:-.02em; line-height:1.18;
  font-size:30px; color:var(--blue); margin:16px 0 10px; }
.bcard p{ font-size:15px; line-height:1.55; color:var(--gray); margin:0 0 16px; }
.bcard-more{ margin-top:auto; font-size:12px; font-weight:600; letter-spacing:.12em; text-transform:uppercase;
  color:var(--blue); display:inline-flex; gap:8px; align-items:center; }
.bcard-more::after{ content:"→"; letter-spacing:0; transition:transform .3s var(--ease); }
.bcard:hover h2{ color:var(--blue-dark); }
.bcard:hover .bcard-more::after{ transform:translateX(4px); }
.bcard:hover .ph img{ transform:scale(1.03); }
.bcard .ph img{ transition:transform .8s var(--ease); }

/* ====================  ARTICLE  ==================== */
/* Light top: breadcrumb → blue eyebrow → dark H1 → meta line */
.art-top{ padding:calc(118px + env(safe-area-inset-top,0px)) 0 0; background:var(--white); }
.art-crumb{ font-size:13px; color:var(--gray); margin-bottom:26px; }
.art-crumb a{ color:var(--gray); text-decoration:none; }
.art-crumb a:hover{ color:var(--blue); }
.art-crumb b{ color:var(--ink); font-weight:600; }
.art-top .eyebrow{ color:var(--blue); margin-bottom:16px; }
.art-top h1{ font-family:var(--font-head); font-weight:800; letter-spacing:-.03em; line-height:1.05;
  font-size:clamp(34px,4.4vw,58px); color:var(--ink); margin:0 0 18px; }
.art-top h1 .hl, .blog-head h1 .hl{ color:var(--blue); }   /* highlighted phrase in the title */
.art-meta{ font-size:14px; color:var(--gray); margin:0; }

/* Featured image: rounded, content width, caption overlaid bottom-left */
.art-figure{ margin:clamp(30px,3.6vw,46px) 0 0; }
.art-figure-media{ position:relative; aspect-ratio:16/9; border-radius:var(--radius); overflow:hidden; }
.art-figure-media img{ width:100%; height:100%; object-fit:cover; display:block; }
.art-figure-media figcaption{ position:absolute; left:0; right:0; bottom:0; z-index:2;
  padding:28px 22px 16px; font-size:12px; line-height:1.4; color:rgba(255,255,255,.92);
  background:linear-gradient(0deg,rgba(0,0,0,.5),rgba(0,0,0,0)); }

/* Prose — single centered column */
.art-body{ padding:clamp(40px,5vw,64px) 0; }
.art-body p{ font-size:18px; line-height:1.72; color:#26272b; margin:0 0 22px; }
.art-body .art-lead{ font-size:clamp(19px,1.8vw,22px); line-height:1.6; font-weight:400; color:var(--ink); margin-bottom:28px; }
.art-body h2{ font-family:var(--font-head); font-weight:700; letter-spacing:-.02em; line-height:1.16;
  font-size:clamp(24px,2.5vw,33px); color:var(--ink); margin:clamp(40px,5vw,54px) 0 16px; }
.art-body h2 .art-step{ color:var(--blue); }   /* "Paso N." prefix in blue */
.art-body h3{ font-family:var(--font-head); font-weight:700; font-size:20px; color:var(--ink); margin:30px 0 10px; }
.art-body ul{ margin:0 0 24px; padding:0; list-style:none; }
.art-body ul li{ font-size:18px; line-height:1.6; color:#26272b; padding:0 0 12px 30px; position:relative; }
.art-body ul li::before{ content:""; position:absolute; left:4px; top:12px; width:7px; height:7px; border-radius:50%; background:var(--blue); }
.art-body ol{ margin:0 0 24px; padding-left:0; list-style:none; counter-reset:step; }
.art-body ol li{ font-size:18px; line-height:1.6; color:#26272b; padding:0 0 16px 46px; position:relative; counter-increment:step; }
.art-body ol li::before{ content:counter(step); position:absolute; left:0; top:1px; width:30px; height:30px; border-radius:50%;
  background:var(--blue); color:#fff; font-size:14px; font-weight:600; display:flex; align-items:center; justify-content:center; }
.art-body li b, .art-body p b{ font-weight:600; color:var(--ink); }
.art-body a{ color:var(--blue); text-decoration:underline; text-underline-offset:2px; }

/* simple tables for the money examples */
.art-body table{ width:100%; border-collapse:collapse; margin:4px 0 26px; font-size:16px; }
.art-body caption{ caption-side:top; text-align:left; font-weight:600; color:var(--ink); margin-bottom:10px; }
.art-body th, .art-body td{ text-align:left; padding:12px 14px; border-bottom:1px solid var(--line); line-height:1.4; vertical-align:top; }
.art-body thead th{ font-family:var(--font-head); font-weight:700; color:var(--ink); background:var(--cream); }
.art-body tbody th{ font-weight:600; color:var(--ink); }
.art-body td.val, .art-body th.val{ text-align:right; white-space:nowrap; }

/* Dark tie-in / next-step card near the end, with a CTA button */
.art-cta{ background:#1a1b1d; color:#fff; border-radius:clamp(18px,2vw,24px);
  padding:clamp(30px,4vw,46px); margin:clamp(44px,5vw,64px) 0; }
.art-cta h2{ color:#fff; margin:0 0 14px; font-family:var(--font-head); font-weight:700;
  letter-spacing:-.02em; line-height:1.18; font-size:clamp(23px,2.3vw,30px); }
.art-cta p{ color:rgba(255,255,255,.82); font-size:17px; line-height:1.65; margin:0 0 14px; }
.art-cta p:last-of-type{ margin-bottom:0; }
.art-cta .row-btns{ display:flex; gap:14px; flex-wrap:wrap; margin-top:26px; }
.art-cta .btn--solid{ background:var(--blue); border-color:var(--blue); color:#fff; }
.art-cta .btn--line{ border-color:rgba(255,255,255,.55); color:#fff; }

/* FAQ — open Q&A, thin dividers (no accordion) */
.art-faq{ margin:clamp(44px,5vw,64px) 0; }
.art-faq h2{ margin-bottom:6px; }
.art-faq .qa{ border-top:1px solid var(--line); padding:22px 0; }
.art-faq .qa:last-child{ border-bottom:1px solid var(--line); }
.art-faq .qa h3{ font-family:var(--font-head); font-weight:700; font-size:18px; color:var(--ink); margin:0 0 8px; }
.art-faq .qa p{ font-size:16px; line-height:1.6; color:#26272b; margin:0; }

/* Sources — kept small and subtle at the foot of the article */
.art-sources{ margin:clamp(36px,4vw,48px) 0 0; padding-top:28px; border-top:1px solid var(--line); }
.art-sources h2{ font-size:15px; letter-spacing:.1em; text-transform:uppercase; color:var(--gray); font-weight:600; margin:0 0 14px; }
.art-sources ol{ margin:0; padding-left:20px; }
.art-sources li{ font-size:13px; line-height:1.5; color:var(--gray); margin-bottom:8px; word-break:break-word; }
.art-sources a{ color:var(--blue); }

/* Related — "Sigue leyendo" cards */
.art-related{ background:var(--cream); padding-block:clamp(48px,6vw,80px); }
.art-related .sec-head{ margin-bottom:clamp(28px,3vw,40px); }
.art-related .eyebrow{ margin-bottom:14px; }
.art-related .sec-head h2{ font-family:var(--font-head); font-weight:800; letter-spacing:-.02em; font-size:clamp(26px,3vw,38px); margin:0; }
.art-related .blog-grid{ grid-template-columns:repeat(3,1fr); }
@media (max-width:900px){ .art-related .blog-grid{ grid-template-columns:1fr; } }
