@charset "UTF-8";
/* DEVMC - 2026.04.28 - feature #bercovich-blog# "Estilos blog index, single post y categorias para theme Bercovich" */

/* ===== Blog index ===== */
.bv-blog-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 56px;
  align-items: start;
}
.bv-blog-grid__posts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.bv-blog-grid__posts--cats {
  grid-template-columns: 1fr 1fr;
}

.bv-blog-card {
  display: flex;
  flex-direction: column;
  background: var(--bv-white);
  border-radius: 6px;
  overflow: hidden;
}
.bv-blog-card__pic {
  position: relative;
  display: block;
  aspect-ratio: 4/3;
  margin-bottom: 18px;
  overflow: hidden;
  border-radius: 6px;
}
.bv-blog-card__img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 500ms var(--ease-out);
}
.bv-blog-card__pic:hover .bv-blog-card__img {
  transform: scale(1.04);
}
.bv-blog-card__stamp {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--bv-white);
  padding: 8px 12px;
  text-align: center;
  line-height: 1.1;
  font-style: normal;
}
.bv-blog-card__stamp b {
  display: block;
  font-size: 18px;
  font-weight: var(--fw-bold);
  color: var(--fg-1);
}
.bv-blog-card__stamp i {
  display: block;
  font-size: 10px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.1em;
  color: var(--fg-3);
  font-style: normal;
}
.bv-blog-card__tag {
  position: absolute;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.6);
  color: var(--bv-white);
  padding: 6px 12px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.bv-blog-card__body { display: flex; flex-direction: column; gap: 8px; }
.bv-blog-card__title {
  font-size: 20px;
  line-height: 1.3;
  font-weight: var(--fw-bold);
  margin: 0;
  text-wrap: balance;
}
.bv-blog-card__title a { color: inherit; }
.bv-blog-card__title a:hover { color: var(--bv-red); }
.bv-blog-card__meta {
  font-size: 12px;
  color: var(--fg-4);
  display: flex;
  gap: 8px;
  align-items: center;
}

/* ===== Sidebar ===== */
.bv-blog-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.bv-blog-panel {
  border: 1px solid var(--bv-grey-200);
  padding: 24px;
  border-radius: 6px;
  background: var(--bv-white);
}
.bv-blog-panel--cta { background: var(--bv-grey-50); border-color: var(--bv-grey-100); }
.bv-blog-panel--cta p { font-size: 14px; color: var(--fg-3); margin: 0 0 20px; line-height: 1.55; }
.bv-blog-panel__title {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-4);
  margin: 0 0 16px;
  font-weight: var(--fw-bold);
}
.bv-blog-panel__title--accent { color: var(--bv-red); margin-bottom: 12px; }

.bv-blog-cat-list { list-style: none; padding: 0; margin: 0; }
.bv-blog-cat-list li {
  border-bottom: 1px solid var(--bv-grey-200);
}
.bv-blog-cat-list li:last-child { border-bottom: none; }
.bv-blog-cat-list a {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 14px;
  color: var(--fg-1);
  transition: color 200ms var(--ease-out);
}
.bv-blog-cat-list a:hover,
.bv-blog-cat-list a.is-active {
  color: var(--bv-red);
  font-weight: var(--fw-semibold);
}
.bv-blog-cat-list__count { color: var(--fg-4); font-variant-numeric: tabular-nums; }

.bv-blog-tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.bv-blog-pill {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--bv-grey-200);
  border-radius: var(--r-pill);
  font-size: 12px;
  background: var(--bv-white);
  color: var(--fg-1);
  transition: all 200ms var(--ease-out);
}
.bv-blog-pill:hover,
.bv-blog-pill.is-active {
  background: var(--bv-red);
  border-color: var(--bv-red);
  color: var(--bv-white);
}

