#mbm-test {
  --mbm-bg: #f6f1e8;
  --mbm-card: #fffaf3;
  --mbm-text: #2f2a26;
  --mbm-muted: #7a6e66;
  --mbm-primary: #0b5939;
  --mbm-border: #e7ddd0;
  min-height: 100vh;
  background: var(--mbm-bg);
  color: var(--mbm-text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

#mbm-test * {
  box-sizing: border-box;
}

#mbm-test .page {
  width: 100%;
  max-width: 880px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 32px 16px 40px;
  display: flex;
  flex-direction: column;
}

#mbm-test .card {
  width: 100%;
  background: var(--mbm-card);
  border: 1px solid var(--mbm-border);
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
  padding: 32px 28px 28px;
  margin-bottom: 32px;
}

#mbm-test .card.portada {
  max-width: 720px;
  margin: auto;
  padding: 48px 42px;
  text-align: center;
}

#mbm-test .logo-portada {
  width: 140px;
  height: auto;
  margin: 0 auto 18px;
  display: block;
}

#mbm-test .titulo-portada {
  font-family: "Lora", serif;
  font-size: 34px;
  margin: 4px 0 6px;
}

#mbm-test .subtitulo-portada {
  font-size: 15px;
  color: var(--mbm-muted);
  margin-bottom: 18px;
}

#mbm-test .frase-portada {
  font-style: italic;
  font-size: 15px;
  margin-bottom: 18px;
  color: var(--mbm-muted);
}

#mbm-test .intro-portada {
  font-size: 15px;
  line-height: 1.6;
  color: var(--mbm-muted);
  margin-bottom: 24px;
}

#mbm-test .center {
  margin-top: 22px;
  display: flex;
  justify-content: center;
}

#mbm-test .progress-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

#mbm-test .progress-bar {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: #f0dfc9;
  overflow: hidden;
}

#mbm-test .progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #0b5939, #25a068);
  transition: width 0.35s ease;
}

#mbm-test #questionText {
  font-family: "Lora", serif;
  font-size: 22px;
  line-height: 1.55;
  margin: 6px 0 22px;
}

#mbm-test .options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 26px;
}

#mbm-test .option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 14px;
  background: #fff7ec;
  border: 1px solid #e6d4b8;
  cursor: pointer;
}

#mbm-test .option:hover {
  border-color: var(--mbm-primary);
  background: #fffaf3;
}

#mbm-test .nav-row {
  display: flex;
  gap: 16px;
  margin-top: 28px;
  margin-bottom: 16px;
}

#mbm-test .btn-primary,
#mbm-test .btn-secondary,
#mbm-test #btnComenzar {
  height: 52px;
  border-radius: 999px;
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 0 24px;
}

#mbm-test .btn-primary,
#mbm-test #btnComenzar {
  background: var(--mbm-primary);
  color: #fff;
}

#mbm-test .btn-secondary {
  background: #f3ebde;
  color: var(--mbm-text);
  border: 1px solid #dcc9ac;
}

#mbm-test .btn-secondary:disabled {
  opacity: 0.45;
  cursor: default;
}

#mbm-test .footnote,
#mbm-test .test-footer {
  font-size: 12.5px;
  color: var(--mbm-muted);
  text-align: center;
}

#mbm-test .footnote {
  margin: 12px 0 0;
  padding-top: 8px;
}

#mbm-test .test-footer {
  margin-top: 14px;
  padding: 10px 0 14px;
}

#mbm-test .hidden {
  display: none;
}

@media (max-width: 640px) {
  #mbm-test .card {
    padding: 24px 18px;
  }

  #mbm-test .titulo-portada {
    font-size: 28px;
  }

  #mbm-test #questionText {
    font-size: 20px;
  }

  #mbm-test .nav-row {
    flex-direction: column;
  }
}

/* =========================
   AJUSTE BOTONES TEST EMPATÍA
========================= */

/* Botón principal de portada */
#mbm-test #btnComenzar {
  width: 100%;
  max-width: 640px;
  height: 52px;
  padding: 0 32px;
  border-radius: 9999px;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 12px 26px rgba(11, 89, 57, 0.22);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

#mbm-test #btnComenzar:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(11, 89, 57, 0.28);
  filter: brightness(1.02);
}

#mbm-test #btnComenzar:active {
  transform: translateY(1px);
  box-shadow: 0 10px 20px rgba(11, 89, 57, 0.22);
}

/* Navegación entre preguntas */
#mbm-test .nav-row {
  display: flex;
  gap: 16px;
  margin-top: 28px;
  margin-bottom: 16px;
}

#mbm-test .nav-row button {
  flex: 1 1 0;
  min-width: 0;
  width: calc(50% - 8px);
  height: 52px;
  padding: 0 24px;
  border-radius: 9999px;
  font-size: 15px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

/* Anterior */
#mbm-test .nav-row #btnAnterior {
  background: transparent;
  color: #a59a8d;
  border: 2px solid #e3d8c7;
}

/* Siguiente */
#mbm-test .nav-row #btnSiguiente {
  background: var(--color-green);
  color: #fff;
  border: 2px solid var(--color-green);
}

/* Estado deshabilitado */
#mbm-test .nav-row button:disabled {
  opacity: 1;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

#mbm-test .nav-row #btnAnterior:disabled {
  background: transparent;
  color: #a59a8d;
  border: 2px solid #e3d8c7;
}

#mbm-test .nav-row #btnSiguiente:disabled {
  background: #d9d9d9;
  color: #ffffff;
  border: 2px solid #d9d9d9;
}

/* Móvil */
@media (max-width: 640px) {
  #mbm-test #btnComenzar {
    max-width: 100%;
  }

  #mbm-test .nav-row {
    flex-direction: row;
    gap: 16px;
  }

  #mbm-test .nav-row button {
    width: calc(50% - 8px);
  }
}

/* =========================================================
   EMPATÍA — refuerzo botones navegación
========================================================= */
#mbm-test .nav-row #btnSiguiente {
  background: var(--mbm-primary) !important;
  color: #fff !important;
  border: none !important;
  opacity: 1 !important;
}

#mbm-test .nav-row #btnAnterior {
  background: #f3ebde;
  color: var(--mbm-text);
  border: 1px solid #dcc9ac;
}

#mbm-test .footnote {
  text-align: center;
}

