/* OLAERC LAB 2026 — Biblioteca digital V2.1 / SOLO MODAL DE CARTILLAS */
.olbook-available{font-size:11px;font-weight:700;color:#574468;display:block;margin-top:9px}
.olbook-dialog{position:fixed;inset:0;margin:auto;padding:0;border:1px solid #e4dfe9;max-width:none;max-height:none;width:min(1180px,calc(100vw - 24px));height:min(940px,calc(100dvh - 24px));background:#fff;border-radius:22px;overflow:hidden;box-shadow:0 24px 75px #13101d68;color:#251332;z-index:9999}
.olbook-dialog::backdrop{background:rgba(8,10,18,.73);backdrop-filter:blur(5px)}
.olbook-shell{height:100%;min-height:0;display:flex;flex-direction:column;font-family:Inter,system-ui,-apple-system,sans-serif}
.olbook-header{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:17px 26px;background:#fff;color:#24112e;border-bottom:1px solid #e9e4ec;flex-shrink:0;position:relative;z-index:10}
.olbook-heading{min-width:0}
.olbook-overline{display:block;color:#713ea6;letter-spacing:1.2px;font-size:10px;font-weight:800;line-height:1.5}
.olbook-heading h2{font-size:clamp(19px,2.3vw,26px);line-height:1.2;color:#250e37;margin:4px 0 0;font-weight:850;letter-spacing:-.035em}
.olbook-close{display:grid!important;place-items:center!important;position:relative;z-index:12;border:1px solid #d9cede;background:#fff;color:#2e1641;width:46px;height:46px;min-width:46px;border-radius:13px;font-size:29px;font-family:inherit;line-height:1;cursor:pointer;box-shadow:0 2px 8px #1b142013}
.olbook-close:hover{background:#f6f1f8;border-color:#9b7caf}
.olbook-subheader{padding:9px 26px;display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fbf9fc;border-bottom:1px solid #e9e4ec;flex-shrink:0}
.olbook-subheader p{font-size:12px;line-height:1.5;color:#51425d;margin:0}
.olbook-subheader span{white-space:nowrap;color:#694e80;letter-spacing:.55px;font-size:10px;font-weight:800}
.olbook-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 22px;background:#fff;border-bottom:1px solid #eae6ef;flex-shrink:0}
.olbook-switch{display:flex;align-items:center;gap:4px;background:#f3f0f6;border-radius:12px;padding:4px}
.olbook-switch button{background:transparent;border:0;color:#473353;font-size:12px;font-weight:800;line-height:1.3;padding:8px 14px;border-radius:9px;cursor:pointer}
.olbook-switch button.is-active{background:#fff;color:#31104d;box-shadow:0 1px 7px #2d153b18}
.olbook-zoom{display:flex;align-items:center;gap:5px}
.olbook-zoom[hidden]{display:none!important}
.olbook-zoom button{border:1px solid #ded5e5;border-radius:9px;background:white;color:#342141;width:35px;height:35px;display:grid;place-items:center;font-size:20px;cursor:pointer}
.olbook-zoom button:disabled{opacity:.32;cursor:default}
.olbook-zoom span{min-width:58px;font-size:12px;font-weight:750;color:#3e2d4d;text-align:center;font-variant-numeric:tabular-nums}
.olbook-stage{min-height:0;flex:1;position:relative;display:flex;align-items:stretch;justify-content:center;padding:0;background:#eae7ed;overflow:hidden}
.olbook-reader{display:block;width:100%;height:100%;min-height:0;overflow:auto;overscroll-behavior:contain;padding:24px 22px 28px;text-align:center;scrollbar-gutter:stable}
.olbook-reader[hidden],.olbook-flip[hidden]{display:none!important}
.olbook-reader-image{display:block;width:min(100%,820px);height:auto;max-width:820px;max-height:none!important;margin:0 auto;box-shadow:0 9px 30px #18121c3d;background:#fff;border:1px solid #e6e3e6;object-fit:contain}
.olbook-reader-hint{display:block;text-align:center;color:#66586e;font-size:11px;font-weight:600;padding:0 12px 12px;background:#f7f5f8}
.olbook-flip{flex:1;min-height:0;min-width:0;max-width:100%;height:100%;display:flex;align-items:center;justify-content:center;padding:14px;filter:drop-shadow(0 12px 18px #2c23324a)}
.olbook-flip .stf__parent{margin:auto!important}
.olbook-loading{position:absolute;inset:0;z-index:4;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;text-align:center;padding:25px;background:#f9f8faed;color:#321a40}
.olbook-loading[hidden]{display:none!important}
.olbook-loading strong{font-size:14px;line-height:1.55;max-width:370px}
.olbook-loading small{font-size:11px;color:#605369}
.olbook-loader{height:35px;width:35px;border-radius:50%;border:4px solid #e4d7ef;border-top-color:#8d43df;animation:olbook-spin .8s linear infinite;margin-bottom:6px}
@keyframes olbook-spin{to{transform:rotate(360deg)}}
.olbook-footer{padding:12px 20px;display:flex;align-items:center;justify-content:space-between;gap:14px;background:white;border-top:1px solid #e9e4ec;flex-shrink:0}
.olbook-navigation,.olbook-downloads{display:flex;align-items:center;gap:10px}
.olbook-turn,.olbook-view-pdf,.olbook-download{display:inline-flex;align-items:center;justify-content:center;gap:6px;border-radius:10px;padding:11px 14px;font:750 12px/1.25 Inter,system-ui,sans-serif;text-decoration:none;white-space:nowrap;cursor:pointer;transition:background .15s ease,transform .15s ease}
.olbook-turn{color:#352244;border:1px solid #dcd3e3;background:#fff}
.olbook-turn:not(:disabled):hover{background:#f5edf9}
.olbook-turn:disabled{opacity:.35;cursor:default}
.olbook-page{min-width:74px;text-align:center;color:#311444;font-size:13px;font-weight:800;font-variant-numeric:tabular-nums}
.olbook-view-pdf{background:#f2ecf6;color:#38174e;border:1px solid #dfd1ea}
.olbook-download{background:#ed008f;color:#fff!important;border:1px solid #ed008f}
.olbook-download:hover{background:#c70079;color:#fff!important}
.olbook-view-pdf:hover{background:#e7d9f0}
.olbook-dialog :focus-visible{outline:3px solid #a553ef;outline-offset:2px}
@media(max-width:780px){
 .olbook-dialog{width:100vw;height:100dvh;border-radius:0;border:none}
 .olbook-header{padding:13px 16px}
 .olbook-subheader{padding:8px 16px}
 .olbook-subheader span{display:none}
 .olbook-toolbar{padding:8px 12px}
 .olbook-switch button{padding:8px 10px;font-size:11px}
 .olbook-zoom span{min-width:50px}
 .olbook-reader{padding:12px 8px 22px}
 .olbook-footer{padding:10px 12px 14px;flex-direction:column;gap:8px}
 .olbook-navigation{width:100%;justify-content:space-between}
 .olbook-downloads{width:100%;justify-content:stretch}
 .olbook-downloads a{flex:1}
 .olbook-turn{padding:9px 11px}
 .olbook-reader-hint{font-size:10px}
}
@media(prefers-reduced-motion:reduce){.olbook-loader{animation:none}.olbook-turn,.olbook-view-pdf,.olbook-download{transition:none}}
