/* ============================================================
   Blog — Havana Unique
   Namespaced (.blog / .post). Usa los tokens de :root de main.css,
   así hereda automáticamente el modo claro/oscuro del sitio.
   ============================================================ */

.blog, .post { --hu-read: 720px; }

/* ---------- Contenedores ---------- */
.blog { max-width: 1180px; margin: 26px auto 72px; padding: 0 20px; }
.post { max-width: var(--hu-read); margin: 22px auto 80px; padding: 0 20px; }

/* ---------- Migas ---------- */
.blog .crumbs, .post .crumbs {
  font-size: 12.5px; color: var(--muted); margin-bottom: 16px; letter-spacing: .01em;
}
.blog .crumbs a, .post .crumbs a { color: var(--muted); text-decoration: none; }
.blog .crumbs a:hover, .post .crumbs a:hover { color: var(--primary); text-decoration: underline; }

/* ---------- Kicker / eyebrow ---------- */
.hu-kicker {
  display: inline-block; font-size: 11.5px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
}

/* ============================================================
   ÍNDICE
   ============================================================ */
.blog-head { max-width: 760px; margin-bottom: 26px; }
.blog-head h1 {
  font-family: "Fraunces", serif; font-weight: 600;
  font-size: clamp(30px, 5.2vw, 46px); line-height: 1.05; letter-spacing: -.02em;
  color: var(--ink); margin: 10px 0 12px; text-wrap: balance;
}
.blog-head .lede {
  font-size: 17px; line-height: 1.6; color: var(--ink-2); max-width: 60ch; margin: 0;
}

/* Filtro de temas */
.blog-topics {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 30px;
  padding-bottom: 22px; border-bottom: 1px solid var(--line);
}
.blog-topics a {
  font-size: 13px; font-weight: 600; text-decoration: none;
  color: var(--ink-2); background: var(--surface); border: 1px solid var(--line);
  padding: 7px 14px; border-radius: 999px; transition: .15s;
}
.blog-topics a:hover { border-color: var(--primary); color: var(--primary); }
.blog-topics a.on {
  background: var(--primary); color: #fff; border-color: var(--primary);
}

/* Destacado */
.blog-featured {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 0;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  margin-bottom: 40px; text-decoration: none; color: inherit; transition: .18s;
}
.blog-featured:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.blog-featured .ph {
  position: relative; min-height: 300px; background: var(--surface-2);
}
.blog-featured .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.blog-featured .ph.noimg { background:
  linear-gradient(135deg, var(--primary-soft), var(--accent-soft)); }
.blog-featured .body { padding: 30px 32px; display: flex; flex-direction: column; justify-content: center; }
.blog-featured .body h2 {
  font-family: "Fraunces", serif; font-weight: 600; letter-spacing: -.015em;
  font-size: clamp(23px, 3vw, 30px); line-height: 1.12; margin: 12px 0 12px; color: var(--ink);
  text-wrap: balance;
}
.blog-featured .body p { color: var(--ink-2); font-size: 15.5px; line-height: 1.62; margin: 0 0 16px; }

/* Grid de tarjetas */
.blog-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
}
.post-card {
  display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  text-decoration: none; color: inherit; box-shadow: var(--shadow); transition: .18s;
}
.post-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.post-card .ph { position: relative; aspect-ratio: 16 / 10; background: var(--surface-2); }
.post-card .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.post-card .ph.noimg { background: linear-gradient(135deg, var(--primary-soft), var(--accent-soft)); }
.post-card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.post-card h3 {
  font-family: "Fraunces", serif; font-weight: 600; font-size: 20px; line-height: 1.18;
  letter-spacing: -.01em; margin: 9px 0 8px; color: var(--ink); text-wrap: balance;
}
.post-card p { color: var(--ink-2); font-size: 14px; line-height: 1.55; margin: 0 0 14px; flex: 1; }

/* Meta (tema · tiempo · fecha) */
.post-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: 12px; color: var(--muted);
}
.post-meta .tag {
  font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  font-size: 11px; color: var(--accent);
}
.post-meta .dot { opacity: .5; }

/* Paginación */
.blog-pager {
  display: flex; justify-content: center; align-items: center; gap: 14px;
  margin-top: 44px; font-size: 14px;
}
.blog-pager a {
  color: var(--primary); text-decoration: none; font-weight: 600;
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px;
}
.blog-pager a:hover { border-color: var(--primary); background: var(--primary-soft); }
.blog-pager .disabled { color: var(--faint); border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 18px; }
.blog-pager .pos { color: var(--muted); }

.blog-empty { color: var(--muted); font-size: 15px; padding: 40px 0; }

/* ============================================================
   ARTÍCULO
   ============================================================ */
