/* ==========================================================================
   BtoBGrow — estilos del blog (fondo claro)
   Paleta: Midnight #0B0E10 · Growth Lime #C7F048 · Deep Navy #203A5B · Off White #F5F5F2
   Nav y footer en midnight; cuerpo del artículo en claro para lectura larga.
   ========================================================================== */

:root {
  --midnight: #0B0E10;
  --lime: #C7F048;
  --navy: #203A5B;
  --offwhite: #F5F5F2;
  --paper: #FFFFFF;
  --ink: #16191c;          /* texto principal */
  --muted: #6b747c;        /* texto secundario */
  --line: #e3e3dd;         /* bordes sobre claro */
  --line-dark: #1e2429;    /* bordes sobre midnight */
  --maxw: 1160px;
  --readw: 720px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--offwhite);
  color: var(--ink);
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.78;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- Nav (midnight, como el sitio) ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 14, 16, .94);
  backdrop-filter: blur(10px);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav-logo img { height: 34px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  text-decoration: none; font-size: 14px; font-weight: 400;
  color: var(--offwhite); opacity: .85; transition: opacity .2s, color .2s;
}
.nav-links a:hover { opacity: 1; color: var(--lime); }
.nav-cta {
  background: var(--lime); color: var(--midnight) !important;
  padding: 10px 20px; border-radius: 999px; font-weight: 500 !important;
  opacity: 1 !important; transition: transform .2s;
}
.nav-cta:hover { transform: translateY(-1px); color: var(--midnight) !important; }

/* Botón hamburguesa: oculto en escritorio */
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0 10px; margin-right: -10px;
  background: none; border: 0; cursor: pointer;
}
.nav-toggle span {
  display: block; height: 2px; width: 100%; border-radius: 2px;
  background: var(--offwhite); transition: transform .25s, opacity .2s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--midnight);
    border-top: 1px solid var(--line-dark);
    padding: 6px 24px 22px;
    box-shadow: 0 18px 30px rgba(0, 0, 0, .28);
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    font-size: 16px; padding: 15px 0;
    border-bottom: 1px solid var(--line-dark); opacity: 1;
  }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-cta { text-align: center; margin-top: 18px; padding: 14px 20px; }
}

/* ---------- Estructura ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.read { max-width: var(--readw); margin: 0 auto; }

/* ---------- Encabezado del artículo ---------- */
.post-head { padding: 56px 0 0; }
.crumb {
  font-size: 13px; color: var(--muted); text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 28px;
  transition: color .2s;
}
.crumb:hover { color: var(--navy); }
.eyebrow {
  color: var(--navy); font-size: 12px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; margin: 0 0 18px;
}
h1 {
  font-size: clamp(30px, 4.6vw, 50px);
  line-height: 1.14; font-weight: 600; letter-spacing: -.02em;
  margin: 0 0 24px; color: var(--midnight);
}
.post-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  font-size: 12px; color: var(--muted); margin-bottom: 44px;
  letter-spacing: .02em;
}
.post-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: #b9bdc1; }
.post-hero {
  max-width: var(--readw);        /* alineada con la columna de texto */
  margin: 0 auto 56px;
  border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line); background: var(--paper);
}

/* ---------- Cuerpo ---------- */
.post-body { padding-bottom: 24px; }
.post-body p { margin: 0 0 26px; }
.lead { font-size: 20px; line-height: 1.65; color: #333a40; }
.post-body h2 {
  font-size: clamp(24px, 3vw, 32px); line-height: 1.25; font-weight: 600;
  letter-spacing: -.01em; margin: 64px 0 22px; color: var(--midnight);
}
.post-body h3 {
  font-size: 20px; line-height: 1.35; font-weight: 600;
  margin: 44px 0 14px; color: var(--midnight);
}
.post-body h3 .num { color: var(--navy); font-weight: 700; margin-right: 10px; }
.post-body ul { margin: 0 0 26px; padding: 0; list-style: none; }
.post-body ul li { position: relative; padding-left: 26px; margin-bottom: 14px; }
.post-body ul li::before {
  content: ""; position: absolute; left: 4px; top: 13px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--lime); box-shadow: 0 0 0 1px rgba(32,58,91,.25);
}
.post-body ol { margin: 0 0 26px; padding: 0; list-style: none; counter-reset: q; }
.post-body ol li {
  position: relative; padding-left: 46px; margin-bottom: 20px; counter-increment: q;
}
.post-body ol li::before {
  content: counter(q);
  position: absolute; left: 0; top: 3px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--navy); color: #fff;
  font-size: 13px; font-weight: 600; line-height: 28px; text-align: center;
}
.post-body strong { font-weight: 600; color: var(--midnight); }
.post-body a {
  color: var(--navy); text-decoration: underline;
  text-decoration-color: rgba(32, 58, 91, .35);
  text-underline-offset: 3px; transition: text-decoration-color .2s, color .2s;
}
.post-body a:hover { text-decoration-color: var(--navy); }

