/* =========================================================================
   iCIEN — Centro de Conocimiento
   Estilos compartidos para hub, categorías y artículos
   ========================================================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #1d3c72;
  --navy-light: #2e54a0;
  --navy-dark: #142a52;
  --teal-dim: rgba(29,60,114,0.08);
  --gold: #b87814;
  --gold-light: #d4961e;
  --gold-dim: rgba(184,120,20,0.12);
  --red: #8b1c1c;
  --text: #1d3c72;
  --text-soft: #2e4a7a;
  --text-muted: #7a8aa8;
  --bg: #faf9f7;
  --bg2: #f0ede8;
  --bg3: #e8e4dd;
  --border: rgba(29,60,114,0.1);
  --border-strong: rgba(29,60,114,0.18);
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-serif: 'Newsreader', Georgia, serif;
  --max: 1200px;
  --max-narrow: 760px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--navy); border-radius: 3px; }

img { max-width: 100%; display: block; }
a { color: inherit; }

/* ---------- NAV ---------- */
.bnav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  height: 72px;
  background: rgba(250,249,247,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s, box-shadow 0.3s;
}
.bnav.scrolled { background: rgba(250,249,247,0.99); box-shadow: 0 2px 12px rgba(29,60,114,0.08); }
.bnav-logo img { height: 38px; }
.bnav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
}
.bnav-links a {
  color: var(--text-soft);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s;
  white-space: nowrap;
}
.bnav-links a:hover, .bnav-links a.active { color: var(--navy); }
/* Campus + Store nav items */
.bnav-divider {
  width: 1px;
  height: 20px;
  background: var(--border);
  flex-shrink: 0;
}
.bnav-links a.nav-campus {
  color: var(--gold-light);
  font-weight: 600;
}
.bnav-links a.nav-campus:hover { color: var(--gold); }
.bnav-links a.nav-store {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-right: 18px;
}
.bnav-links a.nav-store svg { width: 17px; height: 17px; flex-shrink: 0; }
.bnav-links a.nav-store:hover { color: var(--navy); }
.bnav-right { display: flex; align-items: center; gap: 16px; }
.lang-toggle {
  display: flex;
  background: var(--bg3);
  border-radius: 999px;
  padding: 3px;
}
.lang-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  cursor: pointer;
  border-radius: 999px;
  transition: all 0.2s;
}
.lang-btn.active { background: var(--navy); color: white; }
.btn-cta {
  background: var(--navy);
  color: white !important;
  padding: 10px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.2s;
  border: none;
  cursor: pointer;
  display: inline-block;
}
.btn-cta:hover { background: var(--navy-light); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--navy);
  padding: 10px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  border: 1.4px solid var(--navy);
  letter-spacing: 0.02em;
  transition: all 0.2s;
  display: inline-block;
}
.btn-outline:hover { background: var(--teal-dim); transform: translateY(-1px); }
.btn-gold {
  background: var(--gold);
  color: white !important;
  padding: 12px 26px;
  border-radius: 999px;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(184,120,20,0.35);
  transition: all 0.2s;
  display: inline-block;
  border: none;
  cursor: pointer;
}
.btn-gold:hover { background: var(--gold-light); transform: translateY(-1px); }

/* ---------- LAYOUT ---------- */
.page { padding-top: 72px; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }

/* ---------- BREADCRUMB ---------- */
.breadcrumb {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 5vw 0;
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  letter-spacing: 0.03em;
}
.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb .sep { opacity: 0.5; }
.breadcrumb .current { color: var(--navy); font-weight: 600; }

/* ---------- HUB HERO ---------- */
.hub-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 5vw 40px;
  text-align: center;
}
.hub-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 16px;
}
.hub-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  text-wrap: balance;
}
.hub-sub {
  font-size: 18px;
  color: var(--text-soft);
  max-width: 680px;
  margin: 0 auto 32px;
  line-height: 1.55;
}

