/****************************************************/
/* CUSTOM MODAL */
/****************************************************/

::backdrop {
  background-image: linear-gradient(
    45deg,
    var(--color-alt),
    var(--color-primary),
    var(--color-alt),
    var(--color-primary)
  );
  opacity: 0.75;
}

/* General del modal */


.dialog-modal {
  border: none;
  border-radius: 0;
  padding: 0;
  width: 90%;
  max-width: 500px;
  background: #fff; /* Fondo blanco */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 1100;
  margin: 2rem auto 0;
  transform: scale(0.8); /* Estado inicial para animacion */
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease; /* Transicion para entrada/salida */
}


.dialog-modal[open] {
  transform: scale(1); /* Escala completa */
  opacity: 1; /* Visible */
}

/* Estilo del contenido */
.modal-content {
  padding: 20px;
  max-height: 60vh;
  overflow-y: auto; /* Scroll para el contenido */
	scrollbar-width: none; /* Firefox */
	-ms-overflow-style: none; /* Internet Explorer y Edge */
}

.modal-content::-webkit-scrollbar {
	display: none; /* Chrome, Safari */
}


/* Boton de cierre */
.close-modal {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #555;
  cursor: pointer;
  background-color: transparent !important;
  aspect-ratio: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.4rem;
}

.close-modal:hover {
  color: #000;
}



.dialog-modal.dialog-medium {
  max-width: 700px;
}
.dialog-modal:not(.custom-popup).dialog-medium .modal-content {
  max-height: calc(80vh - 4rem);
  height: calc(80vh - 4rem);
	
}

.dialog-modal.dialog-large {
  max-width: 1000px;
}
.dialog-modal:not(.custom-popup).dialog-large .modal-content {
  max-height: calc(100vh - 4rem);
  height: calc(100vh - 4rem);
	
}
.custom-popup .modal-content{
	max-height: none;
}


/* Responsivo */
@media (max-width: 600px) {
  .dialog-modal {
    width: 95%;
  }
}
