/* Lector editorial M01-S3S. Estilos aislados del pliego A4. */
#lightbox .detail-tabs[hidden],#lightbox .sticker-story[hidden],#lightbox .light-body[hidden],#lightbox .cap[hidden]{display:none!important}
.story-cta{display:flex;align-items:center;gap:1rem;flex-wrap:wrap;margin-top:1.7rem}
.story-cta button{background:linear-gradient(120deg,#ebc978,#cfa553);border:0;color:#172431;padding:.85rem 1.35rem;border-radius:.65rem;font-weight:800;cursor:pointer;box-shadow:0 .6rem 1.5rem #0004}
.story-cta span{color:#b5c7ce;font-size:.82rem;line-height:1.45}
.chapter-read{border-color:color-mix(in srgb,var(--a) 65%,white)!important;color:var(--a)!important;background:#08202be5!important}
#lightbox:open{display:flex;flex-direction:column;overflow:hidden;max-width:96vw}
#lightbox .light-body{min-height:0;flex:1 1 auto;overflow:hidden}
#lightbox img{max-height:calc(92dvh - 165px)}
#lightbox .light-nav{flex:0 0 auto}
.detail-tabs{display:flex;gap:.25rem;background:#102736;padding:.25rem;border-radius:.65rem;margin:.4rem 3rem .85rem .1rem;flex:0 0 auto}
.detail-tabs button{flex:1;min-height:2.6rem;cursor:pointer;border:1px solid transparent;background:transparent;border-radius:.48rem;color:#aebfc6;font-weight:800;font-size:.82rem}
.detail-tabs button.active{background:#28475a;color:#fff;border-color:#66889a66}
.sticker-story{overflow-y:auto;overscroll-behavior:contain;min-height:180px;max-height:calc(92dvh - 175px);padding:0 .45rem .7rem;scrollbar-color:#9aabb580 transparent}
.story-document{max-width:630px;margin:0 auto;color:#f3e8d4}
.story-kicker{font-size:.67rem;font-weight:900;letter-spacing:.15em;color:#c9a96a;margin:.7rem 0 1rem}
.story-document h2{font:800 clamp(1.65rem,4vw,2.45rem)/1.09 Georgia,serif;color:#fff8e9;letter-spacing:-.02em;margin:0 0 1.3rem}
.story-document h3{font-size:.72rem;letter-spacing:.17em;text-transform:uppercase;color:#ddbe7e;margin:1.9rem 0 1rem}
.story-quote{margin:0;padding:1rem 1.25rem;border-left:3px solid #dab76d;background:#ddbd7920;color:#f8edd5;font:italic 1.1rem/1.65 Georgia,serif;border-radius:0 .5rem .5rem 0}
.story-prose{font:1.03rem/1.8 Georgia,serif;color:#e1e5e7}
.story-prose p{margin:0 0 1em}
.story-read{display:inline-flex;align-items:center;margin:1.3rem 0 .4rem;padding:.75rem 1rem;border:1px solid #d4b57394;border-radius:.5rem;background:#d4b57319;color:#efd49e;font-weight:800;font-size:.85rem;cursor:pointer}
.story-read:hover{background:#d4b5732c}
.story-wait{padding:2rem 1rem;color:#c9d6dc;text-align:center;line-height:1.7}
/* Pantalla de novela: biblioteca nocturna + papel cálido legible */
#novelDialog{width:min(1200px,97vw);height:min(850px,94dvh);max-height:94dvh;max-width:97vw;padding:0;overflow:hidden;border-radius:1rem;border:1px solid #d7b66f5c;background:#091b28;color:#f3ecdc}
#novelDialog:open{display:flex;flex-direction:column}
#novelDialog .novel-header{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:1rem clamp(1rem,2vw,2rem);border-bottom:1px solid #ffffff21;background:linear-gradient(120deg,#123448,#0a1b28);flex:0 0 auto}
.novel-label{color:#e6c482;font-size:.66rem;letter-spacing:.2em;font-weight:900}
.novel-header h2{font:800 clamp(1.25rem,3vw,1.6rem)/1.12 Georgia,serif;letter-spacing:-.01em;margin:.35rem 0 0}
.novel-header button{padding:.65rem .9rem;border:1px solid #ffffff42;border-radius:.5rem;background:#ffffff0d;color:#f0f4f6;font-size:.8rem;font-weight:800;cursor:pointer}
.novel-progress-track{height:3px;background:#ffffff20;flex:0 0 auto}
.novel-progress-track span{display:block;height:100%;width:0;background:linear-gradient(90deg,#56b6c5,#e5c27e);transition:width .2s}
.novel-layout{display:grid;grid-template-columns:minmax(210px,275px) minmax(0,1fr);min-height:0;flex:1}
.novel-toc{padding:1rem .7rem 2rem;background:#0d2938;overflow-y:auto;overscroll-behavior:contain;border-right:1px solid #ffffff1a}
.novel-toc h3{font-size:.66rem;letter-spacing:.16em;color:#b3c7ce;margin:.4rem .75rem 1.1rem}
.novel-chapter{display:flex;gap:.7rem;align-items:flex-start;text-align:left;width:100%;padding:.72rem .65rem;background:transparent;border:1px solid transparent;border-radius:.55rem;color:#c8d7dc;cursor:pointer;font-size:.77rem;line-height:1.35}
.novel-chapter+.novel-chapter{margin-top:.13rem}
.novel-chapter:hover{background:#ffffff0e}
.novel-chapter.active{background:#e4c07916;border-color:#daba7647;color:#f4dca4}
.novel-chapter-no{flex:0 0 2rem;color:#e4bd77;font-size:.89rem;font-weight:900;font-family:Georgia,serif}
.novel-scroll{overflow-y:auto;overscroll-behavior:contain;background:linear-gradient(145deg,#f7f0e4,#eae0ce);color:#27323a;scrollbar-color:#bca987 transparent}
.novel-paper{max-width:770px;margin:0 auto;padding:clamp(1.3rem,5vw,4.2rem) clamp(1.2rem,5vw,4.2rem) 2.5rem;min-height:100%}
.novel-position{font-size:.66rem;letter-spacing:.16em;color:#77674f;font-weight:900;text-transform:uppercase;margin-bottom:2rem}
.novel-article{font:1.055rem/1.86 Georgia,"Times New Roman",serif;overflow-wrap:break-word}
.novel-article h2{font-size:clamp(2rem,4vw,3rem);line-height:1.12;letter-spacing:-.025em;color:#293d49;margin:0 0 1.4rem}
.novel-article h3{font-size:clamp(1.25rem,2.7vw,1.65rem);line-height:1.24;color:#334e5e;margin:2rem 0 1rem}
.novel-article h4{font-size:1.2rem;line-height:1.3;color:#3c5662;margin:1.5rem 0 .8rem}
.novel-article p{margin:0 0 1.2rem}
.novel-article h2+p,.novel-article h3+p{margin-top:.3rem}
.novel-article blockquote{margin:1.4rem 0 1.8rem;padding:.6rem 1.3rem;border-left:3px solid #bb9250;color:#55616a;font-style:italic}
.novel-article code,.story-prose code{padding:.1em .25em;border-radius:3px;font-size:.88em;background:#a3895c1e;font-family:ui-monospace,Consolas,monospace;word-break:break-word}
.novel-article .manuscript-rule{width:28%;border:0;border-top:1px solid #bca98b;margin:2.5rem auto}
.novel-article ul{padding-left:1.6rem}
.novel-foot{display:flex;justify-content:space-between;gap:.8rem;border-top:1px solid #c4b79e;margin-top:2.5rem;padding-top:1.5rem}
.novel-foot button{border:1px solid #b8a784;background:#fff9ec;color:#334652;border-radius:.5rem;padding:.7rem .9rem;font-weight:800;cursor:pointer;max-width:49%;font-size:.77rem}
.novel-foot button:disabled{opacity:.36;cursor:not-allowed}
@media(max-width:700px){
 .story-cta{align-items:flex-start;flex-direction:column;gap:.65rem}
 #novelDialog{height:96dvh;max-height:96dvh;width:100vw;max-width:100vw;border-radius:0}
 .novel-layout{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr)}
 .novel-toc{display:flex;align-items:center;gap:.35rem;max-height:70px;padding:.45rem .7rem;overflow-x:auto;overflow-y:hidden;border-right:0;border-bottom:1px solid #ffffff25;scrollbar-width:thin}
 .novel-toc h3{display:none}
 .novel-chapter{width:auto;flex:0 0 auto;max-width:200px;min-height:42px;align-items:center;font-size:.66rem;padding:.4rem .45rem}
 .novel-chapter+.novel-chapter{margin-top:0}
 .novel-chapter-no{flex:0 0 auto}
 .novel-article{font-size:1.01rem;line-height:1.75}
 .novel-position{margin-bottom:1.4rem}
 #lightbox{max-height:96dvh}
 .detail-tabs{margin-right:2.5rem}
 .sticker-story{max-height:calc(94dvh - 175px)}
 .story-document h2{font-size:1.7rem}
}
@media print{#novelDialog,#lightbox,.story-cta,.chapter-read{display:none!important}}
