/* ============================================================
   LoyaltyHub.org — Design System
   Brand: Navy #0D1B2A · Gold #C9A962 · Cream #F7F4EF
   Fonts: Cormorant Garamond (display) · DM Sans (body) · DM Mono (data)
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;600&family=DM+Mono:wght@400;500&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

/* --- Custom Properties --- */
:root {
  /* Colors */
  --navy:       #0D1B2A;
  --deep-navy:  #1A2A3A;
  --darkest:    #071018;
  --gold:       #C9A962;
  --gold-text:  #9A7A35; /* WCAG AA 4.6:1 on cream — text on light bg only */
  --cream:      #F7F4EF;
  --sand:       #E8E4DE;
  --warm-gray:  #6B6560;
  --muted:      #9A9693;

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-mono:    'DM Mono', 'Courier New', monospace;

  /* Spacing */
  --section-v:   96px;
  --section-h:   120px;
  --gap-lg:      64px;
  --gap-md:      40px;
  --gap-sm:      24px;
  --gap-xs:      16px;

  /* Radius */
  --radius:      4px;
  --radius-lg:   8px;
}

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

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--navy);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

/* --- Typography Scale --- */
.display-xl {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.display-lg {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.display-md {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 600;
  line-height: 1.2;
}

.display-sm {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 600;
  line-height: 1.25;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.label-sm {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
}

.body-lg { font-size: 18px; line-height: 1.65; }
.body-md { font-size: 17px; line-height: 1.75; }
.body-sm { font-size: 15px; line-height: 1.65; }
.body-xs { font-size: 13px; line-height: 1.6; }

/* --- Layout Utilities --- */
.container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--section-h);
}

@media (max-width: 1280px) {
  :root { --section-h: 80px; }
}

@media (max-width: 960px) {
  :root { --section-h: 48px; --section-v: 72px; --gap-lg: 48px; }
}

@media (max-width: 640px) {
  :root { --section-h: 24px; --section-v: 56px; }
}

.section {
  padding-block: var(--section-v);
  padding-inline: var(--section-h);
}

.section--dark    { background: var(--navy); color: var(--cream); }
.section--deeper  { background: var(--deep-navy); color: var(--cream); }
.section--cream   { background: var(--cream); color: var(--navy); }
.section--sand    { background: var(--sand); color: var(--navy); }
.section--gold    { background: var(--gold); color: var(--navy); }
.section--darkest { background: var(--darkest); color: var(--cream); }

/* --- Grid --- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap-sm); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap-sm); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap-sm); }

@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  padding: 14px 28px;
  border-radius: var(--radius);
  cursor: pointer;
  border: 2px solid transparent;
  transition: opacity 0.15s, transform 0.1s;
  text-decoration: none;
}

.btn:hover { opacity: 0.88; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary   { background: var(--gold); color: var(--navy); }
.btn--secondary { background: transparent; border-color: var(--gold); color: var(--gold); }
.btn--dark      { background: var(--navy); color: var(--cream); }
.btn--ghost     { background: transparent; border-color: currentColor; }

.btn--sm { font-size: 13px; padding: 10px 20px; }
.btn--lg { font-size: 16px; padding: 18px 36px; }

/* ============================================================
   COMPONENTS
   ============================================================ */

/* --- Header / Nav --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  height: 72px;
  display: flex;
  align-items: center;
  padding-inline: var(--section-h);
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.site-logo {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 700;
  color: var(--cream);
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-logo svg { flex-shrink: 0; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.site-nav a {
  font-size: 15px;
  color: var(--cream);
  opacity: 0.85;
  transition: opacity 0.15s;
}

.site-nav a:hover { opacity: 1; }

.nav-cta {
  font-size: 14px;
  font-weight: 700;
  padding: 10px 20px;
  background: var(--gold);
  color: var(--navy);
  border-radius: var(--radius);
  transition: opacity 0.15s;
  white-space: nowrap;
}

.nav-cta:hover { opacity: 0.9; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cream);
  transition: transform 0.2s, opacity 0.2s;
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .site-nav {
    position: fixed;
    inset: 72px 0 0 0;
    background: var(--navy);
    flex-direction: column;
    align-items: flex-start;
    padding: 32px var(--section-h);
    gap: 24px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    z-index: 99;
  }

  .site-nav.is-open { transform: translateX(0); }

  .site-nav a { font-size: 18px; opacity: 1; }
}

/* --- Hero --- */
.hero {
  background: var(--navy);
  padding: 96px var(--section-h) 88px;
  color: var(--cream);
}

.hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  font-size: 13px;
  color: var(--warm-gray);
}

