/* BoogiePetsLandia - Centro de conocimiento
   Carga únicamente en portada, categorías y artículos del blog. */

:root {
  --bpl-blue: #106198;
  --bpl-blue-dark: #0b4f7e;
  --bpl-green: #0d803f;
  --bpl-yellow: #f6ed0a;
  --bpl-bg: #f7f9f8;
  --bpl-surface: #ffffff;
  --bpl-text: #17202a;
  --bpl-muted: #5e6974;
  --bpl-border: #dde5e8;
  --bpl-radius: 18px;
  --bpl-shadow: 0 12px 30px rgba(18, 48, 66, .08);
  --bpl-max: 1240px;
  --bpl-article: 820px;
}

.bpl-knowledge,
.bpl-knowledge * { box-sizing: border-box; }

.bpl-knowledge {
  color: var(--bpl-text);
  background: var(--bpl-surface);
  line-height: 1.65;
}

.bpl-container {
  width: min(calc(100% - 32px), var(--bpl-max));
  margin-inline: auto;
}

.bpl-container--narrow { max-width: 900px; }
.bpl-container--article { max-width: var(--bpl-article); }

.bpl-eyebrow {
  margin: 0 0 8px;
  color: var(--bpl-green);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.bpl-hero {
  padding: clamp(54px, 7vw, 92px) 0 clamp(48px, 6vw, 74px);
  text-align: center;
  background: linear-gradient(180deg, #f7fbfd 0%, #ffffff 100%);
  border-bottom: 1px solid var(--bpl-border);
}

.bpl-hero h1,
.bpl-category-hero h1,
.bpl-article__header h1 {
  color: var(--bpl-blue-dark);
  line-height: 1.08;
  letter-spacing: -.025em;
}

.bpl-hero h1 { margin: 0; font-size: clamp(2.2rem, 5vw, 4.2rem); }
.bpl-hero__lead { max-width: 760px; margin: 20px auto 0; font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--bpl-muted); }

.bpl-blog-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  max-width: 720px;
  margin: 32px auto 0;
  padding: 7px;
  background: #fff;
  border: 1px solid var(--bpl-border);
  border-radius: 16px;
  box-shadow: var(--bpl-shadow);
}

.bpl-blog-search input {
  width: 100%;
  min-height: 50px;
  border: 0;
  padding: 0 16px;
  background: transparent;
  color: var(--bpl-text);
  outline: none;
}

.bpl-blog-search button,
.bpl-button {
  min-height: 50px;
  border: 0;
  border-radius: 12px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bpl-blue);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}

.bpl-blog-search button:hover,
.bpl-button:hover { background: var(--bpl-blue-dark); transform: translateY(-1px); color: #fff; }

.bpl-section { padding: clamp(48px, 6vw, 84px) 0; }
.bpl-section--soft { background: var(--bpl-bg); }
.bpl-section--cta { padding-top: 12px; padding-bottom: clamp(56px, 7vw, 92px); }
.bpl-section__header { max-width: 760px; margin-bottom: 28px; }
.bpl-section__header h2,
.bpl-category-children h2,
.bpl-toc__title { margin: 0; color: var(--bpl-blue-dark); line-height: 1.2; }
.bpl-section__header p:last-child { margin-bottom: 0; color: var(--bpl-muted); }

.bpl-category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.bpl-category-card {
  min-height: 148px;
  padding: 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: start;
  color: var(--bpl-text);
  background: var(--bpl-surface);
  border: 1px solid var(--bpl-border);
  border-radius: var(--bpl-radius);
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.bpl-category-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--bpl-shadow);
  border-color: rgba(16, 97, 152, .35);
  color: var(--bpl-text);
}