/* ---------- SEARCH ---------- */
.search-box {
  max-width: 560px;
  margin: 0 auto;
  position: relative;
}
.search-input {
  width: 100%;
  background: white;
  border: 1.4px solid var(--border-strong);
  border-radius: 999px;
  padding: 16px 22px 16px 52px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--navy);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 16px rgba(29,60,114,0.04);
}
.search-input::placeholder { color: var(--text-muted); }
.search-input:focus { border-color: var(--navy); box-shadow: 0 0 0 4px rgba(29,60,114,0.08); }
.search-icon {
  position: absolute;
  left: 20px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

/* ---------- SECTION ---------- */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 60px 5vw;
}
.section-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  line-height: 1.15;
}
.section-sub {
  color: var(--text-soft);
  font-size: 16px;
  max-width: 640px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.section-link {
  color: var(--navy);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  border-bottom: 1.5px solid var(--gold);
  padding-bottom: 2px;
  transition: color 0.2s;
}
.section-link:hover { color: var(--gold); }

/* ---------- CATEGORY GRID (HUB) ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.cat-card {
  position: relative;
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  min-height: 280px;
}
.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(29,60,114,0.12);
  border-color: var(--border-strong);
}
.cat-card-img {
  height: 130px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cat-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,0.04) 0, rgba(255,255,255,0.04) 1px, transparent 1px, transparent 12px);
}
.cat-card-img--photo { display: block; }
.cat-card-img--photo::after { display: none; }
.cat-card-img--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.cat-card-mark {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  color: white;
  letter-spacing: -0.02em;
  text-align: center;
  line-height: 1;
}
.cat-card-body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.cat-card-tag {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gold);
  margin-bottom: 8px;
}
.cat-card-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.2;
}
.cat-card-desc {
  font-size: 13.5px;
  color: var(--text-soft);
  line-height: 1.55;
  flex: 1;
}
.cat-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--text-muted);
}
.cat-card-count { font-weight: 600; color: var(--navy); }
.cat-card-arrow {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--teal-dim);
  display: flex; align-items: center; justify-content: center;
  color: var(--navy);
  transition: background 0.2s, transform 0.2s;
}
.cat-card:hover .cat-card-arrow { background: var(--navy); color: white; transform: translateX(2px); }

/* ---------- ARTICLE CARDS (GRID) ---------- */
.art-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.art-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.art-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(29,60,114,0.1);
  border-color: var(--border-strong);
}
.art-img {
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  background-color: var(--bg3);
  position: relative;
}
.art-body { padding: 22px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.art-cat {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gold);
  margin-bottom: 10px;
}
.art-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.art-excerpt {
  font-size: 13.5px;
  color: var(--text-soft);
  line-height: 1.55;
  flex: 1;
  margin-bottom: 14px;
}
.art-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 11.5px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.art-meta .dot { opacity: 0.5; }

/* ---------- FEATURED CARD (variant) ---------- */
.art-feat {
  grid-column: span 2;
  grid-row: span 2;
}
.art-feat .art-img { aspect-ratio: 16 / 9; }
.art-feat .art-title { font-size: 28px; line-height: 1.1; }
.art-feat .art-excerpt { font-size: 15px; }
.art-feat .art-body { padding: 28px 30px 32px; }

/* ---------- CATEGORY PAGE HERO ---------- */
.cat-hero {
  position: relative;
  padding: 64px 5vw 56px;
  overflow: hidden;
  color: white;
}
.cat-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.04) 0, rgba(255,255,255,0.04) 1px, transparent 1px, transparent 14px);
  pointer-events: none;
}
.cat-hero--banner {
  padding: 0;
  color: inherit;
  background: #f7f7f5;
  height: clamp(230px, 29vw, 360px);
}
.cat-hero--banner::before { display: none; }
.cat-hero--banner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}
.cat-hero--banner .cat-hero-tag {
  position: absolute;
  top: 22px;
  left: 5vw;
  z-index: 2;
  margin: 0;
  white-space: nowrap;
  color: var(--navy);
  border-color: rgba(29,60,114,0.35);
  background: rgba(255,255,255,0.7);
}
.cat-hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.cat-hero-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.85);
  margin-bottom: 14px;
  padding: 5px 12px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 999px;
}
.cat-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  text-wrap: balance;
}
.cat-hero-sub {
  font-size: 17px;
  line-height: 1.55;
  max-width: 680px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 32px;
}
.cat-hero-stats {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  font-family: var(--font-display);
}
.cat-hero-stat .n {
  font-size: 28px;
  font-weight: 800;
  color: white;
  line-height: 1;
}
.cat-hero-stat .l {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.7);
  margin-top: 6px;
}

/* ---------- CATEGORY PAGE BODY ---------- */
.cat-body {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 5vw 80px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
}
.cat-toc {
  position: sticky;
  top: 96px;
  align-self: start;
}
.cat-toc-title {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.cat-toc ul { list-style: none; }
.cat-toc li { margin-bottom: 10px; }
.cat-toc a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  display: block;
  padding: 6px 0 6px 14px;
  border-left: 2px solid var(--border);
  transition: color 0.2s, border-color 0.2s;
}
.cat-toc a:hover, .cat-toc a.active { color: var(--navy); border-color: var(--gold); }

.cat-content {
  min-width: 0;
}
.cat-intro {
  font-size: 17px;
  color: var(--text-soft);
  line-height: 1.7;
  padding: 0 0 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}
.cat-intro p + p { margin-top: 16px; }

