@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&display=swap');

/* --- Reset básico --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: url('css/Fondo_Web.jpg') no-repeat center center fixed;
  background-size: cover;
  color: #fff; /* Texto claro sobre fondo oscuro */
  line-height: 1.6;
  padding: 20px;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/* --- Contenedor principal --- */
.container {
  background-color: rgba(0, 0, 0, 0.6); /* Fondo semitransparente para contraste */
  border-radius: 15px;
  padding: 30px 20px;
  max-width: 800px;
  width: 100%;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
  text-align: center;
  animation: fadeIn 1s ease-in;
  color: #fff;
}

/* --- Títulos --- */
h1, h2, h3 {
  color: #0D31EF;
  margin-bottom: 15px;
}

p {
  margin-bottom: 20px;
}

/* --- Formularios --- */
form {
  background: rgba(255, 255, 255, 0.1); /* Ligera transparencia */
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

input[type="text"],
input[type="number"],
input[type="password"],
select,
textarea {
  width: 100%;
  padding: 12px;
  margin: 10px 0 20px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.85);
  color: #333;
}

input::placeholder,
textarea::placeholder {
  color: #777;
}

textarea {
  resize: none;
  height: 90px;
}

/* --- Botones --- */
button,
.boton {
  background-color: #0D31EF;
  color: #fff;
  border: none;
  padding: 12px 20px;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  margin: 10px 5px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

button:hover,
.boton:hover {
  background-color: #0B26B8;
  transform: scale(1.05);
}

/* --- Modal --- */
.modal {
  display: flex;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal-content {
  background-color: #fff;
  color: #333;
  padding: 25px 30px;
  border-radius: 10px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  animation: scaleIn 0.4s ease forwards;
}

.modal-content button {
  margin: 8px;
  background-color: #0D31EF;
}

.modal-content button:hover {
  background-color: #0B26B8;
}

/* --- Preguntas y opciones --- */
.pregunta {
  margin-bottom: 25px;
  text-align: center;
}

.pregunta p {
  font-weight: 600;
  margin-bottom: 12px;
}

.opciones {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.opciones label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  cursor: pointer;
}

.opciones input[type="radio"] {
  transform: scale(1.2);
}

/* --- Animaciones --- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* --- Responsividad --- */
@media (max-width: 768px) {
  .container {
    padding: 20px 15px;
  }

  form {
    padding: 15px;
  }

  button,
  .boton {
    font-size: 15px;
    padding: 10px 16px;
  }

  h1, h2, h3 {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  form {
    padding: 10px;
  }

  input, textarea, select {
    font-size: 14px;
    padding: 10px;
  }

  .modal-content {
    padding: 20px;
  }
}
