/* =========================================================
   CARNET REAL · credencial descargable por ejemplar
   ========================================================= */
.ej-carnet-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55ch;
  min-height: 46px; padding: 0 18px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--gold); background: linear-gradient(120deg, var(--gold-soft), var(--gold));
  color: var(--primary); font: 800 .82rem/1 "Montserrat", Arial, sans-serif; letter-spacing: .04em;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.ej-carnet-btn:hover { filter: brightness(1.04); transform: translateY(-1px); box-shadow: 0 10px 22px -10px rgba(92, 60, 28, .45); }
.ej-carnet-btn:active { transform: translateY(0); }
.ej-carnet-btn i { font-size: .95em; }
.ej-carnet-btn[data-busy="true"] { pointer-events: none; opacity: .7; }
.ej-carnet-btn[data-busy="true"] i { animation: ejc-spin 1s linear infinite; }
@keyframes ejc-spin { to { transform: rotate(360deg); } }

.ejc-modal {
  position: fixed; inset: 0; z-index: 1100; display: none; align-items: center; justify-content: center;
  padding: 24px; background: rgba(20, 12, 6, .82); backdrop-filter: blur(4px);
}
.ejc-modal.is-open { display: flex; }
.ejc-modal__panel {
  position: relative; width: min(92vw, 380px); background: var(--white); border-radius: var(--radius-lg);
  padding: 18px 18px 22px; box-shadow: var(--shadow-lg); text-align: center; max-height: 92vh; overflow: auto;
}
.ejc-modal__close {
  position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border: 0; border-radius: 50%;
  background: rgba(92, 60, 28, .08); color: var(--primary); cursor: pointer; font-size: 1.1rem; line-height: 1;
}
.ejc-modal__close:hover { background: rgba(92, 60, 28, .16); }
.ejc-modal img { width: 100%; border-radius: 14px; box-shadow: var(--shadow-sm); margin-top: 6px; }
.ejc-modal p { margin: .9rem 0 0; font-size: .82rem; color: var(--text-soft); }
.ejc-modal__actions { display: flex; gap: 10px; margin-top: 1rem; }
.ejc-modal__actions .btn { width: auto; flex: 1; min-height: 46px; }
