html, body {
  overflow-x: hidden;
}

body {
  touch-action: pan-y;
}

#pdf-container {
  width: 100%;
  height: 100%;
  position: relative;

  display: flex;
  justify-content: center;
  align-items: center;
}




#flipbook {
  width: 440px;
  height: 550px;
}



.page {
  width: 440px; 
  height: 550px;
  overflow: hidden;
}

canvas {
  width: 100%;
  height: 100%;
}

/* efecto más “premium” */
#flipbook .turn-page {
  background-color: #fff;
}

.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  
  width: 50px;
  height: 50px;

  background: rgba(0,0,0,0.5);
  color: white;

  display: flex;
  justify-content: center;
  align-items: center;

  font-size: 28px;
  cursor: pointer;

  border-radius: 50%;
  z-index: 100;

  transition: all 0.2s ease;
}

.nav-btn:hover {
  background: rgba(0,0,0,0.8);
  transform: translateY(-50%) scale(1.1);
}

.prev {
  left: calc(50% - 270px);
}

.next {
  right: calc(50% - 270px);
}

/* ==============================
   PDF LOADER
============================== */

#pdf-loader {
  position: fixed;

  top: 70px;
  left: 0;
  right: 0;
  bottom: 0;

  background: transparent;

  backdrop-filter: blur(8px);

  display: flex;
  flex-direction: column;

  justify-content: flex-start;
  align-items: center;

  padding-top: calc((100vh - 70px) / 2 - 60px);

  gap: 20px;

  z-index: 99000;

  transition: opacity 0.4s ease;
}

/* ocultar */
#pdf-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

/* spinner */
.loader-spinner {

    width: 60px;
    height: 60px;

    border-radius: 50%;

    border: 5px solid rgba(0,0,0,0.08);

    border-top-color: #00bfff;

    animation: spin 0.8s linear infinite;
}

#pdf-loader p {
    font-family: 'MontserratBold';
    color: #333;
    font-size: 1rem;
}

/* animación */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {

  .nav-btn {

    width: 42px;
    height: 42px;

    font-size: 22px;

    background: rgba(138, 138, 138, 0.423);
    color:  rgba(0,0,0,0.5);
  }

  .nav-btn:hover {
    background: rgba(138, 138, 138, 0.75);
    transform: translateY(-50%) scale(1.1);
  }

  .prev {
    left: 10px;
  }

  .next {
    right: 10px;
  }
}