/* Biblioteca Digital — sección pública */
.bd-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:22px;margin:2rem 0}
.bd-card{background:#fff;border:1px solid #E8D9C5;border-radius:16px;padding:1.6rem;display:flex;flex-direction:column;gap:.6rem;transition:transform .2s ease,box-shadow .2s ease}
.bd-card:hover{transform:translateY(-4px);box-shadow:0 14px 30px -14px rgba(46,27,15,.35)}
.bd-card-icon{width:52px;height:52px;border-radius:12px;background:#F6EFE4;display:flex;align-items:center;justify-content:center;color:#914720}
.bd-card-icon svg{width:26px;height:26px}
.bd-card h3{margin:0;font-size:1.2rem;color:#2E1B0F}
.bd-card p{margin:0;color:#6B5C50;font-size:.95rem;line-height:1.5}
.bd-card-count{font-size:.85rem;color:#914720;font-weight:700}
.bd-card--soon{opacity:.65;pointer-events:none}
.bd-card a.bd-card-link{margin-top:auto;color:#914720;font-weight:700;text-decoration:none}

/* Lista de elementos de una colección */
.bd-items{display:flex;flex-direction:column;gap:10px;margin:2rem 0;max-width:760px}
.bd-item{display:flex;align-items:center;gap:14px;background:#fff;border:1px solid #E8D9C5;border-radius:12px;padding:.9rem 1.2rem;text-decoration:none;color:#2E1B0F;transition:border-color .15s ease,background .15s ease}
.bd-item:hover{border-color:#914720;background:#FBF6EE}
.bd-item-num{flex-shrink:0;width:38px;height:38px;border-radius:50%;background:#F6EFE4;color:#914720;font-weight:800;display:flex;align-items:center;justify-content:center}
.bd-item-title{font-weight:600}
.bd-item-langs{margin-left:auto;font-size:.78rem;color:#6B5C50;letter-spacing:.4px}

/* Página del elemento (destino del QR) */
.bd-player-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:28px;margin:2rem 0;align-items:start}
@media(max-width:900px){.bd-player-layout{grid-template-columns:1fr}}
.bd-player-box{background:#fff;border:1px solid #E8D9C5;border-radius:18px;padding:2rem}
.bd-player-box h2{margin:0 0 .3rem;color:#2E1B0F}
.bd-player-col{color:#914720;font-weight:700;font-size:.9rem;text-transform:uppercase;letter-spacing:.6px}
.bd-lang-btns{display:flex;gap:10px;margin:1.2rem 0}
.bd-lang-btn{border:2px solid #914720;background:#fff;color:#914720;border-radius:999px;padding:.45rem 1.3rem;font-weight:700;cursor:pointer;font-size:.95rem}
.bd-lang-btn.is-active{background:#914720;color:#fff}
.bd-lang-btn:focus-visible{outline:3px solid #2E1B0F;outline-offset:2px}
.bd-audio{width:100%;margin-top:.6rem}
.bd-prevnext{display:flex;justify-content:space-between;gap:12px;margin-top:1.4rem}
.bd-prevnext a{color:#914720;font-weight:700;text-decoration:none}
.bd-prevnext a:hover{text-decoration:underline}
.bd-download{display:inline-flex;align-items:center;gap:8px;background:#914720;color:#fff;border-radius:10px;padding:.7rem 1.4rem;font-weight:700;text-decoration:none;margin-top:1rem}
.bd-side{display:flex;flex-direction:column;gap:18px}
.bd-qr-box{background:#fff;border:1px solid #E8D9C5;border-radius:16px;padding:1.2rem;text-align:center}
.bd-qr-box p{margin:.7rem 0 0;font-size:.85rem;color:#6B5C50}
.bd-qr-box .bd-qr{display:flex;justify-content:center}
.bd-qr-box .bd-qr img,.bd-qr-box .bd-qr canvas{border-radius:8px}
.bd-playlist{background:#fff;border:1px solid #E8D9C5;border-radius:16px;padding:1rem;max-height:420px;overflow-y:auto}
.bd-playlist a{display:block;padding:.5rem .7rem;border-radius:8px;color:#2E1B0F;text-decoration:none;font-size:.92rem}
.bd-playlist a:hover{background:#F6EFE4}
.bd-playlist a.is-current{background:#914720;color:#fff;font-weight:700}
