/* =====================================================================
   CAPIBYTE — blog/css/blog.css
   Estilos específicos para posts del blog.
   Incluye: banner hero dinámico, TOC sticky, cuerpo del artículo,
   FAQs con acordeón, sección de posts relacionados.
===================================================================== */

/* ── VARIABLES (heredadas de la web principal) ── */
:root {
  --green-900: #0a1f0a;
  --green-800: #102910;
  --green-700: #1a4a1a;
  --green-600: #216821;
  --green-500: #2d8a2d;
  --green-400: #3ab03a;
  --green-300: #5cc85c;
  --green-200: #a8e6a8;
  --green-100: #d4f5d4;
  --green-50:  #f0faf0;
  --accent:    #38c438;
  --accent-light: #4ddb4d;
  --white:     #ffffff;
  --gray-50:   #f8faf8;
  --gray-100:  #eff3ef;
  --gray-200:  #dde8dd;
  --gray-400:  #9aaa9a;
  --text-dark: #0d1f0d;
  --text-mid:  #2a3d2a;
  --text-light:#4a634a;
  --font-display: 'Coda', sans-serif;
  --font-body: 'Josefin Sans', sans-serif;
  --r-sm: 8px;
  --r-md: 12px;
  --r-xl: 20px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.7;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.sr-only { position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0; }

/* ── SCROLL PROGRESS ── */
#scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--green-300));
  z-index: 10001; width: 0%;
  box-shadow: 0 0 10px rgba(56,196,56,0.6);
  pointer-events: none; transition: width 0.05s linear;
}

/* ── HEADER ── */
.blog-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  background: rgba(255,255,255,0.0); backdrop-filter: blur(0px);
  padding: 0 5%; height: 72px;
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.4s, backdrop-filter 0.4s, box-shadow 0.3s, transform 0.4s;
  border-bottom: 1px solid transparent;
}
.blog-header.scrolled { background: rgba(255,255,255,0.95); backdrop-filter: blur(20px); box-shadow: 0 4px 24px rgba(0,0,0,0.06); border-bottom-color: var(--gray-100); }
.blog-header.nav-hidden { transform: translateY(-100%); }
.nav-logo { display: flex; align-items: center; gap: 0; font-family: var(--font-display); font-size: 1.35rem; font-weight: 800; color: var(--text-dark); }
.nav-logo img { width: 36px; height: 36px; padding-right: .2em; }
.nav-logo .accent { color: var(--accent); }
.blog-header:not(.scrolled) .nav-logo { color: var(--white); }
.blog-header:not(.scrolled) .nav-back { color: rgba(255,255,255,0.85); }
.nav-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.85rem; font-weight: 600; color: var(--text-mid);
  padding: 8px 18px; border-radius: 99px; border: 1.5px solid var(--gray-200);
  transition: all 0.3s;
}
.blog-header.scrolled .nav-back { border-color: var(--gray-200); color: var(--text-mid); }
.nav-back:hover { border-color: var(--accent); color: var(--accent); background: var(--green-50); }

/* ── HERO BANNER DINÁMICO ── */
.post-hero {
  position: relative;
  min-height: 90vh;
  display: flex; align-items: flex-end;
  overflow: hidden;
}

/* La imagen de fondo se aplica via JS con data-bg en el elemento */
.post-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  background-color: var(--green-900); /* fallback si no hay imagen */
  transition: transform 0.6s ease;
}
.post-hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,31,10,0.3) 0%,
    rgba(10,31,10,0.5) 40%,
    rgba(10,31,10,0.85) 80%,
    rgba(10,31,10,0.97) 100%
  );
}
/* Efecto parallax al scroll */
.post-hero:hover .post-hero-bg { transform: scale(1.02); }

.post-hero-content {
  position: relative; z-index: 2;
  padding: 60px 5% 80px;
  max-width: 900px;
  width: 100%;
}

