.custom-modal {
  display: block;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  position: fixed;
  z-index: 99999 !important; /* Muy alto para asegurarse que esté al frente */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

.custom-modal.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.custom-modal-dialog {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 90%;
  /*max-width: 750px;*/
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease;
  overflow: auto;
}

.custom-modal-content {
  background-color: #fff;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.custom-modal-scroll {
  max-height: 60vh; /* o el valor que prefieras */
  overflow-y: auto;
}

/* Resto igual */
.custom-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
}

.custom-close {
  cursor: pointer;
  font-size: 1.5rem;
}

.custom-modal-body {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.custom-modal-footer {
  text-align: right;
}

/* Opcional: ajusta para móviles */
@media (max-width: 576px) {
  .custom-modal-dialog {
    width: 100%;
    max-width: none;
    border-radius: 0;
  }

  .custom-modal-content {
    border-radius: 0;
  }
}
