/* HMCDRS V4 — Biblioteca editorial, aislada del lector, las fichas y el catálogo. */
.hml-page{--hml-bg:#f6f7fa;--hml-surface:#fff;--hml-surface2:#f0f1f6;--hml-ink:#1d2230;--hml-muted:#6d7587;--hml-line:#e1e4eb;--hml-accent:#8060ce;--hml-pink:#df539e;min-height:80vh;background:var(--hml-bg);color:var(--hml-ink);padding:28px 0 70px;font-family:Inter,system-ui,sans-serif}
html.site-dark .hml-page{--hml-bg:#101114;--hml-surface:#1a1c22;--hml-surface2:#22252d;--hml-ink:#f6f5f9;--hml-muted:#989ba8;--hml-line:#292c34;--hml-accent:#ad80f6;--hml-pink:#ed76bb}
.hml-page *{box-sizing:border-box}.hml-page button,.hml-page select,.hml-page input{font:inherit}.hml-page button{cursor:pointer}.hml-wrap{width:min(1120px,calc(100% - 36px));margin:auto}.hml-hero{min-height:205px;border-radius:15px;position:relative;overflow:hidden;display:flex;align-items:center;padding:30px 38px;background:radial-gradient(ellipse at 92% 0%,rgba(222,156,220,.24),transparent 60%),linear-gradient(105deg,#302c4e,#5e518f);color:#fff}.hml-hero:after{content:'';position:absolute;inset:0 0 0 55%;pointer-events:none;background:radial-gradient(circle at 68% 20%,rgba(220,180,255,.3),transparent 55%)}html:not(.site-dark) .hml-hero{background:radial-gradient(ellipse at 90% 0%,#eee4ff 0%,transparent 65%),linear-gradient(105deg,#eee9fc,#e4ecf9);color:#26283c}.hml-hero-text{z-index:1}.hml-eyebrow{font-size:10px;letter-spacing:2px;font-weight:800;color:var(--hml-pink)}.hml-hero h1{font-size:clamp(27px,4vw,42px);line-height:1.12;letter-spacing:-1px;font-weight:850;margin:12px 0}.hml-hero p{font-size:13px;opacity:.8;margin:0}.hml-hero-mark{font-size:150px;line-height:1;position:absolute;right:8%;top:5%;font-weight:200;opacity:.12}
.hml-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0 28px}.hml-stats>div{background:var(--hml-surface);border:1px solid var(--hml-line);border-radius:11px;padding:17px 19px;display:flex;flex-direction:column;gap:3px}.hml-stats strong{font-size:25px;font-weight:850}.hml-stats span{font-size:11px;color:var(--hml-muted)}.hml-layout{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:24px;align-items:start}.hml-content{min-width:0}.hml-tabbar{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;border-bottom:1px solid var(--hml-line);padding-bottom:9px}.hml-tabbar button{background:transparent;border:0;color:var(--hml-muted);font-size:12px;font-weight:700;white-space:nowrap;border-radius:8px;padding:10px 11px}.hml-tabbar button.active{color:var(--hml-accent);background:var(--hml-surface2)}.hml-tabbar span{font-size:10px;margin-left:4px;opacity:.65}.hml-filters{display:flex;gap:9px;flex-wrap:wrap;margin:17px 0 26px}.hml-search{display:flex;align-items:center;gap:8px;flex:1 1 210px;min-width:0}.hml-search span{font-size:22px;color:var(--hml-muted)}.hml-filters input,.hml-filters select,.hml-card select{border:1px solid var(--hml-line);background:var(--hml-surface);color:var(--hml-ink);border-radius:9px;min-height:37px;padding:8px 10px;font-size:11px;max-width:100%}.hml-search input{width:100%;min-width:0}.hml-section{margin-bottom:34px}.hml-section-head{display:flex;align-items:end;justify-content:space-between;gap:12px;margin-bottom:14px}.hml-section-head h2{margin:0;color:var(--hml-ink);font-size:19px;font-weight:800}.hml-section-head p{font-size:11px;color:var(--hml-muted);margin:4px 0 0}.hml-count{color:var(--hml-muted);font-size:11px;white-space:nowrap}.hml-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}.hml-card{min-width:0;border:1px solid var(--hml-line);background:var(--hml-surface);border-radius:11px;overflow:hidden;position:relative}.hml-cover{border:0;background:var(--hml-surface2);padding:0;display:block;width:100%;aspect-ratio:0.75;overflow:hidden}.hml-cover img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .25s}.hml-cover:hover img{transform:scale(1.04)}.hml-heart{position:absolute;top:8px;right:8px;border:0;background:rgba(16,18,25,.7);color:#fff;width:31px;height:31px;border-radius:9px;font-size:24px;line-height:1}.hml-heart.on{color:#ff82c4}.hml-card-meta{padding:11px}.hml-card-name{width:100%;border:0;padding:0;background:none;text-align:left;color:var(--hml-ink);font-size:12px!important;font-weight:800!important;line-height:1.4;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;min-height:34px}.hml-card-meta p{font-size:10px;margin:5px 0 10px;color:var(--hml-muted)}.hml-progress{height:4px;border-radius:4px;overflow:hidden;background:var(--hml-surface2)}.hml-progress>span{display:block;height:100%;background:var(--hml-accent)}.hml-card-foot{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:7px;margin-top:8px}.hml-card-foot>span{color:var(--hml-muted);font-size:9px}.hml-card select{min-height:28px;padding:4px;font-size:10px;flex:1 1 95px}.hml-widget{border:1px solid var(--hml-line);background:var(--hml-surface);border-radius:11px;padding:17px;margin-bottom:15px}.hml-widget h3{font-size:13px;font-weight:850;margin:0 0 7px}.hml-widget>p{color:var(--hml-muted);font-size:11px;margin:0 0 15px;line-height:1.6}.hml-recent{width:100%;display:flex;align-items:center;gap:9px;border:0;border-top:1px solid var(--hml-line);padding:10px 0;background:transparent;color:var(--hml-ink);text-align:left}.hml-recent img{height:49px;width:38px;object-fit:cover;border-radius:5px}.hml-recent>span:nth-child(2){flex:1;min-width:0}.hml-recent strong{font-size:11px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.hml-recent small{color:var(--hml-muted);font-size:10px}.hml-outline,.hml-empty button{border:1px solid var(--hml-line);border-radius:8px;background:var(--hml-surface2);color:var(--hml-ink);padding:10px 14px;font-size:11px;font-weight:700}.hml-hint{font-size:11px;color:var(--hml-muted)}.hml-empty{text-align:center;background:var(--hml-surface);border:1px dashed var(--hml-line);border-radius:11px;padding:25px 12px;color:var(--hml-muted)}.hml-empty>span{font-size:31px;color:var(--hml-pink)}.hml-empty strong{display:block;font-size:13px;color:var(--hml-ink);margin:7px}.hml-empty p{font-size:11px;margin:8px 0 15px}.hm-v4-library-page #globalHeader .hm-v4-nav-library{color:var(--hm-v32-ink);font-weight:850}
@media(max-width:1000px){.hml-layout{grid-template-columns:minmax(0,1fr) 220px;gap:15px}.hml-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.hml-page{padding:16px 0 86px}.hml-wrap{width:calc(100% - 28px)}.hml-hero{min-height:165px;padding:22px}.hml-hero-mark{font-size:110px;right:3%}.hml-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:12px 0 22px}.hml-stats>div{padding:12px 14px}.hml-stats strong{font-size:22px}.hml-layout{display:flex;flex-direction:column}.hml-content,.hml-aside{width:100%}.hml-aside{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.hml-widget{margin:0}.hml-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.hml-filters{gap:7px}.hml-filters select{flex:1 1 125px}.hml-hero h1{font-size:29px}}
@media(max-width:520px){.hml-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.hml-aside{grid-template-columns:1fr}.hml-section-head h2{font-size:17px}.hml-card-meta{padding:9px}.hml-filters .hml-search{flex-basis:100%}.hml-tabbar button{padding:9px 8px;font-size:11px}.hml-hero-mark{opacity:.08}.hml-card select{width:100%}}
@media(prefers-reduced-motion:reduce){.hml-cover img{transition:none}}

/* V4.4: complementos editoriales duales. La base y las superficies se conservan. */
.hml-page{--hml-fav:#d94691;--hml-fav-bg:#fce7f2;--hml-reading:#4f76bb;--hml-reading-bg:#eaf0fe;--hml-done:#278b76;--hml-done-bg:#e1f5ef;--hml-pending:#9364c5;--hml-pending-bg:#f1e9fb;--hml-paused:#b17632;--hml-paused-bg:#fff0dc;--hml-total:#8060ce;--hml-total-bg:#f1ebff}
html.site-dark .hml-page{--hml-fav:#ff83bb;--hml-fav-bg:rgba(237,118,187,.16);--hml-reading:#91b7ff;--hml-reading-bg:rgba(125,159,237,.17);--hml-done:#69d4b5;--hml-done-bg:rgba(85,198,157,.16);--hml-pending:#c4a5ff;--hml-pending-bg:rgba(173,128,246,.17);--hml-paused:#e7bb78;--hml-paused-bg:rgba(232,178,96,.15);--hml-total:#c6acff;--hml-total-bg:rgba(173,128,246,.16)}
/* El arte del hero procede de una portada REAL guardada, no de una demo. */
.hml-hero{isolation:isolate;min-height:208px;background:linear-gradient(118deg,#302c4e,#5e518f)}
html:not(.site-dark) .hml-hero{background:linear-gradient(118deg,#eae4f9,#dce7f7)}
.hml-hero-art{position:absolute;top:0;right:0;width:64%;height:100%;object-fit:cover;object-position:center 32%;opacity:.6;z-index:-2;filter:saturate(.85)}
.hml-hero:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#292541 0%,rgba(41,37,65,.95) 34%,rgba(41,37,65,.6) 68%,rgba(41,37,65,.24));z-index:-1;pointer-events:none}
html:not(.site-dark) .hml-hero:before{background:linear-gradient(90deg,rgba(240,237,250,.99) 0%,rgba(236,233,249,.96) 38%,rgba(235,232,246,.64) 70%,rgba(235,232,246,.28))}
.hml-hero:after{z-index:-1;opacity:.45}
.hml-hero-text{position:relative;z-index:1;max-width:520px}.hml-hero-mark{z-index:-1}
.hml-stats>div{position:relative;min-height:104px;padding-left:65px;justify-content:center}
.hml-stat-icon{position:absolute;left:17px;top:50%;transform:translateY(-50%);width:35px;height:35px;border-radius:10px;display:grid;place-items:center;font-size:18px!important;font-weight:850;background:var(--hml-total-bg);color:var(--hml-total)}
.hml-stat-favs .hml-stat-icon{background:var(--hml-fav-bg);color:var(--hml-fav)}
.hml-stat-reading .hml-stat-icon{background:var(--hml-reading-bg);color:var(--hml-reading)}
.hml-stat-done .hml-stat-icon{background:var(--hml-done-bg);color:var(--hml-done)}
.hml-tabbar button{position:relative;transition:background .15s,color .15s}
.hml-tabbar button.active{background:var(--hml-total-bg);color:var(--hml-total)}
.hml-tabbar button[data-hml-tab="Favoritos"].active{background:var(--hml-fav-bg);color:var(--hml-fav)}
.hml-tabbar button[data-hml-tab="Leyendo"].active{background:var(--hml-reading-bg);color:var(--hml-reading)}
.hml-tabbar button[data-hml-tab="Pendiente"].active{background:var(--hml-pending-bg);color:var(--hml-pending)}
.hml-tabbar button[data-hml-tab="En pausa"].active{background:var(--hml-paused-bg);color:var(--hml-paused)}
.hml-tabbar button[data-hml-tab="Completado"].active{background:var(--hml-done-bg);color:var(--hml-done)}
.hml-heart{display:grid;place-items:center;transition:background .15s,color .15s,transform .15s}
.hml-heart.on{color:var(--hml-fav);background:var(--hml-fav-bg);font-size:20px}
.hml-heart:focus-visible,.hml-page button:focus-visible,.hml-page select:focus-visible,.hml-page input:focus-visible{outline:2px solid var(--hml-accent);outline-offset:2px}
.hml-progress>span{background:var(--hml-reading)}
.hml-search:focus-within input,.hml-filters select:focus{border-color:var(--hml-accent)}
.hml-section-head{border-left:3px solid var(--hml-total);padding-left:10px}
.hml-section:has(.hml-section-head h2) .hml-count{border-radius:20px;padding:4px 8px;background:var(--hml-total-bg);color:var(--hml-total);font-weight:750}
.hml-widget .hml-outline:hover,.hml-empty button:hover{color:var(--hml-total);border-color:var(--hml-accent)}
@media(max-width:760px){.hml-hero-art{width:78%;opacity:.45}.hml-hero:before{background:linear-gradient(90deg,#292541 0%,rgba(41,37,65,.94) 47%,rgba(41,37,65,.55))}html:not(.site-dark) .hml-hero:before{background:linear-gradient(90deg,rgba(240,237,250,.99) 0%,rgba(236,233,249,.94) 48%,rgba(235,232,246,.55))}.hml-stats>div{padding:12px 10px 12px 48px;min-height:80px}.hml-stat-icon{left:9px;width:30px;height:30px;font-size:16px!important}}
@media(max-width:390px){.hml-stats>div{padding-left:42px}.hml-stat-icon{left:6px;width:28px;height:28px}.hml-hero{padding:20px}.hml-hero h1{font-size:27px}}
@media(prefers-reduced-motion:reduce){.hml-tabbar button,.hml-heart{transition:none}}


/* HMCDRS V4.8.3 — CAMPOS CARBÓN. Únicamente filtros/buscador/estados de Biblioteca.
   Mantiene las superficies editoriales originales #101114 / #1a1c22. */
html.site-dark #appRoot .hml-page .hml-filters input,
html.site-dark #appRoot .hml-page .hml-filters select,
html.site-dark #appRoot .hml-page .hml-card select {
  background: #22252d !important;
  border-color: #393c46 !important;
  color: #f6f5f9 !important;
  box-shadow: none !important;
}
html.site-dark #appRoot .hml-page .hml-filters input:hover,
html.site-dark #appRoot .hml-page .hml-filters select:hover,
html.site-dark #appRoot .hml-page .hml-card select:hover {
  border-color: #4a4855 !important;
}
html.site-dark #appRoot .hml-page .hml-filters input:focus,
html.site-dark #appRoot .hml-page .hml-filters select:focus,
html.site-dark #appRoot .hml-page .hml-card select:focus {
  background: #292b34 !important;
  border-color: #ad80f6 !important;
  box-shadow: 0 0 0 3px rgba(173,128,246,.12) !important;
}
html.site-dark #appRoot .hml-page .hml-filters input::placeholder { color: #989ba8 !important; opacity: 1; }
html.site-dark #appRoot .hml-page select option { background: #22252d; color: #f6f5f9; }


/* HMCDRS V4.9.1 — cabecera editorial unificada para Biblioteca. */
.hml-intro{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:8px 0 22px;border-bottom:1px solid var(--hml-line);margin-bottom:18px;}
.hml-kicker{margin:0 0 8px;font-size:10px;font-weight:800;letter-spacing:.16em;text-transform:uppercase;color:var(--hml-pink);}
.hml-intro h1{margin:0;font:800 clamp(27px,3.8vw,42px)/1.15 'Plus Jakarta Sans',Inter,sans-serif;letter-spacing:-.04em;color:var(--hml-ink);}
.hml-intro p:not(.hml-kicker){margin:10px 0 0;font-size:13px;color:var(--hml-muted);}
.hml-intro-icon{width:72px;height:72px;border:1px solid var(--hml-line);border-radius:18px;display:grid;place-items:center;background:var(--hml-surface);color:var(--hml-accent);font-size:37px;line-height:1;flex:none;}
@media(max-width:760px){.hml-intro{gap:12px;padding-bottom:16px;margin-bottom:14px;}.hml-intro-icon{width:50px;height:50px;border-radius:12px;font-size:25px;}.hml-intro h1{font-size:28px;}.hml-intro p:not(.hml-kicker){font-size:12px;}.hml-stats{margin-top:12px;}}
@media(max-width:360px){.hml-intro-icon{display:none;}}

/* HMCDRS V4.9.1 — autofill y consistencia de campos en Biblioteca. */
html.site-dark #appRoot .hml-page .hml-filters input:-webkit-autofill,
html.site-dark #appRoot .hml-page .hml-filters input:-webkit-autofill:hover,
html.site-dark #appRoot .hml-page .hml-filters input:-webkit-autofill:focus{ -webkit-text-fill-color:#f6f5f9!important; -webkit-box-shadow:0 0 0 1000px #22252d inset!important; caret-color:#f6f5f9; }