.post-category-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(56,196,56,0.2);
  border: 1px solid rgba(56,196,56,0.4);
  color: var(--green-300);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
  padding: 6px 16px; border-radius: 99px; margin-bottom: 20px;
  backdrop-filter: blur(10px);
}
.post-category-badge .dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{transform:scale(1);opacity:1} 50%{transform:scale(1.6);opacity:0.5} }
a.post-category-badge { transition: background 0.25s, border-color 0.25s; cursor: pointer; }
a.post-category-badge:hover { background: rgba(56,196,56,0.32); border-color: rgba(56,196,56,0.6); }

/* ── BREADCRUMBS ── */
.post-breadcrumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: 0.82rem; color: var(--text-light);
  margin-bottom: 24px;
}
.post-breadcrumbs a { color: var(--text-light); font-weight: 600; transition: color 0.2s; }
.post-breadcrumbs a:hover { color: var(--accent); }
.post-breadcrumbs .crumb-sep { color: var(--gray-400); }
.post-breadcrumbs .crumb-current {
  color: var(--text-dark); font-weight: 700;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 380px;
}

/* Título dinámico del post */
.post-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -2px;
  line-height: 1.1;
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.post-title em { color: var(--accent); font-style: normal; }

.post-meta {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  font-size: 0.82rem; color: rgba(255,255,255,0.7);
}
.post-meta span { display: flex; align-items: center; gap: 6px; }
.post-meta .reading-time { color: var(--green-300); font-weight: 600; }

/* Decoración geométrica del hero */
.post-hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(56,196,56,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(56,196,56,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* ── LAYOUT PRINCIPAL: TOC + ARTÍCULO ── */
.post-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3em;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 0%;
  align-items: start;
}

/* ── TOC — Tabla de Contenidos sticky ── */
.toc-aside {
  position: sticky;
  top: 100px;
}
.toc-card {
  background: var(--green-50);
  border: 1px solid var(--green-200);
  border-radius: var(--r-xl);
  padding: 28px;
  position: relative;
  overflow-y: scroll;
  height: 72vh;
}
.toc-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--green-300));
}
.toc-label {
  font-family: var(--font-display);
  font-size: 0.72rem; font-weight: 800;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--green-500); margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
  width: 100%;
  background: none; border: none; padding: 0;
  cursor: default;
}
.toc-label::before { content: ''; width: 16px; height: 1px; background: var(--accent); flex-shrink: 0; }
.toc-chevron { display: none; flex-shrink: 0; margin-left: auto; color: var(--green-500); transition: transform 0.3s ease; }
.toc-list { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.toc-list li a {
  display: block; font-size: 0.83rem; font-weight: 500; color: var(--text-light);
  padding: 6px 10px; border-radius: var(--r-sm); border-left: 2px solid transparent;
  transition: all 0.2s; line-height: 1.4;
  font-weight: 700;
}
.toc-list li a:hover { color: var(--accent); background: var(--green-100); border-left-color: var(--accent); }
.toc-list li a.active { color: var(--green-700); background: var(--green-100); border-left-color: var(--accent); font-weight: 700; }
.toc-list li.toc-h3 a { padding-left: 22px; font-size: 0.78rem;font-weight: 500; }

/* Bloque de CTA en el aside */
.toc-cta {
  margin-top: 24px; padding: 20px;
  background: var(--green-900); border-radius: var(--r-md);
  text-align: center;
}
.toc-cta p { font-size: 0.82rem; color: var(--green-300); margin-bottom: 12px; line-height: 1.5; }
.toc-cta a {
  display: block; background: var(--accent); color: var(--white);
  font-family: var(--font-display); font-weight: 700; font-size: 0.82rem;
  padding: 10px 16px; border-radius: 99px;
  transition: background 0.2s, transform 0.2s;
}
.toc-cta a:hover { background: var(--accent-light); transform: translateY(-2px); }

/* ── ARTÍCULO — Contenido del post ── */
.post-body {
  min-width: 0; /* evita overflow en grid */
}

/* Highlight intro */
.post-intro {
  font-size: 1.15rem;
  color: var(--text-mid);
  line-height: 1.8;
  padding: 28px 32px;
  background: var(--green-50);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  margin-bottom: 48px;
}

/* Headings del artículo */
.post-body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -1px;
  line-height: 1.2;
  margin: 56px 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-100);
  scroll-margin-top: 100px;
}
.post-body h2:first-child { margin-top: 0; }
.post-body h2 .h2-accent { color: var(--accent); }