.filter-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  align-items: center;
}
.filter-chip {
  background: white;
  border: 1px solid var(--border);
  color: var(--text-soft);
  padding: 7px 14px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.02em;
}
.filter-chip:hover { border-color: var(--navy); color: var(--navy); }
.filter-chip.active { background: var(--navy); color: white; border-color: var(--navy); }

.cat-art-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.empty-state {
  text-align: center;
  padding: 64px 24px;
  background: white;
  border: 1px dashed var(--border-strong);
  border-radius: 14px;
  color: var(--text-muted);
}
.empty-state-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.empty-state p { font-size: 14px; }
.empty-state .soon {
  display: inline-block;
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 5px 12px;
  border: 1px solid var(--gold);
  border-radius: 999px;
}

/* ---------- ARTICLE PAGE ---------- */
.article-hero {
  max-width: var(--max-narrow);
  margin: 0 auto;
  padding: 32px 5vw 28px;
  text-align: left;
}
.article-eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 16px;
  text-decoration: none;
  padding: 5px 12px;
  background: var(--gold-dim);
  border-radius: 999px;
}
.article-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: 18px;
  text-wrap: balance;
}
.article-lede {
  font-family: var(--font-serif);
  font-size: 20px;
  font-style: italic;
  color: var(--text-soft);
  line-height: 1.5;
  margin-bottom: 26px;
  text-wrap: pretty;
}
.article-meta {
  display: flex;
  gap: 14px;
  align-items: center;
  font-family: var(--font-display);
  font-size: 12.5px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.article-meta .dot { opacity: 0.5; }
.article-meta strong { color: var(--navy); font-weight: 600; }

.article-cover {
  max-width: var(--max);
  margin: 32px auto;
  padding: 0 5vw;
}
.article-cover-img {
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  border-radius: 14px;
  overflow: hidden;
  background-color: var(--bg3);
}

.article-body-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 5vw 48px;
  display: grid;
  grid-template-columns: 220px minmax(0, var(--max-narrow));
  gap: 56px;
  justify-content: center;
}

.article-toc {
  position: sticky;
  top: 96px;
  align-self: start;
  font-family: var(--font-display);
}
.article-toc-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.article-toc ol { list-style: none; counter-reset: toc; }
.article-toc li {
  counter-increment: toc;
  margin-bottom: 8px;
}
.article-toc li a {
  color: var(--text-soft);
  font-size: 13px;
  text-decoration: none;
  display: block;
  padding: 5px 0 5px 14px;
  border-left: 2px solid var(--border);
  transition: color 0.2s, border-color 0.2s;
  line-height: 1.4;
}
.article-toc li a::before { content: counter(toc, decimal-leading-zero) "."; color: var(--text-muted); margin-right: 6px; font-weight: 600; }
.article-toc li a:hover, .article-toc li a.active { color: var(--navy); border-color: var(--gold); }

.article-body {
  font-family: var(--font-body);
  color: var(--text);
  font-size: 17px;
  line-height: 1.75;
  min-width: 0;
}
.article-body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.015em;
  margin: 56px 0 18px;
  line-height: 1.18;
  scroll-margin-top: 100px;
}
.article-body h2:first-child { margin-top: 0; }
.article-body h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin: 36px 0 14px;
  line-height: 1.3;
}
.article-body p { margin-bottom: 18px; text-wrap: pretty; }
.article-body p strong { color: var(--navy); font-weight: 600; }
.article-body a { color: var(--navy); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.article-body a:hover { color: var(--gold); }

.article-body ul, .article-body ol {
  margin: 18px 0 24px 24px;
  padding-left: 8px;
}
.article-body ul li, .article-body ol li {
  margin-bottom: 10px;
  padding-left: 6px;
}
.article-body ul li::marker { color: var(--gold); }
.article-body ol li::marker { color: var(--gold); font-weight: 700; font-family: var(--font-display); }

.article-body blockquote {
  margin: 32px 0;
  padding: 22px 28px;
  background: var(--bg2);
  border-left: 4px solid var(--gold);
  border-radius: 0 10px 10px 0;
  font-family: var(--font-serif);
  font-size: 19px;
  font-style: italic;
  color: var(--navy);
  line-height: 1.55;
}

.callout {
  background: linear-gradient(135deg, rgba(29,60,114,0.04), rgba(184,120,20,0.06));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 28px;
  margin: 32px 0;
}
.callout-title {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gold);
  margin-bottom: 10px;
}
.callout p { margin: 0; font-size: 16px; color: var(--text-soft); }

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 32px 0;
}
.stat-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}
.stat-card .n {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}
.stat-card .l {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
  line-height: 1.4;
}

