.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
}

.card {
  background-color: #f5f5f5;
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.card:hover {
  transform: scale(1.05);
}

.card i {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #333;
}

.card h3 {
  margin: 0.5rem 0;
  font-size: 1.2rem;
}

.info {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.6s ease, opacity 0.6s ease;
}

.card.active .info {
  max-height: 500px; /* Suficiente para que quepa todo el texto */
  opacity: 1;
}