/* =====================================================
   B4BIT Blog · main.css
   Diseño dark con paleta brand (violet/blue), basado en
   capturas y en la web ejemplo (b4bit.com).
   ===================================================== */

/* ---------- Tokens (alineados con globals.css del proyecto principal) ---------- */
:root {
  /* Backgrounds */
  --b-bg:               #06060f;   /* primary-background */
  --b-bg-light:         #ffffff;   /* primary-background-light */

  /* Surfaces (cards / elevated) */
  --b-surface-1:        #0b0b1a;
  --b-surface-2:        #11112a;
  --b-surface-3:        #1a1a36;

  /* Aliases para retrocompatibilidad con clases ya escritas */
  --b-bg-elev:          var(--b-surface-1);
  --b-bg-card:          var(--b-surface-2);
  --b-bg-input:         var(--b-surface-3);

  /* Texto */
  --b-text:             #ffffff;   /* primary-text-light */
  --b-text-muted:       #cecee9;   /* primary-text-secondary */
  --b-text-faint:       #b3aeaf;   /* primary-neutral */
  --b-text-on-light:    #06060f;   /* primary-text */

  /* Brand */
  --b-violet:           #6e71fb;   /* primary-violet */
  --b-blue:             #2d31f9;   /* primary-blue */
  --b-yellow:           #ffcd00;   /* primary-yellow (acentos puntuales) */
  --b-violet-soft:      rgba(110,113,251,0.18);
  --b-violet-hover:     rgba(110,113,251,0.25);

  /* Aurora del Grainient (SiteBackground del proyecto principal) */
  --b-aurora-1:         #4d2a89;   /* color1 del shader */
  --b-aurora-2:         #221c3a;   /* color2 del shader */
  --b-aurora-3:         #371557;   /* color3 del shader */

  /* Borders */
  --b-border:           rgba(206,206,233,0.12);   /* border-subtle */
  --b-border-soft:      rgba(206,206,233,0.06);

  /* Categorías (mantenemos paleta del blog) */
  --b-cat-guias:        #6e71fb;
  --b-cat-educacion:    #3cb6e0;
  --b-cat-productos:    #3dd68c;
  --b-cat-regulacion:   #e04a5a;

  /* Radios */
  --b-radius-sm:        10px;
  --b-radius-md:        16px;
  --b-radius-lg:        24px;
  --b-radius-pill:      999px;

  /* Layout */
  --b-container:        1200px;
  --b-shadow-1:         0 1px 0 rgba(255,255,255,0.04) inset;
  --b-shadow-2:         0 20px 50px rgba(0,0,0,0.4);

  --font-sans: 'Fira Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Utilidad mesh-bg: fondo "rico" con 4 halos radiales — calcado de globals.css */
.b-mesh-bg {
  background-color: var(--b-bg);
  background-image:
    radial-gradient(at 20% 20%, rgba(110,113,251,0.18) 0px, transparent 50%),
    radial-gradient(at 80% 0%,  rgba(110,113,251,0.12) 0px, transparent 50%),
    radial-gradient(at 0% 80%,  rgba(45,49,249,0.18)   0px, transparent 50%),
    radial-gradient(at 90% 90%, rgba(110,113,251,0.14) 0px, transparent 50%);
}

/* Glass effect para tarjetas */
.b-glass {
  background: rgba(11,11,26,0.55);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--b-border);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--b-bg);
  color: var(--b-text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
}

/* Fondo del sitio: réplica EXACTA del SiteBackground.tsx del proyecto.
   3 capas dentro de un wrapper fixed (igual que el componente React):
     1) base #06060f
     2) shader WebGL al 70% (canvas inyectado por site-background.js)
     3) velo #06060f al 30%
   Si WebGL2 no está disponible, la capa 2 cae a un gradient CSS de fallback. */