/* ---------- CTA BLOCK ---------- */
.cta-block {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: white;
  padding: 48px 40px;
  border-radius: 16px;
  margin: 56px 0 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.04) 0, rgba(255,255,255,0.04) 1px, transparent 1px, transparent 14px);
  pointer-events: none;
}
.cta-block-eyebrow {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold-light);
  margin-bottom: 12px;
  position: relative;
}
.cta-block-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
  position: relative;
}
.cta-block-sub {
  font-size: 15px;
  color: rgba(255,255,255,0.82);
  max-width: 560px;
  margin: 0 auto 24px;
  position: relative;
}
.cta-block .btn-gold { position: relative; }

/* ---------- AUTHOR + RELATED ---------- */
.author-box {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 24px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  margin: 40px 0 24px;
}
.author-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--navy);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}
.author-name { font-family: var(--font-display); font-weight: 700; color: var(--navy); font-size: 15px; }
.author-desc { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

.related {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 5vw 80px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ---------- NEWSLETTER ---------- */
.newsletter {
  max-width: var(--max);
  margin: 24px auto;
  padding: 0 5vw;
}
.newsletter-inner {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}
.newsletter-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.newsletter-sub { font-size: 14px; color: var(--text-soft); }
.newsletter-form {
  display: flex;
  gap: 10px;
}
.newsletter-input {
  background: white;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 12px 18px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--navy);
  outline: none;
  min-width: 260px;
  transition: border-color 0.2s;
}
.newsletter-input:focus { border-color: var(--navy); }
.newsletter-status {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 600;
  min-height: 18px;
}

/* ---------- FOOTER ---------- */
.bfooter {
  background: var(--navy);
  color: white;
  padding: 56px 5vw 24px;
  margin-top: auto;
}
.bfooter-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}
.bfooter-logo img { height: 38px; filter: brightness(0) invert(1); margin-bottom: 16px; }
.bfooter-tag { font-size: 13px; color: rgba(255,255,255,0.72); line-height: 1.6; max-width: 320px; }
.bfooter-title {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold-light);
  margin-bottom: 16px;
}
.bfooter ul { list-style: none; }
.bfooter ul li { margin-bottom: 8px; }
.bfooter ul a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 13.5px;
  transition: color 0.2s;
}
.bfooter ul a:hover { color: white; }
.bfooter-bottom {
  max-width: var(--max);
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  gap: 16px;
  flex-wrap: wrap;
}
.bfooter-legal { display: flex; gap: 20px; flex-wrap: wrap; }
.bfooter-legal a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.2s;
}
.bfooter-legal a:hover { color: var(--gold); }

/* ---------- NORM FOOTER LEGAL ---------- */
.norm-footer-legal { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; margin-top: 10px; }
.norm-footer-legal a { color: inherit; opacity: 0.75; text-decoration: none; transition: opacity 0.2s; }
.norm-footer-legal a:hover { opacity: 1; }

/* ---------- FADE-UP / MOTION ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(.22,.61,.36,1), transform 0.7s cubic-bezier(.22,.61,.36,1);
}
.fade-up.visible { opacity: 1; transform: none; }

/* Reading-progress bar */
#readProgress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px;
  transform: scaleX(0); transform-origin: left center;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  z-index: 200; pointer-events: none;
  transition: transform 0.08s linear;
}

/* Gold underline draws under page H1s when revealed */
.cat-hero-title, .article-title { position: relative; }
.cat-hero-title::after, .article-title::after {
  content: ''; position: absolute; left: 0; bottom: -10px;
  width: 54px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0); transform-origin: left center;
  transition: transform 0.8s cubic-bezier(.22,.61,.36,1) 0.12s;
}
.cat-hero-title.title-drawn::after, .article-title.title-drawn::after { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1 !important; transform: none !important; transition: none !important; }
  .cat-hero-title::after, .article-title::after { display: none; }
  #readProgress { display: none; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .art-grid { grid-template-columns: repeat(2, 1fr); }
  .art-feat { grid-column: span 2; grid-row: auto; }
  .art-feat .art-title { font-size: 22px; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-body, .article-body-wrap { grid-template-columns: 1fr; gap: 32px; }
  .cat-toc, .article-toc { position: relative; top: 0; }
}

@media (max-width: 720px) {
  .bnav-links { display: none; }
  .cat-grid, .art-grid, .cat-art-grid, .related-grid { grid-template-columns: 1fr; }
  .newsletter-inner { grid-template-columns: 1fr; padding: 28px; }
  .newsletter-form { flex-direction: column; }
  .newsletter-input { min-width: 0; width: 100%; }
  .bfooter-grid { grid-template-columns: 1fr 1fr; }
  .article-body-wrap { padding: 0 5vw 32px; }
  .article-body { font-size: 16px; }
  .stat-row { grid-template-columns: 1fr; }
  .cta-block { padding: 36px 24px; }
}
