/* === 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;
  padding: 30px;
  border-radius: 12px;
}

.contenido {
  width: 100%;
  max-width: 550px;
  text-align: left;
}

.logo-texto {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

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

.texto h2 {
  margin: 0;
  line-height: 1.2;
}

.subtitulo {
  text-align: center;
  margin-top: 25px;
  font-size: 18px;
}

/* === BOTONES BIENVENIDA === */
.botones-bienvenida {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
  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;
  }
}

/* === 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%;
}


/* === 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 === */
.modal-memanejo {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  max-width: 95vw;
  max-height: 95vh;
  overflow-y: auto;
  z-index: 9999;
}

.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;
  margin-bottom: 10px;
  border-radius: 3%;
}

.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: 10px;
  align-items: center;
}

.modal-buttons .btn,
.modal-buttons a.btn {
  width: 250px;
  height: 50px;
  font-size: 12px;
  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;
}
.volver-inicio {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #ccc;
  font-size: 14px;
  text-decoration: none;
  margin-top: 55px;
  width: 100%;
  text-align: center;
  
}

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

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