/* Blog público Metricraft — listado y detalle */
.blog-index-page .blog-index-hero {
  margin-bottom: 1.25rem;
}
.blog-index-lead {
  max-width: 640px;
  color: #4a5f82;
  margin: 0.35rem 0 0;
  line-height: 1.55;
}
.blog-category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.35rem;
}
.blog-cat-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid #c9d8ee;
  color: #1c3f72;
  background: #fff;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.blog-cat-pill:hover {
  border-color: #0e66aa;
  color: #0b5088;
  background: #f2f8ff;
}
.blog-cat-pill.is-active {
  border-color: #1168a1;
  background: linear-gradient(135deg, #13295a 0%, #1168a1 100%);
  color: #fff;
}
.blog-featured-row {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  margin-bottom: 1.5rem;
}
.blog-list-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.5rem 0 1rem;
}
.blog-list-heading h2 {
  margin: 0;
  font-size: 1.25rem;
  color: #13295a;
}
.blog-list-sub {
  margin: 0;
  font-size: 0.9rem;
  color: #5a6f92;
}
.blog-list-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.blog-card {
  border-radius: 16px;
  border: 1px solid #dce7f7;
  background: #fff;
  box-shadow: 0 10px 28px rgba(26, 58, 112, 0.08);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(26, 58, 112, 0.12);
}
.blog-card--featured {
  border-color: #b8d4f0;
}
.blog-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.blog-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #e8f0fb 0%, #dcecf9 100%);
}
.blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blog-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b8ab8;
  font-size: 2.25rem;
}
.blog-card__badge {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
  background: rgba(19, 41, 90, 0.92);
  color: #fff;
}
.blog-card__body {
  padding: 1rem 1.05rem 1.15rem;
}
.blog-card__meta {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #0e66aa;
  margin-bottom: 0.35rem;
}
.blog-card__title {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  line-height: 1.3;
  color: #13295a;
}
.blog-card__excerpt {
  margin: 0 0 0.55rem;
  font-size: 0.9rem;
  color: #4a5f82;
  line-height: 1.5;
}
.blog-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: #5a6f92;
}
.blog-card__cta {
  font-size: 0.82rem;
  font-weight: 700;
  color: #1168a1;
}
.blog-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
}
.blog-pagination__info {
  font-size: 0.88rem;
  color: #5a6f92;
}
/* Detalle de artículo — portada visible */
.blog-pro-hero {
  margin-bottom: 1.5rem;
}

.blog-pro-hero__media {
  margin: 0 0 1rem;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #dce7f7;
  box-shadow: 0 20px 44px rgba(26, 58, 112, 0.12);
  background: #eef4fc;
  aspect-ratio: 16 / 9;
}

.blog-pro-hero__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-pro-hero__card {
  background: #fff;
  border: 1px solid #dce7f7;
  border-radius: 18px;
  padding: 1.35rem 1.5rem 1.45rem;
  box-shadow: 0 12px 30px rgba(26, 58, 112, 0.07);
}

.blog-pro-hero__category {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #0e66aa;
}

.blog-pro-hero__title {
  margin: 0 0 0.55rem;
  font-size: clamp(1.55rem, 3.5vw, 2.45rem);
  line-height: 1.14;
  color: #13295a;
  font-weight: 800;
}

.blog-pro-hero__lead {
  margin: 0 0 0.9rem;
  color: #4a5f82;
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 780px;
}

.blog-pro-meta--light {
  color: #5a6f92;
}

.blog-pro-meta--light span {
  color: #5a6f92;
}
.blog-pro-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  color: #5a6f92;
  margin-bottom: 0.7rem;
}
.blog-pro-breadcrumb a {
  color: #0e66aa;
  text-decoration: none;
  font-weight: 600;
}
.blog-pro-breadcrumb a:hover {
  text-decoration: underline;
}
.blog-pro-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.1rem;
  font-size: 0.82rem;
  color: #c8e0ff;
}
.blog-pro-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.75fr);
  gap: 1.25rem;
  align-items: start;
}
.blog-article-shell {
  background: #fff;
  border-radius: 18px;
  border: 1px solid #dce7f7;
  box-shadow: 0 16px 34px rgba(26, 58, 112, 0.09);
  padding: 1.4rem 1.5rem;
}
.blog-post-content {
  color: #1c2e52;
  line-height: 1.78;
  font-size: 1.06rem;
}
.blog-post-content h2,
.blog-post-content h3,
.blog-post-content h4 {
  color: #162f59;
  margin: 1.35rem 0 0.65rem;
  line-height: 1.3;
}
.blog-post-content p {
  margin: 0 0 1rem;
}
.blog-post-content .blog-inline-heading {
  margin: 1.5rem 0 0.75rem;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  font-weight: 800;
  color: #13295a;
}
.blog-post-content ul,
.blog-post-content ol {
  margin: 0.3rem 0 1rem 1.15rem;
}
.blog-post-content a {
  color: #0e66aa;
  font-weight: 600;
}
.blog-post-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.25rem auto;
  border-radius: 14px;
  border: 1px solid #e5eef9;
  box-shadow: 0 10px 28px rgba(26, 58, 112, 0.08);
}

/* Evitar duplicar la portada si el editor repite la misma imagen al inicio */
.blog-post-has-hero .blog-post-content > p:first-child img:first-child,
.blog-post-has-hero .blog-post-content > img:first-child {
  display: none;
}
.blog-post-tags {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #e5eef9;
}
.blog-post-tags h6 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #5a6f92;
  margin-bottom: 0.5rem;
}
.blog-tag {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  margin: 0 0.35rem 0.35rem 0;
  border-radius: 999px;
  background: #eef4fc;
  color: #1c3f72;
  font-size: 0.78rem;
  font-weight: 600;
}
.blog-pro-sidebar {
  display: grid;
  gap: 1rem;
}
.blog-sidebar-panel {
  background: #fff;
  border: 1px solid #dce7f7;
  border-radius: 14px;
  padding: 1rem 1.1rem;
  box-shadow: 0 8px 22px rgba(26, 58, 112, 0.06);
}
.blog-sidebar-panel h5 {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  color: #13295a;
}
.blog-related-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0.65rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid #edf2fa;
}
.blog-related-item:last-child {
  border-bottom: none;
}
.blog-related-thumb {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1;
  background: #e8f0fb;
}
.blog-related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blog-related-item h6 {
  margin: 0 0 0.25rem;
  font-size: 0.88rem;
  line-height: 1.3;
}
.blog-related-item h6 a {
  color: #173765;
  text-decoration: none;
}
.blog-related-item h6 a:hover {
  color: #0f69ad;
}
.blog-categories-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.blog-categories-list li {
  margin-bottom: 0.35rem;
}
.blog-categories-list a {
  color: #1c3f72;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
}
.blog-categories-list a:hover {
  color: #0e66aa;
}
@media (min-width: 1000px) {
  .blog-pro-sidebar {
    position: sticky;
    top: 104px;
  }
}
@media (max-width: 1000px) {
  .blog-pro-layout {
    grid-template-columns: 1fr;
  }
}
