.card-container {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 20px;
}

.card {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  width: 250px;
  height: 400px;
  box-sizing: border-box;
  cursor: pointer;
  perspective: 1000px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 1s;
}

.card:hover {
  transform: rotateY(180deg);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.4rem;
  color: #333;
}

.card p {
  font-size: 1rem;
  color: #666;
  line-height: 1.4;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

/* Flip card effect */
.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 12px;
  top: 0;
  left: 0;
  overflow: hidden;
}

.card-front {
  z-index: 2;
}

.card-back {
  transform: rotateY(180deg);
  backface-visibility: hidden;
  background-color: white;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow-y: auto;
  align-items: center;
  padding: 20px;
}

.linea_negra {
  border: none;
  border-top: 3px solid black;
  margin: 20px 0;
  width: 80%;
}

.contenido_cardTrasera {
  text-align: center;
  padding: 20px;
  color: #000;
  align-self: flex-start;
  width: 100%;
}

.card button {
  width: 100%;
  padding: 10px;
  background-color: #004080;
  color: white;
  border: none;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
}