.hero__breadcrumb a:hover { color: var(--cream); }

.hero h1 {
  max-width: 820px;
  margin-bottom: 24px;
}

.hero__lead {
  font-size: 18px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 40px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-bottom: 40px;
}

.hero__meta {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--warm-gray);
}

.hero__meta-sep {
  width: 1px;
  height: 14px;
  background: var(--deep-navy);
}

/* --- Stats Bar --- */
.stats-bar {
  background: var(--deep-navy);
  padding: 40px var(--section-h);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-sm);
}

.stat-item {
  padding: 0 40px;
  border-left: 1px solid rgba(255,255,255,0.08);
}

.stat-item:first-child { border-left: none; padding-left: 0; }

.stat-item__number {
  font-family: var(--font-mono);
  font-size: 36px;
  font-weight: 500;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-item__label {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.4;
}

@media (max-width: 640px) {
  .stats-bar { grid-template-columns: 1fr; gap: 24px; }
  .stat-item { border-left: none; padding-left: 0; border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px; }
  .stat-item:first-child { border-top: none; padding-top: 0; }
}

/* --- Cards --- */
.card {
  background: var(--deep-navy);
  border-radius: var(--radius);
  padding: 40px;
}

.card--light { background: var(--sand); color: var(--navy); }
.card--cream { background: var(--cream); color: var(--navy); }
.card--gold  { background: var(--gold); color: var(--navy); }

.card__icon {
  font-size: 28px;
  margin-bottom: 20px;
}

.card__title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
}

.card__body {
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
}

.card--light .card__body,
.card--cream .card__body { color: var(--warm-gray); }

.card__link {
  display: inline-block;
  margin-top: 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gold);
}

.card--light .card__link,
.card--cream .card__link { color: var(--gold-text); }

/* --- Section Header --- */
.section-header {
  margin-bottom: var(--gap-lg);
}

.section-header--center { text-align: center; }

.section-header .eyebrow {
  color: var(--gold);
  display: block;
  margin-bottom: 16px;
}

.section--dark .section-header .eyebrow,
.section--deeper .section-header .eyebrow { color: var(--gold); }

.section-header__lead {
  margin-top: 16px;
  font-size: 18px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 600px;
}

.section-header--center .section-header__lead { margin-inline: auto; }

.section--cream .section-header__lead { color: var(--warm-gray); }

/* --- Article Layout --- */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--gap-lg);
  align-items: start;
}

.article-content {
  min-width: 0;
}

@media (max-width: 960px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { display: none; }
}

.article-content h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 600;
  line-height: 1.25;
  margin-top: 56px;
  margin-bottom: 20px;
  color: var(--navy);
}

.article-content h3 {
  font-size: 18px;
  font-weight: 700;
  margin-top: 36px;
  margin-bottom: 14px;
  color: var(--navy);
}

.article-content p {
  margin-bottom: 20px;
  font-size: 17px;
  line-height: 1.8;
  color: var(--deep-navy);
}

.article-content ul,
.article-content ol {
  margin: 0 0 20px 24px;
  line-height: 1.8;
  color: var(--deep-navy);
}

.article-content li { margin-bottom: 8px; }

.article-content strong { font-weight: 700; color: var(--navy); }

.article-content code {
  font-family: var(--font-mono);
  font-size: 14px;
  background: var(--sand);
  padding: 2px 6px;
  border-radius: 2px;
}

.article-content pre {
  background: var(--sand);
  padding: 24px 28px;
  border-radius: var(--radius);
  overflow-x: auto;
  margin-bottom: 24px;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.7;
  color: var(--navy);
}

.article-content pre code { background: none; padding: 0; }

