.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}
.post-card {
  display: flex;
  flex-direction: column;
}
.post-card__image {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 6px;
}
.post-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.post-card__image:hover img {
  transform: scale(1.05);
}
.post-card__content {
  padding: 0.6rem 0;
}
.post-card__category {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #666;
  margin-bottom: 0.3rem;
}
.post-card__title {
  font-size: 1rem;
  line-height: 1.35;
  margin: 0;
}
.post-card__title a {
  text-decoration: none;
  color: inherit;
}
.post-card__title a:hover {
  text-decoration: underline;
}
.post-pagination {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin: 1.5rem 0;
}
.post-pagination .page-numbers {
  padding: 0.4rem 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-decoration: none;
  color: inherit;
  font-size: 0.9rem;
}
.post-pagination .page-numbers.current {
  background: #222;
  color: #fff;
  border-color: #222;
}

@media (max-width: 768px) {
  .post-grid {
    padding: 0 30px;
  }
  .home-blog .post-pagination {
    padding: 0 30px;
  }
}

/* ==========================================
   Tag Cloud — Estilo nube de ideas
   ========================================== */
.tag-cloud-section {
  margin: 2rem 0.25rem 0.5rem;
  padding: 1.5rem 0.25rem 0.25rem;
  border-top: 1px solid #e0e0e0;
}
.tag-cloud-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  text-align: center;
  color: #333;
}
.tag-cloud-wrapper {
  text-align: center;
  line-height: 1.8;
}
.tag-cloud-wrapper a {
  text-decoration: none;
  color: #555;
  margin: 0 0.15rem;
  transition: color 0.15s ease;
  white-space: nowrap;
}
.tag-cloud-wrapper a:hover {
  color: #000;
  text-decoration: none;
}

@media (max-width: 768px) {
  .tag-cloud-section {
    padding: 1rem 1rem 0.25rem;
  }
  .tag-cloud-wrapper {
    line-height: 2;
  }
}