.b-site-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  contain: strict;
}
.b-site-bg__base,
.b-site-bg__shader,
.b-site-bg__veil {
  position: absolute;
  inset: 0;
}
.b-site-bg__base { background-color: var(--b-bg); }

.b-site-bg__shader {
  opacity: 0.7;
  /* Fallback CSS — visible solo si el canvas WebGL no se pudo inicializar.
     Aproxima los colores #4d2a89 / #221c3a / #371557. */
  background-image:
    radial-gradient(ellipse 80% 75% at 78% 15%, rgba(77, 42, 137, 0.95) 0%, transparent 70%),
    radial-gradient(ellipse 75% 70% at 22% 22%, rgba(55, 21, 87,  0.85) 0%, transparent 70%),
    radial-gradient(ellipse 60% 70% at 95% 55%, rgba(77, 42, 137, 0.70) 0%, transparent 70%),
    radial-gradient(ellipse 90% 60% at 50% 55%, rgba(34, 28, 58,  0.65) 0%, transparent 75%);
}
.b-site-bg__shader canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.b-site-bg__veil { background: rgba(6, 6, 15, 0.30); }

.b-orb-mid { display: none !important; }

/* El contenido del sitio va por encima de los orbs */
.b-header, .b-main, .b-footer { position: relative; z-index: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
input, textarea, select { font: inherit; }
ul, ol { padding: 0; margin: 0; list-style: none; }
nav ul, nav ol { list-style: none; }

h1, h2, h3, h4, h5, h6 { margin: 0; line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--b-container);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding-block: 48px; }
.section-tight { padding-block: 32px; }

.grid {
  display: grid;
  gap: 24px;
}
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (max-width: 1024px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

/* ---------- Header ---------- */
.b-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .25s ease, border-color .25s ease, backdrop-filter .25s ease;
}
/* Sólo cuando hay scroll, aparece el cajetín con fondo + blur */
.b-header.is-scrolled {
  background: rgba(6, 6, 15, 0.7);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom-color: var(--b-border-soft);
}
.b-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  height: 72px;
  gap: 32px;
}
.b-header__left { display: flex; align-items: center; }
.b-header__center { display: flex; justify-content: center; }
.b-logo { display: inline-flex; align-items: center; height: 60px; }
.b-logo svg { height: 56px; width: auto; }

.b-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 4px;
  border: 1px solid var(--b-border);
  background: rgba(11, 11, 26, 0.4);          /* surface-1/40 */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--b-radius-pill);
}
.b-nav li { list-style: none; }
.b-nav a {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--b-text-muted);
  border-radius: var(--b-radius-pill);
  transition: color .2s, background-color .2s;
}
.b-nav a:hover { color: var(--b-text); background: rgba(255,255,255,0.05); }
.b-nav .current-menu-item a,
.b-nav a[aria-current="page"] { color: var(--b-text); background: rgba(255,255,255,0.06); }

.b-header__right { display: flex; align-items: center; gap: 16px; }
.b-lang-switch {
  font-size: 14px;
  color: var(--b-text-muted);
  transition: color .2s;
  padding: 8px 4px;
}
.b-lang-switch:hover { color: var(--b-text); }
.b-lang-divider {
  width: 1px;
  height: 18px;
  background: var(--b-border);
}
.b-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 18px;
  background: var(--b-violet);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--b-radius-pill);
  transition: background-color .2s, transform .15s;
}
.b-btn:hover { background: var(--b-blue); }
.b-btn:active { transform: translateY(1px); }
.b-btn--ghost {
  background: transparent;
  color: var(--b-text-muted);
}
.b-btn--ghost:hover { color: var(--b-text); background: rgba(255,255,255,0.05); }

.b-header__toggle { display: none; }
.b-header__desktop-only { display: inline-flex; align-items: center; gap: 16px; }
.b-mobile-menu { display: none; }
.b-btn--block { width: 100%; height: 48px; }

