/* Catálogo público — estilo inspirado en Mi Biblioteca, aislado del área privada. */
.cc-public-catalog { font-family: Nunito, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
.cc-public-catalog .cc-catalog-search-wrap { margin: 0 0 20px; }
.cc-public-catalog .cc-catalog-search { display:block; width:100%; max-width:460px; padding:12px 15px; border:1px solid #d9dee4; border-radius:12px; font:inherit; font-size:16px; background:#fff; color:#222; }
.cc-public-catalog .cc-catalog-search:focus { outline:2px solid #5eb5de; outline-offset:2px; }
.cc-public-catalog .cc-catalog-count { margin:7px 0 0; font-size:13px; color:#666; }
.cc-public-catalog .cc-acc { margin:0 0 12px; padding:10px 12px; border:1px solid #eee; border-radius:14px; background:#fff; }
.cc-public-catalog .cc-acc-sum { cursor:pointer; font-size:20px; font-weight:900; list-style:revert; }
.cc-public-catalog .cc-acc-cnt { font-weight:700; opacity:.6; }
.cc-public-catalog .cc-library-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(160px,1fr)); gap:18px; margin-top:20px; padding:14px; }
.cc-public-catalog .cc-library-card { display:flex; flex-direction:column; min-width:0; gap:12px; padding:14px; border:1px solid #e5e7eb; border-radius:16px; background:#fff; text-align:center; box-sizing:border-box; }
.cc-public-catalog .cc-library-cover-wrap { width:100%; aspect-ratio:1/1; display:flex; align-items:center; justify-content:center; overflow:hidden; border-radius:14px; background:#f5f5f5; }
.cc-public-catalog .cc-library-cover { display:block; width:100%; height:100%; max-height:none; object-fit:contain; border-radius:0; }
.cc-public-catalog .cc-library-card strong { display:flex; align-items:center; justify-content:center; flex:1; min-height:48px; font-size:16px; line-height:1.4; font-weight:700; overflow-wrap:anywhere; }
.cc-public-catalog .cc-library-card .cc-btn { display:inline-flex; align-items:center; justify-content:center; width:100%; min-height:48px; margin-top:auto; padding:10px 12px; border:0; border-radius:12px; background:#5eb5de; color:#fff; font-family:inherit; font-size:14px; font-weight:700; line-height:1.3; white-space:normal; cursor:pointer; }
.cc-public-catalog .cc-library-card .cc-btn:hover { filter:brightness(.95); color:#fff; }
.cc-public-catalog [hidden], .cc-catalog-overlay[hidden] { display:none !important; }
.cc-catalog-modal-open { overflow:hidden; }
.cc-catalog-overlay { position:fixed; inset:0; z-index:2147483000; display:flex; align-items:center; justify-content:center; padding:20px; box-sizing:border-box; background:rgba(16,24,40,.72); }
.cc-catalog-dialog { position:relative; width:min(100%,920px); max-height:calc(100dvh - 40px); overflow-y:auto; padding:45px 22px 22px; box-sizing:border-box; border-radius:18px; background:#fff; box-shadow:0 18px 60px rgba(0,0,0,.24); }

.cc-catalog-close {
  position: sticky;
  top: 8px;
  right: auto;
  margin-left: auto;
  margin-bottom: -38px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f0f2f4;
  color: #333;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}
.cc-catalog-close:hover { background:#e1e6eb; }
.cc-catalog-dialog-content .cc-public-preview { width:100%; }
@media (max-width:600px) { .cc-public-catalog .cc-library-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; padding:10px 0; } .cc-public-catalog .cc-library-card { padding:9px; gap:8px; } .cc-public-catalog .cc-library-card strong { font-size:14px; } .cc-public-catalog .cc-library-card .cc-btn { font-size:12px; padding:9px 6px; } .cc-catalog-overlay { padding:8px; } .cc-catalog-dialog { max-height:calc(100dvh - 16px); padding:44px 12px 16px; } }
.cc-public-catalog input[type="search"],
.cc-public-catalog .cc-catalog-search {
  display: none !important;
}
.cc-public-catalog .cc-catalog-count {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.3;
  color: #44474b;
  margin: 20px 0 24px;
}
