/* ======== MODAL DE QUIZ ======== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 26, 46, 0.65);
  backdrop-filter: blur(3px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  border-radius: 18px;
  width: 80%;
  max-width: 880px;
  padding: 2.2rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  position: relative;
  animation: modalPop 0.3s ease;
}

@keyframes modalPop {
  from { opacity: 0; transform: translateY(25px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.close-btn {
  position: absolute;
  top: 14px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #133f75;
  cursor: pointer;
  transition: 0.2s;
}
.close-btn:hover { transform: rotate(90deg); color: #0b2654; }

/* === Estructura general === */
.quiz-card-full {
  background: #fff;
  border-radius: 14px;
  padding: 1.6rem 1.8rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

/* === Barra superior === */
.status {
  position: relative;
  margin-bottom: 1rem;
  text-align: center;
}
.status::after {
  content: "";
  display: block;
  height: 1px;
  background: rgba(0,0,0,0.06);
  margin-top: 0.8rem;
}
.status-info {
  position: absolute;
  top: 0;
  right: 0;
  text-align: right;
}
.status-info .small-muted {
  display: block;
  font-size: 0.9rem;
  color: #666;
}

/* === Pregunta === */
.question-number {
  font-weight: 600;
  color: #155099;
  margin-bottom: 0.3rem;
  text-align: center;
}
.question-text {
  font-size: 1.35rem;
  color: #0f2e60;
  margin: 0 auto 1rem auto;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  max-width: 90%;
}

/* === Opciones === */
.options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-bottom: 1rem;
}
.option-btn {
  background: #f2f6ff;
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 1rem 1.2rem;
  cursor: pointer;
  text-align: center;
  font-size: 1rem;
  color: #0f2e60;
  font-weight: 500;
  transition: all 0.2s ease;
}
.option-btn:hover {
  background: #e2ebff;
  border-color: #b5ccff;
  transform: translateY(-2px);
}
.option-btn.correct {
  background: #e7f9ec;
  border-color: #3fb95e;
  color: #145d2c;
}
.option-btn.wrong {
  background: #fde7e7;
  border-color: #e05b5b;
  color: #812929;
}

/* === Controles === */
.controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.4rem;
}
.btn-primary {
  background: linear-gradient(90deg, #1d5bbf, #144285);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 0.7rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(29, 91, 191, 0.3);
  transition: all 0.2s ease;
}
.btn-primary:hover {
  background: linear-gradient(90deg, #2a6be3, #184b8e);
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(29, 91, 191, 0.4);
}
.small-muted {
  font-size: 0.85rem;
  color: #7a7a7a;
  text-align: center;
}

/* === Resultado === */
.result-screen {
  text-align: center;
  padding: 1rem;
}
.result-screen h2 {
  color: #133f75;
  margin-bottom: 0.5rem;
}
.result-screen p {
  font-size: 1.05rem;
  color: #333;
}