@media (max-width: 900px) {
  /* Layout mobile: logo IZQUIERDA | hamburguesa DERECHA */
  .b-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  .b-header__left { order: 1; }
  .b-header__center { display: none; }
  /* .b-header__right en mobile sólo contiene .b-header__desktop-only (hidden);
     lo ocultamos entero para que no quede como flex-item vacío empujando layout */
  .b-header__right { display: none !important; }
  .b-header__desktop-only { display: none; }
  .b-header__toggle {
    display: inline-flex;
    order: 2;                /* siempre después del logo → queda a la derecha */
    margin-left: auto;       /* empuja al extremo derecho aunque haya otros */
    width: 40px; height: 40px;
    align-items: center; justify-content: center;
    border-radius: var(--b-radius-pill);
    border: 1px solid var(--b-border);
    background: var(--b-bg-elev);
    color: var(--b-text);
  }
  .b-header__toggle svg { width: 22px; height: 22px; stroke: var(--b-text); }

  /* ---------- Panel móvil pantalla completa ---------- */
  .b-mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: #0d0a24;
    background-image:
      radial-gradient(ellipse 90% 60% at 80% 10%, rgba(77, 42, 137, 0.55) 0%, transparent 70%),
      radial-gradient(ellipse 70% 60% at 20% 95%, rgba(45, 49, 249, 0.18) 0%, transparent 70%);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 18px 20px 32px;
    flex-direction: column;
  }
  .b-mobile-menu[hidden] { display: none !important; }
  .b-mobile-menu.is-open { display: flex !important; }

  /* Top: SÓLO la X (sin logo, igual que el proyecto) */
  .b-mobile-menu__top {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
    margin-bottom: 0;
  }
  .b-mobile-menu__top .b-logo { display: none; }   /* logo oculto en panel móvil */
  .b-mobile-menu__close {
    width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: var(--b-radius-pill);
    border: 1px solid var(--b-border);
    background: var(--b-bg-elev);
    color: var(--b-text);
  }
  .b-mobile-menu__close svg { width: 18px; height: 18px; }

  /* Body: flujo natural, sin space-between. nav-wrap con padding-top fijo
     para que el menú empiece más abajo, y márgenes controlados para botones/redes. */
  .b-mobile-menu__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding-top: 0;
    padding-bottom: 24px;
  }

  /* Nav: "Buy crypto" debe quedar en el ~17% del viewport (línea 1) */
  .b-mobile-menu__nav-wrap {
    flex: 0 0 auto;
    display: block;
    text-align: center;
    padding-top: 60px;
  }
  .b-mobile-menu__nav {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block;
  }
  .b-mobile-menu__nav li {
    list-style: none !important;
    margin: 0 0 28px;            /* ~50px entre baselines como el proyecto */
    display: block;
    text-align: center;
  }
  .b-mobile-menu__nav li:last-child { margin-bottom: 28px; }
  .b-mobile-menu__nav a {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.01em;
    line-height: 1.1;
    text-decoration: none;
  }
  .b-mobile-menu__nav a:hover,
  .b-mobile-menu__nav .current-menu-item a { color: var(--b-violet); }

  .b-mobile-menu__lang {
    list-style: none !important;
    margin: 0 !important;        /* Sin margin extra: el gap lo da el li:last-child del nav */
    padding: 0 !important;
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: center;
  }
  .b-mobile-menu__lang li { list-style: none !important; margin: 0; }
  .b-mobile-menu__lang a {
    font-family: var(--font-sans);
    font-size: 17px;
    font-weight: 400;
    color: var(--b-text-muted);
    text-decoration: none;
  }
  .b-mobile-menu__lang a:hover { color: #ffffff; }

  /* Buttons: empiezan ~62% del viewport (línea 3) */
  .b-mobile-menu__buttons {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 110px 0 0;          /* gap grande para alinear con "Company Login" del proyecto */
  }
  .b-mobile-menu__buttons .b-btn--block {
    width: 100%;
    height: 48px;
    font-weight: 600;
    border-radius: 6px;          /* picos cuadrados (no pill) */
  }

  /* Social: empieza ~87% del viewport (línea 4 — "Follow us on") */
  .b-mobile-menu__social {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin: 90px 0 0;
    padding-top: 0;
  }
  .b-mobile-menu__social p {
    margin: 0;
    font-size: 13px;
    color: var(--b-text-muted);
  }
  .b-mobile-menu__social-icons { display: flex; gap: 28px; align-items: center; }
  .b-mobile-menu__social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;             /* iconos blancos como en el proyecto */
    text-decoration: none;
    transition: opacity .2s;
  }
  .b-mobile-menu__social-icons a:hover { opacity: 0.75; }
  .b-mobile-menu__social-icons svg { width: 26px; height: 26px; }

  body.b-mobile-menu-open { overflow: hidden; }
}

