/* ==========================================================================
   blog.css — Blog de Vexo Wallet (estilo Bold).
   Se carga despues de redesign-brutal.css y reutiliza sus tokens.
   ========================================================================== */

.blog-main { overflow-x: hidden; }

.blog-lang {
  font-weight: 800; font-size: 0.85rem; color: var(--ink);
  border: 2px solid #111; border-radius: var(--radius-sm);
  padding: 7px 12px; background: #fff;
}
.blog-lang:hover { background: var(--brand-soft); }
.nav__links--blog { display: flex !important; }
.nav__link--active { color: var(--ink); font-weight: 800; }

/* Portada */
.blog-hero { padding: clamp(48px, 6vw, 80px) 0 clamp(28px, 4vw, 48px); border-bottom: 2px solid #111; }
.blog-hero h1 { font-size: clamp(2.1rem, 4vw + 0.4rem, 3.2rem); font-weight: 900; letter-spacing: -0.02em; }
.blog-hero p { margin-top: 12px; color: var(--ink-70); max-width: 56ch; font-size: 1.05rem; }

.blog-grid-wrap { padding-block: clamp(40px, 5vw, 64px); }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.post-card {
  background: #fff; border: 2px solid #111; border-radius: var(--radius);
  box-shadow: 4px 4px 0 #111; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.post-card:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 #111; }
.post-card__imgwrap { display: block; border-bottom: 2px solid #111; aspect-ratio: 16/9; overflow: hidden; background: var(--paper-dim); }
.post-card__imgwrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; }
.post-card__meta { display: flex; align-items: center; gap: 12px; font-size: 0.78rem; font-weight: 700; color: var(--ink-50); }
.post-card__title { font-size: 1.15rem; line-height: 1.25; letter-spacing: -0.01em; }
.post-card__title a { color: var(--ink); }
.post-card__title a:hover { color: var(--brand-ink); }
.post-card__excerpt { font-size: 0.9rem; color: var(--ink-70); }

/* Paginacion */
.blog-pag { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: clamp(36px, 5vw, 56px); flex-wrap: wrap; }
.blog-pag__info { font-size: 0.85rem; font-weight: 700; color: var(--ink-50); }

/* Post */
.container--post { max-width: 760px; }
.post { padding-block: clamp(48px, 6vw, 80px); }
.post__header { margin-bottom: 28px; }
.post__title { font-size: clamp(1.8rem, 3.2vw + 0.4rem, 2.7rem); line-height: 1.12; letter-spacing: -0.02em; margin-top: 14px; }
.post__lead { margin-top: 14px; font-size: 1.12rem; color: var(--ink-70); }
.post__mins { font-weight: 700; }

.post-figure { margin: 0 0 32px; border: 2px solid #111; border-radius: var(--radius); overflow: hidden; box-shadow: 5px 5px 0 #111; background: #fff; }
.post-figure img { width: 100%; display: block; max-height: 430px; object-fit: cover; }
.post-figure figcaption { font-size: 0.75rem; color: var(--ink-50); padding: 8px 14px; border-top: 2px solid #111; background: var(--paper-dim); }

.post__content { font-size: 1.02rem; line-height: 1.75; color: var(--ink-70); }
.post__content h2 { font-size: 1.45rem; color: var(--ink); margin: 40px 0 14px; padding-bottom: 10px; border-bottom: 2px solid #111; letter-spacing: -0.01em; }
.post__content h3 { font-size: 1.12rem; color: var(--ink); margin: 30px 0 10px; }
.post__content p { margin-bottom: 18px; }
.post__content ul, .post__content ol { margin: 0 0 18px; padding-left: 26px; }
.post__content li { margin-bottom: 8px; }
.post__content a { color: var(--brand-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.post__content strong { color: var(--ink); }
.post__content blockquote { border-left: 4px solid var(--brand); padding: 4px 0 4px 18px; margin: 0 0 18px; color: var(--ink-70); }
.post__content code { background: var(--paper-dim); border: 1px solid var(--line-strong); border-radius: 4px; padding: 1px 6px; font-size: 0.88em; }
.post__content table { width: 100%; border-collapse: collapse; margin-bottom: 22px; font-size: 0.92rem; }
.post__content th, .post__content td { border: 2px solid #111; padding: 9px 12px; text-align: left; }
.post__content th { background: var(--accent-pop); color: #111; font-weight: 800; }
.post__content img { max-width: 100%; border: 2px solid #111; border-radius: var(--radius-sm); }

/* Caja CTA final del post */
.post-cta {
  margin-top: 48px; padding: 30px; text-align: center;
  background: #fff; border: 2px solid #111; border-radius: var(--radius);
  box-shadow: 6px 6px 0 #111;
}
.post-cta h2 { font-size: 1.35rem; margin-bottom: 10px; letter-spacing: -0.01em; }
.post-cta p { color: var(--ink-70); max-width: 48ch; margin: 0 auto 20px; font-size: 0.95rem; }

.blog-footer { margin-top: 0; }

/* Responsive */
@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .nav__links--blog { display: flex !important; }
}
@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; }
  .post__content { font-size: 0.98rem; }
}
