/* Biblioteca: presentación aislada y coherente con los cinco dashboards. */
html:has(body.rvn-resources){color-scheme:light}
body.rvn-resources{--re-bg:#f7f4e9;--re-paper:#fffdf5;--re-ink:#183e37;--re-muted:#63766a;--re-accent:#176b60;--re-line:#d7decc;--re-tint:#e9eedf;background:radial-gradient(ellipse at top right,#eae4d4,transparent 55%),var(--re-bg)!important;color:var(--re-ink);font-family:Poppins,'Segoe UI',sans-serif}
body.rvn-resources *{box-sizing:border-box}
body.rvn-resources .topbar{position:relative;top:auto;max-width:none;min-height:78px;background:var(--re-paper);border-bottom:1px solid var(--re-line);box-shadow:none;backdrop-filter:none;padding:16px max(24px,calc((100% - 1180px)/2));gap:16px}
body.rvn-resources .brand,body.rvn-resources .brand strong{color:var(--re-ink)}
body.rvn-resources .brand>b{background:var(--re-accent);color:#fffbea}
body.rvn-resources .brand small{color:var(--re-muted)}
body.rvn-resources .back{color:var(--re-ink);background:var(--re-paper);border:1px solid var(--re-line);white-space:nowrap}
body.rvn-resources .back:hover{background:var(--re-tint);border-color:var(--re-accent);color:var(--re-ink)}
body.rvn-resources main{width:min(1180px,calc(100% - 48px));margin:32px auto}
body.rvn-resources .hero{display:grid!important;visibility:visible!important;grid-template-columns:minmax(0,1fr) 205px;gap:34px;min-height:0;padding:40px;border:8px solid #b88a52;border-radius:22px;background:linear-gradient(125deg,#25574b,#123c35);color:#fffbe8;box-shadow:0 10px 30px #163d3510}
body.rvn-resources .hero h1{font-size:clamp(2rem,3.7vw,3.5rem);line-height:1.13;letter-spacing:-.04em;margin:14px 0;color:inherit;max-width:740px}
body.rvn-resources .hero h1 em{color:#f3d89b}
body.rvn-resources .hero p{font-size:.94rem;line-height:1.75;color:#e0eadd;margin:14px 0;max-width:720px}
body.rvn-resources .eyebrow{color:#e3d7a6;font-size:.65rem}
body.rvn-resources .hero-pills{margin-top:20px;gap:8px}
body.rvn-resources .hero-pills span{color:#fffbe8;border-color:#ffffff30;background:#ffffff0b;padding:7px 11px;font-size:.72rem}
body.rvn-resources .hero-stat{min-height:190px;border:1px solid #ffffff30;border-radius:18px;background:#ffffff0b;box-shadow:none;text-align:center;padding:18px}
body.rvn-resources .hero-stat strong{font-size:4.5rem;color:#f3d89b}
body.rvn-resources .hero-stat span{font-size:.65rem;color:#fffbe8}
body.rvn-resources .hero-stat small{font-size:.7rem;line-height:1.6;color:#dae6da}
body.rvn-resources .catalog{padding:36px 0 40px}
body.rvn-resources .heading{gap:20px;margin-bottom:24px}
body.rvn-resources .heading span{color:var(--re-accent);font-size:.65rem}
body.rvn-resources .heading h2{font-size:clamp(1.65rem,3vw,2.3rem);line-height:1.2;color:var(--re-ink)}
body.rvn-resources .heading p{font-size:.82rem;color:var(--re-muted)}
body.rvn-resources .resource-grid{gap:20px;grid-template-columns:repeat(3,minmax(0,1fr))}
body.rvn-resources .resource-card{display:flex;justify-content:flex-start;min-height:0;background:var(--re-paper);border:1px solid var(--re-line);border-radius:18px;box-shadow:0 6px 20px #183e3706;overflow:hidden;isolation:isolate;color:var(--re-ink)}
body.rvn-resources .resource-card:after{display:none}
body.rvn-resources .resource-card img{display:block;position:relative;inset:auto;z-index:auto;width:100%;height:148px;object-fit:cover}
body.rvn-resources .resource-badge{top:12px;right:12px;background:var(--re-paper);color:var(--re-accent);border:1px solid var(--re-line);box-shadow:0 2px 8px #0001}
body.rvn-resources .resource-copy{padding:22px;display:flex;flex:1;flex-direction:column}
body.rvn-resources .resource-icon{width:38px;height:38px;margin-bottom:12px;border:1px solid var(--re-line);background:var(--re-tint);font-size:1.1rem}
body.rvn-resources .resource-copy h3{color:var(--re-ink);font-size:1.18rem;line-height:1.35}
body.rvn-resources .resource-copy p{color:var(--re-muted);font-size:.79rem;line-height:1.65;min-height:0;flex:1;margin:10px 0 20px}
body.rvn-resources .resource-meta{color:var(--re-muted);border-color:var(--re-line);font-size:.66rem;gap:10px}
body.rvn-resources .resource-meta b{color:var(--re-accent)}
body.rvn-resources .resource-card:hover{transform:translateY(-3px);border-color:var(--re-accent);box-shadow:0 12px 24px #183e3710}
body.rvn-resources a:focus-visible{outline:3px solid var(--re-accent);outline-offset:4px}
body.rvn-resources footer{border-color:var(--re-line);color:var(--re-muted);background:var(--re-paper)}
body.rvn-resources footer a{color:var(--re-accent)}
html[data-dashboard-style=cuaderno] body.rvn-resources{--re-bg:#eae1ca;--re-paper:#fff9e9;--re-accent:#41694e;--re-tint:#eeeeda;background:repeating-linear-gradient(0deg,transparent,transparent 26px,#8a795b08 27px),var(--re-bg)!important}
html[data-dashboard-style=cuaderno] body.rvn-resources main{background:var(--re-paper);padding:28px;border-radius:16px;border-left:8px solid var(--re-accent)}
html[data-dashboard-style=cuaderno] body.rvn-resources .hero{background:transparent;color:var(--re-ink);border:0;border-bottom:1px solid var(--re-line);border-radius:0;padding:20px 0 32px;box-shadow:none}
html:is([data-dashboard-style=cuaderno],[data-dashboard-style=editorial],[data-dashboard-style=campus],[data-dashboard-style=biblioteca]) body.rvn-resources .hero :is(p,.eyebrow,.hero-stat small){color:var(--re-muted)}
html:is([data-dashboard-style=cuaderno],[data-dashboard-style=editorial],[data-dashboard-style=campus],[data-dashboard-style=biblioteca]) body.rvn-resources .hero :is(em,.hero-stat strong,.hero-stat span){color:var(--re-accent)}
html:is([data-dashboard-style=cuaderno],[data-dashboard-style=editorial],[data-dashboard-style=campus],[data-dashboard-style=biblioteca]) body.rvn-resources :is(.hero-pills span,.hero-stat){color:var(--re-ink);background:var(--re-tint);border-color:var(--re-line)}
html:is([data-dashboard-style=cuaderno],[data-dashboard-style=editorial]) body.rvn-resources :is(h1,h2,h3){font-family:Georgia,serif;font-weight:500}
html[data-dashboard-style=campus] body.rvn-resources{--re-bg:#f3f7ff;--re-paper:#fff;--re-ink:#183353;--re-accent:#2462de;--re-muted:#60738a;--re-line:#d4e1fa;--re-tint:#eaf1ff;background:var(--re-bg)!important}
html[data-dashboard-style=campus] body.rvn-resources .hero{border:1px solid var(--re-line);background:linear-gradient(120deg,#e0eaff,#f7faff);color:var(--re-ink);padding:40px}
html[data-dashboard-style=editorial] body.rvn-resources{--re-bg:#f7f4ec;--re-accent:#a7472a;--re-tint:#efe5d9;background:var(--re-bg)!important}
html[data-dashboard-style=editorial] body.rvn-resources .hero{border:0;border-bottom:1px solid var(--re-line);border-radius:0;background:none;color:var(--re-ink);box-shadow:none;padding:36px 0}
html[data-dashboard-style=editorial] body.rvn-resources .resource-card{border-radius:5px;box-shadow:none}
html[data-dashboard-style=biblioteca] body.rvn-resources{--re-accent:#245d4b;--re-paper:#faf2df;--re-tint:#ede4cc;background:var(--re-bg)!important}
html[data-dashboard-style=biblioteca] body.rvn-resources .topbar{background:#204c40}
html[data-dashboard-style=biblioteca] body.rvn-resources .brand strong{color:#fff7df}
html[data-dashboard-style=biblioteca] body.rvn-resources .brand small{color:#d9dfcc}
html[data-dashboard-style=biblioteca] body.rvn-resources .hero{border:1px solid var(--re-line);background:linear-gradient(120deg,#f8efd8,#e9e1cc);color:var(--re-ink)}
html[data-dashboard-style=biblioteca] body.rvn-resources .resource-card{border-top:7px solid #809d75;border-radius:12px}
html[data-dashboard-style=biblioteca] body.rvn-resources .resource-card:nth-child(3n+1){border-top-color:#c47b56}
html[data-dashboard-style=biblioteca] body.rvn-resources .resource-card:nth-child(3n){border-top-color:#729bb7}
@media(max-width:900px){body.rvn-resources .resource-grid{grid-template-columns:repeat(2,minmax(0,1fr))}body.rvn-resources .hero{grid-template-columns:minmax(0,1fr) 160px;padding:26px;gap:20px}}
@media(max-width:600px){body.rvn-resources .topbar{padding:14px 16px;flex-wrap:wrap}body.rvn-resources main{width:calc(100% - 28px);margin:20px auto}body.rvn-resources .hero{grid-template-columns:1fr;padding:24px 18px;border-width:5px;gap:20px}body.rvn-resources .hero h1{font-size:2.1rem}body.rvn-resources .hero-stat{min-height:130px}body.rvn-resources .hero-stat strong{font-size:3rem}body.rvn-resources .resource-grid{grid-template-columns:1fr}body.rvn-resources .heading{align-items:start;flex-direction:column;gap:12px}body.rvn-resources .resource-card img{height:165px}html[data-dashboard-style=cuaderno] body.rvn-resources main{padding:16px;border-left-width:5px}html[data-dashboard-style=campus] body.rvn-resources .hero{padding:24px 18px}body.rvn-resources footer{padding:20px;gap:12px}}
@media(prefers-reduced-motion:reduce){body.rvn-resources *,body.rvn-resources *:before,body.rvn-resources *:after{scroll-behavior:auto;transition:none}}