/* ---------- Hero ---------- */
.b-hero {
  text-align: center;
  padding: 64px 0 32px;
}
.b-hero__title {
  font-size: clamp(48px, 7vw, 72px);
  font-weight: 700;             /* Project usa 700 (Bold) para títulos display */
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.b-hero__subtitle {
  font-size: 17px;
  color: var(--b-text-muted);
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.55;
}
.b-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 6px;
  background: var(--b-bg-elev);
  border: 1px solid var(--b-border);
  border-radius: var(--b-radius-pill);
}
.b-tab {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--b-text-muted);
  border-radius: var(--b-radius-pill);
  transition: background-color .2s, color .2s;
}
.b-tab:hover { color: var(--b-text); }
.b-tab.is-active {
  background: var(--b-violet);
  color: #fff;
  box-shadow: 0 6px 20px rgba(110,113,251,0.35);
}

/* ---------- Section title ---------- */
.b-section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--b-violet);
  margin-bottom: 20px;
}
.b-section-label::before {
  content: ""; display: inline-block; width: 6px; height: 6px;
  background: var(--b-violet); border-radius: 50%;
}

/* ---------- Card destacada ---------- */
.b-featured {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 0;
  background: var(--b-bg-card);
  border: 1px solid var(--b-border);
  border-radius: var(--b-radius-lg);
  overflow: hidden;
  box-shadow: var(--b-shadow-1);
}
.b-featured__image {
  position: relative;
  aspect-ratio: 4/3;
  background: #000;
}
.b-featured__image img { width: 100%; height: 100%; object-fit: cover; }
.b-featured__body {
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}
.b-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--b-text-faint); }
.b-meta__sep { width: 3px; height: 3px; background: var(--b-text-faint); border-radius: 50%; opacity: 0.6; }
.b-featured__title {
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.b-featured__title a { transition: color .2s; }
.b-featured__title a:hover { color: var(--b-violet); }
.b-featured__excerpt { color: var(--b-text-muted); font-size: 15px; }

@media (max-width: 880px) {
  .b-featured { grid-template-columns: 1fr; }
  .b-featured__body { padding: 24px; }
}

/* ---------- Tag categoría ---------- */
.b-tag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--b-radius-pill);
  color: var(--tag-color, var(--b-violet));
  background: color-mix(in srgb, var(--tag-color, var(--b-violet)) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--tag-color, var(--b-violet)) 40%, transparent);
  transition: background-color .2s;
}
.b-tag:hover { background: color-mix(in srgb, var(--tag-color, var(--b-violet)) 28%, transparent); }

/* ---------- Card de post ---------- */
.b-card {
  display: flex;
  flex-direction: column;
  background: var(--b-bg-card);
  border: 1px solid var(--b-border);
  border-radius: var(--b-radius-md);
  overflow: hidden;
  transition: transform .25s ease, border-color .2s;
}
.b-card:hover { transform: translateY(-2px); border-color: rgba(110,113,251,0.4); }
.b-card__image {
  position: relative;
  aspect-ratio: 16/10;
  background: #000;
  overflow: hidden;
}
.b-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.b-card:hover .b-card__image img { transform: scale(1.04); }
/* (Antes había .b-card__tag-overlay para el tag sobre la imagen,
   ahora la categoría va al final del body, no overlay.) */
