/* BASE */
body {
  margin: 0;
  background: #111;
  font-family: Arial;
}

/* TOOLBAR */
#toolbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  padding: 10px;
  text-align: center;
  z-index: 1000;
}


#toolbar button {
  background: transparent;
  border: none;
  padding: 6px;
  margin: 5px;
  cursor: pointer;

  /* 🔥 elimina estilos nativos móviles */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  outline: none;
}


#toolbar img:hover {
  opacity: 1;
}



button {
  padding: 6px 14px;
  margin: 5px;
  border: none;
  cursor: pointer;
  background: #fff;
  color: #000;
  font-weight: bold;
}

/* FULLSCREEN */
:fullscreen #toolbar {
  display: none;
}
:-webkit-full-screen #toolbar {
  display: none;
}

/* VISOR */
#flipbook {
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  touch-action: pan-y;
}

#flipbook::-webkit-scrollbar {
  display: none;
}

/* asegurar que el botón esté por encima */
.floating-btn {
  z-index: 9999;
}

/* tooltip encima de TODO */
.tooltip::after {
  z-index: 10000;
}

body:fullscreen {
  overflow: visible;
}

#pdf-viewer {
  display: none;
  height: 100vh;
}

/* PÁGINAS */
.page {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  scroll-snap-align: start;
}

.page img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  pointer-events: none;
}

/* DRAG INDICATOR */
#drag-indicator {
  position: fixed;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: white;
  opacity: 0.2;
  pointer-events: none;
  transform: translate(-50%, -50%);
  display: none;
  z-index: 2000;
}

/* 🔥 BOTÓN FLOTANTE */
.floating-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(0,0,0,0.7);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3000;
  font-size: 18px;
  backdrop-filter: blur(6px);
}

.floating-btn:hover {
  background: rgba(0,0,0,0.9);
}

/* oculto por defecto */
.hidden {
  display: none;
}/* BASE */
body {
  margin: 0;
  background: #111;
  font-family: Arial;
}

/* TOOLBAR */
#toolbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  padding: 10px;
  text-align: center;
  z-index: 1000;
}

button {
  padding: 6px 14px;
  margin: 5px;
  border: none;
  cursor: pointer;
  background: #fff;
  color: #000;
  font-weight: bold;
}

/* FULLSCREEN */
:fullscreen #toolbar {
  display: none;
}
:-webkit-full-screen #toolbar {
  display: none;
}

/* VISOR */
#flipbook {
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  touch-action: pan-y;
}

#flipbook::-webkit-scrollbar {
  display: none;
}

#pdf-viewer {
  display: none;
  height: 100vh;
}

/* PÁGINAS */
.page {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  scroll-snap-align: start;
}

.page img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  pointer-events: none;
}

/* DRAG INDICATOR */
#drag-indicator {
  position: fixed;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: white;
  opacity: 0.2;
  pointer-events: none;
  transform: translate(-50%, -50%);
  display: none;
  z-index: 2000;
}

/* 🔥 BOTÓN FLOTANTE */
.floating-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(0,0,0,0.7);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3000;
  font-size: 18px;
  backdrop-filter: blur(6px);
}

.floating-btn:hover {
  background: rgba(0,0,0,0.9);
}

/* oculto por defecto */
.hidden {
  display: none;
}