.bv-blog-feat {
  display: block;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--bv-grey-200);
}
.bv-blog-feat:last-of-type { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
.bv-blog-feat__pic {
  display: block;
  aspect-ratio: 16/10;
  background-size: cover;
  background-position: center;
  border-radius: 4px;
  margin-bottom: 10px;
}
.bv-blog-feat__title {
  display: block;
  font-size: 13px;
  font-weight: var(--fw-semibold);
  line-height: 1.4;
  color: var(--fg-1);
}
.bv-blog-feat:hover .bv-blog-feat__title { color: var(--bv-red); }
.bv-blog-feat__meta {
  display: block;
  font-size: 11px;
  color: var(--fg-4);
  margin-top: 4px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ===== Pagination ===== */
.bv-blog-pagination {
  grid-column: 1 / -1;
  margin-top: 32px;
}
.bv-blog-pagination nav { display: flex; justify-content: center; }
.bv-blog-pagination ul,
.bv-blog-pagination .pagination {
  display: flex;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.bv-blog-pagination li,
.bv-blog-pagination .page-item { list-style: none; }
.bv-blog-pagination a,
.bv-blog-pagination span,
.bv-blog-pagination .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--bv-grey-200);
  border-radius: var(--r-sm);
  font-size: 13px;
  color: var(--fg-1);
  transition: all 200ms var(--ease-out);
  background: var(--bv-white);
}
.bv-blog-pagination a:hover { border-color: var(--bv-red); color: var(--bv-red); }
.bv-blog-pagination .active span,
.bv-blog-pagination .active .page-link {
  background: var(--bv-red);
  border-color: var(--bv-red);
  color: var(--bv-white);
}
.bv-blog-pagination .disabled span,
.bv-blog-pagination .disabled .page-link {
  opacity: 0.4;
  pointer-events: none;
}

/* ===== Single Post: cover ===== */
.bv-post-cover {
  position: relative;
  height: 56vh;
  min-height: 360px;
  max-height: 560px;
  background-size: cover;
  background-position: center;
}
.bv-post-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.7) 100%);
}
.bv-post-cover__inner {
  position: absolute;
  inset: auto 0 0 0;
  padding: 48px 24px;
  max-width: var(--container);
  margin: 0 auto;
  color: var(--bv-white);
  z-index: 1;
}
.bv-post-cover__inner h1 {
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: var(--fw-extrabold);
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  line-height: 1.05;
  max-width: 900px;
  text-wrap: balance;
  color: var(--bv-white);
}
.bv-post-cover__tag {
  display: inline-block;
  background: var(--bv-red);
  color: var(--bv-white);
  padding: 4px 12px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: var(--fw-bold);
  margin-bottom: 16px;
}
.bv-post-cover__meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  align-items: center;
  flex-wrap: wrap;
}
.bv-post-cover__author { display: flex; align-items: center; gap: 10px; }
.bv-post-cover__av {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bv-red);
  border: 2px solid var(--bv-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--fw-bold);
  font-size: 13px;
  color: var(--bv-white);
}

.bv-crumbs--light { color: rgba(255, 255, 255, 0.85); }
.bv-crumbs--light a { color: rgba(255, 255, 255, 0.95); }
.bv-crumbs--light .bv-crumbs__sep { color: var(--bv-red); }

/* ===== Single Post: layout ===== */
.bv-post-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 64px;
  padding: 64px 24px;
  max-width: var(--container);
  margin: 0 auto;
}
.bv-blog-sidebar--post { top: 96px; }

