.cards {
  display: flex;
  gap: 40px;
  justify-content: center;
  margin-top: 60px;
}

.card {
  position: relative;
  width: 420px;
  height: 230px;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:var(--bg-image);
  background-size: cover;
  background-position: center;
}

.card.light {
  background: #f2f2f2;
}

.card.light::before {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.9), rgba(230,230,230,0.7)),
    url("data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAA...");
}

.card-header {
  position: absolute;
  top: 0;
  left: 0;
  background: white;

  /* 👇 TU CONFIGURACIÓN */
  color: var(--color-primary, #0B1258);
  font-family: "DM Sans", sans-serif;
  font-size: 25px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  letter-spacing: 0.1px;

  padding: 12px 25px;
  border-bottom-right-radius: 20px;
  z-index: 2;
}

.card::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 140px;
  height: 50px;
  background: white;
  border-top-left-radius: 25px;
  z-index: 1;
}

.card-footer {
  position: absolute;

  bottom: 25px;
  right: 70px;

  transform: translate(50%, 50%);

  background: var(--primary);
  color: white;

  padding: 6px 14px; 
  border-radius: 20px;

  font-size: 12px;
  font-weight: 500;

  z-index: 2;
  transition: background 0.3s ease;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.card:hover .card-footer {
  background: #16238a;
}

.title {
  text-align: center;
  color: #0a1358 !important;
}

.subtitle {
  text-align: center;
  color: #0a1358 !important;
}