/* =====================================================
   STILARO — Blog
   Alineado con el Brand Kit (Edición 2026 · V1.0)
   · Grises cálidos casi monocromos + Ink + Grafito (acción)
   · Cormorant Garamond Light (display) · Inter (UI/texto)
   · Hairlines en vez de cajas · esquinas rectas · sin sombras
   · "Hacer poco ruido": mucho aire, un acento por composición
   ===================================================== */

:root {
  /* Principales (warm grays + brand black) */
  --ink:        #26251F;   /* negro de marca · texto */
  --grafito:    #2E2D27;   /* ACCIÓN · reservar para CTAs */
  --ink-soft:   #4A4843;   /* cuerpo de texto */
  --ink-mute:   #6E6C66;   /* etiquetas, metadatos */
  --wall:       #9A9996;
  --plaster:    #E8E6E2;
  --plaster-2:  #F2F0EC;   /* hover de celdas */
  --paper:      #FBFAF8;   /* fondo por defecto (domina) */

  --hairline:      rgba(38, 37, 31, 0.16);
  --hairline-soft: rgba(38, 37, 31, 0.08);

  --font-disp: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --maxw-wide: 1180px;
  --maxw-read: 720px;
  --gutter: clamp(20px, 5vw, 64px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.75;
  font-size: 17px;
  overflow-x: hidden;
}

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

::selection { background: var(--ink); color: var(--paper); }

/* ---------- Top bar ---------- */
.b-topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(251, 250, 248, 0.88);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--hairline);
}
.b-topbar__inner {
  max-width: var(--maxw-wide);
  margin: 0 auto;
  padding: 20px var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
}
/* Wordmark = Inter Light 300, mayúsculas, tracking ancho (NUNCA serif/bold) */
.b-wordmark {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 19px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink);
  padding-left: 0.28em; /* compensa el tracking a la derecha */
}
.b-nav { display: flex; gap: 30px; font-size: 14px; font-weight: 400; color: var(--ink-soft); }
.b-nav a { transition: color .2s var(--ease); }
.b-nav a:hover { color: var(--ink); }

/* ---------- Wrappers ---------- */
.b-wrap-wide { max-width: var(--maxw-wide); margin: 0 auto; padding: 0 var(--gutter); }
.b-wrap-read { max-width: var(--maxw-read); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Etiquetas (Inter 500, mayúsculas, tracking) ---------- */
.b-card__tag,
.b-article__tag,
.b-hero__eyebrow,
.b-related__title {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ---------- Blog index hero ---------- */
.b-hero { padding: clamp(60px, 9vw, 120px) 0 clamp(34px, 5vw, 60px); }
.b-hero__eyebrow { margin-bottom: 22px; }
.b-hero__title {
  font-family: var(--font-disp);
  font-weight: 300;                 /* Cormorant siempre ligera */
  font-size: clamp(44px, 7vw, 84px);
  line-height: 1.03;
  letter-spacing: -0.014em;
  max-width: 15ch;
  color: var(--ink);
}
.b-hero__lead {
  margin-top: 24px; max-width: 56ch;
  font-size: 19px; font-weight: 400; color: var(--ink-soft);
}

/* ---------- Retícula de celdas (bloques unidos por hilos) ---------- */
.b-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1px;
  background: var(--hairline);          /* los huecos de 1px = hilos */
  border: 1px solid var(--hairline);
  margin-bottom: clamp(60px, 8vw, 110px);
}
.b-card {
  display: flex; flex-direction: column;
  background: var(--paper);
  padding: 34px 30px 30px;
  transition: background .25s var(--ease);
}
.b-card:hover { background: var(--plaster-2); }   /* hover en Plaster 2 */
.b-card__tag { margin-bottom: 22px; }
.b-card__title {
  font-family: var(--font-disp);
  font-weight: 400;
  font-size: 27px; line-height: 1.14; letter-spacing: -0.01em;
  color: var(--ink);
}
.b-card__excerpt { margin-top: 14px; color: var(--ink-soft); font-size: 16px; flex-grow: 1; }
.b-card__more {
  margin-top: 24px;
  font-family: var(--font-body); font-weight: 500;
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink);
  display: inline-flex; align-items: center; gap: 8px;
}
.b-card__more::after { content: '→'; transition: transform .25s var(--ease); }
.b-card:hover .b-card__more::after { transform: translateX(5px); }

