/* 1. Fondo oscuro (Overlay) que cubre toda la pantalla */
.modal-box {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5); /* Fondo oscuro con transparencia */
  backdrop-filter: blur(5px); /* Efecto cristalino moderno */
  
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

/* 2. Clase para activar el modal (usar con JS para mostrarlo) */
.modal-box.is-active {
  opacity: 1;
  visibility: visible;
  
}

/* 3. Contenedor principal del Modal */
.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* Ajusta el centro exacto del elemento */

  
  background: #ffffff;
  border-radius: 12px;
  /*box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);*/
  /*transform: scale(0.9);*/
  /*transition: transform 0.3s ease;*/

  
}

.modal-box.is-active .modal-content {
  /*transform: scale(1);*/
}

/* 4. Botón de cierre */
.close-modal {

  position: absolute;
  top: 15px;      /* Distancia desde arriba */
  right: 15px;    /* Distancia desde la derecha */
  background: #f1f1f1; /* Un color de fondo suave */
  border: none;
  border-radius: 50%; /* Forma circular */
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;

  display: flex;
  justify-content: center;
  align-items: center;
}
.close-modal i {
  font-size: 1rem;
}
.close-modal:hover {
  background: #e0e0e0;
}


@media (max-width: 600px) {
  .modal-content1 {
    width: 100%;       /* Ocupa todo el ancho */
    height: 100%;      /* Ocupa todo el alto */
    max-width: none;   /* Elimina la restricción de ancho */
    border-radius: 0;  /* Elimina bordes redondeados en móvil */
    padding: 1.5rem;   /* Ajusta el padding interno */
    overflow-y: auto;  /* Permite scroll si el contenido es largo */
  }
}