/* Blog público Metricraft — listado y detalle */
.blog-index-page .blog-index {
  width: 100%;
  max-width: min(1240px, calc(100vw - 2.5rem));
  margin: 0 auto;
  padding: 2rem 0 3rem;
}
.blog-index-hero {
  max-width: 38rem;
  margin: 0 0 1.75rem;
  text-align: left;
}
.blog-index-kicker {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0e66aa;
}
.blog-index-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  line-height: 1.15;
  font-weight: 800;
  color: #13295a;
}
.blog-index-lead {
  max-width: 40rem;
  color: #4a5f82;
  margin: 0;
  line-height: 1.55;
  font-size: 0.98rem;
}
.blog-index-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 272px;
  gap: 1.75rem;
  align-items: start;
}
.blog-index-sidebar {
  display: grid;
  gap: 1rem;
}
.blog-section-label {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5a6f92;
}
.blog-featured-section {
  margin-bottom: 1.75rem;
}
.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-list-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 1rem;
}
.blog-list-heading h2 {
  margin: 0;
  font-size: 1.25rem;
  color: #13295a;
}
.blog-list-sub {
  margin: 0.2rem 0 0;
  font-size: 0.86rem;
  color: #5a6f92;
}
.blog-list-grid {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: repeat(3, minmax(0, 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;
  height: 100%;
  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--empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 2rem 1.25rem;
  text-align: center;
  color: #5a6f92;
  min-height: 180px;
}
.blog-card--empty i {
  font-size: 1.75rem;
  color: #8aa3c7;
}
.blog-card--empty p {
  margin: 0;
}
.blog-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}
.blog-card--featured .blog-card__link {
  display: grid;
  grid-template-columns: minmax(260px, 44%) minmax(0, 1fr);
  align-items: stretch;
  min-height: 0;
}
.blog-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0f172a;
}
.blog-card--featured .blog-card__media {
  aspect-ratio: 16 / 9;
  align-self: center;
  width: 100%;
  min-height: 0;
  height: auto;
}
.blog-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.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 {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0.95rem 1.05rem 1.05rem;
}
.blog-card--featured .blog-card__body {
  justify-content: center;
  padding: 1.25rem 1.4rem 1.3rem;
}
.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.02rem;
  line-height: 1.3;
  color: #13295a;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card--featured .blog-card__title {
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  -webkit-line-clamp: 4;
}
.blog-card__excerpt {
  margin: 0 0 0.65rem;
  font-size: 0.88rem;
  color: #4a5f82;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.blog-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
  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;
}
.blog-sidebar-panel__title {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #13295a;
}
.blog-sidebar-search__row {
  display: flex;
  gap: 0.4rem;
}
.blog-sidebar-search input {
  flex: 1;
  min-width: 0;
  border: 1px solid #c9d8ee;
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  font-size: 0.88rem;
  color: #13295a;
}
.blog-sidebar-search input:focus {
  outline: 2px solid rgba(14, 102, 170, 0.28);
  border-color: #0e66aa;
}
.blog-sidebar-search button {
  flex: 0 0 42px;
  width: 42px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #13295a 0%, #1168a1 100%);
  color: #fff;
  cursor: pointer;
}
.blog-filter-nav {
  display: grid;
  gap: 0.28rem;
}
.blog-filter-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.48rem 0.6rem;
  border-radius: 10px;
  text-decoration: none;
  color: #1c3f72;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.3;
}
.blog-filter-item:hover {
  background: #f2f8ff;
  color: #0b5088;
}
.blog-filter-item.is-active {
  background: linear-gradient(135deg, #13295a 0%, #1168a1 100%);
  color: #fff;
}
.blog-filter-item__label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}
.blog-filter-item__label i {
  width: 0.95rem;
  font-size: 0.75rem;
  opacity: 0.8;
}
.blog-filter-item__count {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  color: #5a6f92;
  background: #eef4fc;
  border-radius: 999px;
  padding: 0.08rem 0.45rem;
}
.blog-filter-item.is-active .blog-filter-item__count {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.blog-sidebar-recent {
  display: grid;
  gap: 0.15rem;
}
.blog-sidebar-recent__item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 0.65rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #edf2fa;
  text-decoration: none;
  color: inherit;
}
.blog-sidebar-recent__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.blog-sidebar-recent__thumb {
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 4 / 3;
  background: #e8f0fb;
  color: #6b8ab8;
  font-size: 0.9rem;
}
.blog-sidebar-recent__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blog-sidebar-recent__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.3;
  color: #173765;
}
.blog-sidebar-recent__item:hover .blog-sidebar-recent__title {
  color: #0f69ad;
}
.blog-sidebar-recent__date {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.74rem;
  color: #5a6f92;
}
.blog-sidebar-panel--cta p {
  margin: 0 0 0.75rem;
  font-size: 0.86rem;
  color: #4a5f82;
  line-height: 1.45;
}
.blog-sidebar-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.55rem 0.8rem;
  border-radius: 10px;
  background: linear-gradient(135deg, #079bae, #1a80f8);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}
.blog-sidebar-cta:hover {
  color: #fff;
  filter: brightness(1.05);
}
@media (min-width: 1000px) {
  .blog-index-sidebar {
    position: sticky;
    top: 104px;
  }
}
@media (max-width: 1100px) {
  .blog-list-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 991.98px) {
  .blog-index-layout {
    grid-template-columns: 1fr;
  }
  .blog-index-sidebar {
    order: -1;
    position: static;
    grid-template-columns: 1fr;
  }
  .blog-index-page .blog-sidebar-recent,
  .blog-index-page .blog-sidebar-panel--cta {
    display: none;
  }
  .blog-index-page .blog-filter-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
  }
  .blog-index-page .blog-filter-item {
    border: 1px solid #c9d8ee;
    border-radius: 999px;
    padding: 0.32rem 0.7rem;
    background: #fff;
  }
  .blog-index-page .blog-filter-item.is-active {
    border-color: transparent;
  }
  .blog-filter-item__label i {
    display: none;
  }
  .blog-card--featured .blog-card__link {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .blog-card--featured .blog-card__media {
    aspect-ratio: 16 / 9;
    min-height: 0;
  }
}
@media (max-width: 640px) {
  .blog-index-page .blog-index {
    max-width: calc(100vw - 1.5rem);
    padding-top: 1.35rem;
  }
  .blog-list-grid {
    grid-template-columns: 1fr;
  }
  .blog-index-sidebar {
    gap: 0.85rem;
  }
}

/* Detalle de artículo */
.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-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-post-page .blog-post {
  width: 100%;
  max-width: min(1240px, calc(100vw - 2.5rem));
  margin: 0 auto;
  padding: 1.75rem 0 3rem;
}
.blog-post-page .blog-pro-breadcrumb {
  margin-bottom: 1rem;
}
.blog-post-hero {
  max-width: 46rem;
  margin: 0 0 1.75rem;
}
.blog-post-hero__category {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0e66aa;
}
.blog-post-hero__title {
  margin: 0 0 0.7rem;
  font-size: clamp(1.7rem, 3.4vw, 2.55rem);
  line-height: 1.16;
  color: #13295a;
  font-weight: 800;
}
.blog-post-hero__lead {
  margin: 0 0 1.1rem;
  color: #4a5f82;
  font-size: 1.08rem;
  line-height: 1.6;
}
.blog-post-byline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
}
.blog-post-byline__avatar {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #13295a 0%, #1168a1 100%);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.blog-post-byline__name {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: #13295a;
}
.blog-post-byline__meta {
  display: block;
  margin-top: 0.12rem;
  font-size: 0.82rem;
  color: #5a6f92;
}
.blog-post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 272px;
  gap: 1.75rem;
  align-items: start;
}
.blog-post-article {
  min-width: 0;
  background: #fff;
  border: 1px solid #dce7f7;
  border-radius: 18px;
  padding: 1.35rem 1.5rem 1.6rem;
  box-shadow: 0 12px 30px rgba(26, 58, 112, 0.07);
}
.blog-post-cover {
  margin: 0 0 1.5rem;
  border-radius: 14px;
  overflow: hidden;
  background: #0f172a;
}
.blog-post-cover img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}
.blog-post-content {
  color: #1c2e52;
  line-height: 1.8;
  font-size: 1.06rem;
  max-width: 46rem;
}
.blog-post-content h2,
.blog-post-content h3,
.blog-post-content h4 {
  color: #162f59;
  margin: 1.55rem 0 0.7rem;
  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;
  background: #0f172a;
}
.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.5rem;
  padding-top: 1.1rem;
  border-top: 1px solid #e5eef9;
}
.blog-post-tags h2 {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #5a6f92;
  margin: 0 0 0.55rem;
}
.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-post-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.35rem;
  padding-top: 1.1rem;
  border-top: 1px solid #e5eef9;
}
.blog-post-actions__share,
.blog-post-actions__back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}
.blog-post-actions__share {
  background: linear-gradient(135deg, #13295a 0%, #1168a1 100%);
  color: #fff;
}
.blog-post-actions__share:hover {
  color: #fff;
  filter: brightness(1.06);
}
.blog-post-actions__back {
  border: 1px solid #c9d8ee;
  color: #1c3f72;
  background: #fff;
}
.blog-post-actions__back:hover {
  border-color: #0e66aa;
  color: #0b5088;
  background: #f2f8ff;
}
.blog-post-sidebar {
  display: grid;
  gap: 1rem;
}
.blog-related-list {
  display: grid;
  gap: 0.15rem;
}
.blog-post-page .blog-related-item {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 0.7rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid #edf2fa;
  text-decoration: none;
  color: inherit;
}
.blog-post-page .blog-related-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.blog-post-page .blog-related-thumb {
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 10px;
  aspect-ratio: 16 / 9;
  background: #0f172a;
  color: #8aa3c7;
}
.blog-post-page .blog-related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.blog-related-copy__cat {
  display: block;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #0e66aa;
  margin-bottom: 0.15rem;
}
.blog-related-copy__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.3;
  color: #173765;
}
.blog-post-page .blog-related-item:hover .blog-related-copy__title {
  color: #0f69ad;
}
.blog-related-copy__date {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.74rem;
  color: #5a6f92;
}
@media (min-width: 1000px) {
  .blog-post-sidebar {
    position: sticky;
    top: 104px;
  }
}
@media (max-width: 991.98px) {
  .blog-post-page .blog-post {
    max-width: calc(100vw - 1.5rem);
    padding-top: 1.35rem;
  }
  .blog-post-layout {
    grid-template-columns: 1fr;
  }
  .blog-post-sidebar {
    position: static;
  }
  .blog-post-article {
    padding: 1.1rem 1.1rem 1.35rem;
  }
}
