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

::backdrop {
  background: #FFC59C;
  backdrop-filter: blur(0.25rem);
  opacity: 0.92;
}

/* General del modal */


.dialog-modal {

  border: none;
  border-radius: 0;
  padding: 0;
  width: 90%;
  max-width: 500px;
  background: #fff; /* Fondo blanco */
  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 */
  outline: none;
  display: block;
  pointer-events: none;
	
}


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

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

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


/* Boton de cierre */
.close-modal {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 0;
  z-index: 2;
  width: 2rem;
  display: flex;
  padding: 0.2rem;
  cursor: pointer;
}

.close-modal svg{
  width: 100%;
  display: block;
}
.close-modal svg *{
  stroke-width: 1px;
  color: var(--primary);
  }

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



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

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

.dialog-modal.dialog-large .modal-content .h2{
  font-size: 2rem;
}

.dialog-modal .content{
  min-height: 400px;
  padding: 2rem;
}

/* Responsivo */
@media (min-width: 992px) {
  .dialog-modal {
  }
    
  .close-modal {
    color: #000;
  }

  .dialog-modal .content{
    padding: 3rem 3rem 3rem 3rem;
    min-height: 500px;
  }
  

  .dialog-modal.dialog-large .modal-content{
    padding: 4rem 5rem;
  }
  .dialog-modal.dialog-large .modal-content .h2{
    font-size: 3rem;
  }
}
