/* Dirección visual: ui_muestra.jpg. Biblioteca clara, escenas 3D y navegación flotante. */
:root{--paper:#fbfaf6;--ink:#242723;--muted:#777c74;--purple:#252a27;--green:#2e9c89;--lilac:#eff2eb;--gold:#ffd379;--line:#eeeee7;font-family:'Nunito',system-ui,sans-serif;background:#fbfaf6}
body{background:var(--paper)}
.app-shell{max-width:560px;background:var(--paper);min-height:100dvh}
.app-header{padding:22px 20px 19px;min-height:95px;gap:12px}
.brand{gap:10px}.brand>.brand-art{width:51px;height:51px;filter:none}.brand>span{font:900 23px/1 'Nunito',sans-serif;letter-spacing:-1px;color:#232b27}.brand>span>span{color:#232b27}.brand small{font-size:7px;letter-spacing:1px;margin-top:8px;color:#8c978e}
.icon-button{border-radius:50%;background:#f1f1e9;color:#3e4940;width:46px;height:46px}.icon-button:hover{background:#e9ede5}.install-shortcut{width:46px;height:46px;padding:0;background:#fff;border:1px solid #e8eae1;box-shadow:0 3px 10px #313c2c08}.install-shortcut span{display:none}.install-shortcut svg{width:21px;height:21px}
main{padding:5px 20px 0}.library{margin-top:0}.search-controls{display:flex;flex-direction:column;align-items:stretch;gap:12px}.searchbox{border:1px solid #ededdf;background:#fff;border-radius:999px;min-height:54px;padding:0 17px;box-shadow:0 5px 14px #454e3510}.searchbox:focus-within{border-color:#9ac6b4;box-shadow:0 0 0 3px #b7ddcb35}.searchbox svg{color:#43544c;width:21px;height:21px}.searchbox input{font-size:16px;font-weight:600;color:#354039;padding:14px 0}.searchbox input::placeholder{color:#9ba397;font-weight:400}
.search-mode{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;gap:10px;width:100%;font-size:13px;color:#8b9588;white-space:nowrap;font-weight:600}.search-mode select{flex:0 1 auto;max-width:155px;min-height:44px;border:1px solid #e9ece3;border-radius:13px;background:#f4f5ee;color:#586b5b;font-size:14px;font-weight:800;padding:9px 30px 9px 12px}
.categories{gap:8px;margin:12px -20px 16px;padding:3px 20px 8px}.chip{font-size:13px;border-radius:999px;padding:9px 14px;min-height:43px;background:#f0f2e9;color:#7d8b78;border:1px solid transparent;font-weight:800}.chip.active{background:#364f3c;color:#fff;box-shadow:none}.chip:hover:not(.active){background:#e6ece0}.chip svg{width:15px;height:15px}
.section-title{gap:10px;align-items:center;margin-bottom:18px;margin-top:3px}.section-title h1{font:900 22px/1.3 'Nunito',sans-serif;letter-spacing:-.6px;max-width:250px}.count{font-size:11px;white-space:nowrap;background:transparent;color:#929c8d;border:0;padding:4px 0;font-weight:700}
.story-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:26px 13px}.story-card{background:transparent;border:0;border-radius:0;box-shadow:none;overflow:visible}.cover-wrap{border-radius:23px;overflow:visible}.cover-button{border-radius:23px;aspect-ratio:1;background:#e2eddf;box-shadow:0 3px 8px #39472e06}.cover-button .art{border-radius:23px;object-fit:cover;object-position:center}.favorite{width:42px;height:42px;border-radius:50%;top:7px;right:7px;background:#fffff2d9;box-shadow:0 2px 9px #58694a08;color:#607564}.favorite svg{width:20px;height:20px}.favorite.selected{background:#fff5f0;color:#ba6f6a}.duration{font-size:11px;padding:5px 8px;background:#fffdf5e8;color:#69735f;border-radius:999px;left:9px;bottom:9px;font-weight:800}.read-label{top:9px;left:8px;background:#4e7457;color:#fff;font-size:9px;border-radius:999px}
.card-copy{padding:13px 2px 0;min-height:0}.category-label{font-size:10px;text-transform:none;letter-spacing:0;font-weight:700;margin-bottom:6px;color:#92a28b}.hue-0 .category-label,.hue-1 .category-label,.hue-2 .category-label,.hue-3 .category-label{color:#879681}.story-card h3{font-family:var(--fantasy);font-size:22px;line-height:1.22;font-weight:400;color:#303b2d;letter-spacing:0}.card-copy p{font-size:12px;line-height:1.45;color:#98a08f;margin-top:7px}
.mini-surprise{grid-column:1/-1;display:flex;align-items:center;gap:12px;padding:17px 15px;background:linear-gradient(110deg,#e6f2e8,#edf3f0 65%,#f7f5e9);border:1px solid #e1eade;border-radius:23px;margin:0 0 1px}.mini-magic{width:42px;height:42px;background:#ffffffa8;border-radius:50%;display:grid;place-items:center;color:#66927a;flex-shrink:0}.mini-magic svg{width:23px;height:23px}.mini-surprise>div{flex:1;min-width:0}.mini-surprise strong{font-size:15px;font-weight:900;line-height:1.2;display:block;color:#4b6651}.mini-surprise p{font-size:12px;color:#8a9c83;margin-top:5px}.mini-surprise button{width:40px;height:40px;background:#fff9;color:#61836b}.mini-surprise button svg{width:19px;height:19px}
.resume{padding:11px 12px;gap:11px;background:#f1f3ea;border:1px solid #e8ece0;border-radius:19px;margin:0 0 21px}.resume img{width:49px;height:49px;border-radius:12px}.resume small{font-size:8px;color:#99a18f;letter-spacing:.7px}.resume strong{font:800 14px/1.35 'Nunito',sans-serif;color:#667760}.resume>svg{width:18px;color:#7e9274}
.primary{background:#252a27;border-radius:999px;box-shadow:0 5px 12px #1b292315;min-height:50px;font-size:15px;font-weight:800;padding:13px 20px}.primary:hover{background:#354b40;box-shadow:0 6px 15px #1b29231c}.gold{background:linear-gradient(110deg,#42cbb8,#2d3d88);color:#fff;box-shadow:0 7px 18px #3daea22b}.gold:hover{background:linear-gradient(110deg,#35bca9,#253779)}.text-button,.text-link{color:#607c68}
.install-banner{background:#f5f3e9;border:1px solid #eeecdf;border-radius:23px;padding:20px 35px 20px 16px;margin:35px 0 0;gap:12px}.install-banner h2{font:900 18px/1.3 'Nunito',sans-serif;color:#5e6b55;max-width:235px}.install-banner p{font-size:13px;line-height:1.5;color:#9a9e8a}.install-banner .text-link{font-size:13px}.install-banner>img{width:51px;height:51px;border-radius:14px}.dismiss{color:#a0a58e}.app-footer{padding:41px 20px 135px}.app-footer .brand-art{width:65px;height:65px;filter:none}.app-footer p{font:700 21px/1.4 'Nunito',sans-serif;color:#a4af9a}.app-footer .text-link{font-size:13px;margin:10px 0}.app-footer>span{font-size:10px;color:#b1b7a7}
.mobile-nav{width:calc(100% - 28px);max-width:510px;bottom:max(13px,env(safe-area-inset-bottom));padding:8px 9px;background:#fffef7ed;border:1px solid #eceee3;border-radius:999px;box-shadow:0 9px 27px #4c60401c;gap:2px;min-height:68px}.mobile-nav button{padding:5px;gap:5px;min-width:0;min-height:48px;flex:1;position:relative;background:none;border-radius:50%;color:#9aa68d;font-size:9px;font-weight:800}.mobile-nav button svg{width:21px;height:21px}.mobile-nav button.active{background:none;color:#405841}.mobile-nav button.active:after{content:'';width:3px;height:3px;border-radius:50%;background:#618265;position:absolute;bottom:0}.mobile-nav button:last-child{color:#9aa68d}.mobile-nav button.nav-magic{background:#252a27;color:#fff;flex:0 0 64px;min-height:44px;height:44px;border-radius:999px;margin:0 7px;box-shadow:0 5px 16px #39695724}.mobile-nav button.nav-magic:hover{background:#364d40}.mobile-nav .nav-magic svg{width:20px;height:20px}.mobile-nav .nav-magic span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.magic-particles i{opacity:0;filter:blur(.4px)}.magic-particles i:nth-child(3n){background:#d2e2cf;box-shadow:0 0 8px 2px #acc3ac33}.magic-particles i:nth-child(4n){background:#d7e8d4;box-shadow:0 0 8px 2px #acc3ac33}#toast{background:#354e40;font-size:14px;border-radius:999px;box-shadow:0 7px 18px #30492b20;bottom:100px}
dialog::backdrop{background:#3c4a3a78;backdrop-filter:blur(8px)}.reader{--reader-bg:#fbfaf6;--reader-ink:#343c31;background:var(--reader-bg);max-width:650px}.reader-top{position:absolute;top:0;left:0;right:0;z-index:3;background:transparent;border:0;padding:15px 16px;gap:8px}.reader-top .icon-button{background:#fffdf1df;color:#4c6250;box-shadow:0 3px 10px #3a4d3b0d;border-radius:50%;width:43px;height:43px}.reader-brand{background:#fffdf1d9;border-radius:999px;padding:3px 12px 3px 5px;gap:5px;backdrop-filter:blur(6px)}.reader-brand .brand-art{width:35px;height:35px}.reader .reader-brand>span{font:900 14px 'Nunito',sans-serif;color:#4a624f}.reader-scene{height:315px;overflow:hidden;background:#e1efe1}.reader-scene .art{object-fit:cover;object-position:50% 45%;border-radius:0}.reader-tag{bottom:45px;left:22px;background:#fffdf1e8;color:#6d8a6d;font-size:11px;padding:6px 10px;box-shadow:none}.reading{padding:27px 23px 35px;background:var(--reader-bg);border-radius:32px 32px 0 0;margin-top:-29px;z-index:1}.reader-summary{margin-bottom:20px}.reader-summary h1{font-family:var(--fantasy);font-size:35px;font-weight:400;line-height:1.15;color:var(--reader-ink);letter-spacing:0}.reader-summary p{font-size:12px;font-weight:700;color:#9aa28d;line-height:1.5;margin-top:12px}.reading-toolbar{font-size:10px;color:#94a38b;letter-spacing:.2px}.reading-toolbar .text-button{font-size:13px;color:#69876b}.reading-toolbar .icon-button{background:#edf1e6;color:#70916f}.chapter-track{margin:12px 0 25px}.chapter-track span{background:#dfe5d7}.chapter-track .filled{background:#91b6a0}.reading-text{color:var(--reader-ink)}.reading-text .chapter-name{font:900 19px/1.3 'Nunito',sans-serif;color:#758d6d;letter-spacing:-.3px;margin:0 0 23px}.reading-text>p:first-of-type:first-letter{color:#86a27d}.reading-settings{background:#eff1e8;border-color:#e1e8da}.reading-settings button{background:#fffef7;color:#74866b}.reading-settings .chosen{border-color:#93b19a;outline-color:#b9d0b555}.reader-pagination{border-color:#e2e6d9}.reader-pagination .primary{font-size:14px;padding:13px 18px}.reader-pagination .text-button{font-size:13px;color:#7d9271}.story-end{background:#eef2e7}.story-end h2{font:800 24px/1.3 'Nunito',sans-serif}.story-end p{color:#9bab8d}.story-end strong{font-size:21px;line-height:1.6}.story-end>svg{color:#a6b98d}
.theme-sepia{--reader-bg:#f2e6d5;--reader-ink:#5b4e3c}.theme-sepia .reading-settings{background:#ece0ca}.theme-night{--reader-bg:#282e2a;--reader-ink:#f1f2e7}.theme-night .reader-summary p,.theme-night .reading-text .chapter-name,.theme-night .text-button{color:#bccdb0}.theme-night .reading-settings{background:#354036;border-color:#4a5947}.theme-night .story-end{background:#354036}.theme-night .chapter-track span{background:#465442}.theme-night .chapter-track .filled{background:#9ab99c}.theme-night .reader-top .icon-button{background:#fffdf1df;color:#4c6250}.theme-night .story-end p{color:#b1c6a3}.theme-night .reader-pagination{border-color:#465442}
.shuffle-dialog{background:radial-gradient(ellipse at 50% 33%,#e8f4e7 0,#f4f6e9 40%,#fcfaf4 80%);color:#3e513d;box-shadow:0 12px 45px #283e2922}.shuffle-dialog .dialog-close{background:#e8eddf;color:#819275}.shuffle-stars{color:#b4c897}.shuffle-dialog>.eyebrow{color:#9caa8d;font-size:9px;letter-spacing:.6px}.shuffle-dialog>h2{font-family:'Nunito',sans-serif;font-size:30px;font-weight:900;color:#384c36;letter-spacing:-.9px}.shuffle-dialog>p{color:#98a28c;font-size:15px}.book-aura{background:radial-gradient(circle,#b6dfc580,transparent 69%);filter:blur(12px)}.orbit-star,.draw-sparkles{color:#b7c98d}.draw-stage p{color:#829676;font-size:13px}.shuffling-card{border-color:#fffcf0;box-shadow:0 8px 24px #526b4220;border-radius:25px}.shuffle-dialog>.primary{font-size:15px}.draw-note{color:#a6af98;font-size:11px}.draw-winner>.art{border-color:#fffdf4;border-radius:25px;box-shadow:0 5px 24px #6b8a4c20}.winner-badge{background:#f6f4df;color:#9ba579;font-size:9px;border:1px solid #eeedd6}.draw-winner h3{color:#42593d;font-size:29px}.draw-winner p{color:#9baa8b;font-size:13px}.draw-winner .primary{background:#2e3b30;color:white;border-radius:999px}.shuffle-dialog .draw-again{color:#a2ae96;font-size:13px}.revealed>h2{font-size:25px;line-height:1.2;font-weight:900}.revealed>.eyebrow{margin-top:17px}
#install{background:#fbfaf6}.install-app-icon{box-shadow:0 5px 20px #3c5b2c16}.eyebrow{color:#9aa68c}#install h2{font:900 30px/1.2 'Nunito',sans-serif;color:#41553b;letter-spacing:-.8px}#install>p{color:#9aa28e}.install-tabs{background:#eff2e7}.install-tabs button{color:#a0ad94}.install-tabs button.active{background:#fffef9;color:#617e55;box-shadow:0 3px 8px #445e2710}.install-steps li{color:#7a8b70}.install-steps li>span{background:#e5edda;color:#86a36e;border-radius:50%}.install-steps strong{color:#526d47}#install .install-note{color:#aeb79f;font-size:12px}.already-installed{background:#e8efdd;color:#7c9a66}
@media(min-width:600px){.app-header{padding:25px 26px 20px}.brand>.brand-art{width:55px;height:55px}.brand>span{font-size:25px}.brand small{font-size:7px}main{padding:8px 26px 0}.search-controls{flex-direction:column;align-items:stretch}.search-mode select{max-width:160px}.categories{margin-left:-26px;margin-right:-26px;padding-left:26px;padding-right:26px}.story-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:30px 18px}.story-card h3{font-size:25px}.card-copy{padding:14px 2px 0;min-height:0}.card-copy p{font-size:13px}.category-label{font-size:11px}.section-title h1{font-size:25px;max-width:none}.mobile-nav{max-width:490px}.reader{height:calc(100dvh - 36px);max-height:calc(100dvh - 36px);border-radius:28px}.reader-top{padding:17px 22px}.reader-scene{height:340px}.reader .reader-brand>span{font-size:16px}.reader-top .brand-art{width:38px;height:38px}.reading{padding:32px 37px 40px}.reader-summary h1{font-size:40px}.reader-summary p{font-size:14px}.install-banner h2{max-width:300px;font-size:19px}}
@media(min-width:700px){body{background:#edf3ec}.app-shell{box-shadow:0 0 45px #4a684513}}
@media(max-width:359px){.app-header{padding:18px 16px 17px}.brand>span{font-size:21px}.brand>.brand-art{width:46px;height:46px}.brand small{font-size:6px}main{padding-left:16px;padding-right:16px}.section-title h1{font-size:20px;max-width:210px}.categories{margin-left:-16px;margin-right:-16px;padding-left:16px;padding-right:16px}.story-card h3{font-size:21px}.story-grid{gap:24px 11px}.mobile-nav{width:calc(100% - 22px);padding:7px}.mobile-nav button{font-size:8px}.mobile-nav button.nav-magic{flex-basis:58px;margin:0 4px}.reader-summary h1{font-size:32px}}
@media(prefers-reduced-motion:reduce){.magic-particles{display:none}}
/* Contraste y lectura adulta conservados dentro de la paleta suave. */
.category-label,.hue-0 .category-label,.hue-1 .category-label,.hue-2 .category-label,.hue-3 .category-label,.card-copy p{color:#697660}.search-mode,.count{color:#738169}.searchbox input::placeholder{color:#7a856f}.mobile-nav button{font-size:11px}.mobile-nav button:last-child{color:#76886a}.install-steps li{color:#66775c}.install-banner p,#install>p{color:#76816c}.shuffle-dialog>p{color:#79876b}.draw-note,.draw-winner p{color:#79886b}.shuffle-dialog .draw-again{color:#71835e}
@media(max-width:359px){.mobile-nav button{font-size:10px}}

/* Mantener el acceso a volver y favoritos durante la lectura. */
.reader-top{position:sticky;margin-bottom:-73px}
@media(min-width:600px){.reader-top{margin-bottom:-77px}}
