/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

/* Fondo */


/* Botón principal */
.center button {
  background: #4a3aff;
  color: #fff;
  font-weight: 600;
  padding: 12px 28px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(74, 58, 255, 0.3);
}

.center button:hover {
  background: #372bd8;
  transform: translateY(-2px);
}

/* Fondo del popup */
.popup {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

.popup.oculto {
  display: none;
}
.popup {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
  z-index: 9999;
  pointer-events: auto; /* habilita eventos dentro */
}

.popup.oculto {
  display: none;
}

/* 🔹 Este truco bloquea clicks al fondo */
body.popup-activo {
  overflow: hidden;         /* evita scroll del fondo */
  pointer-events: none;     /* bloquea clics del fondo */
}

body.popup-activo .popup {
  pointer-events: auto; /* pero deja clic dentro del popup */
}


/* Caja del formulario */
/* Caja del formulario */
.popup-content {
    background: #fff;
    width: 95%;
    max-width: 430px;
    max-height: 71vh;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    position: relative;
    animation: slideUp 0.4s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin-top: 160px;
}

/* Contenedor interno con scroll */
.scrollable {
  flex: 1;
  overflow-y: auto;
  padding: 30px 25px;
}

/* Scroll personalizado */
.scrollable::-webkit-scrollbar {
  width: 8px;
}

.scrollable::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.scrollable::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #7ecf7e, #00ffc8);
  border-radius: 10px;
}

.scrollable::-webkit-scrollbar-thumb:hover {
  background: #2bd890;
}


/* Botón cerrar */
.clase-btn {
  position: absolute;
  top: 12px;
  right: 15px;
  font-size: 22px;
  color: #888;
  cursor: pointer;
  transition: color 0.2s ease;
}

.clase-btn:hover {
  color: #000;
}

/* Título */
.form h2 {
  text-align: center;
  color: #333;
  margin-bottom: 20px;
  font-size: 24px;
}

/* Campos */
form label {
  display: block;
  margin-top: 12px;
  color: #444;
  font-weight: 500;
}

form input[type="text"],
form input[type="tel"],
form input[type="datetime-local"],
form select,
form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  margin-top: 6px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

form input:focus,
form select:focus,
form textarea:focus {
  border-color: #4a3aff;
  box-shadow: 0 0 0 3px rgba(74, 58, 255, 0.1);
  outline: none;
}

textarea {
  min-height: 80px;
  resize: vertical;
}

/* Urgencia */
.urgencia-grupo {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.urgencia.emergencia { color: #ff3b3b; }
.urgencia.urgente { color: #ff9800; }
.urgencia.normal { color: #388e3c; }

/* Fecha */
.fechaNormalContainer { margin-top: 10px; }

.oculto { display: none; }

/* Checkbox */
.condiciones {
  margin-top: 12px;
  font-size: 13px;
  color: #555;
}

.condiciones a {
  color: #4a3aff;
  text-decoration: none;
}

.condiciones a:hover {
  text-decoration: underline;
}

/* Botón enviar */
.enviar-btn {
  margin-top: 18px;
  width: 100%;
  background: #4a3aff;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(74, 58, 255, 0.25);
}

.enviar-btn:hover {
  background: #372bd8;
  transform: translateY(-2px);
}

/* Animaciones */
@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}

@keyframes slideUp {
  from {transform: translateY(50px); opacity: 0;}
  to {transform: translateY(0); opacity: 1;}
}