.post-body h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-dark);
  margin: 36px 0 14px;
  scroll-margin-top: 100px;
  display: flex; align-items: center; gap: 10px;
}
.post-body h3::before { content: ''; width: 24px; height: 3px; background: var(--accent); border-radius: 2px; flex-shrink: 0; }

.post-body p {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.85;
  margin-bottom: 20px;
}

.post-body strong { color: var(--text-dark); font-weight: 700; }
.post-body em { color: var(--green-600); font-style: italic; }

.post-body ul, .post-body ol {
  margin: 20px 0 28px 0;
  display: flex; flex-direction: column; gap: 10px;
}
.post-body ul li {
  font-size: 0.98rem; color: var(--text-mid); line-height: 1.7;
  display: flex; align-items: flex-start; gap: 12px;
}
.post-body ul li::before {
  content: '✓';
  flex-shrink: 0;
  width: 20px; height: 20px;
  background: var(--green-100); color: var(--green-600);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; font-weight: 900; margin-top: 3px;
}
.post-body ol { list-style: decimal; padding-left: 24px; }
.post-body ol li { display: list-item; gap: 0; }
.post-body ol li::before { display: none; }
.post-body ol li::marker { color: var(--accent); font-weight: 800; font-family: var(--font-display); }

/* Blockquote destacado */
.post-body blockquote {
  margin: 36px 0;
  padding: 24px 28px;
  background: var(--green-900);
  border-radius: var(--r-xl);
  position: relative;
  overflow: hidden;
}
.post-body blockquote::before {
  content: '"';
  position: absolute; top: -20px; left: 20px;
  font-size: 8rem; color: rgba(56,196,56,0.1);
  font-family: Georgia, serif; line-height: 1;
}
.post-body blockquote p {
  color: var(--green-100);
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.7;
  position: relative; z-index: 1;
  margin-bottom: 0;
}
.post-body blockquote cite {
  display: block; margin-top: 12px;
  font-size: 0.78rem; color: var(--green-400);
  font-style: normal; font-weight: 600;
  position: relative; z-index: 1;
}

/* Cajas de dato destacado */
.stat-box {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 16px;
  margin: 36px 0;
}
.stat-item {
  text-align: center; padding: 24px 16px;
  background: var(--gray-50); border: 1px solid var(--gray-100);
  border-radius: var(--r-xl); transition: transform 0.3s, box-shadow 0.3s;
}
.stat-item:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(0,0,0,0.07); }
.stat-num { font-family: var(--font-display); font-size: 2.4rem; font-weight: 800; color: var(--accent); letter-spacing: -1px; line-height: 1; margin-bottom: 6px; }
.stat-label { font-size: 0.8rem; color: var(--text-light); line-height: 1.4; }

/* Caja de tip/consejo */
.tip-box {
  margin: 32px 0;
  padding: 20px 24px;
  background: var(--green-50);
  border: 1px solid var(--green-200);
  border-radius: var(--r-md);
  display: flex; gap: 16px; align-items: flex-start;
}
.tip-icon { font-size: 1.4rem; flex-shrink: 0; }
.tip-content { flex: 1; }
.tip-content strong { display: block; font-family: var(--font-display); font-size: 0.85rem; font-weight: 800; color: var(--green-700); margin-bottom: 6px; letter-spacing: 1px; text-transform: uppercase; }
.tip-content p { font-size: 0.9rem; color: var(--text-mid); margin: 0; line-height: 1.7; }

/* Tabla comparativa */
.post-body .table-wrap {
  overflow-x: auto;
  margin: 36px 0;
  border-radius: var(--r-xl);
  border: 1px solid var(--gray-100);
}
.post-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 480px;
}
.post-body table caption { display: none; }
.post-body th, .post-body td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--gray-100);
  line-height: 1.5;
}
.post-body thead th {
  background: var(--green-900);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-weight: 700;
}
.post-body tbody tr:last-child td { border-bottom: none; }
.post-body tbody tr:nth-child(even) { background: var(--gray-50); }
.post-body td strong { color: var(--green-700); }
.post-body table .col-highlight { background: var(--green-50); }
.post-body thead th.col-highlight { background: var(--accent); color: var(--green-900); }

