/* Modal Q reutilizable para todos los formularios */
#modal-q {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
}
#modal-q .modal-content {
  background: #fff;
  color: #181828;
  border-radius: 24px;
  padding: 40px 30px 30px 30px;
  text-align: center;
  min-width: 320px;
  max-width: 90vw;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  transition: all 0.3s ease;
  position: relative;
}

#modal-q .close {
  position: absolute;
  right: 15px;
  top: 15px;
  width: 30px;
  height: 30px;
  border: none;
  background: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  padding: 0;
  line-height: 1;
}

#modal-q .close:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: blueviolet;
  transform: rotate(90deg);
}
#modal-q .modal-content.error {
  color: #d32f2f;
  border: 2px solid #d32f2f;
}
#modal-q .modal-content button {
  margin: 10px;
  padding: 12px 32px;
  border-radius: 8px;
  border: none;
  background: blueviolet;
  color: #fff;
  font-size: 1.2em; 
  cursor: pointer;
  transition: background 0.2s;
}
#modal-q .modal-content.error button {
  background: #d32f2f;
}
#modal-q .modal-content button:hover {
  background:rgb(101, 33, 165);;
}
