/* RESET */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: #c9b79b;
  font-family: "Times New Roman", Georgia, serif;
}

/* CONTENEDOR APP 9:16 A PANTALLA COMPLETA */

.app {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.book {
  position: relative;
  width: 100vw;
  height: 100vh;
  background: #b88442;
  overflow: hidden;
}

/* PÁGINA (CONTENEDOR) + EFECTO LIBRO */

.page {
  position: relative;
  width: 100%;
  height: 100%;
  perspective: 1500px; /* para el efecto */
}

/* animaciones de pasar página sobre .page */

@keyframes flipNext {
  0% {
    transform: rotateY(-80deg);
    opacity: 0;
  }
  100% {
    transform: rotateY(0deg);
    opacity: 1;
  }
}

@keyframes flipPrev {
  0% {
    transform: rotateY(80deg);
    opacity: 0;
  }
  100% {
    transform: rotateY(0deg);
    opacity: 1;
  }
}

.page.flip-next {
  transform-origin: left center;
  animation: flipNext 0.45s ease-out;
}

.page.flip-prev {
  transform-origin: right center;
  animation: flipPrev 0.45s ease-out;
}

/* ========= PÁGINAS DE IMAGEN ========= */

.page-image {
  width: 100%;
  height: 100%;
  background-color: #b88442;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain; /* muestra tapa/contratapa/promos completas */
}

/* ========= PÁGINAS DE MENÚ (TEXTO) ========= */

.menu-page {
  width: 100%;
  height: 100%;
  background: #faf7f2;
  padding: 24px 20px 100px; /* espacio abajo para flechas */
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

/* TITULARES */

.menu-title {
  font-family: "Times New Roman", Georgia, serif;
  font-size: 1.7rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 4px;
}

.menu-subtitle {
  font-family: "Times New Roman", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 14px;
}

/* SECCIONES */

.menu-section {
  margin-bottom: 18px;
}

.menu-section-title {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

/* LISTA DE ÍTEMS */

.menu-items {
  list-style: none;
}

/* Ítem: nombre + puntos + precio */

.menu-item {
  display: flex;
  align-items: flex-end;
  font-family: "Times New Roman", Georgia, serif;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 3px 0;
}

/* nombre (izquierda) */
.menu-item-name {
  flex: 0 1 auto;
}

/* separador punteado */
.menu-item-dots {
  flex: 1 1 auto;
  border-bottom: 1px dotted rgba(0, 0, 0, 0.6);
  margin: 0 4px 3px;
}

/* precio (derecha) */
.menu-item-price {
  flex: 0 0 auto;
  white-space: nowrap;
}

/* CUADROS INFORMATIVOS */

.info-box {
  margin: 10px 0 18px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid #444;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  background: #fdfaf5;
}

.info-box-title {
  display: block;
  font-weight: 700;
  margin-bottom: 4px;
}

/* COMBOS ENMARCADOS */

.menu-item-combo {
  border: 1px solid #444;
  border-radius: 10px;
  padding: 6px 8px;
  margin-top: 8px;
  background: #fdfaf5;
}

/* ========= FLECHAS FLOTANTES GRANDES TRANSPARENTES ========= */

.nav {
  position: absolute;
  bottom: 26px;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.25);
  color: #f9f3e8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  backdrop-filter: blur(4px);
  font-size: 2.6rem;
}

.nav:hover {
  background: rgba(0, 0, 0, 0.35);
}

.nav:active {
  transform: scale(0.96);
}

.nav-prev {
  left: 18px;
}

.nav-next {
  right: 18px;
}

/* PIE DE PÁGINA */

.book-footer {
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.75rem;
  color: #f0e1c8;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  z-index: 4;
}

/* AJUSTES MÓVIL */

@media (max-width: 480px) {
  .menu-title {
    font-size: 1.5rem;
  }

  .menu-item {
    font-size: 0.88rem;
  }

  .info-box {
    font-size: 0.8rem;
  }
}
