/* Entradas Relacionadas Personalizadas 2.9.0 */
.entradas-relacionadas {
  clear: both;
  margin: 42px 0 0;
  color: #13161a;
  font-family: inherit;
}

.entradas-relacionadas .related-post-heading {
  margin: 0 0 18px;
  padding-left: 10px;
  border-left: 4px solid #075bd8;
  color: #13161a;
  font: inherit;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  line-height: 1.2;
}

.entradas-relacionadas .related-posts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.entradas-relacionadas .related-post {
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.entradas-relacionadas .related-post-link,
.entry-content .entradas-relacionadas .related-post-link,
.entry-content .entradas-relacionadas .related-post-link * {
  color: inherit;
  text-decoration: none !important;
  text-decoration-line: none !important;
  text-decoration-thickness: 0 !important;
}

.entradas-relacionadas .related-post-link {
  display: block;
}

.entradas-relacionadas .related-post-link:hover,
.entry-content .entradas-relacionadas .related-post-link:hover,
.entry-content .entradas-relacionadas .related-post-link:hover * {
  text-decoration: none !important;
}

.erp-related-media {
  position: relative;
  isolation: isolate;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 7px;
  background: #111821;
}

.erp-related-image {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  transition: transform .22s ease;
}

.erp-related-media--crop .erp-related-image {
  object-fit: cover;
  object-position: center;
}

.erp-related-bg {
  position: absolute;
  z-index: 0;
  inset: -6%;
  display: block;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  filter: blur(8px) saturate(.96);
  opacity: .78;
  transform: scale(1.03);
}

.erp-related-media--contain::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, rgba(6,12,20,.14), rgba(6,12,20,.04) 36%, rgba(6,12,20,.04) 64%, rgba(6,12,20,.14));
  pointer-events: none;
}

.erp-related-media--contain .erp-related-image {
  object-fit: contain;
  object-position: center;
}

.related-post-link:hover .erp-related-image {
  transform: scale(1.012);
}

.erp-related-media--contain + .related-post-body,
.erp-related-media--crop + .related-post-body {
  display: block;
}

.erp-related-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e9edf2, #dce3eb);
}

.related-post-body {
  display: block;
  padding-top: 11px;
}

.related-post-title,
.entry-content .entradas-relacionadas .related-post-title {
  display: block;
  margin: 0;
  color: #13161a;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.28;
  text-decoration: none !important;
}

.related-post-excerpt,
.entry-content .entradas-relacionadas .related-post-excerpt {
  display: block;
  margin-top: 8px;
  color: #626b76;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  text-decoration: none !important;
}

.related-post-link:hover .related-post-title {
  color: #075bd8;
}

/* Relacionada insertada dentro del artículo. */
.entradas-relacionadas.in-content {
  margin: 30px 0;
  padding: 14px;
  border: 1px solid #e1e5ea;
  border-radius: 8px;
  background: #f8fafc;
}

.entradas-relacionadas.in-content .related-posts {
  display: block;
}

.entradas-relacionadas.in-content .related-post-link {
  display: grid;
  grid-template-columns: minmax(150px, 210px) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.entradas-relacionadas.in-content .related-post-body {
  padding: 0;
}

.entradas-relacionadas.in-content .related-post-title {
  font-size: 16px;
}

.entradas-relacionadas.in-content .related-post-excerpt {
  font-size: 13px;
}

/* Compartir y comentarios. */
.erp-entry-tools {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 36px 0 14px;
}

.erp-entry-tools .erp-tool-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  color: #fff;
  text-decoration: none !important;
  transition: transform .18s ease, filter .18s ease;
}

.erp-entry-tools .erp-tool-link:hover {
  transform: translateY(-1px);
  filter: brightness(.96);
}

.erp-entry-tools svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.erp-entry-tools .erp-tool-n1 { background: #25d366; }
.erp-entry-tools .erp-tool-n2 { background: #111; }
.erp-entry-tools .erp-tool-n3 { background: #229ed9; }
.erp-entry-tools .erp-tool-n4 { background: #ff4500; }
.erp-entry-tools .erp-tool-n5 { background: #1185fe; }
.erp-entry-tools .erp-tool-n6 { background: #1877f2; }

.ir-a-comentarios {
  display: flex;
  justify-content: center;
  margin: 0 0 24px;
}

.ir-a-comentarios .btn-comentarios,
.entry-content .ir-a-comentarios .btn-comentarios {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid #d9dee5;
  border-radius: 6px;
  background: #fff;
  color: #303640;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
}

@media (max-width: 760px) {
  .entradas-relacionadas .related-posts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 14px;
  }

  .related-post-title,
  .entry-content .entradas-relacionadas .related-post-title {
    font-size: 16px;
  }

  .related-post-excerpt,
  .entry-content .entradas-relacionadas .related-post-excerpt {
    font-size: 13px;
  }
}

@media (max-width: 520px) {
  .entradas-relacionadas .related-posts {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .entradas-relacionadas.in-content .related-post-link {
    display: block;
  }

  .entradas-relacionadas.in-content .related-post-body {
    padding-top: 10px;
  }

  .erp-related-bg {
    filter: blur(6px) saturate(.94);
  }
}

@media (prefers-reduced-motion: reduce) {
  .erp-related-image,
  .erp-entry-tools .erp-tool-link {
    transition: none;
  }
}
