h1 {
  margin-top: 1em;
  margin-left: 2em;
  color: #FFF;
}

.contenedor {
  width: 100%;
  height: auto;
  padding-top: 5em;
  background: linear-gradient(to bottom, #93cbe9, #daeef8);
}

.contenedor_main {
  display: flex;
  justify-content: center;
  gap: 2em;
  flex-wrap: wrap;
  margin: 5em 0 0 0;
  padding-bottom: 5em;
}

/* Tarjetas con efecto flip */
.flip-card {
  background-color: transparent;
  width: 280px;
  height: 400px;
  perspective: 1000px;
  text-decoration: none;
  display: block;
  border-radius: 20px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 20px;
  overflow: hidden;
}

.flip-card-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flip-card-back {
  background: linear-gradient(to bottom right, #0077c0, #61dafb);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: rotateY(180deg);
}

.flip-card-back span {
  font-size: 1.6em;
  font-weight: bold;
  color: white;
  pointer-events: none; /* permite que el <a> contenedor sea clickeable */
}
