/* ============================================================
   Ítaca Tower · Blog (index + article), ES and EN
   Porta Nova's blog layout (assets/blog.css) restyled in Ítaca's brand:
   Raleway, steel blue #41768F, navy #11313D, aqua #BEE6EC.
   Reuses tokens, header, footer, buttons, .ph and .g-ref from
   /styles.css + /itaca.css. Linked AFTER both. Lives in /blog/ so
   the blog never touches the landing's files.
   ============================================================ */

/* header stays solid and in the page flow (body also has .legal-page for the phone header rules) */
.blog-page .bar { position: sticky; }
.bar-nav a[aria-current="page"] { color: var(--blue) !important; }
/* no fixed bottom bar on the blog: only the WhatsApp float */
.blog-page { padding-bottom: 0; }
@media (max-width: 900px) { .blog-page .wa-float { bottom: calc(20px + env(safe-area-inset-bottom, 0px)); } }

.art-wrap { width: 100%; max-width: 860px; margin-inline: auto; padding-inline: var(--gutter); }

/* ====================  BLOG INDEX  ==================== */
.blog-head { padding-block: clamp(56px, 7vw, 104px) clamp(40px, 5vw, 64px); background: var(--tint); }
.blog-head .wrap { max-width: 1000px; margin-inline: 0; margin-left: max(0px, calc((100% - var(--wrap)) / 2)); }
.blog-head .h2 { max-width: 22ch; margin-bottom: 22px; color: var(--navy); }
.blog-head p:not(.eyebrow) { font-size: clamp(16px, 1.35vw, 19px); line-height: 1.6; color: #43535a; max-width: 60ch; margin: 0; }

.blog-list { padding-block: clamp(48px, 7vw, 96px); }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(32px, 3.4vw, 48px) 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; } }

