/* ==========================
   CARD COMPONENT
   ========================== */

.custom-card {
  position: relative;
  height: 410px;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  color: #fff;
  font-family: 'Plus Jakarta Sans';
  font-weight: 300;
  transition: transform 0.3s ease; /* Optional: Add a nice hover effect */
}

.custom-card:hover {
    transform: scale(1.02); /* Optional: Add a nice hover effect */
}

.card-overlay {
  width: 100%;
  height: 100%;
  padding: 2rem;
  border-radius: 8px;
  background: linear-gradient(to top, rgba(0,0,0,0.65), rgba(0,0,0,0.25));
  display: flex;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  flex-direction: column;
}


.card-icon {
  display: block;
  width: 40px;
  height: 40px;
  margin-bottom: 0.5rem;
}

.card-title {
  font-size: 2rem;
  font-weight: 300;
  margin: 0 0 0.5rem;
}

.card-text {
  font-size: 1rem;
  margin: 0 0 1.5rem;
  line-height: 1.5;
}

.card-button {
  display: inline-block;
  font-size: 1rem;
  color: #fff;
  text-decoration: none;
  padding-bottom: 2px;
  transition: all 0.3s ease;
}

.card-button:hover {
  color: #F7567C; /* tu color secundario */
  border-color: #F7567C;
}

/* GRID PARA VARIAS CARDS */
.niveles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
  margin: 50px 0;
}

/* Responsive */
@media (max-width: 768px) {
  .card-title {
    font-size: 1.5rem;
  }

  .card-text {
    font-size: 0.9rem;
  }
}

@media (max-width: 425px) {
  .custom-card {
    min-width: 348px;
    min-height: 290px;
  }

  .card-title {
    font-size: 1.5rem;
  }

  .card-text {
    font-size: 0.9rem;
  }
}

