.tarjetas-post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.tarjeta-post {
  position: relative;
  background-size: cover;
  background-position: center;
  height: 450px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.tarjeta-contenido {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  text-align: center;
}

.tarjeta-contenido h2 {
  font-size: 22px;
  margin: 0 auto 20px;
  color: #fff;
  flex-grow: 0;
}

.boton-mas {
  margin-top: auto;
  padding: 10px 20px;
  background: black;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
}

.tarjetas-paginacion {
  margin-top: 30px;
  text-align: center;
}
