/* JAVA V6.31.1 — Lector editorial integrado para libros disponibles en el sitio */
.book-reader-hint{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin:0 0 14px;
  padding:7px 10px;
  border:1px solid rgba(201,154,86,.28);
  border-radius:999px;
  background:rgba(201,154,86,.08);
  color:#8d642f;
  font-size:10px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.book-reader-hint[hidden]{display:none!important;}

.book-reader-modal{z-index:9999;}
.book-reader-modal.open{display:flex;}
.book-reader-dialog{
  position:relative;
  z-index:2;
  width:min(1380px,96vw);
  height:min(940px,95svh);
  margin:auto;
  display:grid;
  grid-template-rows:auto minmax(0,1fr) auto;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.12);
  border-radius:24px;
  background:#101318;
  box-shadow:0 40px 100px rgba(0,0,0,.48);
  color:#fff;
}
.book-reader-toolbar{
  min-height:76px;
  padding:14px 18px 14px 24px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  border-bottom:1px solid rgba(255,255,255,.09);
  background:rgba(16,19,24,.97);
}
.book-reader-heading{min-width:0;}
.book-reader-heading .eyebrow{color:#d4ad72;}
.book-reader-heading h2{
  margin:3px 0 0;
  max-width:760px;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
  font-size:clamp(18px,2vw,28px);
  line-height:1.08;
  color:#fff;
}
.book-reader-actions{display:flex;align-items:center;gap:8px;flex-shrink:0;}
.book-reader-actions button,
.book-reader-download{
  min-height:40px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:0 13px;
  border:1px solid rgba(255,255,255,.13);
  border-radius:12px;
  background:#1a1f26;
  color:#fff;
  font:700 11px/1 inherit;
  letter-spacing:.04em;
  text-decoration:none;
  cursor:pointer;
  transition:.2s ease;
}
.book-reader-actions button:hover,
.book-reader-download:hover{background:#252b34;border-color:rgba(212,173,114,.42);}
.book-reader-close{font-size:22px!important;width:42px;padding:0!important;}

.book-reader-body{
  position:relative;
  min-height:0;
  display:grid;
  grid-template-columns:58px minmax(0,1fr) 58px;
  align-items:stretch;
  background:
    radial-gradient(circle at 50% 45%,rgba(201,154,86,.08),transparent 35%),
    #0b0e12;
}
.book-reader-page-wrap{
  min-width:0;
  min-height:0;
  overflow:auto;
  padding:22px;
  display:flex;
  align-items:flex-start;
  justify-content:center;
  scrollbar-color:#4b5058 #11151a;
  scrollbar-width:thin;
  overscroll-behavior:contain;
}
#bookReaderImage{
  display:block;
  width:100%;
  max-width:820px;
  height:auto;
  margin:auto;
  border-radius:3px;
  background:#fff;
  box-shadow:0 24px 70px rgba(0,0,0,.52);
  transform-origin:top center;
  transition:opacity .18s ease,transform .22s ease;
  user-select:none;
  -webkit-user-drag:none;
}
#bookReaderImage.is-turning{opacity:.22;transform:translateX(12px) scale(.992);}
.book-reader-nav{
  border:0;
  background:transparent;
  color:#d7dae0;
  font:300 54px/1 Georgia,serif;
  cursor:pointer;
  transition:background .2s,color .2s;
}
.book-reader-nav:hover{background:rgba(255,255,255,.045);color:#d4ad72;}
.book-reader-nav:disabled{opacity:.18;cursor:default;}

.book-reader-footer{
  min-height:106px;
  display:grid;
  grid-template-columns:110px 125px minmax(0,1fr);
  align-items:center;
  gap:14px;
  padding:10px 16px;
  border-top:1px solid rgba(255,255,255,.09);
  background:#12161c;
}
.book-reader-page-info{
  display:flex;
  align-items:baseline;
  justify-content:center;
  gap:6px;
  color:#858c95;
  font-size:12px;
}
.book-reader-page-info strong{font:400 34px/1 Georgia,serif;color:#fff;}
.book-reader-zoom{
  display:grid;
  grid-template-columns:34px 52px 34px;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(255,255,255,.09);
  border-radius:12px;
  overflow:hidden;
}
.book-reader-zoom button{
  height:36px;
  border:0;
  background:#1b2027;
  color:#fff;
  font-size:17px;
  cursor:pointer;
}
.book-reader-zoom span{text-align:center;color:#adb2ba;font-size:10px;font-weight:700;}
.book-reader-thumbs{
  min-width:0;
  display:flex;
  align-items:center;
  gap:8px;
  overflow-x:auto;
  padding:4px 2px 5px;
  scrollbar-width:thin;
  scrollbar-color:#4b5058 transparent;
}
.book-reader-thumb{
  flex:0 0 52px;
  height:72px;
  padding:3px;
  border:1px solid transparent;
  border-radius:8px;
  background:#21262d;
  cursor:pointer;
  opacity:.62;
  transition:.2s ease;
}
.book-reader-thumb img{width:100%;height:100%;object-fit:cover;border-radius:5px;display:block;}
.book-reader-thumb:hover{opacity:1;transform:translateY(-2px);}
.book-reader-thumb.is-active{opacity:1;border-color:#d4ad72;background:#33291e;}

.book-reader-dialog:fullscreen{width:100vw;height:100vh;max-width:none;border-radius:0;border:0;}

@media(max-width:760px){
  .book-reader-dialog{width:100vw;height:100svh;border:0;border-radius:0;}
  .book-reader-toolbar{min-height:68px;padding:11px 10px 11px 14px;}
  .book-reader-heading h2{max-width:55vw;font-size:16px;}
  .book-reader-download{padding:0 10px;font-size:0;}
  .book-reader-download span{font-size:17px;}
  #bookReaderFullscreen{display:none;}
  .book-reader-body{grid-template-columns:42px minmax(0,1fr) 42px;}
  .book-reader-page-wrap{padding:12px 6px 16px;align-items:center;}
  #bookReaderImage{max-width:100%;}
  .book-reader-nav{font-size:42px;}
  .book-reader-footer{
    min-height:92px;
    grid-template-columns:72px 104px minmax(0,1fr);
    gap:8px;
    padding:8px;
  }
  .book-reader-page-info strong{font-size:26px;}
  .book-reader-zoom{grid-template-columns:30px 44px 30px;}
  .book-reader-thumb{flex-basis:44px;height:61px;}
}

@media(max-width:520px){
  .book-reader-footer{grid-template-columns:62px minmax(0,1fr);grid-template-areas:"page thumbs";}
  .book-reader-page-info{grid-area:page;}
  .book-reader-thumbs{grid-area:thumbs;}
  .book-reader-zoom{display:none;}
}


/* JAVA V6.31.14 — PDFs locales integrados en el mismo lector */
#bookReaderPdfFrame{
  width:100%;
  height:100%;
  min-height:100%;
  border:0;
  background:#fff;
  border-radius:4px;
}
#bookReaderPdfFrame[hidden]{display:none!important;}
.book-reader-dialog.pdf-mode .book-reader-body{grid-template-columns:minmax(0,1fr);}
.book-reader-dialog.pdf-mode .book-reader-nav{display:none;}
.book-reader-dialog.pdf-mode .book-reader-page-wrap{padding:0;align-items:stretch;justify-content:stretch;overflow:hidden;}
.book-reader-dialog.pdf-mode .book-reader-footer{display:none;}
@media(max-width:760px){
  .book-reader-dialog.pdf-mode .book-reader-page-wrap{padding:0;}
}
