/* Biblioteca Viva V0.8 · visor adaptable. Esta hoja es la única capa de monitor.
   No escala ni recorta iframes; mantiene controles fuera del área del contenido. */
:root{color-scheme:only light}
#biblioteca-viva{--bv-ink:#456581;--bv-border:6px;padding:28px clamp(12px,2vw,28px);background:radial-gradient(ellipse at 10% 10%,#fffefbdb,transparent 40%),radial-gradient(ellipse at 94% 30%,#d8d4fa66,transparent 48%),linear-gradient(125deg,#f6fcff,#e7f3fc 48%,#f0edfd)}
#biblioteca-viva .bv-columns{grid-template-columns:minmax(0,2.15fr) minmax(250px,.86fr);gap:20px;align-items:start}
#biblioteca-viva .bv-lectern{padding:20px 14px 24px;min-width:0;overflow:visible;background:linear-gradient(143deg,#ffffffbd,#ecf6ff99 54%,#ede8fc80)}
#biblioteca-viva .bv-lectern::before{inset:0;border-radius:26px;z-index:0;pointer-events:none}
#biblioteca-viva .bv-lectern-top{padding-inline:7px;z-index:1}
#biblioteca-viva .bv-volume-mark{font-size:11px;letter-spacing:.07em;color:#536d8b;font-variant-numeric:tabular-nums}
#biblioteca-viva .bv-modes{position:relative;z-index:1;margin:4px 6px 20px;gap:8px}
#biblioteca-viva .bv-mode{font-size:12px;padding:9px 13px;min-height:44px}
#biblioteca-viva .bv-mode[aria-pressed=true]{background:linear-gradient(110deg,#d4ddf9,#cdeff7 55%,#f1dfee);color:#365673}
#biblioteca-viva .bv-theater{position:relative;display:flex;align-items:center;flex-direction:column;justify-content:flex-start;min-height:0;padding:0 2px 10px;perspective:none;isolation:auto}
#biblioteca-viva .bv-theater::before{width:100%;height:80%;aspect-ratio:auto;top:0;left:0;transform:none;background:radial-gradient(ellipse at 30% 30%,#b4dff766,transparent 66%),radial-gradient(ellipse at 75% 75%,#d8b8f766,transparent 55%);filter:blur(20px);z-index:0}
#biblioteca-viva .bv-theater::after{left:25%;right:25%;bottom:4px;z-index:0}
/* Shell remains in the DOM when enlarged. Top-layer popover avoids iframe reparent/reload. */
.bv-player-shell{--bv-edge:6px;position:relative;z-index:2;box-sizing:border-box;width:100%;max-width:940px;border:0;padding:0;color:#405e7b;background:transparent;outline:none;transform:none;filter:none;min-width:0;isolation:auto}
.bv-player-shell *{box-sizing:border-box}
#biblioteca-viva .bv-player-shell[hidden]{display:none!important}
.bv-viewer-heading{display:none}
.bv-screen-wrap{display:flex;align-items:center;justify-content:center;width:100%;min-width:0;min-height:0;padding:0}
#biblioteca-viva .bv-display,.bv-player-shell .bv-display{position:relative;display:block;box-sizing:border-box;z-index:1;width:100%;max-width:none;height:auto;aspect-ratio:auto;min-height:0;padding:0;border:var(--bv-edge) solid transparent;border-radius:19px;overflow:visible;isolation:isolate;transform:none!important;filter:none!important;animation:none!important;transition:box-shadow .25s;background:linear-gradient(#e9f5fc,#dce9f9) padding-box,conic-gradient(from 20deg,#ffffff,#a8def6 55deg,#d9c8fb 95deg,#fae8d4 140deg,#fff8ff 190deg,#f3cfe9 225deg,#8bcde9 270deg,#efe7fe 320deg,#fff) border-box;box-shadow:0 0 0 1px #ffffffde,0 14px 30px #7997c030,0 0 0 4px #ffffff40,0 0 32px #c0cbef40}
#biblioteca-viva .bv-display::before,#biblioteca-viva .bv-display::after{display:none!important}
.bv-screen{position:relative;width:100%;height:100%;isolation:isolate;background:#101d33;border-radius:12px;overflow:hidden;min-height:0}
.bv-poster{position:absolute;inset:0;background:radial-gradient(ellipse at 25% 15%,#fffdf6,#d9eefa 48%,#d1d8f7);overflow:hidden}
#biblioteca-viva .bv-poster>img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;filter:none;opacity:.60}
#biblioteca-viva .bv-cover-message{position:absolute;inset:0;gap:13px;padding:30px 20px 85px;background:linear-gradient(180deg,#eef8ff26,#f4f9ff94 54%,#d5e9faad);pointer-events:none;z-index:1}
#biblioteca-viva .bv-cover-message strong{font-family:inherit;font-size:clamp(23px,2.6vw,36px);line-height:1.16;max-width:380px}
#biblioteca-viva .bv-cover-number{font-size:15px;font-weight:650;letter-spacing:.07em}
#biblioteca-viva .bv-cover-type{font-size:9px;line-height:1.6;padding:5px 10px;white-space:normal;letter-spacing:.12em}
.bv-poster-format{font-size:11px;color:#63859e;line-height:1.5}
#biblioteca-viva .bv-video-launch{position:absolute;inset:auto 16px 20px;justify-content:center;min-height:46px;border:1px solid #fff;background:#fbfeffdb;font-size:12px;color:#365b7c;z-index:2;box-shadow:0 6px 18px #718fb52b;max-width:300px;margin-inline:auto;backdrop-filter:blur(10px)}
#biblioteca-viva .bv-video-launch::before{display:none}
.bv-player-mount{position:absolute;inset:0;min-width:0;min-height:0;z-index:3;background:#101d33;overflow:visible}
.bv-player-mount>div,.bv-player-mount>iframe,.bv-player-mount>video,.bv-player-mount>audio{width:100%;height:100%;display:block;min-width:0;min-height:0;max-width:none;max-height:none;border:0;padding:0;margin:0;position:absolute;inset:0;transform:none;aspect-ratio:auto}
.bv-player-mount iframe{border:0;border-radius:0;display:block;width:100%;height:100%;position:absolute;inset:0;aspect-ratio:auto!important;max-width:none!important;min-height:0;transform:none!important;pointer-events:auto}
.bv-player-mount video{object-fit:contain!important}
.bv-player-shell[data-kind=audio] .bv-screen,.bv-player-shell[data-kind=audio] .bv-player-mount{background:#e8f1fb}
.bv-player-shell[data-kind=audio] .bv-cover-message{padding:18px 16px 68px;gap:8px}
.bv-player-shell[data-kind=audio] .bv-cover-message strong{font-size:24px}
.bv-player-shell[data-kind=audio] .bv-cover-type{display:none}
.bv-player-shell[data-kind=audio] .bv-poster-format{font-size:10px}
.bv-connection{position:absolute;inset:0;display:grid;place-items:center;z-index:4;background:linear-gradient(125deg,#ecf8ff,#e9e6fb);font-size:13px;color:#557394;padding:20px;text-align:center;pointer-events:none}
/* Shared persistent toolbar: never hidden for video, audio, portrait or error. */
#biblioteca-viva .bv-unibar,.bv-player-shell .bv-unibar{display:grid!important;position:relative!important;inset:auto!important;width:100%;max-width:940px;min-height:0;margin:12px 0 0;z-index:5;grid-template-columns:minmax(0,1fr);gap:8px;padding:10px 12px;border:1px solid #fff;border-radius:17px;background:linear-gradient(112deg,#f7fcffed,#e8f2fced 45%,#f0eaf9eb 80%,#fcf6eeef);box-shadow:inset 0 1px #fff,0 8px 22px #6e93bb1f;color:#4a6d8c;line-height:1.3}
.bv-time-row{display:flex;align-items:center;gap:9px;min-width:0}
.bv-time-row output{font-size:11px;font-variant-numeric:tabular-nums;flex:0 0 auto;min-width:31px;text-align:center}
.bv-time-row input{flex:1;min-width:20px}
.bv-action-row{display:flex;align-items:center;justify-content:space-between;gap:5px;min-width:0;flex-wrap:wrap}
.bv-transport,.bv-sound,.bv-view-actions{display:flex;align-items:center;gap:3px;min-width:0}
#biblioteca-viva .bv-unibar button,.bv-player-shell .bv-unibar button{display:inline-flex;align-items:center;justify-content:center;position:static;inset:auto;gap:6px;flex:0 0 auto;min-height:40px;min-width:36px;padding:7px 8px;border:1px solid transparent;border-radius:10px;background:transparent;color:#3d6384;font-family:inherit;font-size:11px;font-weight:650;letter-spacing:normal;cursor:pointer;line-height:1.3;box-shadow:none}
#biblioteca-viva .bv-unibar button:hover:not(:disabled){background:#fff9;border-color:#fffe;transform:none}
#biblioteca-viva .bv-unibar button:disabled{opacity:.4;cursor:not-allowed}
#bv-expand{background:#ffffffac!important;border-color:#ffffffdd!important;box-shadow:0 3px 8px #aac0de30!important}
#bv-play-toggle{background:linear-gradient(120deg,#d9e8ff,#dbf2f6)!important;border-color:#fff!important;min-width:42px!important}
#bv-play-icon{font-size:14px}
.bv-sound input{width:63px;min-width:0}
.bv-unibar input[type=range]{appearance:none;-webkit-appearance:none;height:22px;background:transparent;margin:0;border:0;padding:0;cursor:pointer;box-shadow:none}
.bv-unibar input[type=range]::-webkit-slider-runnable-track{height:4px;background:#c4d5e9;border-radius:8px}
.bv-unibar input[type=range]::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;margin-top:-4px;width:12px;height:12px;border:1px solid #fff;border-radius:50%;background:#77a9cb;box-shadow:0 0 0 2px #fff7}
.bv-unibar input[type=range]::-moz-range-track{height:4px;background:#c4d5e9;border-radius:8px}
.bv-unibar input[type=range]::-moz-range-thumb{width:12px;height:12px;border:1px solid #fff;border-radius:50%;background:#77a9cb}
.bv-unibar input:disabled{opacity:.42;cursor:not-allowed}
.bv-player-info{display:flex;align-items:center;justify-content:center;gap:8px;text-align:center;min-height:37px;padding:8px 6px 2px;font-size:10px;line-height:1.5;color:#6f879e;max-width:100%}
.bv-player-info button{font:inherit;cursor:pointer;border:1px solid #c4d6eb;border-radius:9px;padding:6px 10px;background:#fff8;color:#436985;flex:0 0 auto}
/* Small physical base below the complete player, with no overlap of controls. */
#biblioteca-viva .bv-stand{position:relative;flex:0 0 auto;width:154px;height:13px;border:1px solid #fff;border-radius:50% 50% 7px 7px;background:linear-gradient(#fff,#c7dced 50%,#f1e5f4 80%,#fff9ee);transform:none;margin:35px auto 5px;box-shadow:inset 0 2px 4px #fff,0 8px 13px #6685a329;z-index:1}
#biblioteca-viva .bv-stand::before{content:'';position:absolute;bottom:10px;left:50%;width:28px;height:42px;border:1px solid #fff;transform:translateX(-50%);border-radius:5px;background:linear-gradient(90deg,#b9cfe6,#fff,#c4daf0,#eae0f5,#a8c5de);z-index:-1}
#biblioteca-viva .bv-stand::after{content:'';position:absolute;inset:1px 10px auto;height:2px;width:auto;transform:none;box-shadow:none;border:0;background:#fff;border-radius:10px}
#biblioteca-viva .bv-detail{padding:15px 8px 0;margin:0}
#biblioteca-viva .bv-detail h4{font-size:clamp(24px,2.2vw,32px)}
#biblioteca-viva .bv-format-note{font-size:11px!important;color:#6685a0!important}
#biblioteca-viva .bv-shelf{padding-inline:15px}
#biblioteca-viva .bv-book small{font-size:11px;font-weight:750;letter-spacing:.02em;white-space:nowrap;line-height:1.25;font-variant-numeric:tabular-nums}
#biblioteca-viva .bv-book[data-day=true] small{font-size:9px}
#biblioteca-viva .bv-catalog-row small{font-size:12px;white-space:nowrap;letter-spacing:.03em}
.bv-unibar button:focus-visible,.bv-viewer-heading button:focus-visible{outline:3px solid #6ba9cb;outline-offset:2px}
/* Enlarged mode is the SAME element and iframe, in the browser top layer. */
body.bv-viewer-open{overflow:hidden}
.bv-player-shell.bv-enlarged,.bv-player-shell:fullscreen{position:fixed!important;inset:0!important;margin:0!important;width:100vw!important;max-width:none!important;height:100dvh!important;max-height:none!important;padding:12px max(10px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left))!important;z-index:2147483000;background:linear-gradient(125deg,#eef8fffa,#e7edfcfa 60%,#f5effbfa)!important;display:flex!important;align-items:center;flex-direction:column;gap:0;border:0;border-radius:0;overflow:auto;box-sizing:border-box;box-shadow:none;transform:none!important;filter:none!important;isolation:isolate;color:#3e5e7d}
.bv-player-shell.bv-enlarged::backdrop{background:#e4eff9f2;backdrop-filter:blur(12px)}
.bv-player-shell.bv-enlarged .bv-viewer-heading,.bv-player-shell:fullscreen .bv-viewer-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;min-height:40px;width:100%;max-width:1100px;margin:0 auto 8px;font:500 12px/1.4 Arial,sans-serif}
.bv-viewer-heading button{font:inherit;cursor:pointer;flex:0 0 auto;padding:8px 12px;min-height:38px;border:1px solid #fff;border-radius:12px;background:#fff9;color:#476a85}
.bv-player-shell.bv-enlarged .bv-screen-wrap,.bv-player-shell:fullscreen .bv-screen-wrap{flex:1 1 auto;min-height:0;height:0;align-items:center}
.bv-player-shell.bv-enlarged .bv-unibar,.bv-player-shell:fullscreen .bv-unibar{flex:0 0 auto;margin:10px 0 0;max-width:1100px}
.bv-player-shell.bv-enlarged .bv-player-info,.bv-player-shell:fullscreen .bv-player-info{flex:0 0 auto;max-width:1000px;min-height:25px}
.bv-player-shell.bv-enlarged .bv-display,.bv-player-shell:fullscreen .bv-display{flex:none}
/* Fallback for browsers lacking Popover: remove fixed-position containing blocks. */
body.bv-viewer-fallback .shell,body.bv-viewer-fallback .section,body.bv-viewer-fallback .glass,body.bv-viewer-fallback #biblioteca-viva,body.bv-viewer-fallback .bv-columns,body.bv-viewer-fallback .bv-lectern,body.bv-viewer-fallback .bv-theater{transform:none!important;filter:none!important;perspective:none!important;backdrop-filter:none!important;overflow:visible!important;isolation:auto!important}
@media(max-width:1120px){#biblioteca-viva .bv-columns{grid-template-columns:minmax(0,1.9fr) minmax(230px,.9fr)}#biblioteca-viva .bv-lectern{padding-inline:8px}.bv-play-word{display:none}}
@media(max-width:920px){#biblioteca-viva .bv-columns{grid-template-columns:minmax(0,1fr)}#biblioteca-viva .bv-shelf{max-width:640px;width:100%;margin:auto}#biblioteca-viva .bv-lectern{padding-inline:8px}.bv-play-word{display:inline}}
@media(max-width:600px){#escuchar.am-section{padding:24px 0!important}#escuchar>.section-head{padding-inline:17px}#biblioteca-viva{padding:22px 0 18px;border:0;border-radius:22px}#biblioteca-viva .bv-header{margin:0 16px 22px;flex-direction:column;gap:12px}#biblioteca-viva .bv-lectern{padding:18px 0 16px;border:0}#biblioteca-viva .bv-theater{padding-inline:2px}#biblioteca-viva .bv-lectern-top,#biblioteca-viva .bv-modes{margin-inline:12px}#biblioteca-viva .bv-detail{padding:13px 16px 0}#biblioteca-viva .bv-shelf{margin:14px 10px 0;width:calc(100% - 20px)}#biblioteca-viva .bv-bottom{margin-inline:15px}#biblioteca-viva .bv-overline{font-size:9px}#biblioteca-viva .bv-display{border-radius:17px}.bv-play-word{display:none}.bv-sound input{width:45px}.bv-unibar{padding:9px 6px!important;border-radius:12px!important}.bv-view-actions button{padding:7px 6px!important}#bv-player-close span{display:none}.bv-player-info{font-size:10px}.bv-viewer-heading>span{max-width:55%;font-size:11px}.bv-viewer-heading button{font-size:11px;padding:6px 9px}}
@media(max-width:370px){.bv-sound input{display:none}.bv-transport{gap:1px}.bv-unibar button{min-width:32px!important;padding-inline:5px!important;font-size:10px!important}#bv-mute{min-width:28px!important}.bv-action-row{flex-wrap:nowrap}.bv-time-row{gap:6px}.bv-time-row output{font-size:10px}.bv-player-info{padding-inline:7px}}
@media(prefers-reduced-motion:reduce){#biblioteca-viva *,#biblioteca-viva *::before,#biblioteca-viva *::after,.bv-player-shell *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* V0.8 · The reader is free of production notes. Only real loading/error notices appear. */
.bv-player-info[hidden]{display:none!important}
