/* =====================================================
   ARCHIVO GENERAL SAN JUAN — catalogo-revistas.css
   Estilos exclusivos de la página de catálogo de revistas.
   Requiere shared.css cargado antes.
   ===================================================== */

/* ─── Catalog hero ───────────────────────────────────────────────────── */
.catalog-hero {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 36px 24px 20px;
  text-align: left;
}

.cat-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 0;
}

.cat-fondo-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 9999px;
  border: 1px solid oklch(from var(--cp) l c h / 0.30);
  background: oklch(from var(--cp) l c h / 0.08);
  color: var(--cp-dk);
  font-family: var(--fu);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.cat-title {
  font-family: var(--fu);
  font-size: clamp(22px, 3.5vw, 32px);
  font-weight: 700;
  color: var(--ct);
  margin-bottom: 8px;
  line-height: 1.15;
}

.cat-desc {
  font-family: var(--fb);
  font-size: 16px;
  color: var(--ct3);
  line-height: 1.6;
  margin-bottom: 8px;
  max-width: 60ch;
}

.cat-count {
  font-family: var(--fu);
  font-size: 13px;
  color: var(--ct3);
}

/* ─── Empty state (año sin resultados) ──────────────────────────────── */
.cat-empty {
  padding: 32px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cat-empty p {
  font-family: var(--fb);
  font-size: 15px;
  color: var(--ct2);
  line-height: 1.6;
}

.cat-empty-clear {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--fu);
  font-size: 13px;
  font-weight: 600;
  color: var(--cp-dk);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s;
}

.cat-empty-clear:hover { color: var(--cp-act); }

/* ─── Sidebar: top offset para catalog (header más bajo que buscador) ── */
.results-sidebar { top: var(--header-h, 72px); }

/* ─── Responsive catálogo ────────────────────────────────────────────── */
@media (min-width: 861px) {
  .btn-filter-open { display: none; }
}
