/* ==========================================================
   Medidor de NEP — estilos de la página del test
   ========================================================== */
.test-header { justify-content: space-between; }
.test-header-title { font-weight: 600; font-style: italic; color: var(--accent); }
.test-header .btn-header { min-height: 44px; padding: 0 22px; font-size: 14px; }

.quiz {
  max-width: 820px; margin: 0 auto;
  min-height: calc(100svh - 120px);
  padding: 140px 24px 80px;
  display: grid;
}
.step {
  grid-area: 1 / 1;
  text-align: center;
  opacity: 0; visibility: hidden;
  transform: translateY(30px) scale(.98);
  filter: blur(6px);
  transition: opacity .6s var(--ease), transform .7s var(--ease), filter .6s var(--ease), visibility 0s .7s;
}
.step.is-active {
  opacity: 1; visibility: visible; transform: none; filter: none;
  transition: opacity .7s var(--ease) .1s, transform .8s var(--ease) .1s, filter .7s var(--ease) .1s, visibility 0s;
}
.step.is-leaving { transform: translateY(-30px) scale(.98); }

.quiz-title { margin-top: 10px; font-weight: 800; font-size: clamp(34px, 5vw, 60px); line-height: 1.1; color: var(--ink-soft); }
.quiz .lead { max-width: 640px; margin: 20px auto 0; }

/* Campos en cápsula */
.task-form, .contact-form { max-width: 560px; margin: 40px auto 0; display: grid; gap: 14px; justify-items: center; }
.field-label { font-weight: 600; font-size: 17px; margin-bottom: 4px; }
.task-form .btn, .contact-form .btn { margin-top: 10px; min-width: 220px; }

.mini-steps { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 28px; margin-top: 56px; font-size: 15px; color: var(--muted); }
.mini-steps li { display: flex; align-items: center; gap: 10px; }

/* Preguntas */
.progress { display: flex; justify-content: center; gap: 10px; margin-bottom: 28px; }
.progress span {
  width: 14px; height: 14px; border-radius: 50%;
  border: 1px solid var(--line);
  transition: background-color .5s var(--ease), transform .5s var(--ease);
}
.progress span.done { background: var(--accent); }
.progress span.current { transform: scale(1.35); border-color: var(--accent); }
.q-count { font-style: italic; font-weight: 600; color: var(--accent); }
.q-context { margin-top: 18px; color: var(--muted); font-size: 16px; }
.q-context strong { color: var(--ink); font-weight: 600; }
.q-text {
  max-width: 720px; margin: 18px auto 0; min-height: 3.6em;
  font-weight: 700; font-size: clamp(24px, 3.4vw, 38px); line-height: 1.3; color: var(--ink-soft);
}
.answers { display: flex; justify-content: center; gap: 22px; margin-top: 44px; flex-wrap: wrap; }
.answer {
  width: 190px; height: 190px; border-radius: 50%;
  border: 1px solid var(--line); background: transparent; color: var(--ink);
  font: 600 19px var(--font); cursor: pointer; position: relative;
  transition: transform .45s var(--ease), background-color .45s var(--ease), color .45s var(--ease), border-color .45s var(--ease);
}
.answer::after {
  content: ""; position: absolute; inset: -9px; border-radius: 50%;
  border: 1px solid var(--line-soft);
  transition: inset .5s var(--ease), border-color .5s var(--ease);
}
.answer:hover { transform: translateY(-4px); border-color: var(--accent); }
.answer:hover::after { inset: -15px; border-color: rgba(255, 235, 132, .3); }
.answer.is-picked { background: var(--accent); color: #161313; }
.link-back {
  margin-top: 40px; background: none; border: 0; color: var(--muted);
  font: 400 15px var(--font); cursor: pointer; padding: 8px 16px; border-radius: var(--pill);
}
.link-back:hover { color: var(--accent); }

/* Contacto */

/* Resultado */
.r-task { margin-top: 6px; font-weight: 700; font-size: 22px; }
.r-main { display: flex; align-items: center; justify-content: center; gap: 48px; margin-top: 40px; text-align: left; flex-wrap: wrap; }
.r-circle {
  width: 210px; height: 210px; border-radius: 50%;
  background: var(--accent); color: #161313;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: 0 0 0 12px var(--bg), 0 0 0 13px var(--line);
  flex: 0 0 auto;
}
.r-circle.lvl-bajo { background: var(--lime); }
.r-circle.lvl-alto { background: var(--accent-strong); }
.r-nep { font-weight: 800; font-size: 86px; line-height: 1; }
.r-of { font-weight: 500; }
.r-copy { max-width: 420px; }
.r-pill { display: inline-block; padding: 7px 16px; border-radius: var(--pill); border: 1px solid var(--accent); color: var(--accent); font-size: 14px; font-weight: 600; }
.r-type { margin-top: 14px; font-weight: 800; font-size: 26px; color: var(--ink-soft); }
.r-copy p { margin-top: 10px; line-height: 1.8; }
.r-tip { font-style: italic; color: var(--accent); }

.r-scale { display: flex; justify-content: center; gap: 10px; margin-top: 56px; }
.r-scale span {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line-soft); color: var(--muted);
  display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px;
  transition: background-color .5s var(--ease), color .5s var(--ease), transform .5s var(--ease);
}
.r-scale span.on { color: #161313; border-color: transparent; }
.r-scale span.z-bajo.on { background: var(--lime); }
.r-scale span.z-medio.on { background: var(--accent); }
.r-scale span.z-alto.on { background: var(--accent-strong); }
.r-scale span.here { transform: scale(1.18); box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--ink); }
.r-zones { display: grid; grid-template-columns: 3fr 3fr 4fr; max-width: 552px; margin: 12px auto 0; font-size: 13px; color: var(--muted); }

