/* ====== Tarjeta Flip ====== */
#card1 {
  position: relative;
  width: 100%;
  max-width: 600px;
  height: 350px;
  margin: auto;
  perspective: 1000px;
}

#card1 .face {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.6s ease;
}

/* Frente */
#card1 .front {
  transform: rotateY(0deg);
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

#card1 .front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#card1 .front h4 {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(0,0,0,0.5);
  text-align: center;
  padding: 10px;
  margin: 0;
}

/* Reverso */
#card1 .back {
  transform: rotateY(180deg);
  background: rgb(3, 35, 54);
  color: #f3f3f3;
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}

#card1 .back .link {
  border-top: solid 1px #f3f3f3;
  padding-top: 10px;
}

#card1 .back .link a {
  color: #f3f3f3;
  text-decoration: none;
}

/* Efecto hover */
#card1:hover .front {
  transform: rotateY(180deg);
}

#card1:hover .back {
  transform: rotateY(360deg);
}

/* ====== Ajustes Responsivos ====== */

/* Tablets medianas y chicas */
@media (max-width: 992px) {
  .row.gx-0 {
    flex-direction: column;
    align-items: center;
  }
  
  #card1 {
    max-width: 90%;
    height: 300px;
  }
  
  .featured-text {
    margin-top: 20px;
    text-align: center;
  }
}

/* Teléfonos */
@media (max-width: 576px) {
  #card1 {
    height: 250px;
  }
  
  #card1 .back p {
    font-size: 0.9rem;
  }
  
  .featured-text h4 {
    font-size: 1.2rem;
  }
  
  .featured-text p {
    font-size: 0.95rem;
  }
}