/* ---------- Article ---------- */
.b-article { padding: clamp(40px, 6vw, 76px) 0 clamp(60px, 9vw, 120px); }
.b-breadcrumb {
  font-size: 13px; color: var(--ink-mute); margin-bottom: 34px;
  display: flex; gap: 9px; flex-wrap: wrap; align-items: center;
}
.b-breadcrumb a { transition: color .2s var(--ease); }
.b-breadcrumb a:hover { color: var(--ink); }
.b-article__tag { display: block; margin-bottom: 18px; }
.b-article__title {
  font-family: var(--font-disp);
  font-weight: 300;
  font-size: clamp(34px, 5.2vw, 60px);
  line-height: 1.05; letter-spacing: -0.013em; color: var(--ink);
}
.b-article__meta {
  margin-top: 22px; padding-bottom: 32px; margin-bottom: 44px;
  border-bottom: 1px solid var(--hairline);
  font-size: 14px; color: var(--ink-mute);
  display: flex; gap: 14px; flex-wrap: wrap;
}

/* ---------- Prose ---------- */
.b-prose > * + * { margin-top: 22px; }
.b-prose h2 {
  font-family: var(--font-disp);
  font-weight: 300;
  font-size: clamp(27px, 3.6vw, 38px); line-height: 1.14;
  letter-spacing: -0.01em; margin-top: 56px; color: var(--ink);
}
.b-prose h3 {
  font-family: var(--font-body);
  font-weight: 500; font-size: 18px; letter-spacing: 0.005em;
  margin-top: 36px; color: var(--ink);
}
.b-prose p { color: var(--ink-soft); }
.b-prose strong { color: var(--ink); font-weight: 600; }
.b-prose ul, .b-prose ol { padding-left: 22px; color: var(--ink-soft); }
.b-prose li + li { margin-top: 9px; }
.b-prose a {
  color: var(--ink);
  text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: var(--hairline);
  transition: text-decoration-color .2s var(--ease);
}
.b-prose a:hover { text-decoration-color: var(--ink); }
.b-prose blockquote {
  border-left: 2px solid var(--grafito); padding-left: 24px;
  font-family: var(--font-disp); font-weight: 300; font-style: italic;
  font-size: 25px; line-height: 1.32; color: var(--ink);
}

/* Dato clave (respuesta en el primer 30%) — Plaster 2, hairline, recto */
.b-key {
  background: var(--plaster-2);
  border-left: 2px solid var(--grafito);
  padding: 24px 28px;
  font-size: 17.5px; line-height: 1.7; color: var(--ink);
}
.b-key strong { font-weight: 600; }

/* Tabla comparativa — hairlines, rectángulos */
.b-table-wrap { overflow-x: auto; }
.b-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.b-table th, .b-table td {
  text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--hairline);
  vertical-align: top;
}
.b-table th {
  font-weight: 500; color: var(--ink); background: var(--plaster-2);
  font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase;
}
.b-table td { color: var(--ink-soft); }

/* CTA — cierre oscuro (Ink), botón en claro · esquinas rectas */
.b-cta {
  margin-top: 60px; padding: 40px 38px;
  background: var(--ink); color: var(--paper);
}
.b-cta h3 {
  font-family: var(--font-disp); font-weight: 300;
  font-size: 30px; line-height: 1.12; color: var(--paper);
}
.b-cta p { margin-top: 12px; color: rgba(251, 250, 248, 0.76); font-size: 16px; max-width: 52ch; }
.b-cta a.b-btn {
  margin-top: 26px; display: inline-flex; align-items: center; gap: 9px;
  background: var(--paper); color: var(--ink);
  padding: 14px 26px;
  font-family: var(--font-body); font-weight: 500;
  font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase;
  transition: background .2s var(--ease);
}
.b-cta a.b-btn:hover { background: var(--plaster); }

/* Relacionados */
.b-related { margin-top: 60px; padding-top: 38px; border-top: 1px solid var(--hairline); }
.b-related__title { margin-bottom: 20px; }
.b-related ul { list-style: none; padding: 0; display: grid; gap: 14px; }
.b-related a {
  font-family: var(--font-disp); font-weight: 400; font-size: 22px; color: var(--ink);
  transition: color .2s var(--ease);
}
.b-related a:hover { color: var(--ink-mute); }

/* Footer */
.b-footer {
  border-top: 1px solid var(--hairline);
  padding: 40px var(--gutter); margin: 40px auto 0;
  max-width: var(--maxw-wide);
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-size: 13.5px; color: var(--ink-mute);
}
.b-footer a { transition: color .2s var(--ease); }
.b-footer a:hover { color: var(--ink); }
.b-footer__links { display: flex; gap: 24px; flex-wrap: wrap; }

@media (max-width: 600px) {
  .b-nav { gap: 18px; font-size: 13px; }
  body { font-size: 16px; }
  .b-cta { padding: 32px 26px; }
}