/* Separador de sección */
.post-divider {
  display: flex; align-items: center; gap: 16px;
  margin: 48px 0;
}
.post-divider::before, .post-divider::after { content: ''; flex: 1; height: 1px; background: var(--gray-100); }
.post-divider span { font-family: var(--font-display); font-size: 0.72rem; font-weight: 700; color: var(--green-400); letter-spacing: 3px; text-transform: uppercase; white-space: nowrap; }

/* ── FAQs ── */
.faq-section {
  margin: 60px 0;
  padding: 48px;
  background: var(--green-50);
  border-radius: 28px;
  border: 1px solid var(--green-200);
}
.faq-header { margin-bottom: 36px; }
.faq-eyebrow {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
  color: var(--green-500); margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.faq-eyebrow::before { content: ''; width: 20px; height: 1px; background: var(--accent); }
.faq-title { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: var(--text-dark); letter-spacing: -1px; line-height: 1.2; }
.faq-title em { color: var(--accent); font-style: normal; }

/* .faq-list, .faq-item, .faq-q, .faq-ico, .faq-a, .faq-a-inner: mismo
   formato/HTML que el acordeón de FAQ del home (ver css/main.css). Se
   reusan esas clases a propósito para que se vea idéntico y no haya
   dos definiciones de ".faq-item" pisándose entre main.css y este
   archivo (eso fue lo que rompía el estilo acá antes). */

/* ── CTA DEL ARTÍCULO ── */
.post-cta-box {
  margin: 60px 0;
  padding: 48px;
  background: var(--green-900);
  border-radius: 28px;
  text-align: center;
  position: relative; overflow: hidden;
}
.post-cta-box::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(56,196,56,0.2), transparent);
  pointer-events: none;
}
.post-cta-box h3 { font-family: var(--font-display); font-size: clamp(1.6rem,3vw,2rem); font-weight: 800; color: var(--white); letter-spacing: -1px; margin-bottom: 12px; position: relative; z-index: 1; }
.post-cta-box h3 em { color: var(--accent); font-style: normal; }
.post-cta-box p { font-size: 0.95rem; color: var(--green-300); margin-bottom: 28px; max-width: 500px; margin-left: auto; margin-right: auto; position: relative; z-index: 1; line-height: 1.7; }
.post-cta-box a {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: var(--white);
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  padding: 16px 36px; border-radius: 99px;
  box-shadow: 0 8px 32px rgba(56,196,56,0.4);
  transition: background 0.2s, transform 0.3s, box-shadow 0.3s;
  position: relative; z-index: 1;
}
.post-cta-box a:hover { background: var(--accent-light); transform: translateY(-3px); box-shadow: 0 14px 48px rgba(56,196,56,0.55); }

/* ── AUTOR Y COMPARTIR ── */
.post-footer-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  padding: 24px 0;
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
  margin: 48px 0;
}
.post-author { display: flex; align-items: center; gap: 14px; }
.author-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--green-200); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; color: var(--green-700); }
.author-name { font-family: var(--font-display); font-weight: 800; font-size: 0.95rem; color: var(--text-dark); }
.author-role { font-size: 0.78rem; color: var(--text-light); }
.share-row { display: flex; align-items: center; gap: 10px; }
.share-label { font-size: 0.78rem; font-weight: 600; color: var(--text-light); letter-spacing: 1px; text-transform: uppercase; }
.share-btn { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--gray-200); display: flex; align-items: center; justify-content: center; font-size: 0.9rem; transition: all 0.3s; cursor: pointer; background: var(--white); }
.share-btn:hover { background: var(--green-900); border-color: var(--green-900); transform: translateY(-3px); }