/* Callout / tip box */
.callout {
  background: var(--sand);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 24px 28px;
  margin-bottom: 24px;
}

.callout strong { color: var(--navy); }

/* Internal link block */
.inline-link-block {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 16px 20px;
  background: var(--sand);
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: 15px;
  color: var(--deep-navy);
  transition: background 0.15s;
}

.inline-link-block:hover { background: #ddd9d2; }
.inline-link-block::before { content: "→"; color: var(--gold-text); font-weight: 700; flex-shrink: 0; }

/* --- Sidebar --- */
.article-sidebar {
  position: sticky;
  top: 88px;
}

.sidebar-widget {
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 24px;
}

.sidebar-widget--toc { background: var(--sand); }
.sidebar-widget--cta { background: var(--navy); color: var(--cream); }

.sidebar-widget__title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 16px;
  color: var(--navy);
}

.sidebar-widget--cta .sidebar-widget__title { color: var(--gold); }

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toc-list a {
  font-size: 14px;
  color: var(--deep-navy);
  line-height: 1.4;
  transition: color 0.15s;
}

.toc-list a:hover { color: var(--gold-text); }

.toc-list a.is-active {
  color: var(--gold-text);
  font-weight: 600;
}

.sidebar-widget--cta p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  margin-bottom: 20px;
}

/* --- FAQ --- */
.faq-list { display: flex; flex-direction: column; }

.faq-item {
  border-bottom: 1px solid var(--sand);
  padding-block: 28px;
}

.faq-item:first-child { border-top: 1px solid var(--sand); }

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  cursor: pointer;
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
  list-style: none;
  user-select: none;
}

.faq-question::-webkit-details-marker { display: none; }

.faq-question::after {
  content: "+";
  font-size: 22px;
  font-weight: 400;
  color: var(--gold-text);
  flex-shrink: 0;
  line-height: 1;
  transition: transform 0.2s;
}

details[open] .faq-question::after { transform: rotate(45deg); }

.faq-answer {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--deep-navy);
}

/* --- Metrics Table --- */
.metrics-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 24px;
  max-width: 100%;
}

.metrics-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 15px;
  margin-bottom: 0;
}

.metrics-table th {
  background: var(--deep-navy);
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 14px 20px;
  text-align: left;
}

.metrics-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--sand);
  color: var(--deep-navy);
  vertical-align: top;
}

.metrics-table tr:last-child td { border-bottom: none; }
.metrics-table tr:nth-child(even) td { background: rgba(0,0,0,0.02); }

.metrics-table .metric-value {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--gold-text);
  font-weight: 500;
}

/* --- Footer CTA Band --- */
.footer-cta {
  background: var(--gold);
  padding: var(--section-v) var(--section-h);
  text-align: center;
  color: var(--navy);
}

.footer-cta h2 { margin-bottom: 16px; }

.footer-cta p {
  font-size: 18px;
  line-height: 1.65;
  color: var(--deep-navy);
  max-width: 580px;
  margin-inline: auto;
  margin-bottom: 40px;
}

.footer-cta__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.footer-cta__note {
  font-size: 13px;
  color: var(--deep-navy);
  opacity: 0.75;
}

/* --- Footer --- */
.site-footer {
  background: var(--darkest);
  color: var(--cream);
  padding-top: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--gap-lg);
  padding-inline: var(--section-h);
  padding-bottom: 64px;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand__name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-brand__desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--warm-gray);
  max-width: 260px;
}

.footer-nav-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

@media (max-width: 640px) {
  .footer-nav-cols { grid-template-columns: repeat(2, 1fr); }
}

.footer-nav-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 20px;
}

.footer-nav-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }

.footer-nav-col a {
  font-size: 14px;
  color: var(--warm-gray);
  transition: color 0.15s;
}

.footer-nav-col a:hover { color: var(--cream); }
.footer-nav-col a.highlight { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid #1A2A3A;
  padding: 24px var(--section-h);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--warm-gray);
}

/* ============================================================
   PAGE-SPECIFIC: HOME
   ============================================================ */

/* Problem section */
.problem-section__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-sm);
  margin-top: var(--gap-md);
}

