/* ==========================================================
   blog.css — blog.html y entrada.html (cargar después de venta.css)
   ========================================================== */
.b-filters .v-filters-row { grid-template-columns: minmax(0, 1fr) 220px auto; }

/* ---------- Tarjetas ---------- */
.b-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--v-radius); background: #fff; border: 1px solid var(--ns-line);
  color: inherit; text-decoration: none;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease, border-color .35s ease;
}
.b-card:hover { transform: translateY(-4px); box-shadow: 0 22px 50px -24px rgba(12,58,33,.35); border-color: rgba(12,58,33,.18); }
.b-img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ns-soft); }
.b-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.b-card:hover .b-img img { transform: scale(1.04); }
.b-ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ns-dark); opacity: .35; }
.b-ph .v-ico { width: 44px; height: 44px; }
.b-body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; flex: 1; }
.b-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--ns-muted); }
.b-meta .v-ico { width: 15px; height: 15px; }
.b-meta i { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .5; margin: 0 4px; }
.b-card h3 { margin: 0; font-size: 19px; line-height: 1.3; font-weight: 600; letter-spacing: -.01em; color: var(--ns-ink);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.b-card p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--ns-muted);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.b-more { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14.5px; color: var(--ns-dark); }
.b-more .v-ico { width: 16px; height: 16px; transition: transform .3s ease; }
.b-card:hover .b-more .v-ico { transform: translateX(4px); }

/* destacada: ocupa toda la fila, imagen al costado */
.b-card.big { grid-column: 1 / -1; flex-direction: row; }
.b-card.big .b-img { flex: 0 0 56%; aspect-ratio: auto; min-height: 340px; }
.b-card.big .b-body { padding: 36px 40px; justify-content: center; gap: 14px; }
.b-card.big h3 { font-size: 30px; -webkit-line-clamp: 4; }
.b-card.big p { font-size: 16px; -webkit-line-clamp: 4; }

/* animación del paginado (igual que venta) */
.v-grid.v-in-next .b-card, .v-grid.v-in-prev .b-card { animation: v-in-next .5s cubic-bezier(.2,.7,.2,1) both; animation-delay: var(--d, 0s); }
.v-grid.v-in-prev .b-card { animation-name: v-in-prev; }
.v-grid.v-in-next .b-card:nth-child(n+4), .v-grid.v-in-prev .b-card:nth-child(n+4) { animation-delay: calc(var(--d, 0s) + .08s); }
.v-grid.v-in-next .b-card:nth-child(n+7), .v-grid.v-in-prev .b-card:nth-child(n+7) { animation-delay: calc(var(--d, 0s) + .16s); }

/* ---------- Artículo ---------- */
.b-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1000; pointer-events: none; }
.b-progress i { display: block; height: 100%; background: var(--ns-lime); transform: scaleX(0); transform-origin: 0 50%; }
#b-root { max-width: 820px; margin: 0 auto; }
#b-root .p-crumbs span { color: var(--ns-ink); max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#b-root .p-related { max-width: none; }
.b-head { margin: 8px 0 28px; }
.b-head h1 { margin: 10px 0 16px; font-size: clamp(30px, 4.4vw, 46px); line-height: 1.12; font-weight: 600; letter-spacing: -.025em; color: var(--ns-ink); }
.b-head .b-meta { font-size: 14px; }
.b-head .tools { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.b-hero { margin: 0 0 36px; border-radius: 26px; overflow: hidden; background: var(--ns-soft); }
.b-hero img { display: block; width: 100%; height: auto; max-height: 520px; object-fit: cover; }

.b-prose { font-size: 17.5px; line-height: 1.75; color: #24382c; }
.b-prose > :first-child { margin-top: 0; }
.b-prose p { margin: 0 0 1.15em; }
.b-prose h1, .b-prose h2 { margin: 1.8em 0 .6em; font-size: 27px; line-height: 1.25; font-weight: 600; letter-spacing: -.015em; color: var(--ns-ink); }
.b-prose h3 { margin: 1.6em 0 .5em; font-size: 22px; line-height: 1.3; font-weight: 600; color: var(--ns-ink); }
.b-prose h4 { margin: 1.4em 0 .5em; font-size: 19px; font-weight: 600; color: var(--ns-ink); }
.b-prose h1:empty, .b-prose h2:empty, .b-prose h3:empty, .b-prose h4:empty, .b-prose p:empty { display: none; }
.b-prose strong { font-weight: 600; color: var(--ns-ink); }
.b-prose a { color: var(--ns-dark); font-weight: 500; text-decoration: underline; text-decoration-color: var(--ns-lime); text-underline-offset: 3px; text-decoration-thickness: 2px; }
.b-prose ul, .b-prose ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.b-prose li { margin: .35em 0; padding-left: .2em; }
.b-prose ul li::marker { color: var(--ns-lime); }
.b-prose ol li::marker { color: var(--ns-dark); font-weight: 600; }
.b-prose hr { border: 0; height: 1px; background: var(--ns-line); margin: 2.2em 0; }
.b-prose blockquote { margin: 1.6em 0; padding: 18px 24px; border-left: 4px solid var(--ns-lime); background: var(--ns-soft); border-radius: 0 16px 16px 0; color: var(--ns-ink); }
.b-prose blockquote p:last-child { margin-bottom: 0; }
.b-prose img { max-width: 100%; height: auto; border-radius: 18px; margin: 1em 0; }
.b-prose figure { margin: 1.4em 0; }

.b-wa { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin: 40px 0 10px; padding: 22px 26px; border-radius: 22px; background: var(--ns-soft); }
.b-wa b { display: block; font-size: 18px; font-weight: 600; color: var(--ns-ink); }
.b-wa span { color: var(--ns-muted); font-size: 15px; }
#b-root + .v-cta { max-width: 820px; margin-left: auto; margin-right: auto; }

@media (max-width: 980px) {
  .b-card.big { flex-direction: column; }
  .b-card.big .b-img { flex: none; min-height: 0; aspect-ratio: 16 / 10; }
  .b-card.big .b-body { padding: 22px 24px 26px; }
  .b-card.big h3 { font-size: 24px; }
}
@media (max-width: 760px) {
  .b-filters .v-filters-row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .b-prose { font-size: 16.5px; }
  .b-prose h1, .b-prose h2 { font-size: 23px; }
  .b-prose h3 { font-size: 20px; }
  .b-hero { border-radius: 18px; margin-bottom: 26px; }
  .b-wa { padding: 20px; }
}