.bpl-category-card__icon { font-size: 2rem; line-height: 1; }
.bpl-category-card__content strong { display: block; margin-bottom: 8px; color: var(--bpl-blue-dark); font-size: 1.05rem; }
.bpl-category-card__content span { display: block; color: var(--bpl-muted); font-size: .91rem; line-height: 1.45; }
.bpl-category-card__arrow { color: var(--bpl-green); font-weight: 900; }
.bpl-category-card__content small { display: inline-block; margin-top: 10px; color: var(--bpl-muted); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.bpl-category-card--coming { opacity: .7; background: #fbfcfc; }
.bpl-category-card--coming:hover { transform: none; box-shadow: none; border-color: var(--bpl-border); }

.bpl-post-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.bpl-post-grid--featured { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bpl-post-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.bpl-post-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--bpl-border);
  border-radius: var(--bpl-radius);
  transition: transform .18s ease, box-shadow .18s ease;
}

.bpl-post-card:hover { transform: translateY(-3px); box-shadow: var(--bpl-shadow); }
.bpl-post-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #edf3f5; }
.bpl-post-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.bpl-post-card:hover .bpl-post-card__media img { transform: scale(1.025); }
.bpl-post-card__placeholder { width: 100%; height: 100%; display: grid; place-items: center; font-size: 2.6rem; }
.bpl-post-card__body { padding: 20px; }
.bpl-post-card__category { color: var(--bpl-green); font-size: .78rem; font-weight: 800; text-decoration: none; }
.bpl-post-card__title { margin: 8px 0 10px; font-size: 1.12rem; line-height: 1.3; }
.bpl-post-card__title a { color: var(--bpl-blue-dark); text-decoration: none; }
.bpl-post-card__excerpt { color: var(--bpl-muted); font-size: .93rem; }
.bpl-text-link { color: var(--bpl-blue); font-weight: 800; text-decoration: none; }

.bpl-knowledge-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  padding: clamp(28px, 4vw, 46px);
  background: #eef7f1;
  border: 1px solid #cfe8d8;
  border-radius: 22px;
}
.bpl-knowledge-cta h2 { margin: 0 0 10px; color: var(--bpl-blue-dark); }
.bpl-knowledge-cta p { max-width: 820px; margin: 0; color: var(--bpl-muted); }


.bpl-category-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: clamp(30px, 5vw, 58px) 0;
  max-width: 950px;
}
.bpl-category-hero__icon { font-size: clamp(2.4rem, 5vw, 4.4rem); line-height: 1; }
.bpl-category-hero h1 { margin: 0 0 16px; font-size: clamp(2.2rem, 5vw, 4rem); }
.bpl-category-hero__description { max-width: 820px; color: var(--bpl-muted); font-size: 1.05rem; }
.bpl-category-hero__description p:last-child { margin-bottom: 0; }