.bcard { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.bcard .ph { aspect-ratio: 16 / 9; border-radius: var(--radius); }
.ph--photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ph--plan { background: #fff; border: 1px solid #DCE8EC; }
.ph--plan img { object-fit: contain; padding: 4%; }
.bcard .g-ref { top: 10px; left: 10px; font-size: 10px; }
.bcard p.bcard-tag { font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--blue); margin: 18px 0 0; }
.bcard h2, .bcard h3 { font-weight: 800; letter-spacing: -.01em; line-height: 1.2; font-size: clamp(20px, 1.7vw, 24px); color: var(--navy); margin: 20px 0 10px; transition: color .3s var(--ease); }
.bcard p { font-size: 15px; line-height: 1.6; color: #52616a; margin: 0 0 18px; }
.bcard-more { margin-top: auto; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); display: inline-flex; gap: 8px; align-items: center; }
.bcard-more::after { content: "→"; letter-spacing: 0; color: var(--blue); transition: transform .3s var(--ease); }
.bcard:hover h2, .bcard:hover h3 { color: var(--blue); }
.bcard:hover .bcard-more::after { transform: translateX(4px); }

/* ====================  ARTICLE  ==================== */
.art-top { padding-top: clamp(48px, 6vw, 88px); }
.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 { margin-bottom: 14px; }
.art-top h1 { font-weight: 900; letter-spacing: -.015em; line-height: 1.1; font-size: clamp(30px, 3.9vw, 50px); color: var(--navy); margin: 0 0 22px; }
.art-byline { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; padding: 16px 0 0; border-top: 1px solid #DCE8EC; font-size: 14px; line-height: 1.5; color: #52616a; }
.art-byline p { margin: 0; }
.art-byline b { font-weight: 700; color: var(--ink); }

.art-figure { margin: clamp(30px, 3.6vw, 46px) 0 0; }
.art-figure-media { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); margin: 0; }

.art-body { padding-block: clamp(40px, 5vw, 64px); }
.art-body p { font-size: 18px; line-height: 1.72; color: #25343b; margin: 0 0 22px; }
.art-body .art-lead { font-size: clamp(19px, 1.7vw, 21px); line-height: 1.6; color: var(--ink); margin-bottom: 28px; }
.art-body h2 { font-weight: 800; letter-spacing: -.01em; line-height: 1.2; font-size: clamp(23px, 2.3vw, 30px); color: var(--navy); margin: clamp(40px, 5vw, 54px) 0 16px; }
.art-body ul { margin: 0 0 24px; padding: 0; list-style: none; }
.art-body ul li { font-size: 18px; line-height: 1.6; color: #25343b; padding: 0 0 12px 30px; position: relative; }
.art-body ul li::before { content: ""; position: absolute; left: 4px; top: 12px; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.art-body b { font-weight: 700; color: var(--ink); }
.art-body a:not(.btn) { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.art-body a:not(.btn):hover { color: var(--navy); }

/* HTML tables (the spec wants them readable by Google, never as images) */
.art-table { overflow-x: auto; margin: 4px 0 12px; }
.art-body table { width: 100%; border-collapse: collapse; font-size: 16px; }
.art-body th, .art-body td { text-align: left; padding: 12px 14px; border-bottom: 1px solid #DCE8EC; line-height: 1.45; vertical-align: top; }
.art-body thead th { background: var(--navy); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.art-body tbody th { font-weight: 600; color: var(--ink); }
.art-body .val { text-align: right; white-space: nowrap; }
.art-body p.art-note { font-size: 14px; line-height: 1.55; color: #5b6a72; margin: 0 0 26px; }

/* CTA 1 and 2: aqua-tint box, one button */
.art-callout { display: flex; align-items: center; justify-content: space-between; gap: 18px 28px; flex-wrap: wrap;
  background: var(--tint); border-left: 4px solid var(--blue); border-radius: var(--radius);
  padding: clamp(22px, 2.6vw, 30px) clamp(22px, 3vw, 34px); margin: clamp(32px, 4vw, 44px) 0; }
.art-callout p { margin: 0 !important; font-size: 18px; font-weight: 600; line-height: 1.5; color: var(--navy); max-width: 38ch; }

/* CTA 3: navy closing card, one button */
.art-cta { background: radial-gradient(120% 120% at 0% 0%, var(--blue) 0%, var(--navy) 62%); color: #fff; border-radius: clamp(18px, 2vw, 24px);
  padding: clamp(30px, 4vw, 46px); margin: clamp(44px, 5vw, 64px) 0; }
.art-cta .art-cta-kick { color: var(--aqua); font-size: 12px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; margin: 0 0 12px; }
.art-cta p { color: rgba(255,255,255,.92); font-size: 19px; line-height: 1.6; margin: 0 0 24px; max-width: 46ch; }
.art-cta .btn--white { color: var(--navy); }

/* FAQ */
.art-faq { margin: clamp(44px, 5vw, 64px) 0 0; }
.art-faq h2 { margin-top: 0; margin-bottom: 6px; }
.art-faq .qa { border-top: 1px solid #DCE8EC; padding: 22px 0; }
.art-faq .qa:last-child { border-bottom: 1px solid #DCE8EC; }
.art-faq .qa h3 { font-weight: 700; font-size: 18px; line-height: 1.4; color: var(--ink); margin: 0 0 8px; }
.art-faq .qa p { font-size: 16px; line-height: 1.6; margin: 0; }

/* Sources: visible list at the end */
.art-sources { margin: clamp(44px, 5vw, 64px) 0 0; }
.art-sources h2 { margin-top: 0; font-size: clamp(20px, 1.8vw, 24px); }
.art-sources ul li { font-size: 15px; line-height: 1.55; color: #43535a; padding-bottom: 8px; }
.art-sources ul li::before { top: 9px; width: 6px; height: 6px; background: var(--aqua); box-shadow: 0 0 0 1px var(--blue); }

/* Related */
.art-related { background: var(--tint); padding-block: clamp(48px, 6vw, 80px); }
.art-related .eyebrow { margin-bottom: 14px; }
.art-related .sec-title { font-weight: 800; letter-spacing: -.01em; text-transform: uppercase; font-size: clamp(26px, 3vw, 38px); line-height: 1.12; color: var(--navy); margin: 0 0 clamp(28px, 3vw, 40px); }
.art-related .blog-grid { grid-template-columns: repeat(2, 1fr); max-width: 980px; }
@media (max-width: 760px) { .art-related .blog-grid { grid-template-columns: 1fr; } }

@media (max-width: 640px) {
  .art-body p, .art-body ul li { font-size: 17px; }
  .art-body table { font-size: 14px; }
  .art-body th, .art-body td { padding: 10px 8px; }
  .art-body thead th { font-size: 11px; letter-spacing: .03em; }
  .art-callout .btn, .art-cta .btn { width: 100%; }
  .art-callout .btn { white-space: normal; text-align: center; padding-block: 12px; }
}