/* ── POSTS RELACIONADOS ── */
.related-posts { padding: 80px 5%; background: var(--green-50); }
.related-inner { max-width: 1100px; margin: 0 auto; }
.related-title { font-family: var(--font-display); font-size: clamp(1.6rem,3vw,2.2rem); font-weight: 800; color: var(--text-dark); letter-spacing: -1px; margin-bottom: 36px; }
.related-title em { color: var(--accent); font-style: normal; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.related-card { background: var(--white); border: 1px solid var(--gray-100); border-radius: var(--r-xl); overflow: hidden; transition: transform 0.4s, box-shadow 0.4s; }
.related-card:hover { transform: translateY(-6px); box-shadow: 0 20px 60px rgba(0,0,0,0.08); }
.related-card-img { height: 160px; background: var(--green-900); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; background-size: cover; background-position: center; }
.related-card-body { padding: 20px; }
.related-tag { display: inline-block; background: var(--green-100); color: var(--green-600); font-size: 0.68rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; padding: 3px 10px; border-radius: 99px; margin-bottom: 10px; }
.related-card-title { font-family: var(--font-display); font-size: 1rem; font-weight: 800; color: var(--text-dark); line-height: 1.3; margin-bottom: 8px; }
.related-card-date { font-size: 0.75rem; color: var(--gray-400); }

/* ── FOOTER MÍNIMO ── */
.blog-footer { background: var(--green-900); padding: 40px 5%; text-align: center; }
.blog-footer p { font-size: 0.82rem; color: var(--green-500); }
.blog-footer a { color: var(--accent); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .post-layout { grid-template-columns: 240px 1fr; gap: 40px; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .stat-box { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .post-layout { grid-template-columns: 1fr; padding: 40px 5% 100px; }
  .toc-aside { position: relative; top: auto; }
  .post-breadcrumbs .crumb-current { max-width: 180px; }
  .related-grid { grid-template-columns: 1fr; }
  .stat-box { grid-template-columns: 1fr 1fr; }
  .faq-section { padding: 28px 20px; }
  .post-cta-box { padding: 36px 24px; }
  .post-hero-content { padding: 40px 5% 60px; }
  .post-hero { min-height: 70vh; }
  .post-body h3{gap: 0;flex-direction: column;}
  .post-body ul li{flex-direction: column;}

  /* ── TOC: dropdown cerrado por defecto (ver blog-engine.js) ── */
  .toc-card { height: auto; overflow: visible; margin-bottom: 0; }
  .toc-label { cursor: pointer; }
  .toc-chevron { display: block; }
  .toc-label[aria-expanded="true"] .toc-chevron { transform: rotate(180deg); }
  .toc-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }
  .toc-list.is-open {
    max-height: 60vh;
    overflow-y: auto;
    margin-top: 12px;
  }

  /* ── TOC-CTA: fijo abajo, siempre visible mientras se scrollea el post ── */
  .toc-cta {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 400;
    margin-top: 0;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    padding-bottom: calc(14px + env(safe-area-inset-bottom));
    text-align: left;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.18);
  }
  .toc-cta p { margin-bottom: 0; font-size: 0.78rem; flex: 1; }
  .toc-cta a { flex-shrink: 0; margin: 0; }

  /* Sube la burbuja de WhatsApp para que no choque con el toc-cta fijo.
     Selector con más especificidad que ".wsp" de main.css a propósito:
     blog.css carga antes que main.css en <head>, así que sin esto
     main.css pisaría este ajuste (ver nota de .faq-item más arriba). */
  body .wsp { bottom: 84px; }
}
@media (max-width: 480px) {
  .stat-box { grid-template-columns: 1fr; }
  .post-footer-row { flex-direction: column; align-items: flex-start; }
}

/* ── Botón de contacto en header del post ── */
.blog-header .btn-step-primary {
  display: inline-flex; align-items: center;
  background: var(--accent); color: var(--white);
  font-family: var(--font-display); font-weight: 700; font-size: 0.82rem;
  padding: 9px 20px; border-radius: 99px; border: none;
  transition: background 0.2s, transform 0.2s; text-decoration: none;
  box-shadow: 0 4px 16px rgba(56,196,56,0.3);
}
.blog-header .btn-step-primary:hover { background: var(--accent-light); transform: translateY(-1px); }

/* Fix cursor for blog pages */
.blog-header a { cursor: pointer; }
