.tvb,.tvb-reader{--tvb-ink:#082e43;--tvb-teal:#007b87;--tvb-pink:#b50c59;--tvb-paper:#fffcf5;color:var(--tvb-ink)}
.tvb{font:16px/1.65 system-ui,sans-serif;max-width:1280px;margin:24px auto}.tvb h2,.tvb h3{font-family:Georgia,serif;color:var(--tvb-ink)}
.tvb-notice{background:#e6f4f5;border-left:4px solid #007b87;padding:18px 22px;border-radius:4px;margin:20px 0;font:15px/1.6 system-ui,sans-serif}
.tvb-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:18px;margin:30px 0}.tvb-card,.tvb-own{border:1px solid #dfd8c5;background:#fffcf5;padding:20px;border-radius:12px;box-shadow:0 5px 20px #082e4308;overflow-wrap:anywhere}.tvb-card{display:flex;flex-direction:column}.tvb-card h3{font-size:1.25rem;line-height:1.25}.tvb-card p{font-size:.9rem}.tvb-card .tvb-button{margin-top:auto}.tvb-by{font-weight:600}.tvb-book{min-height:190px;display:flex;align-items:center;justify-content:center;text-align:center;padding:20px;color:#fff;background:linear-gradient(145deg,#082e43,#007b87);border-left:7px solid #c89a42;font:600 1.2rem/1.3 Georgia,serif;box-shadow:5px 5px 0 #c89a4225;border-radius:2px 8px 8px 2px}
.tvb-button{display:inline-block;border:0;border-radius:5px;background:#007b87;color:#fff!important;padding:10px 18px;font:600 14px/1.5 system-ui,sans-serif;text-decoration:none;cursor:pointer}.tvb-button:hover{background:#082e43}.tvb-button:focus-visible,.tvb input:focus-visible,.tvb textarea:focus-visible{outline:3px solid #bd6a00;outline-offset:3px}.tvb-danger{background:#a82a49;margin-top:12px}.tvb-own-list{display:grid;gap:16px;margin:24px 0}.tvb-own form{margin-top:18px}.tvb-own label{display:block}.tvb-form{display:grid;gap:20px;max-width:700px;padding:24px;border:1px solid #dfd8c5;background:#fffcf5}.tvb-form label{display:grid;gap:6px}.tvb input:not([type=checkbox]),.tvb textarea{width:100%;box-sizing:border-box;font:inherit;border:1px solid #94a6ab;border-radius:4px;padding:10px}.tvb-form input[type=checkbox]{width:auto}.tvb-form button{justify-self:start}
.tvb-reader{margin:0;background:#fffcf5}.tvb-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:16px;background:#082e43;color:#fff;padding:22px 5%;font:15px/1.5 system-ui,sans-serif}.tvb-toolbar a{color:#fff;text-decoration:none}.tvb-toolbar strong{font-family:Georgia,serif;font-size:1.2rem}.tvb-reading{max-width:760px;margin:0 auto;padding:24px}.tvb-reading form{display:flex;gap:12px;align-items:center;flex-wrap:wrap;font:14px/1.6 system-ui,sans-serif}.tvb-reading select{max-width:100%;padding:8px;font:inherit}.tvb-prose{font:21px/1.85 Georgia,serif;overflow-wrap:anywhere;margin:50px 0}.tvb-prose h1,.tvb-prose h2,.tvb-prose h3{line-height:1.3}.tvb-prose p{margin:0 0 1.1em;text-align:justify;text-align-last:start;hyphens:auto}.tvb-prose img{display:block;max-width:100%;height:auto;margin:24px auto;max-height:80vh;object-fit:contain}.tvb-prose pre{white-space:pre-wrap}.tvb-prose table{max-width:100%;display:block;overflow:auto}.tvb-reader-nav{display:flex;justify-content:space-between;gap:16px}.tvb-small{font:13px/1.6 system-ui,sans-serif;margin-top:30px;color:#53666d}
@media(max-width:1050px){.tvb-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:700px){.tvb-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.tvb-card{padding:12px}.tvb-prose{font-size:19px}.tvb-book{min-height:155px}}@media(max-width:380px){.tvb-grid{grid-template-columns:1fr}}@media(prefers-color-scheme:dark){.tvb-reader{background:#15232a;color:#eee8dc}.tvb-reader .tvb-notice{background:#213e48}.tvb-reader select{background:#213e48;color:#fff}.tvb-reader .tvb-small{color:#c4d0d3}}

/* Biblioteca 0.2 — portadas originales en estantes. */
.tvb.tvb-library{--tvb-cover-height:222px;--tvb-shelf-gap:24px;margin:0;font-family:system-ui,sans-serif}
.tvb-library-head{display:flex;align-items:center;justify-content:space-between;gap:30px;padding:32px;border-radius:16px;background:linear-gradient(120deg,#082f3c,#15565b);color:#fff9ed;box-shadow:0 12px 28px #082e4312}
.tvb-library .tvb-library-head h2{font:400 clamp(30px,3.5vw,44px)/1.13 Georgia,serif;color:#fffaf0;margin:10px 0 14px;max-width:620px;letter-spacing:-.8px}
.tvb-library-head p{margin:0;max-width:570px;font-size:15px;line-height:1.7;color:#e2eeeb}
.tvb-library .tvb-eyebrow{font:700 10px/1.6 system-ui,sans-serif;letter-spacing:1.5px;margin:0;color:#81632c}
.tvb-library-head .tvb-eyebrow{color:#f1d392}
.tvb-library-count{flex:none;display:grid;place-items:center;text-align:center;border:1px solid #f4dc9c66;border-radius:12px;padding:18px 20px;min-width:110px;background:#ffffff08}
.tvb-library-count strong{font:400 44px/1 Georgia,serif;color:#f5d79a}
.tvb-library-count span{font-size:11px;margin-top:9px;max-width:110px;color:#fff9ed}
.tvb-shelf-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;margin:34px 0 4px}
.tvb-library .tvb-shelf-heading h3{font:400 27px/1.25 Georgia,serif;margin:5px 0 0;color:#133d45}
.tvb-shelf-heading>p{font-size:12px;color:#617570;text-align:right;margin:0}
.tvb-shelves{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));column-gap:var(--tvb-shelf-gap);row-gap:30px;padding:16px 10px 24px;overflow:hidden;background:linear-gradient(180deg,#f5efe1a3,#fffdf7 360px);border-radius:12px;margin:18px -10px 0}
.tvb-shelf-book{min-width:0;display:flex;flex-direction:column;margin:0;padding:0;border:0;background:none}
.tvb-cover-stage{height:calc(var(--tvb-cover-height) + 44px);padding:20px 6px 19px;box-sizing:border-box;position:relative;display:flex;align-items:flex-end;justify-content:center;isolation:isolate}
.tvb-cover-stage:after{content:"";position:absolute;bottom:0;left:calc(var(--tvb-shelf-gap) / -2);right:calc(var(--tvb-shelf-gap) / -2);height:17px;z-index:3;border-top:2px solid #e2bf83;border-bottom:1px solid #805127;background:repeating-linear-gradient(3deg,#ffffff00 0 2px,#4f2f1212 3px 4px),linear-gradient(180deg,#c99a59 0,#a97139 45%,#8d582d 100%);box-shadow:0 9px 12px #56381c26,0 -1px 0 #fff7df9c}
.tvb-cover-stage:before{content:"";position:absolute;bottom:17px;left:calc(var(--tvb-shelf-gap) / -2);right:calc(var(--tvb-shelf-gap) / -2);height:7px;background:linear-gradient(180deg,#e9d0a5,#c49964);z-index:0;box-shadow:0 -10px 16px #5a40200c}
.tvb-cover-link{position:relative;display:block;height:var(--tvb-cover-height);width:calc(var(--tvb-cover-height) * .69);max-width:calc(100% - 8px);flex:none;border-radius:2px 5px 4px 1px;transition:transform .2s ease;transform-origin:center bottom;filter:drop-shadow(5px 5px 5px #17333e30);outline-offset:6px}
.tvb-cover-link:hover{transform:translateY(-5px) rotate(-1deg)}
.tvb-cover-image{position:relative;z-index:1;width:100%;height:100%;display:block;object-fit:contain;object-position:center bottom;border-radius:2px 4px 3px 1px;background:#fbf7ed}
.tvb-cover-image[hidden]{display:none!important}
.tvb-cover-fallback{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:space-between;text-align:center;gap:12px;padding:17px 10px;box-sizing:border-box;background:linear-gradient(130deg,#173d49,#086974);border-left:5px solid #b68a45;color:#fff9ed;border-radius:2px 5px 3px 1px}
.tvb-cover-fallback>span{font-size:9px;line-height:1.5;letter-spacing:1px;color:#e4cea3}
.tvb-cover-fallback strong{font:400 18px/1.25 Georgia,serif;color:#fff9ed;overflow-wrap:anywhere}
.tvb-book-info{padding:20px 6px 10px;display:flex;flex:1;flex-direction:column;align-items:flex-start;overflow-wrap:anywhere}
.tvb-book-genre{font:700 9px/1.5 system-ui,sans-serif;letter-spacing:.55px;text-transform:uppercase;color:#8b6b32;margin:0 0 8px;min-height:27px}
.tvb-library .tvb-book-info h4{font:400 20px/1.25 Georgia,serif;color:#123c44;margin:0 0 8px;letter-spacing:-.15px;overflow-wrap:break-word}
.tvb-book-author{font:500 13px/1.5 system-ui,sans-serif;color:#506765;margin:0 0 15px}
.tvb-library a.tvb-book-read{display:inline-flex;justify-content:space-between;align-items:center;gap:14px;padding:7px 0;color:#9e1755;text-decoration:none;border-bottom:1px solid #c0a974;font:700 12px/1.5 system-ui,sans-serif}
.tvb-library a.tvb-book-read:hover{color:#075e68;border-color:#075e68}
.tvb-book-synopsis{margin-top:13px;font:12px/1.7 system-ui,sans-serif;color:#546a68;width:100%}
.tvb-book-synopsis summary{cursor:pointer;color:#526d6a;font-weight:500;list-style-position:inside}
.tvb-book-synopsis p{font-size:12px;line-height:1.7;padding:12px;background:#f2efe6;border-radius:8px;margin:8px 0 0;overflow-wrap:anywhere}
.tvb-pagination{display:flex;justify-content:space-between;gap:14px;margin:20px 0}
.tvb-pagination:empty{display:none}
.tvb-library-foot{font:12px/1.7 system-ui,sans-serif;color:#5d7270;border-top:1px solid #ded8c9;padding-top:18px;margin:10px 0 0}
.tvb-cover-link:focus-visible,.tvb-book-read:focus-visible,.tvb-book-synopsis summary:focus-visible{outline:3px solid #b50c59;outline-offset:4px}
@media(max-width:1050px){.tvb.tvb-library{--tvb-cover-height:210px;--tvb-shelf-gap:22px}.tvb-shelves{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.tvb.tvb-library{--tvb-cover-height:185px;--tvb-shelf-gap:16px}.tvb-shelves{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:20px}.tvb-library-head{padding:23px 20px;gap:20px;align-items:flex-start;flex-direction:column}.tvb-library .tvb-library-head h2{font-size:32px}.tvb-library-head p{font-size:14px}.tvb-library-count{display:flex;align-items:center;gap:12px;min-width:0;padding:10px 14px}.tvb-library-count strong{font-size:28px}.tvb-library-count span{font-size:11px;max-width:none;margin:0}.tvb-shelf-heading{display:block;margin-top:27px}.tvb-shelf-heading>p{text-align:left;margin-top:8px}.tvb-library .tvb-shelf-heading h3{font-size:25px}.tvb-book-info{padding:17px 3px 8px}.tvb-library .tvb-book-info h4{font-size:18px}.tvb-book-author{font-size:12px}.tvb-book-genre{font-size:8px;letter-spacing:.2px}.tvb-cover-fallback strong{font-size:15px}}
@media(max-width:380px){.tvb.tvb-library{--tvb-cover-height:165px;--tvb-shelf-gap:12px}.tvb-library .tvb-book-info h4{font-size:16px}}
@media(prefers-reduced-motion:reduce){.tvb-cover-link{transition:none}.tvb-cover-link:hover{transform:none}}

/* Lecturas y avance: panel reservado a administración. */
.tvb-stats-access{display:flex;justify-content:flex-end;align-items:center;gap:15px;margin:0 0 22px}.tvb-stats-access>span{font-size:.75rem;color:#6a776e}.tvb-statistics{color:#214a43}.tvb-stats-back{display:inline-block;margin-bottom:26px;color:#9c1b5b;font-size:.9rem}.tvb-stats-head{padding:28px 30px;background:#f4f5e9;border:1px solid #dce4d7;border-radius:18px;margin-bottom:25px}.tvb-stats-head h2{font:400 2.5rem/1.2 Georgia,serif;margin:9px 0 14px;color:#173f3d}.tvb-stats-head p{margin:0;line-height:1.7}.tvb-stats-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:24px}.tvb-stats-metrics article{padding:24px;background:#fff;border:1px solid #e1e7dd;border-radius:14px;display:flex;flex-direction:column;gap:10px}.tvb-stats-metrics strong{font:400 2.3rem/1.1 Georgia,serif;color:#1e5a4a}.tvb-stats-metrics strong.tvb-stats-date{font-size:1.1rem;line-height:1.5}.tvb-stats-metrics span{font-size:.78rem;color:#6a7a70}.tvb-stats-filters{display:flex;flex-wrap:wrap;gap:16px;align-items:flex-end;margin:20px 0}.tvb-stats-filters label{display:flex;flex:1;min-width:170px;flex-direction:column;gap:7px;font-size:.8rem;font-weight:600}.tvb-stats-filters select{max-width:100%;padding:10px;border:1px solid #cddacc;border-radius:7px;background:#fff;color:#254e43;font:inherit}.tvb-stats-filters .tvb-button{height:42px}.tvb-stats-note{padding:16px 20px;background:#faf6ed;border-left:3px solid #c3a05e;font-size:.8rem;line-height:1.7;color:#6b6c5c}.tvb-stats-empty{padding:35px;border:1px dashed #b7cbb9;border-radius:14px;background:#f7faf4;margin:25px 0}.tvb-stats-empty h3{font:400 1.6rem Georgia,serif;color:#254e43;margin:0 0 13px}.tvb-stats-empty p{line-height:1.7;margin:0;color:#627468}.tvb-stats-table-wrap{overflow-x:auto;border:1px solid #dde5d9;border-radius:12px;margin-top:25px}.tvb-stats-table{border-collapse:collapse;width:100%;min-width:860px;font-size:.8rem;text-align:left}.tvb-stats-table th{padding:14px;background:#eaf1e6;color:#345b4a;font-size:.72rem}.tvb-stats-table td{padding:16px 13px;border-top:1px solid #e5e9e0;vertical-align:top;color:#466453}.tvb-stats-table td:first-child{min-width:135px}.tvb-stats-table td:nth-child(2){min-width:180px}.tvb-stats-table td:nth-child(4){min-width:120px}.tvb-stats-table small{display:block;font-size:.7rem;color:#7a887d;line-height:1.6;margin-top:7px}.tvb-stats-table progress{display:block;width:110px;max-width:100%;height:8px;margin:9px 0;accent-color:#43856b}.tvb-stats-admin{display:inline-block;padding:3px 7px;margin-top:6px;border-radius:4px;background:#f8edce;font-size:.63rem;color:#79652b}.tvb-progress-box{margin:18px 0 28px;padding:14px 18px;border:1px solid #c7d3c6;border-radius:9px;background:#f0f5e9;color:#3e5949;font:14px/1.6 system-ui,sans-serif}.tvb-progress-box p{margin:0 0 12px}.tvb-progress-box>div{display:flex;justify-content:space-between;align-items:center;gap:15px}.tvb-progress-box .tvb-button{font-size:13px;white-space:nowrap}.tvb-progress-box button:disabled{opacity:.6;cursor:wait}.tvb-progress-box noscript{display:block;margin-top:10px;font-size:12px}
@media(max-width:800px){.tvb-stats-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.tvb-stats-head{padding:23px}.tvb-stats-head h2{font-size:2rem}.tvb-stats-metrics article{padding:18px}.tvb-stats-access{flex-wrap:wrap;justify-content:flex-start}}@media(max-width:480px){.tvb-stats-metrics{gap:9px}.tvb-stats-metrics strong{font-size:1.9rem}.tvb-stats-metrics span{font-size:.7rem}.tvb-stats-filters label{min-width:100%;width:100%}.tvb-progress-box>div{align-items:flex-start;flex-direction:column}}
.tvb-progress-box{position:sticky;top:12px;z-index:10;box-shadow:0 4px 15px #163f3c12}.tvb-progress-box p{font-size:12px}.tvb-progress-box>div{min-height:36px}
