.grilla {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  flex-direction: column;
}

.card {
  border: 1px solid #ddd;
  border-radius: 5px;
  text-align: left;

  display: flex;
  flex-direction: row;
  justify-content: space-between; /* Distribuye el contenido */
  height: 100%; /* Asegura que la tarjeta tenga altura completa */

  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);

  gap: 20px;
  align-items: stretch; /* Asegura que todos los elementos tengan la misma altura */
}

@media (max-width: 1024px) {
  /*Tablet*/
  .grilla {
  }
  .card {
    width: 100%;
  }
}
@media (max-width: 768px) {
  /*Mobile*/
  .card {
    width: 100%;
  }
}

.card-thumbnail {
  /* width: 300px; */
  /* display: flex; */
  /* justify-content: center; */
  /* align-items: center; */

  flex: 0 0 350px; /* Define un ancho fijo para la imagen */

  overflow: hidden;
  border-radius: 5px 0 0 5px;
}

.card-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Asegura que la imagen llene el contenedor sin deformarse */
  object-position: center;
}

.card-content {
  flex-grow: 1;
  height: 250px;
  display: flex;
  padding-left: 15px;
  justify-content: center;
  flex-direction: column;
}

/* Tags */
.tags {
  margin-top: 10px;
}

.tag {
  display: inline-block;
  color: white;
  font-size: 14px;
  font-weight: bold;
  padding: 4px 8px;
  margin-right: 4px;
  cursor: pointer;
  width: 30px;
  height: 30px;
  text-align: center;
}

/* Año */
.year {
  font-size: 14px;
  color: #777;
  margin-bottom: 0 !important;
  margin-top: 10px !important;
}

/* Título */
.title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 8px;
  color: #333;
  margin: 5px 0 15px 0 !important;
}

/* Descripción */
.description {
  font-size: 14px;
  color: #555;
  margin-bottom: 12px;
}

/* Botón */
.btn {
  background: white;
  color: #0f69c4;
  border: 2px solid #0f69c4;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: bold;
  border-radius: 32px;
  cursor: pointer;
  display: inline-block;
  margin-bottom: 12px;
}

.btn:hover {
  background: #0f69c4;
  color: white;
}

/* Enlace de descarga */

.download-link {
  color: #0f69c4;
  font-weight: bold;
  text-decoration: none !important;
  font-size: 14px;

  display: flex;
  gap: 10px;
}

.download-link:hover {
  text-decoration: underline;
}
