/* =============================================
   CERT MODAL — modal para certificados
   ============================================= */

.cert-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.cert-modal.active { opacity: 1; pointer-events: all; }

.cert-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.88);
  cursor: pointer;
}

.cert-modal__box {
  position: relative;
  z-index: 1;
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 28px 24px 24px;
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0,0,0,0.7);
  animation: certSlideIn 0.22s ease;
}
@keyframes certSlideIn {
  from { transform: translateY(12px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.cert-modal__close {
  position: absolute;
  top: 14px; right: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  width: 32px; height: 32px;
  border-radius: 50%;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease;
}
.cert-modal__close:hover { background: #E84E1B; border-color: #E84E1B; }

.cert-modal__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #E84E1B;
  margin-bottom: 16px;
  padding-right: 36px;
}

.cert-modal__body {
  width: 100%;
}

.cert-modal__img {
  width: 100%;
  border-radius: 6px;
  display: block;
  border: 1px solid rgba(255,255,255,0.07);
}

/* Estado vacío (cuando aún no hay imagen) */
.cert-modal__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  gap: 10px;
  color: #555;
  text-align: center;
}
.cert-modal__empty span {
  font-size: 2rem;
}
.cert-modal__empty p {
  font-size: 0.8rem;
  line-height: 1.5;
  max-width: 280px;
}
.cert-modal__empty code {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.72rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  padding: 2px 8px;
  color: #E84E1B;
  letter-spacing: 0.03em;
}