.b-card__body { padding: 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.b-card__category {
  margin-top: auto;            /* empuja la categoría al final del body */
  padding-top: 4px;
}
.b-card__title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.b-card__title a:hover { color: var(--b-violet); }
.b-card__excerpt {
  color: var(--b-text-muted);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.b-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;     /* date izquierda · reading time derecha */
  gap: 10px;
  padding-top: 8px;
  font-size: 12px;
  color: var(--b-text-faint);
}
.b-card__reading {
  white-space: nowrap;
}

/* ---------- Newsletter ---------- */
.b-newsletter {
  text-align: center;
  padding: 56px 0;
}
.b-newsletter__title {
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.b-newsletter__subtitle {
  color: var(--b-text-muted);
  font-size: 15px;
  margin-bottom: 24px;
}
.b-newsletter__form {
  display: inline-flex;
  align-items: center;
  background: var(--b-bg-input);
  border: 1px solid var(--b-border);
  border-radius: var(--b-radius-pill);
  padding: 4px 4px 4px 20px;
  width: 100%;
  max-width: 460px;
}
.b-newsletter__form input {
  flex: 1;
  height: 44px;
  background: transparent;
  border: 0;
  outline: none;
  color: var(--b-text);
  font-size: 14px;
}
.b-newsletter__form input::placeholder { color: var(--b-text-faint); }
.b-newsletter__form button {
  height: 40px;
  padding: 0 20px;
  background: var(--b-violet);
  color: #fff;
  border-radius: var(--b-radius-pill);
  font-size: 14px;
  font-weight: 600;
  transition: background-color .2s;
}
.b-newsletter__form button:hover { background: var(--b-blue); }

/* ---------- Footer ---------- */
.b-footer {
  background: var(--b-bg-elev);
  border-top: 1px solid var(--b-border-soft);
  margin-top: 80px;
  padding-block: 48px 32px;
}
.b-footer__top {
  /* Grid 2fr/1fr/1fr → brand ocupa la mitad de la fila, Resources arranca
     en el ~50% del viewport (línea roja del ejemplo) y Legal cae en el ~78%. */
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  align-items: start;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--b-border-soft);
}
.b-footer__brand .b-logo svg { height: 56px; }
.b-footer__brand p { margin-top: 12px; color: var(--b-text-faint); font-size: 13px; }
.b-footer__col h4 {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--b-text-muted);
  margin-bottom: 16px;
}
.b-footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.b-footer__col a {
  font-size: 14px;
  color: var(--b-text);
  transition: color .2s;
}
.b-footer__col a:hover { color: var(--b-violet); }
.b-footer__social {
  display: flex; gap: 12px; margin-top: 16px;
}
.b-footer__social a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--b-border);
  border-radius: var(--b-radius-pill);
  background: rgba(11, 11, 26, 0.5);     /* surface-1/50 */
  color: var(--b-text-light, #fff);
  transition: color .2s, background-color .2s;
}
.b-footer__social a:hover {
  background: var(--b-surface-2);        /* surface-2 al pasar */
  color: var(--b-violet);
}
.b-footer__social svg { width: 16px; height: 16px; }

.b-footer__legal {
  margin-top: 32px;
  font-size: 12px;
  color: var(--b-text-faint);
  line-height: 1.7;
}

@media (max-width: 800px) {
  .b-footer__top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .b-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .b-footer__top { grid-template-columns: 1fr; }
}