.bv-post-body {
  max-width: 760px;
}
.bv-post-body__lede {
  font-size: 20px;
  line-height: 1.55;
  color: var(--fg-2);
  margin: 0 0 32px;
  font-weight: var(--fw-medium);
  text-wrap: pretty;
}
.bv-post-body p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--fg-1);
  margin: 0 0 20px;
}
.bv-post-body h2 {
  font-size: 28px;
  font-weight: var(--fw-extrabold);
  letter-spacing: -0.01em;
  margin: 40px 0 16px;
}
.bv-post-body h3 {
  font-size: 20px;
  font-weight: var(--fw-bold);
  margin: 28px 0 12px;
}
.bv-post-body blockquote {
  margin: 32px 0;
  padding: 24px 32px;
  border-left: 4px solid var(--bv-red);
  background: var(--bv-grey-50);
  font-size: 18px;
  line-height: 1.5;
  font-weight: var(--fw-medium);
  font-style: italic;
  color: var(--fg-1);
}
.bv-post-body ul {
  padding-left: 22px;
  margin: 0 0 20px;
}
.bv-post-body ul li {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 8px;
}
.bv-post-body ul li::marker { color: var(--bv-red); }
.bv-post-body figure { margin: 32px 0; }
.bv-post-body figure img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  border-radius: 4px;
}
.bv-post-body figure figcaption {
  font-size: 12px;
  color: var(--fg-4);
  margin-top: 10px;
  font-style: italic;
  letter-spacing: 0.04em;
}
.bv-post-body img { max-width: 100%; height: auto; border-radius: 4px; }

.bv-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 48px 0 32px;
  padding-top: 32px;
  border-top: 1px solid var(--bv-grey-200);
}
.bv-post-tags__lbl {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-4);
  margin-right: 8px;
  font-weight: var(--fw-bold);
}

.bv-post-share {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.bv-share__btn {
  border: none;
  cursor: pointer;
  font-size: inherit;
}
.bv-share__btn.is-copied { background: #16A34A; }
.bv-share__feedback {
  font-size: 12px;
  color: #16A34A;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.04em;
  margin-left: 4px;
  animation: bvFadeIn 200ms var(--ease-out);
}
@keyframes bvFadeIn { from { opacity: 0; transform: translateY(2px); } to { opacity: 1; transform: translateY(0); } }

.bv-post-author {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 28px;
  background: var(--bv-grey-50);
  border-radius: 6px;
  margin-bottom: 48px;
}
.bv-post-author__av {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--bv-red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--bv-white);
  font-weight: var(--fw-bold);
  font-size: 22px;
  flex-shrink: 0;
}
.bv-post-author__name { font-weight: var(--fw-bold); margin-bottom: 4px; }
.bv-post-author__role {
  font-size: 12px;
  color: var(--fg-4);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.bv-post-author__bio { font-size: 14px; color: var(--fg-3); line-height: 1.55; margin: 0; }

.bv-post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.bv-post-nav__item {
  padding: 20px;
  border: 1px solid var(--bv-grey-200);
  border-radius: 6px;
  display: block;
  transition: border-color 200ms var(--ease-out), transform 200ms var(--ease-out);
  background: var(--bv-white);
}
.bv-post-nav__item:hover {
  border-color: var(--bv-red);
  transform: translateY(-2px);
}
.bv-post-nav__item.is-disabled {
  opacity: 0.3;
  pointer-events: none;
  background: var(--bv-grey-50);
}
.bv-post-nav__dir {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bv-red);
  font-weight: var(--fw-bold);
  margin-bottom: 8px;
}
.bv-post-nav__ttl {
  font-size: 14px;
  font-weight: var(--fw-semibold);
  line-height: 1.4;
  color: var(--fg-1);
  display: block;
}
.bv-post-nav__item--next { text-align: right; }
.bv-post-nav__item--next .bv-post-nav__dir { justify-content: flex-end; }

/* ===== Related (sidebar) ===== */
.bv-blog-related {
  display: flex;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--bv-grey-200);
  align-items: flex-start;
}
.bv-blog-related:last-of-type { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
.bv-blog-related__pic {
  flex: 0 0 80px;
  aspect-ratio: 1/1;
  background-size: cover;
  background-position: center;
  border-radius: 4px;
}
.bv-blog-related__title {
  display: block;
  font-size: 13px;
  font-weight: var(--fw-semibold);
  line-height: 1.35;
  margin-bottom: 6px;
  color: var(--fg-1);
}
.bv-blog-related:hover .bv-blog-related__title { color: var(--bv-red); }
.bv-blog-related__meta {
  display: block;
  font-size: 11px;
  color: var(--fg-4);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ===== Categorias landing ===== */
.bv-cat-tile {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--bv-grey-200);
  border-radius: 6px;
  background: var(--bv-white);
  transition: transform 200ms var(--ease-out), border-color 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
  color: inherit;
}
.bv-cat-tile:hover {
  transform: translateY(-4px);
  border-color: var(--bv-red);
  box-shadow: var(--shadow-hover);
}
.bv-cat-tile__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.bv-cat-tile__ic { font-size: 28px; line-height: 1; }
.bv-cat-tile__count {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-4);
  font-weight: var(--fw-semibold);
}
.bv-cat-tile__title {
  font-size: 22px;
  font-weight: var(--fw-bold);
  margin: 0;
  color: var(--fg-1);
}
.bv-cat-tile__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bv-red);
}

