/* Contenedor principal */
.promo-container {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2px 20px;
  margin: 13px auto;
  animation: fadeInUp 0.6s ease-out;
}

/* Encabezado */
.promo-header {
  font-weight: 800;
  text-align: center;
  color: #ff8800;
  font-family: "Salsa", cursive;
  font-size: 48px;
  margin-bottom: 20px;
  position: relative;
}

.promo-header::after {
  content: "";
  width: 80px;
  height: 4px;
  background: #ff8800;
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

.promo-header.hidden {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Imagen promocional */
.promo-container img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.promo-container img:hover {
  transform: scale(1.03);
}

/* Animación */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

  
  #bookCiclo {
    width: 27rem;
    height: 31rem;
    position: relative;
    perspective: 1000px;
  }
  
  .book-page {
    width: 90%;
    height: 95%;
    display: flex;
    justify-content: center;
    position: absolute;
    border-radius: 14px;
    top: 0;
    left: 6%;
    opacity: 0;
    transition: transform 0.6s ease, opacity 0.4s ease;
    transform-origin: center right;
    backface-visibility: hidden;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.1);
  
  }
  
  .book-page img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
  }
  
  .book-page.active {
    opacity: 1;
    z-index: 2;
  }
  
  .book-page.flip {
    transform: rotateY(-180deg);
    opacity: 0;
  }
  
  .book-page.back {
    transform: rotateY(180deg);
    opacity: 0;
  }
  
  /* ✨ Levantamiento de la página antes de girar */
  .book-page.lifting {
    transform: rotateY(-10deg) translateX(-5px);
    transition: transform 0.3s ease-in-out;
  }
  
  /* ✨ Efecto de volteo con levantamiento */
  .book-page.flipping {
    transform: rotateY(-180deg);
    transition: transform 0.6s ease-in-out;
  }
  
  /* Estilos para los botones flotantes */
  .controls {
    position: fixed;
    bottom: 20px; /* Colocarlos a 20px desde el fondo */
    right: 40px;  /* Colocarlos a 20px desde la derecha */
    display: flex;
    gap: 10px; /* Espacio entre los botones */
    flex-direction: column;
    align-items: center;
    z-index: 1000; /* Asegura que los botones estén encima del contenido */
  }
  
  .controls button {
    background-color: #ffbe33;
    color: rgb(77, 77, 77);
    border: none;
    padding: 14px 20px;
    border-radius: 40px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
    margin: 5px 0; /* Margen entre los botones */
  }
  
  .controls button:hover {
    background-color: #ffbe33a8;
  }
  
  /* Si quieres personalizar aún más los botones (como el tamaño o la distancia entre ellos), aquí se puede ajustar */
  .controls button:focus {
    outline: none; /* Elimina el borde de enfoque cuando el botón está seleccionado */
  }
  /* Media Queries para Responsividad */

/* Pantallas Extra grandes (más de 1400px) */
@media (min-width: 1400px) {
  .promo-container {
      height: 750px; /* Aumento la altura para pantallas grandes */
  }

  .promo-header {
      font-size: 50px; /* Mayor tamaño de texto */
  }

  #bookCiclo {
    width: 32rem;
    height: 21rem;
  }

  .controls {
      bottom: 40px; /* Ajusto la posición de los controles */
      right: 50px;
  }

  .controls button {
      font-size: 1.2rem; /* Aumento el tamaño de los botones */
      padding: 16px 22px;
  }
}

/* Pantallas Grandes (1200px a 1399px) */
@media (min-width: 1200px) and (max-width: 1399px) {
  .promo-container {
      height: 700px;
  }

  .promo-header {
      font-size: 35px;
  }

  #bookCiclo {
    width: 30rem;
    height: 24rem;
  }

  .controls {
      bottom: 30px;
      right: 40px;
  }

  .controls button {
      font-size: 1.1rem;
      padding: 15px 20px;
  }
}

/* Pantallas Medianas (768px a 1199px) */
@media (min-width: 768px) and (max-width: 1199px) {
  .promo-container {
      height: 600px;
  }

  .promo-header {
    font-size: 30px;
}

  #bookCiclo {
    width: 22rem;
    height: 19rem;
  }

  .controls {
      bottom: 25px;
      right: 30px;
  }

  .controls button {
      font-size: 1rem;
      padding: 12px 18px;
  }
}

/* Pantallas Pequeñas (480px a 767px) */
@media (min-width: 480px) and (max-width: 767px) {
  .promo-container {
      height: 550px;
  }

  .promo-header {
      font-size: 40px;
  }

  #bookCiclo {
      width: 20rem;
      height: 24rem;
  }

  .controls {
      bottom: 20px;
      right: 25px;
  }

  .controls button {
      font-size: 0.9rem;
      padding: 10px 16px;
  }
}

/* Pantallas Extra pequeñas (menos de 480px) */
@media (max-width: 479px) {
  .promo-container {
      height: 500px;
  }

  .promo-header {
      font-size: 24px;
  }

  #bookCiclo {
      width: 26rem;
      height: 26rem;
  }
  .controls {
    bottom: 36px;
    right: 15px;
  }

  .controls button {
      font-size: 0.8rem;
      padding: 8px 14px;
  }
}
  
  
  
  
  