/* ---------- Single Article ---------- */
.b-article {
  padding: 32px 0 64px;
}
.b-article__container {
  max-width: 860px;
  margin-inline: auto;
  padding-inline: 24px;
}
.b-article__hero {
  border-radius: var(--b-radius-lg);
  overflow: hidden;
  margin-bottom: 28px;
  background: var(--b-bg-input);
  aspect-ratio: 16/9;
}
.b-article__hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.b-article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  font-size: 13px;
  color: var(--b-text-faint);
}
.b-article__reading { white-space: nowrap; }

.b-article__title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: var(--b-text);
}
.b-article__date {
  margin: 0 0 20px;
  font-size: 13px;
  color: var(--b-text-faint);
}
.b-article__divider {
  border: none;
  border-top: 1px solid var(--b-border-soft);
  margin: 0 0 28px;
}

/* Tipografía del cuerpo del post (the_content) */
.b-article__body { color: var(--b-text-muted); font-size: 16px; line-height: 1.75; }
.b-article__body > * + * { margin-top: 16px; }
.b-article__body h2,
.b-article__body h3,
.b-article__body h4 { color: var(--b-text); letter-spacing: -.01em; line-height: 1.25; }
.b-article__body h2 { font-size: 24px; font-weight: 700; margin-top: 36px; }
.b-article__body h3 { font-size: 20px; font-weight: 700; margin-top: 28px; }
.b-article__body h4 { font-size: 17px; font-weight: 600; margin-top: 24px; }
.b-article__body p { margin: 0; }
.b-article__body strong { color: var(--b-text); font-weight: 600; }
.b-article__body a { color: var(--b-violet); text-decoration: underline; text-underline-offset: 3px; }
.b-article__body a:hover { color: var(--b-blue); }
.b-article__body ul,
.b-article__body ol { padding-left: 22px; }
.b-article__body li + li { margin-top: 6px; }
.b-article__body blockquote {
  margin: 24px 0;
  padding: 12px 18px;
  border-left: 3px solid var(--b-violet);
  background: rgba(110,113,251,0.06);
  color: var(--b-text);
  border-radius: 0 var(--b-radius-md) var(--b-radius-md) 0;
}
.b-article__body img { max-width: 100%; height: auto; border-radius: var(--b-radius-md); }
.b-article__body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
  background: var(--b-bg-input);
  padding: 2px 6px;
  border-radius: 6px;
  color: var(--b-text);
}
.b-article__body pre {
  background: var(--b-bg-input);
  padding: 16px;
  border-radius: var(--b-radius-md);
  overflow-x: auto;
}

/* CTA "¿Listo para comprar Bitcoin?" al final del post */
.b-article__cta {
  margin: 48px 0 0;
  padding: 22px 26px;
  background: var(--b-surface-2);
  border: 1px solid var(--b-border);
  border-radius: var(--b-radius-md);
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.b-article__cta-text { flex: 1 1 auto; min-width: 220px; }
.b-article__cta-text h3 {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 600;
  color: var(--b-text);
  letter-spacing: -.01em;
}
.b-article__cta-text p {
  margin: 0;
  font-size: 13px;
  color: var(--b-text-muted);
}
.b-article__cta .b-btn {
  flex: 0 0 auto;
  height: 44px;
  padding: 0 24px;
  white-space: nowrap;
}

/* Posts relacionados (también te puede interesar) */
.b-article__related { margin-top: 56px; }
.b-article__related-label {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--b-text-muted);
}

@media (max-width: 640px) {
  .b-article { padding: 20px 0 48px; }
  .b-article__hero { margin-bottom: 20px; aspect-ratio: 4/3; }
  .b-article__cta { flex-direction: column; align-items: stretch; padding: 20px; }
  .b-article__cta .b-btn { width: 100%; }
}

/* ---------- Estados utilitarios ---------- */
.b-empty {
  text-align: center;
  color: var(--b-text-faint);
  padding: 48px 0;
}

/* ---------- Loading state para filtros ---------- */
.b-grid.is-loading { opacity: 0.5; pointer-events: none; transition: opacity .2s; }