@media (max-width: 768px) {
  .problem-section__grid { grid-template-columns: 1fr; }
}

.problem-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 36px;
  border: 1px solid var(--sand);
}

.problem-card__stat {
  font-family: var(--font-mono);
  font-size: 32px;
  color: var(--gold-text);
  font-weight: 500;
  line-height: 1;
  margin-bottom: 12px;
}

.problem-card__label {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.problem-card__desc {
  font-size: 15px;
  color: var(--warm-gray);
  line-height: 1.6;
}

/* Benefits section */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-sm);
}

@media (max-width: 960px) { .benefits-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .benefits-grid { grid-template-columns: 1fr; } }

.benefit-card {
  background: var(--deep-navy);
  border-radius: var(--radius);
  padding: 36px;
  position: relative;
}

.benefit-card--cta {
  background: var(--gold);
  color: var(--navy);
}

.benefit-card__num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(201, 169, 98, 0.6);
  margin-bottom: 20px;
}

.benefit-card--cta .benefit-card__num { color: rgba(13, 27, 42, 0.5); }

.benefit-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 12px;
  line-height: 1.3;
}

.benefit-card--cta h3 { color: var(--navy); }

.benefit-card p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
}

.benefit-card--cta p { color: rgba(13, 27, 42, 0.75); }

/* HowTo section */
.howto-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 500px;
}

@media (max-width: 768px) {
  .howto-split { grid-template-columns: 1fr; }
}

.howto-left {
  background: var(--cream);
  padding: var(--section-v) var(--section-h);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--gap-sm);
}

.howto-right {
  background: var(--sand);
  padding: var(--section-v) var(--section-h);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding-block: 20px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.step-item:last-child { border-bottom: none; }

.step-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gold-text);
  font-weight: 500;
  flex-shrink: 0;
  padding-top: 2px;
  width: 28px;
}

.step-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.4;
}

/* Sectors grid */
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap-sm);
  margin-top: var(--gap-md);
}

@media (max-width: 960px) { .sectors-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .sectors-grid { grid-template-columns: 1fr; } }

.sector-card {
  background: var(--deep-navy);
  border-radius: var(--radius);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background 0.2s;
}

.sector-card:hover { background: #223344; }

.sector-card__icon { font-size: 28px; }

.sector-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--cream);
  line-height: 1.3;
}

.sector-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
}

.sector-card__link {
  font-size: 14px;
  font-weight: 600;
  color: var(--gold);
}

/* ============================================================
   UTILITIES
   ============================================================ */
.text-gold     { color: var(--gold); }
.text-gold-acc { color: var(--gold-text); }
.text-cream    { color: var(--cream); }
.text-muted    { color: var(--muted); }
.text-center   { text-align: center; }
.mt-xs { margin-top: 8px; }
.mt-sm { margin-top: 16px; }
.mt-md { margin-top: 32px; }
.mt-lg { margin-top: 48px; }
.mb-sm { margin-bottom: 16px; }
.mb-md { margin-bottom: 32px; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-sm { gap: var(--gap-xs); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* --- Blockquote --- */
blockquote {
  border-left: 3px solid var(--gold);
  padding: 16px 20px;
  margin: 0 0 24px 0;
  background: var(--sand);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--deep-navy);
  font-size: 16px;
  line-height: 1.7;
}

blockquote p { margin-bottom: 0; }

/* ============================================================
   MOBILE FIXES
   ============================================================ */

/* Hero: reducir padding vertical en mobile */
@media (max-width: 640px) {
  .hero {
    padding-top: 56px;
    padding-bottom: 48px;
  }

  .hero__lead {
    font-size: 16px;
  }

  /* Tablas: scrollables horizontalmente */
  .article-content table,
  .metrics-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }

  /* Pre/código: padding reducido */
  .article-content pre {
    padding: 16px;
    font-size: 13px;
  }

  /* Listas: reducir indentación */
  .article-content ul,
  .article-content ol {
    margin-left: 16px;
  }

  /* Botones: full width en mobile si están solos */
  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* Blog grid: 1 columna */
  .blog-grid {
    grid-template-columns: 1fr !important;
  }
}