.pull {
  border-left: 4px solid var(--lime);
  padding: 6px 0 6px 26px; margin: 44px 0;
  font-size: 21px; line-height: 1.55; font-weight: 400; color: var(--midnight);
}
.note-box {
  background: var(--paper); border: 1px solid var(--line);
  border-left: 4px solid var(--navy);
  border-radius: 12px; padding: 24px 26px; margin: 40px 0;
}
.note-box p:last-child { margin-bottom: 0; }

/* ---------- CTA final ---------- */
.cta {
  background: var(--lime); color: var(--midnight);
  border-radius: 20px; padding: 48px 44px; margin: 72px 0 0;
  text-align: center;
}
.cta h2 {
  margin: 0 0 12px; font-size: clamp(22px, 3vw, 30px);
  font-weight: 600; line-height: 1.25; color: var(--midnight);
}
.cta p { margin: 0 auto 28px; max-width: 46ch; font-size: 16px; color: #1b2226; }
.btn {
  display: inline-block; background: var(--midnight); color: var(--lime);
  text-decoration: none; padding: 15px 34px; border-radius: 999px;
  font-weight: 500; font-size: 15px; transition: transform .2s;
}
.btn:hover { transform: translateY(-2px); }

/* ---------- Listado del blog ---------- */
.blog-head { padding: 72px 0 8px; text-align: center; }
.blog-head h1 { margin-bottom: 16px; }
.blog-head p { color: var(--muted); max-width: 56ch; margin: 0 auto; }
.grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 380px));
  justify-content: center; gap: 32px; padding: 48px 0 24px;
}
.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 16px; overflow: hidden; text-decoration: none;
  display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(11, 14, 16, .10);
  border-color: #d3d3cb;
}
.card-img { aspect-ratio: 16 / 9; overflow: hidden; background: #eeeee9; border-bottom: 1px solid var(--line); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 24px 26px 28px; }
.card-date {
  font-size: 11.5px; font-weight: 400; color: #8b939a;
  margin: 0 0 15px;
}
.card h2 { font-size: 21px; line-height: 1.32; font-weight: 600; margin: 0 0 12px; color: var(--midnight); }
.card p { font-size: 15px; color: var(--muted); margin: 0; line-height: 1.65; }
.card-more {
  display: inline-block; margin-top: 18px; color: var(--navy);
  font-size: 14px; font-weight: 600;
}

/* ---------- Seguí leyendo (notas relacionadas) ---------- */
.related { margin-top: 96px; border-top: 1px solid var(--line); padding-top: 56px; }
.related-title {
  text-align: center; font-size: 12px; font-weight: 600; color: var(--navy);
  letter-spacing: .14em; text-transform: uppercase; margin: 0 0 6px;
}
.related h2 {
  text-align: center; font-size: clamp(24px, 3vw, 30px); font-weight: 600;
  margin: 0 0 8px; letter-spacing: -.01em; color: var(--midnight);
}
.related .grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 26px; }
.related .card h2 { font-size: 17px; text-align: left; margin: 0 0 10px; }
.related .card-body { padding: 20px 22px 24px; }
.related .card p { font-size: 14px; }

/* ---------- Footer (midnight, como el sitio) ---------- */
.footer {
  background: var(--midnight); color: #9aa3ab;
  margin-top: 96px; padding: 48px 0; text-align: center; font-size: 13px;
}
.footer a { color: #9aa3ab; text-decoration: none; }
.footer a:hover { color: var(--lime); }
.footer-logo { height: 30px; margin: 0 auto 18px; }
