/* =========================================================
   MBM TEST – AISLAMIENTO TOTAL
========================================================= */

#mbm-test {
  min-height: 100vh;
  background: #fbf6ef;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #2e2a26;
}

/* =========================
   VARIABLES
========================= */

#mbm-test {
  --bg-page: #f7f0e6;
  --card-bg: #fff7ec;
  --accent: #0b5939;
  --accent-soft: #e3d2b8;
  --text-main: #3b2f2a;
  --text-soft: #7a6d63;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.08);
  --radius-card: 24px;
  --transition: 0.25s ease;
  --font-serif: "Lora", "Georgia", serif;
}

/* =========================
   RESET LOCAL
========================= */

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

/* =========================
   CONTENEDOR GENERAL
========================= */

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

  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* =========================
   TARJETAS
========================= */

#mbm-test .card {
  width: 100%;
  background: var(--card-bg);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  padding: 32px 28px 28px;
  margin-bottom: 32px;
}

/* =========================
   PORTADA
========================= */

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

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

#mbm-test .titulo-portada {
  font-family: var(--font-serif);
  font-size: 34px;
  margin: 4px 0 6px;
}

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

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

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

/* Botón portada */
#mbm-test .btn-portada {
  padding: 12px 28px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  color: #fff;
  background: linear-gradient(120deg, #0b5939, #168555);
  box-shadow: 0 12px 24px rgba(6, 65, 41, 0.38);
  transition: transform var(--transition), box-shadow var(--transition);
}

#mbm-test .btn-portada:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 38px rgba(6, 65, 41, 0.4);
}

/* =========================
   TEST
========================= */

#mbm-test #testContainer {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}

/* Progreso */

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

#mbm-test .question-counter {
  font-size: 14px;
  color: var(--text-soft);
}

#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;
}

/* Pregunta */

#mbm-test .question-text {
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.55;
  margin: 6px 0 22px;
}

/* Opciones */

#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;
  transition: background 0.2s ease, border-color 0.2s ease;
}

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

#mbm-test .option input[type="radio"] {
  accent-color: var(--accent);
}

/* Navegación */

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

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

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

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

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

/* =========================
   PIE
========================= */

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

/* =========================
   UTILIDADES
========================= */

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

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 640px) {

  #mbm-test .card {
    padding: 24px 18px;
  }

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

  #mbm-test .question-text {
    font-size: 20px;
  }
}

@media (max-width: 480px) {

  #mbm-test #testContainer {
    padding: 0 12px;
  }
}

/* =========================================================
   AJUSTE FINAL BOTONES TEST
========================================================= */

.nav-row {
  gap: 14px;
}

.btn-secondary {
  background: #e6ddd0;
  color: #6b6258;
}

.btn-secondary:disabled {
  background: #eae3d8;
  color: #a49a8f;
  opacity: 1;
}

.btn-primary {
  background: linear-gradient(120deg, #0b5939, #168555);
}

.btn-primary:active {
  transform: translateY(1px);
}

/* =========================================================
   CTA TEST – PULIDO FINAL
========================================================= */

#mbm-test .btn-primary {
  height: 52px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 999px;
}

#mbm-test .btn-secondary {
  height: 52px;
  font-size: 14px;
  border-radius: 999px;
}

/* =========================================================
   PORTADA — Botón "Comenzar el test" (respira y queda elegante)
========================================================= */

#portada .center {
  margin-top: 22px;           /* aire respecto al texto */
  display: flex;
  justify-content: center;
}

#portada #btnComenzar {
  height: 52px;
  padding: 0 32px;
  min-width: 220px;

  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;
}

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

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

#portada #btnComenzar:focus-visible {
  outline: 3px solid rgba(11, 89, 57, 0.22);
  outline-offset: 3px;
}

/* Móvil: botón con ancho cómodo sin pegarse a bordes */
@media (max-width: 480px) {
  #portada #btnComenzar {
    width: 100%;
    max-width: 320px;
  }
}

/* =========================================================
   FIX: separación nav / footnote y exceso de espacio inferior
   Pegar AL FINAL de public/tests/bondad/test.css
========================================================= */

/* Más aire entre botones y texto legal */
#testContainer .nav-row{
  margin-bottom: 16px !important;
}

/* Que el texto legal no quede pegado */
#testContainer .footnote{
  margin: 12px 0 0 !important;
  padding-top: 8px !important;
}

/* Reduce “suelo” general del test (ese vacío enorme) */
.page{
  padding-bottom: 18px !important;
}

/* Footer del test: menos separación y menos padding */
.test-footer{
  margin-top: 14px !important;
  padding: 10px 0 14px !important;
}

