
body {
  background-color: #732F6E;
  margin: 0;
}

.h2title {
  text-align: center;
  margin-top: 30px;
  margin-bottom: 40px;
  color: #ffebdc;
 text-shadow: 0 1px 3px rgba(3, 3, 3, 0.886); 
}


* {
  box-sizing: border-box;
}


.card-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
  padding: 60px;
  background-color:  #FDF6E2;
  border-radius: 20px;
  max-width: 1100px;
  margin: 0 auto 30px auto;
  
  height: 100%;
}

.main {
  background-color:  #FDF6E2;
  max-width: 1100px;
  border-radius: 20px;
  padding-bottom: 2%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); 
  margin: 0 auto 30px auto;
}


.card {
  perspective: 1000px;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 200px;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

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


.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
 
  border-radius: 10px;
  box-shadow: 0 0 10px  black (243, 25, 25, 0.881);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
}


.card-back {
  transform: rotateY(180deg);
  background-color: #732f6e32;
}


.btn-container {
  display: block;
  margin: 0 auto 50px auto;
}

.prueba-1 {
  align-items: center;
  justify-content: center;
}


.card-front {
  
  background-size: cover;
  background-position: center;
  padding: 0;                 
  overflow: hidden;          
  display: flex;
  flex-direction: column;     
  justify-content: flex-end; 
  align-items: center;
  color: #fff;                
  text-shadow: 0 1px 3px rgba(3, 3, 3, 0.7);
}


.card-front h3,
.card-front p {
  position: relative;
  z-index: 2;
  margin: 0 0 8px;
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0); 
  border-radius: 4px;
  font-size: 1rem;
}

.curiosity-container iframe {
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(38, 38, 38, 0.45);
}
.curiosity-container p {
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

.card {
  perspective: 1000px;
  position: relative;
  overflow: hidden; /* 🔒 Limita el contenido al borde de la tarjeta */
}

.card-inner {
  position: relative;
  width: 100%;
  height: 200px;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

/* Efecto destello */
.card-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 120%; /* Abarca justo el ancho, sin salirse */
  height: 100%;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
  transform: skewX(-25deg);
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  border-radius: 10px;
}

.card:hover .card-inner::before {
  animation: shine 0.8s ease-in-out forwards;
}

/* Animación de destello */
@keyframes shine {
  0% {
    left: -60%;
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  100% {
    left: 100%;
    opacity: 0;
  }
}

/* CODIGO PARA LOS POPUPS */

h2#swal2-title {
  font-family: "Fredoka", sans-serif;
  font-size: 1.5vw;
  font-weight: bold;
  margin-top: 0px;
  padding: 2%;
  margin-top: 5%;
   color: #fff;
      text-shadow:
        0 0 5px #151414,
 0 0 10px #0ff,
        0 0 20px #0ff,
        0 0 40px #0ff,
        0 0 80px #0ff;
}

div#swal2-container {
  font-family: "Baloo 2", sans-serif;
  font-size: 16px;
  font-weight: lighter;
  padding: 1px;
  overflow: hidden;
  margin: 0px;
  color: #fff;

}

.swal-custom-popup {
  font-family: "Baloo 2", sans-serif;
  border-radius: 50px;
  overflow: hidden;
  width: 50%;
  height: 100%;
  color: white;
  margin: 0;
}

.my-custom-confirm {
  border-radius: 50px;
  background-color: black;
  font-family: "Baloo 2", sans-serif;
  font-size: 1vw;
  font-weight: bold;
  color: #fff;
      text-shadow:
        0 0 5px #151414,
 0 0 10px #0ff,
        0 0 20px #0ff,
        0 0 40px #0ff,
        0 0 80px #0ff;
  padding: 10px 20px;
}

.swal-custom-image {
    object-fit: cover !important; /* Para que la imagen cubra todo el espacio */
    margin: 0;
    overflow: hidden;
    object-position: center;
    height: 250px;
    width: 100%;
}

/* ========================
   MEDIA QUERIES RESPONSIVE
   ======================== */

/* Tablet (768px - 1024px) */
@media screen and (max-width: 1024px) {
  .card-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    padding: 40px;
    max-width: 800px;
  }
  
  .main {
    max-width: 800px;
    margin: 0 20px 30px 20px;
  }
  
  .h2title {
    font-size: 2rem;
    margin: 20px 20px 30px 20px;
  }
}

/* Mobile (hasta 768px) */
@media screen and (max-width: 768px) {
  .card-container {
    grid-template-columns: 1fr; /* UNA SOLA COLUMNA */
    gap: 25px;
    padding: 30px 20px;
    margin: 0 15px 20px 15px;
    max-width: none;
  }
  
  .main {
    margin: 0 15px 20px 15px;
    max-width: none;
    padding-bottom: 5%;
  }
  
  .h2title {
    font-size: 1.8rem;
    margin: 20px 15px 25px 15px;
  }
  
  .card-inner {
    height: 180px; /* Altura un poco menor */
  }
  
  .card-front h3 {
    font-size: 0.9rem;
  }
  
  .card-back p {
    font-size: 0.85rem;
    padding: 15px;
  }
  
  /* Ajustar popup para mobile */
  .swal-custom-popup {
    width: 90% !important;
    margin: 10px;
  }
  
  h2#swal2-title {
    font-size: 4vw;
  }
  
  .my-custom-confirm {
    font-size: 3vw;
    padding: 8px 16px;
  }
  
  .swal-custom-image {
    height: 200px;
  }
}

/* Mobile pequeño (hasta 480px) */
@media screen and (max-width: 480px) {
  body {
    font-size: 14px;
  }
  
  .card-container {
    padding: 20px 15px;
    gap: 20px;
    margin: 0 10px 15px 10px;
  }
  
  .main {
    margin: 0 10px 15px 10px;
    border-radius: 15px;
  }
  
  .h2title {
    font-size: 1.5rem;
    margin: 15px 10px 20px 10px;
  }
  
  .card-inner {
    height: 160px;
  }
  
  .card-front h3 {
    font-size: 0.8rem;
  }
  
  .card-back p {
    font-size: 0.8rem;
    padding: 12px;
  }
  
  

  /* Responsive.button*/
    .btn-container {
    width: 70%; 
    min-width: 150px;
    height: 75px; 
    }

    .btn-text {
    font-size: 18px;
    padding: 0 10px;
  }
}












    

