/* Trendi · tarjetas de contenido recomendado en entradas del blog */
.related-posts {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  margin-top: 1.75rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: #f4f5f1;
  border: 1px solid rgba(16, 35, 26, .14);
  border-radius: 6px;
}

.related-posts .blog-widget__title {
  margin: 0 0 1.25rem;
}

.related-posts__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.related-card {
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(16, 35, 26, .16);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(7, 43, 24, .06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.related-card:hover {
  transform: translateY(-3px);
  border-color: #0f6b38;
  box-shadow: 0 14px 30px rgba(7, 43, 24, .13);
}

.related-card:focus-visible {
  outline: 3px solid #e8541f;
  outline-offset: 3px;
}

.related-card > img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #e7eae4;
}

.related-card__body {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .7rem;
  padding: 1rem;
}

.related-card__title {
  color: #0b3d22;
  font-family: 'Outfit', 'Helvetica Neue', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -.015em;
  overflow-wrap: anywhere;
}

.related-card__date {
  margin-top: auto;
  color: #56634f;
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.4;
}

.related-card__date::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 2px;
  margin: 0 .45rem .2rem 0;
  background: #e8541f;
}

@media (max-width: 820px) {
  .related-posts__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 540px) {
  .related-posts { margin-top: 1.25rem; padding: 1rem; }
  .related-posts__grid { grid-template-columns: 1fr; }
  .related-card { display: grid; grid-template-columns: 96px minmax(0, 1fr); }
  .related-card > img { height: 100%; min-height: 112px; aspect-ratio: auto; }
  .related-card__body { padding: .85rem; }
}

@media (prefers-reduced-motion: reduce) {
  .related-card { transition: none; }
  .related-card:hover { transform: none; }
}
