.modal-demo1 {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-demo {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 16px; /* 👈 margen en móviles */
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  box-sizing: border-box;
}



.modal-demo-content {
  background: #fff;
  padding: 30px;
  max-width: 440px;
  width: 90%;
  border-radius: 10px;
  position: relative;
  animation: modalFade 0.3s ease;
}

.modal-demo-cerrar {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 34px;
  height: 34px;
  background: #1FA3B1;
  color: #ffffff;
  border-radius: 50%;
  font-size: 22px;
  font-weight: bold;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(31, 163, 177, 0.45);
  transition: transform 0.2s ease, background-color 0.2s ease;
  user-select: none;
}

.modal-demo-cerrar:hover {
  background: #178A96;
  transform: scale(1.1);
}

.modal-demo-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.modal-demo-form input,
.modal-demo-form textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
}

.modal-demo-form textarea {
  resize: none;
  height: 80px;
}

.modal-demo-form button {
  background: #1FA3B1;
  color: white;
  border: none;
  padding: 14px;
  border-radius: 6px;
  font-size: 16px;
  transition: background-color 0.3s ease;
  cursor: pointer;
}

.modal-demo-form button:hover {
  background: #178A96;
}

/* Animación */
@keyframes modalFade {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}