.bpl-category-children { padding: 8px 0 clamp(44px, 6vw, 74px); }
.bpl-category-children h2 { margin-bottom: 20px; }
.bpl-subcategory-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.bpl-subcategory-card { padding: 22px; color: var(--bpl-text); background: var(--bpl-bg); border: 1px solid var(--bpl-border); border-radius: 16px; text-decoration: none; }
.bpl-subcategory-card strong { display: block; margin-bottom: 7px; color: var(--bpl-blue-dark); }
.bpl-subcategory-card span { display: block; color: var(--bpl-muted); font-size: .9rem; line-height: 1.45; }
.bpl-subcategory-card small { display: block; margin-top: 12px; color: var(--bpl-green); font-weight: 800; }
.bpl-subcategory-card--coming {
  opacity: .56;
  background: #fbfcfc;
  border-style: dashed;
  box-shadow: none;
}
.bpl-subcategory-card--coming strong { color: #55758b; }
.bpl-subcategory-card--coming small { color: var(--bpl-muted); text-transform: uppercase; font-size: .76rem; letter-spacing: .04em; }
.bpl-subcategory-card:not(.bpl-subcategory-card--coming) {
  border-color: #cfe0d6;
  box-shadow: 0 8px 22px rgba(13, 128, 63, .06);
}
.bpl-section__header--compact { margin-bottom: 20px; }

.bpl-pagination { margin-top: 34px; }
.bpl-pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.bpl-pagination .page-numbers { min-width: 42px; min-height: 42px; padding: 8px 12px; display: inline-grid; place-items: center; border: 1px solid var(--bpl-border); border-radius: 10px; text-decoration: none; }
.bpl-pagination .current { background: var(--bpl-blue); color: #fff; border-color: var(--bpl-blue); }

.bpl-empty-state { padding: 36px; background: var(--bpl-bg); border-radius: var(--bpl-radius); text-align: center; }
.bpl-empty-state h2 { color: var(--bpl-blue-dark); }

.bpl-article { padding-bottom: 0; }
.bpl-article__header { padding: 34px 0 24px; }
.bpl-article__category { display: inline-block; margin-bottom: 14px; color: var(--bpl-green); font-weight: 800; text-decoration: none; }
.bpl-article__header h1 { margin: 0; font-size: clamp(2.2rem, 5.5vw, 4.4rem); }
.bpl-article__dek { margin: 20px 0 0; color: var(--bpl-muted); font-size: 1.18rem; line-height: 1.55; }
.bpl-article__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; color: var(--bpl-muted); font-size: .88rem; }
.bpl-article__meta a { color: var(--bpl-blue); text-decoration: none; }

.bpl-article__hero-image { margin: 12px 0 28px; }
.bpl-article__hero-image img { width: 100%; height: auto; display: block; border-radius: 20px; }
.bpl-article__hero-image figcaption { padding: 8px 4px 0; color: var(--bpl-muted); font-size: .82rem; }

.bpl-toc {
  margin: 28px 0;
  padding: 22px 24px;
  border-radius: 16px;
  background: var(--bpl-bg);
  border: 1px solid var(--bpl-border);
}
.bpl-toc__title { font-size: 1.12rem; }
.bpl-toc ol { margin: 14px 0 0; padding-left: 20px; }
.bpl-toc li + li { margin-top: 7px; }
.bpl-toc a { color: var(--bpl-blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }

.bpl-article__content { font-size: 1.05rem; }
.bpl-article__content > * { max-width: 100%; }
.bpl-article__content h2 { margin-top: 2.3em; scroll-margin-top: 100px; color: var(--bpl-blue-dark); font-size: clamp(1.55rem, 3vw, 2.05rem); line-height: 1.25; }
.bpl-article__content h3 { margin-top: 1.8em; color: var(--bpl-blue-dark); }
.bpl-article__content a { color: var(--bpl-blue); text-underline-offset: 3px; }
.bpl-article__content img { max-width: 100%; height: auto; border-radius: 14px; }
.bpl-article__content blockquote { margin: 28px 0; padding: 18px 22px; border-left: 4px solid var(--bpl-yellow); background: #fffdeb; }
.bpl-article__content table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.bpl-article__content th,
.bpl-article__content td { padding: 12px; border: 1px solid var(--bpl-border); text-align: left; }

.bpl-author-box { display: grid; grid-template-columns: 72px 1fr; gap: 18px; align-items: start; margin: 52px 0; padding: 24px; border: 1px solid var(--bpl-border); border-radius: 18px; background: var(--bpl-bg); }
.bpl-author-box img { border-radius: 50%; }
.bpl-author-box h2 { margin: 2px 0 6px; color: var(--bpl-blue-dark); font-size: 1.2rem; }
.bpl-author-box p { margin: 0; color: var(--bpl-muted); }
.bpl-article__comments { margin: 0 0 36px; }

.bpl-blog-search input:focus-visible,
.bpl-blog-search button:focus-visible,
.bpl-button:focus-visible,
.bpl-category-card:focus-visible,
.bpl-subcategory-card:focus-visible,
.bpl-post-card a:focus-visible,
.bpl-toc a:focus-visible,
.bpl-pagination a:focus-visible {
  outline: 3px solid rgba(16, 97, 152, .35);
  outline-offset: 3px;
}

@media (max-width: 1024px) {
  .bpl-category-grid,
  .bpl-subcategory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bpl-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bpl-post-grid--featured,
  .bpl-post-grid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .bpl-container { width: min(calc(100% - 24px), var(--bpl-max)); }
  .bpl-blog-search { grid-template-columns: 1fr; padding: 8px; }
  .bpl-blog-search button { width: 100%; }
  .bpl-category-grid,
  .bpl-subcategory-grid,
  .bpl-post-grid,
  .bpl-post-grid--featured,
  .bpl-post-grid--three { grid-template-columns: 1fr; }
  .bpl-category-card { min-height: 0; }
  .bpl-category-hero { grid-template-columns: 1fr; }
  .bpl-knowledge-cta { grid-template-columns: 1fr; }
  .bpl-knowledge-cta .bpl-button { width: 100%; }
  .bpl-author-box { grid-template-columns: 1fr; }
  .bpl-article__meta { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  .bpl-category-card,
  .bpl-post-card,
  .bpl-post-card__media img,
  .bpl-blog-search button,
  .bpl-button {
    transition: none;
    transform: none !important;
  }
}

/* =========================================================
   Single post: sidebars, tags and product carousel
   ========================================================= */
.bpl-container--single-shell {
  max-width: 1280px;
}

.bpl-single-layout {
  display: grid;
  grid-template-columns: minmax(0, 820px) minmax(270px, 320px);
  gap: clamp(34px, 4vw, 64px);
  align-items: start;
  justify-content: center;
}

.bpl-single-layout--no-sidebar {
  grid-template-columns: minmax(0, 820px);
}

.bpl-single-main {
  min-width: 0;
}

.bpl-single-rail {
  position: sticky;
  top: 110px;
  min-width: 0;
  padding-top: 34px;
}

.bpl-native-sidebar {
  margin-bottom: 24px;
  padding: 22px;
  border: 1px solid var(--bpl-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(11, 75, 121, .05);
}

.bpl-sidebar-kicker {
  margin: 0 0 18px;
  color: var(--bpl-green);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.bpl-native-sidebar .widget + .widget {
  margin-top: 26px;
  padding-top: 26px;
  border-top: 1px solid var(--bpl-border);
}

.bpl-native-sidebar .widget-title,
.bpl-native-sidebar .wp-block-heading {
  margin: 0 0 14px;
  color: var(--bpl-blue-dark);
  font-size: 1.05rem;
  line-height: 1.3;
}

.bpl-native-sidebar ul,
.bpl-native-sidebar ol {
  margin: 0;
  padding-left: 18px;
}

.bpl-native-sidebar li + li {
  margin-top: 8px;
}

.bpl-native-sidebar a {
  color: var(--bpl-blue-dark);
  text-decoration: none;
}

.bpl-native-sidebar a:hover {
  color: var(--bpl-green);
}

.bpl-knowledge-single .bpl-article__header h1 {
  font-size: clamp(2.2rem, 4.25vw, 3.75rem);
}

/* Índice compacto: aparece después de la introducción y antes de “Lo más importante”. */
.bpl-article__content .bpl-toc {
  margin: 28px 0 34px;
  padding: 30px 30px 28px;
}

/* La regla genérica de H2 no debe añadir aire al título interno del TOC. */
.bpl-article__content .bpl-toc .bpl-toc__title {
  margin: 0 0 18px;
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  line-height: 1.2;
}

.bpl-article__content .bpl-toc ol {
  margin-top: 0;
}

.bpl-toc ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 28px;
  margin-bottom: 0;
}

.bpl-article-tags {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--bpl-border);
}

.bpl-article-tags h2 {
  margin: 0 0 16px;
  color: var(--bpl-blue-dark);
  font-size: 1.25rem;
}

.bpl-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.bpl-tag-cloud a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 13px;
  border: 1px solid #cfe0ec;
  border-radius: 999px;
  background: #f7fbfd;
  color: var(--bpl-blue-dark);
  font-size: .88rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}

.bpl-tag-cloud a:hover,
.bpl-tag-cloud a:focus-visible {
  border-color: var(--bpl-green);
  background: #f2fbf5;
  color: var(--bpl-green);
  outline: none;
  transform: translateY(-1px);
}

.bpl-product-section {
  padding-bottom: 18px;
  background: #fff;
}

/* El carrusel y los comentarios deben sentirse como una continuidad, no como dos páginas separadas. */
.bpl-product-section + .bpl-container--article {
  margin-top: 0;
}

.bpl-product-section + .bpl-container--article .bpl-article__comments {
  margin-top: 0;
  padding-top: 0;
}

/* Minimog/WordPress pueden añadir margen propio al área de comentarios. Lo anulamos solo dentro del blog BPL. */
.bpl-article__comments #comments,
.bpl-article__comments .comments-area,
.bpl-article__comments .comment-respond,
.bpl-article__comments #respond,
.bpl-article__comments .comments-wrapper,
.bpl-article__comments .page-comments {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.bpl-article__comments > :first-child,
.bpl-article__comments .comment-reply-title,
.bpl-article__comments h2:first-child,
.bpl-article__comments h3:first-child {
  margin-top: 0 !important;
}

.bpl-product-section__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 24px;
}

.bpl-product-section__header h2 {
  margin: 2px 0 8px;
}

.bpl-product-section__header > div:first-child > p:last-child {
  max-width: 760px;
  margin: 0;
  color: var(--bpl-muted);
}

.bpl-carousel-controls {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.bpl-carousel-controls button {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid #c9dce8;
  border-radius: 50%;
  background: #fff;
  color: var(--bpl-blue-dark);
  cursor: pointer;
  box-shadow: 0 5px 16px rgba(8, 76, 122, .07);
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease, opacity .18s ease;
}

.bpl-carousel-controls button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bpl-carousel-controls button:hover:not(:disabled),
.bpl-carousel-controls button:focus-visible:not(:disabled) {
  border-color: var(--bpl-green);
  background: var(--bpl-green);
  color: #fff;
  outline: none;
  transform: translateY(-1px);
}

.bpl-carousel-controls button:disabled {
  opacity: .38;
  cursor: default;
  box-shadow: none;
}

.bpl-product-section--no-scroll .bpl-carousel-controls {
  visibility: hidden;
}

.bpl-product-carousel {
  position: relative;
}

.bpl-product-carousel__track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 2px 2px 14px;
  scroll-padding-inline: 2px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: #c6d9e6 transparent;
  overscroll-behavior-inline: contain;
}

.bpl-product-card {
  flex: 0 0 calc((100% - 60px) / 4);
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--bpl-border);
  border-radius: 18px;
  background: #fff;
  scroll-snap-align: start;
}

.bpl-product-card__image {
  display: block;
  aspect-ratio: 1 / 1;
  padding: 16px;
  background: #fff;
}

.bpl-product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.bpl-product-card__body {
  padding: 0 18px 18px;
}

.bpl-product-card h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  line-height: 1.35;
}

.bpl-product-card h3 a {
  color: var(--bpl-blue-dark);
  text-decoration: none;
}

.bpl-product-card__price {
  min-height: 26px;
  margin-bottom: 12px;
  color: var(--bpl-green);
  font-weight: 800;
}

.bpl-product-card__link {
  color: var(--bpl-blue);
  font-size: .9rem;
  font-weight: 800;
  text-decoration: none;
}

/* Archivo editorial de tags */
.bpl-tag-hero {
  max-width: 900px;
  padding: clamp(38px, 5vw, 66px) 0 clamp(24px, 4vw, 44px);
}
.bpl-tag-hero h1 {
  margin: 0 0 14px;
  color: var(--bpl-blue-dark);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.08;
  letter-spacing: -.025em;
}
.bpl-tag-hero__description {
  max-width: 760px;
  margin: 0;
  color: var(--bpl-muted);
  font-size: 1.05rem;
}
.bpl-tag-hero__description p:last-child { margin-bottom: 0; }
.bpl-tag-library { padding-top: clamp(28px, 4vw, 52px); }

@media (max-width: 1024px) {
  .bpl-product-card {
    flex-basis: calc((100% - 20px) / 2);
  }

  .bpl-single-layout {
    grid-template-columns: minmax(0, 760px);
  }

  .bpl-single-rail {
    position: static;
    top: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    padding-top: 0;
  }

  .bpl-native-sidebar {
    margin-bottom: 0;
  }
}

@media (max-width: 700px) {
  .bpl-single-rail {
    grid-template-columns: 1fr;
  }

  .bpl-toc ol {
    grid-template-columns: 1fr;
  }

  .bpl-product-section__header {
    align-items: start;
  }

  .bpl-product-section__header > div:first-child {
    min-width: 0;
  }

  .bpl-carousel-controls {
    display: none;
  }

  .bpl-product-card {
    flex-basis: min(82vw, 300px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .bpl-tag-cloud a,
  .bpl-carousel-controls button {
    transition: none;
  }

  .bpl-tag-cloud a:hover,
  .bpl-tag-cloud a:focus-visible,
  .bpl-carousel-controls button:hover,
  .bpl-carousel-controls button:focus-visible {
    transform: none;
  }
}


/* =========================================================
   Categorías temáticas, tags contextuales y navegación
   ========================================================= */
.bpl-knowledge--category .bpl-container {
  max-width: 1280px;
}

.bpl-knowledge--category-root .bpl-category-hero {
  max-width: 980px;
}

.bpl-knowledge--category-topic .bpl-category-hero {
  max-width: 900px;
}

.bpl-topic-tags {
  padding: clamp(36px, 5vw, 58px) 0;
  border-top: 1px solid var(--bpl-border);
  border-bottom: 1px solid var(--bpl-border);
  background: #fff;
}

.bpl-tag-cloud--category {
  max-width: 1000px;
}

.bpl-sibling-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.bpl-sibling-grid a {
  min-height: 62px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--bpl-border);
  border-radius: 14px;
  background: #fff;
  color: var(--bpl-blue-dark);
  text-decoration: none;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.bpl-sibling-grid a:hover,
.bpl-sibling-grid a:focus-visible {
  border-color: rgba(16, 97, 152, .35);
  box-shadow: var(--bpl-shadow);
  color: var(--bpl-blue-dark);
  outline: none;
  transform: translateY(-2px);
}

.bpl-sibling-grid span {
  color: var(--bpl-green);
  font-weight: 900;
}

/* “Lo más importante” funciona como resumen práctico al inicio. */
.bpl-article__content h2#lo-mas-importante {
  margin-top: 1.55em;
  margin-bottom: .65em;
  color: var(--bpl-blue-dark);
}

.bpl-article__content h2#lo-mas-importante + ul,
.bpl-article__content h2#lo-mas-importante + ol {
  margin-top: 0;
  padding: 20px 24px 20px 46px;
  border: 1px solid #cfe8d8;
  border-radius: 16px;
  background: #f3faf5;
}

/* Cierre editorial memorable. Se genera al detectar “Quédate con esto” al final del post. */
.bpl-article__content .bpl-takeaway {
  margin: 42px 0 10px;
  padding: 24px 26px 24px 28px;
  border: 1px solid #c9e6d2;
  border-left: 4px solid var(--bpl-green);
  border-radius: 18px;
  background: #f1f9f3;
  box-shadow: 0 10px 28px rgba(13, 128, 63, .06);
}

.bpl-article__content .bpl-takeaway .bpl-takeaway__title {
  margin: 0 0 12px;
  color: var(--bpl-green);
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  line-height: 1.25;
}

.bpl-article__content .bpl-takeaway p {
  margin: 0;
  color: var(--bpl-blue-dark);
  font-size: 1.06rem;
  line-height: 1.7;
}

.bpl-article__content .bpl-takeaway p + p {
  margin-top: 12px;
}

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

@media (max-width: 700px) {
  .bpl-sibling-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .bpl-article__content .bpl-toc {
    padding: 24px 22px;
  }

  .bpl-article__content .bpl-toc .bpl-toc__title {
    margin-bottom: 16px;
  }

  .bpl-article__content .bpl-takeaway {
    margin-top: 34px;
    padding: 22px 20px 22px 22px;
  }
}


/* Search editorial del centro de conocimiento */
.bpl-search-hero {
  padding: clamp(48px, 6vw, 84px) 0 clamp(24px, 4vw, 42px);
  max-width: 920px;
}
.bpl-search-hero h1 {
  margin: 0 0 14px;
  color: var(--bpl-primary);
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.05;
}
.bpl-search-hero__description {
  margin: 0 0 26px;
  max-width: 760px;
  color: var(--bpl-muted);
  font-size: 18px;
}
.bpl-blog-search--results {
  margin: 0;
  max-width: 760px;
}
.bpl-search-library {
  padding-top: clamp(24px, 3vw, 40px);
}
.bpl-search-empty {
  max-width: 760px;
}
.bpl-search-empty .bpl-button {
  margin-top: 10px;
}