/* ===== Categorias (productos) ===== */
.bv-cat-page {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  align-items: start;
}
.bv-cat-side {
  border-right: 1px solid var(--bv-grey-200);
  padding-right: 24px;
}
.bv-cat-side__group {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-4);
  margin: 0 0 16px;
  font-weight: var(--fw-bold);
}
.bv-cat-side__group + .bv-cat-side__list { margin-bottom: 32px; }
.bv-cat-side__list { list-style: none; padding: 0; margin: 0 0 32px; }
.bv-cat-side__item {
  border-bottom: 1px solid var(--bv-grey-100);
}
.bv-cat-side__item:last-child { border-bottom: none; }
.bv-cat-side__item a {
  display: block;
  padding: 10px 0;
  font-size: 14px;
  color: var(--fg-1);
  transition: color 200ms var(--ease-out);
}
.bv-cat-side__item a:hover { color: var(--bv-red); }
.bv-cat-side__item.is-active a { color: var(--bv-red); font-weight: var(--fw-bold); }

.bv-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.bv-product {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--bv-grey-200);
  border-radius: 6px;
  overflow: hidden;
  background: var(--bv-white);
  transition: box-shadow var(--dur-base) var(--ease-out);
}
.bv-product:hover { box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06); }
.bv-product__img {
  display: block;
  aspect-ratio: 1/1;
  background-color: var(--bv-grey-100);
  background-size: cover;
  background-position: center;
}
.bv-product__body { padding: 16px; }
.bv-product__pill {
  display: inline-block;
  background: var(--bv-red);
  color: var(--bv-white);
  font-size: 10px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}
.bv-product__name {
  font-size: 14px;
  font-weight: var(--fw-semibold);
  margin-bottom: 6px;
  color: var(--fg-1);
}
.bv-product__price {
  font-size: 18px;
  font-weight: var(--fw-bold);
  color: var(--fg-1);
}
.bv-product__old {
  font-size: 13px;
  color: var(--fg-4);
  text-decoration: line-through;
  margin-right: 6px;
  font-weight: var(--fw-regular);
}

/* ===== Responsive ===== */
@media (max-width: 1000px) {
  .bv-blog-grid { grid-template-columns: 1fr; gap: 48px; }
  .bv-blog-sidebar { position: static; top: auto; }
  .bv-post-layout { grid-template-columns: 1fr; gap: 48px; padding: 48px 24px; }
  .bv-cat-page { grid-template-columns: 1fr; }
  .bv-cat-side { border-right: none; border-bottom: 1px solid var(--bv-grey-200); padding: 0 0 24px; }
  .bv-cat-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .bv-blog-grid__posts { grid-template-columns: 1fr; }
  .bv-post-author { flex-direction: column; text-align: left; }
  .bv-post-nav { grid-template-columns: 1fr; }
  .bv-post-nav__item--next { text-align: left; }
  .bv-post-nav__item--next .bv-post-nav__dir { justify-content: flex-start; }
  .bv-post-cover__inner { padding: 32px 20px; }
  .bv-post-body { max-width: 100%; }
}
@media (max-width: 520px) {
  .bv-cat-grid { grid-template-columns: 1fr; }
}
