/* GRID */
.consulpyme-blog {
      font-family: Arial;
      max-width: 1300px;
      margin:50px auto;
    }


#posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

/* CARD */
.post {
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

/* HOVER */
.post:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

/* IMG */
.post img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.post:hover img {
  transform: scale(1.08);
}

/* TEXTOS */
.post h2 {
  font-size: 18px;
  padding: 15px 15px 5px;
  margin: 0;
}

.post div {
  padding: 0 15px 15px;
  font-size: 14px;
  color: #555;
}

/* BOTÓN */
.post a {
  margin: auto 15px 15px;
  padding: 10px;
  text-align: center;
  background: #049CC1;
  color: white;
  border-radius: 8px;
  text-decoration: none;
}
.post a:hover {
    text-decoration: underline;
    color: #fff;
}

/* PAGINACIÓN */
.pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 30px 0;
}

.pagination button {
    color:#fff;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  background: #0073aa;
  cursor: pointer;
}

.pagination button:hover {
  background: #333;
  color: white;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  #posts {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  #posts {
    grid-template-columns: 1fr;
  }
}