/* === GENERAL === */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #121212;
  color: #fff;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  overflow: hidden;
}
/* === CONTENEDOR DE PREGUNTA === */
#quiz-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  max-width: 600px; /* 🔧 limita el ancho */
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

#question {
  width: 100%;
  max-width: 550px; /* 🔧 límite visual del texto */
  text-align: left; /* o center si prefieres */
  margin-bottom: 25px;
  font-size: 20px;
  line-height: 1.5;
}
/* === PANTALLA DE BIENVENIDA === */
#pantalla-bienvenida {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
  text-align: left;
}

.contenido {
  display: flex;
  flex-direction: column;
  align-items: center;  /* centra el bloque completo */
  justify-content: center;
  text-align: left;
  max-width: 600px;
  width: 100%;
}

.logo-texto {
  display: flex;
  align-items: center;      /* centra logo y texto verticalmente */
  justify-content: center;  /* centra el conjunto en pantalla */
  gap: 20px;
}

.logo-bienvenida {
  width: 100px;
  height: 100px;
  object-fit: contain;
  border-radius: 20px;
}

.logo-texto h2 {
  margin: 0;
  font-size: 26px;
  line-height: 1.2;
  text-align: left;       /* justifica texto a la izquierda */
}

.subtitulo {
  text-align: center;
  margin-top: 35px; /* antes 25px */
  margin-bottom: 5px; /* 🔧 nuevo: acerca el texto al formulario */
  font-size: 18px;
}

/* === BOTONES BIENVENIDA === */
.botones-bienvenida {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 2px;
  flex-wrap: wrap;
}

.btn {
  position: relative;
  overflow: hidden;
  padding: 12px 20px;
  font-size: 16px;
  border: none;
  border-radius: 36px;
  background-color: #007bff;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-align: center;
  min-width: 200px;
  min-height: 50px;
  z-index: 1;
}

.btn::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  background-color: rgba(0, 255, 21, 0.2);
  transition: width 0.4s ease;
  z-index: 0;
}

.btn:hover::before {
  width: 100%;
}

.btn:hover {
  background-color: #00a759;
}

.btn.correct {
  background-color: #28a745 !important;
}

.btn.wrong {
  background-color: #df0016 !important;
  color: #df0016 !important;
}

/* Estado hover normal */
.btn.wrong:hover {
  background-color: #ffffff !important;
  color: #df0016 !important;
}

/* Estado seleccionado (mantiene hover activo) */
.btn.selected-wrong {
  background-color: #ffffff !important;
  color: #df0016 !important;
  border: 2px solid #df0016;
}

/* === RESPONSIVE === */
@media (max-width: 600px) {

  .botones-bienvenida {
    flex-direction: column;
    gap: 15px;
  }

  .btn {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }
}
/* === FORMULARIO USUARIO (pantalla bienvenida) === */
#form-usuario {
  margin-top: 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

#form-usuario input {
  width: 90%;
  max-width: 300px;
  padding: 12px;
  border-radius: 30px;
  border: none;
  font-size: 16px;
  text-align: center;
  background-color: #1e1e1e;
  color: white;
  outline: none;
  transition: all 0.3s ease;
}

#form-usuario input::placeholder {
  color: #888;
}

#form-usuario input:focus {
  background-color: #2d2d2d;
}

#form-usuario button {
  margin-top: 10px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 36px;
  padding: 12px 20px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#form-usuario button:hover {
  background-color: #00a759;
}
/* === BOTÓN SIGUIENTE === */
.next-btn {
  margin-top: 20px;
  padding: 8px 24px;
  font-size: 16px;
  background-color: #3429ff;
  color: white;
  border: none;
  border-radius: 36px;
  cursor: pointer;
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.next-btn::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  background-color: rgba(4, 0, 255, 0.2);
  transition: width 0.4s ease;
  z-index: 0;
}

.next-btn:hover::before {
  width: 100%;
}
.texto-privacidad {
  font-size: 11px;
  color: #aaa;
  text-align: center;
  max-width: 300px;
  line-height: 1.3;
  margin-top: 6px;
  opacity: 0.8;
}
/* === BOTÓN VOLVER === */
.btn-volver {
  margin-top: 20px;
  padding: 12px 34px;
  font-size: 16px;
  color: #bbb;
  border: none;
  border-radius: 36px;
  cursor: pointer;
  text-align: center;
  background-color: transparent;
}

.btn-volver:hover {
  color: #bbb;
  transform: translateX(-6px);
}
#progress {
  margin-bottom: 15px; /* separa el número de la pregunta de los botones */
  font-weight: bold;
  text-align: center;
}

/* === MODAL === */
.contenido-modal {
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  color: white;
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

.modal-memanejo.oculto {
  display: none;
}

.contenido-modal {
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  color: white;
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

.logo-modal {
  width: 220px;
  border-radius: 4px;
}

.titulo-modal {
  font-size: 16px;
  margin-bottom: 5px;
}

.texto-puntaje-modal {
  font-size: 16px;
}

.modal-buttons {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
  align-items: center;
}

.modal-buttons .btn,
.modal-buttons a.btn {
  width: 250px;
  height: 50px;
  font-size: 16px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  background-color: #007bff;
  color: #fff;
  border-radius: 24px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
}

.modal-buttons .btn::before,
.modal-buttons a.btn::before {
  display: none;
}

.modal-buttons .btn:hover,
.modal-buttons a.btn:hover {
  background-color: #2d2d2d;
}

.mensaje-pantallazo {
  font-size: 12px;
  color: #ccc;
  margin-bottom: 20px;
}
/* ✅ CENTRADO REAL DE LA BIENVENIDA SIN AFECTAR AL QUIZ */
#pantalla-bienvenida {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 600px;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  box-sizing: border-box;
}

#pantalla-bienvenida .contenido {
  width: 100%;
}

#form-usuario {
  margin-top: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.btn i {
  margin-right: 8px;
  font-size: 1rem;
  vertical-align: middle;
}
.volver-inicio {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #ccc;
  text-decoration: none;
  margin-top: 10px;
}

.volver-inicio i {
  font-size: 13px;
}

.volver-inicio:hover {
  color: #fff;
  transform: translateX(-6px);
  transition: color 0.3s;
}