.post-header { margin-bottom: 22px; }
.post-header h1 {
  font-family: "Fraunces", serif; font-weight: 600;
  font-size: clamp(29px, 5.4vw, 44px); line-height: 1.06; letter-spacing: -.022em;
  color: var(--ink); margin: 12px 0 14px; text-wrap: balance;
}
.post-dek {
  font-size: 18.5px; line-height: 1.55; color: var(--ink-2);
  margin: 0 0 20px; max-width: 62ch;
}
.post-byline {
  display: flex; flex-wrap: wrap; align-items: center; gap: 9px;
  font-size: 13px; color: var(--muted);
  padding-bottom: 20px; border-bottom: 1px solid var(--line);
}
.post-byline .who { color: var(--ink-2); font-weight: 600; }
.post-byline .dot { opacity: .5; }
.post-byline a { color: var(--primary); text-decoration: none; }
.post-byline a:hover { text-decoration: underline; }

.post-cover {
  margin: 24px 0 8px; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); background: var(--surface-2);
}
.post-cover img { display: block; width: 100%; height: auto; }
.post-cover figcaption { font-size: 12.5px; color: var(--muted); padding: 8px 4px 0; }

/* ---------- Prosa ---------- */
.prose { font-size: 17.5px; line-height: 1.78; color: var(--ink-2); margin-top: 26px; }
.prose > *:first-child { margin-top: 0; }
.prose p { margin: 0 0 1.25em; max-width: 68ch; }
.prose h2 {
  font-family: "Fraunces", serif; font-weight: 600; color: var(--ink);
  font-size: 27px; line-height: 1.2; letter-spacing: -.015em;
  margin: 1.9em 0 .55em; scroll-margin-top: 90px;
}
.prose h3 {
  font-family: "Fraunces", serif; font-weight: 600; color: var(--ink);
  font-size: 21px; line-height: 1.25; margin: 1.6em 0 .5em; scroll-margin-top: 90px;
}
.prose h2 + p, .prose h3 + p { margin-top: 0; }
.prose a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--primary-hover); }
.prose strong { color: var(--ink); font-weight: 700; }
.prose ul, .prose ol { margin: 0 0 1.25em; padding-left: 1.35em; max-width: 66ch; }
.prose li { margin: 0 0 .5em; }
.prose li::marker { color: var(--accent); }
.prose blockquote {
  margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--accent);
  color: var(--ink); font-family: "Fraunces", serif; font-style: italic; font-size: 20px; line-height: 1.5;
}
.prose img { max-width: 100%; height: auto; border-radius: var(--radius-sm); margin: 1.2em 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.2em 0; }
.prose code {
  background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 6px;
  padding: 1px 6px; font-size: .88em;
}
.prose pre {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px; overflow-x: auto; margin: 1.4em 0;
}
.prose pre code { background: none; border: 0; padding: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; }
.prose th { background: var(--surface-2); font-weight: 700; color: var(--ink); }

/* Letra capital en el primer párrafo (toque editorial) */
.prose > p:first-of-type::first-letter {
  font-family: "Fraunces", serif; font-weight: 600; float: left;
  font-size: 3.1em; line-height: .82; padding: 6px 10px 0 0; color: var(--primary);
}

/* ---------- Bloques bajo el artículo ---------- */
.post-block { margin-top: 46px; }
.post-block > h2 {
  font-family: "Fraunces", serif; font-weight: 600; font-size: 22px;
  color: var(--ink); margin: 0 0 16px; letter-spacing: -.01em;
}

/* Negocios mencionados */
.mentions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.mention {
  display: flex; gap: 13px; align-items: center; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px; transition: .15s;
}
.mention:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.mention .thumb {
  width: 66px; height: 66px; border-radius: 10px; object-fit: cover; flex: none;
  background: linear-gradient(135deg, var(--primary-soft), var(--accent-soft));
}
.mention .m-name { font-weight: 600; color: var(--ink); font-size: 15px; line-height: 1.2; }
.mention .m-sub { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.mention .m-price { font-size: 12.5px; color: var(--accent); font-weight: 600; margin-top: 3px; }

/* CTA */
.post-cta {
  margin-top: 46px; text-align: center; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 26px;
  box-shadow: var(--shadow);
}
.post-cta h2 { font-family: "Fraunces", serif; font-weight: 600; font-size: 24px; color: var(--ink); margin: 0 0 8px; }
.post-cta p { color: var(--ink-2); font-size: 15px; margin: 0 0 18px; }
.hu-btn {
  display: inline-block; background: var(--primary); color: #fff; text-decoration: none;
  font-weight: 600; font-size: 15px; padding: 12px 26px; border-radius: 999px; transition: .15s;
}
.hu-btn:hover { background: var(--primary-hover); }
.hu-btn-ghost {
  display: inline-block; background: transparent; color: var(--primary); text-decoration: none;
  font-weight: 600; font-size: 15px; padding: 12px 24px; border-radius: 999px;
  border: 1px solid var(--primary); margin-left: 8px; transition: .15s;
}
.hu-btn-ghost:hover { background: var(--primary-soft); }

/* Relacionados */
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .blog-grid, .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .blog-featured { grid-template-columns: 1fr; }
  .blog-featured .ph { min-height: 210px; }
  .mentions { grid-template-columns: 1fr; }
  .prose { font-size: 17px; }
  .hu-btn-ghost { margin-left: 0; margin-top: 10px; }
}
@media (max-width: 560px) {
  .blog-grid, .related-grid { grid-template-columns: 1fr; }
  .prose > p:first-of-type::first-letter { font-size: 2.6em; }
}
