/* ── GRID DE TARJETAS ──
     Cambia el número en minmax() para hacer las tarjetas más anchas o angostas.
     Ejemplo: minmax(200px, 1fr) = más angostas / minmax(300px, 1fr) = más anchas */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
  padding: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ── TARJETA ── */
.tarjeta {
  background: #ffffff;
  border: 1px solid #e0dcea;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}

.tarjeta:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(124, 92, 191, 0.15);
  border-color: #b89eea;
}

/* ── IMAGEN DE PORTADA ──
     Cambia height para hacer la imagen más alta o más baja.
     Ejemplo: height: 150px = más baja / height: 250px = más alta */
.tarjeta img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* ── CUERPO DE LA TARJETA ── */
.tarjeta-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tarjeta-titulo {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
}

.tarjeta-desc {
  font-size: 13px;
  color: #888;
  line-height: 1.5;
  flex: 1;
  margin: 0;
}

/* ── BOTÓN ── */
.tarjeta-btn {
  display: inline-block;
  margin-top: 12px;
  background: linear-gradient(135deg, #7c5cbf, #e86b3a);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 20px;
  text-align: center;
  align-self: flex-end;
}