.r-sub { margin-top: 72px; }
.r-intro { max-width: 620px; margin: 10px auto 26px; color: var(--muted); line-height: 1.8; }
.r-bars-pillars i { background: var(--ink-soft); }
.r-profile .r-tagline { font-style: italic; color: var(--accent); margin-top: -6px; }
.r-profile.is-pillar { border-color: var(--accent); background: rgba(255, 235, 132, .04); }
.r-profile .r-links { font-size: 14px; color: var(--muted); font-style: italic; }
.r-bars { max-width: 620px; margin: 0 auto; display: grid; gap: 14px; text-align: left; }
.r-bars li { display: grid; grid-template-columns: 210px 1fr 48px; align-items: center; gap: 14px; font-size: 15px; }
.r-bar { height: 12px; border-radius: var(--pill); background: rgba(255, 242, 242, .08); overflow: hidden; }
.r-bar i { display: block; height: 100%; width: 0; border-radius: var(--pill); background: var(--accent); transition: width 1.2s var(--ease) .3s; }
.r-bars b { text-align: right; }

.r-profile {
  max-width: 680px; margin: 36px auto 0; padding: 56px 64px;
  border: 1px solid var(--line); border-radius: 120px; text-align: left;
}
.r-profile .eyebrow { font-size: 16px; }
.r-profile h3 { font-weight: 800; font-size: 26px; color: var(--ink-soft); margin: 4px 0 14px; }
.r-profile h4 { margin: 18px 0 4px; font-size: 15px; color: var(--accent); }
.r-profile p, .r-profile li { line-height: 1.75; font-size: 15px; }
.r-profile ul { display: grid; gap: 4px; }
.r-profile li::before { content: "·"; color: var(--accent); font-weight: 800; margin-right: 8px; }

.r-mail { margin: 48px auto 0; max-width: 560px; padding: 18px 28px; border-radius: var(--pill); border: 1px solid var(--line-soft); font-size: 15px; }
.r-actions { display: flex; justify-content: center; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.r-cta { margin-top: 72px; }

@media (max-width: 640px) {
  .test-header-title { display: none; }
  .quiz { padding-top: 120px; }
  .answer { width: 140px; height: 140px; font-size: 17px; }
  .r-main { gap: 32px; text-align: center; }
  .r-scale { gap: 5px; }
  .r-scale span { width: 30px; height: 30px; font-size: 12px; }
  .r-zones { max-width: 340px; }
  .r-bars li { grid-template-columns: 1fr 40px; }
  .r-bars .r-bar { grid-column: 1 / -1; grid-row: 2; }
  .r-profile { padding: 44px 32px; border-radius: 56px; }
}

.r-task + .mail-alert { max-width: 560px; margin: 24px auto 0; }
