/* Estilos para páginas de evaluación */
.eval-hero {
  padding: 80px 0 60px;
  background: var(--bg-soft);
  position: relative;
  overflow: hidden;
}
.breadcrumbs {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--fg-muted); margin-bottom: 32px;
}
.breadcrumbs a:hover { color: var(--fg); }
.breadcrumbs .sep { opacity: 0.4; }

.eval-hero-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 60px; align-items: end; }
.eval-tag {
  display: inline-block;
  background: var(--wm-azul-oscuro); color: #fff;
  padding: 6px 12px; border-radius: var(--r-pill);
  font-size: 12px; font-weight: 500; letter-spacing: 0.05em;
}
.eval-hero h1 { font-size: clamp(36px, 4.4vw, 64px); margin-top: 20px; }
.eval-hero .lead { margin-top: 24px; }

.eval-stats {
  background: #fff; border-radius: var(--r-lg);
  padding: 28px; box-shadow: var(--shadow-sm);
  display: grid; gap: 22px;
}
.eval-stat { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.eval-stat__label { font-size: 12px; color: var(--fg-muted); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500; }
.eval-stat__value { font-size: 16px; font-weight: 600; color: var(--fg); text-align: right; }
.eval-stat + .eval-stat { border-top: 1px solid var(--line-soft); padding-top: 22px; }

.eval-cta-row { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }

.eval-body { padding: 80px 0; }
.eval-body-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 80px; }
.eval-sticky { position: sticky; top: 100px; align-self: start; }
.toc { display: flex; flex-direction: column; gap: 4px; border-left: 1px solid var(--line); padding-left: 20px; }
.toc a { font-size: 14px; color: var(--fg-muted); padding: 8px 0; }
.toc a:hover { color: var(--fg); }

.eval-content > * + * { margin-top: 56px; }
.eval-content h2 { font-size: clamp(24px, 2.2vw, 32px); }
.eval-content h3 { font-size: 20px; margin-bottom: 14px; }
.eval-content p { color: var(--fg-muted); font-size: 16px; line-height: 1.7; max-width: 64ch; }
.eval-content p + p { margin-top: 14px; }
.eval-content ul { margin: 16px 0 0; padding: 0; list-style: none; }
.eval-content ul li {
  position: relative; padding-left: 24px; color: var(--fg-muted); font-size: 15.5px;
  margin-bottom: 12px; line-height: 1.6;
}
.eval-content ul li::before {
  content: ''; position: absolute; left: 0; top: 12px;
  width: 12px; height: 2px; background: var(--wm-rojo);
}

.eval-callout {
  background: var(--wm-azul-oscuro); color: #fff;
  border-radius: var(--r-lg);
  padding: 36px;
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
}
.eval-callout h3 { color: #fff; margin-bottom: 6px; }
.eval-callout p { color: rgba(255,255,255,0.7); font-size: 15px; max-width: 50ch; }

/* ====== Pittsburgh interactive ====== */
.test-section {
  padding: clamp(32px, 5vw, 72px) 0 clamp(72px, 8vw, 96px);
  background: var(--bg-soft);
  min-height: calc(100vh - 200px);
}
.test-section--portal {
  min-height: calc(100vh - 72px);
}
.test-shell {
  background: #fff;
  border-radius: var(--r-xl);
  padding: clamp(32px, 5vw, 56px);
  box-shadow: var(--shadow-md);
  max-width: 760px; margin: 0 auto;
  overflow-anchor: none;
  scroll-margin-top: 96px;
}
.test-backwrap {
  max-width: 760px;
  margin: 0 auto 14px;
}
.test-backlink {
  color: var(--fg-muted);
  font-size: 14px;
}
.test-backlink:hover {
  color: var(--wm-azul-oscuro);
}
.test-shell--portal {
  max-width: 760px;
}
.test-timer-row {
  position: sticky;
  top: 0;
  z-index: 6;
  display: flex;
  justify-content: flex-end;
  margin: -8px 0 14px;
}
.temporizador {
  font-family: ui-monospace, Menlo, monospace;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  background: var(--wm-azul-oscuro);
  padding: 6px 14px;
  border-radius: 999px;
}
.test-progress {
  display: flex; align-items: center; gap: 16px;
  font-size: 13px; color: var(--fg-muted);
  margin-bottom: 40px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.test-bar {
  flex: 1; height: 4px; background: var(--line-soft); border-radius: 2px; overflow: hidden;
}
.test-bar__fill { height: 100%; background: var(--wm-rojo); transition: width .3s ease; }

.test-eyebrow { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--wm-rojo); font-weight: 500; }
.test-shell [data-stepper-target="step"] {
  min-height: 280px;
  overflow-anchor: none;
}
.test-question {
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 600;
  color: var(--fg);
  letter-spacing: -0.015em;
  line-height: 1.3;
  margin: 14px 0 10px;
}
.test-help { font-size: 14.5px; color: var(--fg-muted); margin-bottom: 32px; line-height: 1.55; }

.test-options { display: flex; flex-direction: column; gap: 10px; }
.test-shell--portal .test-options { margin-top: 24px; }
.test-opt {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 22px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: #fff; cursor: pointer; text-align: left;
  font-size: 15.5px; color: var(--fg);
  transition: all .15s ease; width: 100%;
}
.test-opt:hover { border-color: var(--wm-azul-oscuro); background: rgba(45,51,78,0.02); }
.test-opt.selected { border-color: var(--wm-azul-oscuro); background: var(--wm-azul-oscuro); color: #fff; }
.test-opt .radio {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--line); flex-shrink: 0;
  display: grid; place-items: center; transition: all .15s ease;
}
.test-opt.selected .radio { border-color: #fff; background: var(--wm-rojo); }
.test-opt.selected .radio::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #fff; }

/* Temporizador del portal: rojo parpadeante en los últimos 30 s. */
.temporizador--urgente { background: var(--wm-rojo) !important; animation: tempPulse 1s ease-in-out infinite; }
@keyframes tempPulse { 50% { opacity: .55; } }

/* Feedback de selección sin JS (portal del postulante): el radio va oculto y la
   opción elegida se resalta vía :has(). Equivale a la clase .selected. */
.test-opt:has(input:checked) { border-color: var(--wm-azul-oscuro); background: var(--wm-azul-oscuro); color: #fff; }
.test-opt:has(input:checked) .radio { border-color: #fff; background: var(--wm-rojo); }
.test-opt:has(input:checked) .radio::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #fff; }

.test-input {
  width: 100%; padding: 18px 22px;
  border-radius: var(--r-md); border: 1px solid var(--line);
  font: inherit; font-size: 17px; color: var(--fg); background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.test-input:focus { outline: none; border-color: var(--wm-azul-oscuro); box-shadow: 0 0 0 4px rgba(45,51,78,0.07); }
.test-shell--portal input,
.test-shell--portal select,
.test-shell--portal textarea {
  max-width: 100%;
}

.test-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 40px; gap: 16px; }

/* PBLL: selector de imagen del dibujo (dropzone) y su vista previa. */
.pbll-upload { position: relative; }
.pbll-upload [hidden] { display: none !important; }
.pbll-upload__input {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.pbll-upload__prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 40px 20px;
  border: 1.5px dashed var(--line);
  border-radius: var(--r-md);
  background: #fff;
  cursor: pointer;
  text-align: center;
  transition: border-color .15s ease, background .15s ease;
}
.pbll-upload__prompt:hover {
  border-color: var(--wm-azul-oscuro);
  background: rgba(45, 51, 78, 0.02);
}
.pbll-upload__input:focus-visible + .pbll-upload__prompt {
  outline: none;
  border-color: var(--wm-azul-oscuro);
  box-shadow: 0 0 0 4px rgba(45, 51, 78, 0.07);
}
.pbll-upload__icon {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  margin-bottom: 4px;
  border-radius: 50%;
  background: var(--line-soft, rgba(0, 0, 0, .05));
  color: var(--wm-rojo);
}
.pbll-upload__prompt strong { font-size: 15.5px; color: var(--fg); }
.pbll-upload__prompt small { font-size: 13px; color: var(--fg-muted); }
.pbll-upload__error {
  margin: 10px 0 0;
  color: var(--alert-fg, #b42318);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}
.pbll-upload__result {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
}
.pbll-upload__preview {
  width: 76px; height: 76px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: calc(var(--r-md) - 4px);
  object-fit: cover;
}
.pbll-upload__meta { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pbll-upload__filename {
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pbll-upload__change {
  width: fit-content;
  color: var(--wm-azul-oscuro);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color .15s ease;
}
.pbll-upload__change:hover { text-decoration-color: currentColor; }

/* Tests proyectivos gráficos: usan la misma superficie y escala que el resto
 * de las evaluaciones del portal; solo cambia el tipo de respuesta. */
.test-shell--graphic { max-width: 760px; }
.test-shell--graphic > h2 {
  margin: 0 0 18px;
  font-size: clamp(28px, 3.25vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}
.test-graphic-instructions {
  margin: 0 0 28px;
  padding-left: 24px;
  color: var(--fg-muted);
  font-size: 15px;
  line-height: 1.7;
}
.test-graphic-instructions li + li { margin-top: 6px; }
.test-graphic-note {
  margin: -12px 0 28px;
  padding: 12px 14px;
  border-left: 3px solid var(--wm-rojo);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: color-mix(in srgb, var(--wm-rojo) 6%, #fff);
  color: var(--fg-muted);
  font-size: 13px;
  line-height: 1.5;
}
.test-graphic-form { display: flex; flex-direction: column; gap: 18px; }
.test-graphic-story {
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
}
.test-graphic-story h3 { margin: 0; color: var(--fg); font-size: 17px; line-height: 1.35; }
.test-graphic-story > p { margin: -10px 0 0; color: var(--fg-muted); font-size: 14px; line-height: 1.5; }
.test-graphic-story__details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.test-graphic-story__details--single { grid-template-columns: minmax(0, 1fr); }
.test-graphic-story label { display: grid; gap: 7px; min-width: 0; }
.test-graphic-story label > span { color: var(--fg); font-size: 13px; font-weight: 650; }
.test-graphic-story input,
.test-graphic-story textarea {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--fg);
  font: inherit;
  line-height: 1.45;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.test-graphic-story input { min-height: 44px; padding: 9px 11px; }
.test-graphic-story textarea {
  min-height: 144px;
  padding: 11px;
  resize: vertical;
}
.test-graphic-story input:focus,
.test-graphic-story textarea:focus {
  outline: none;
  border-color: var(--wm-azul-oscuro);
  box-shadow: 0 0 0 4px rgba(45, 51, 78, .07);
}
.test-graphic-story__age { grid-column: 1 / -1; }
.test-graphic-story__narrative { grid-column: 1 / -1; }
.test-graphic-form__actions { justify-content: flex-end; margin-top: 0; }
.test-graphic-form__actions .btn:disabled {
  cursor: not-allowed;
  opacity: .48;
  box-shadow: none;
}

@media (max-width: 560px) {
  .test-graphic-story { padding: 16px; }
  .test-graphic-story__details { grid-template-columns: 1fr; }
  .test-shell--graphic .test-graphic-form__actions .btn { width: 100%; }
  .test-shell--graphic .test-graphic-story input,
  .test-shell--graphic .test-graphic-story textarea { scroll-margin-top: 88px; }
}

.test-intro h2,
[data-stepper-target="intro"] h2 { font-size: clamp(32px, 3.4vw, 48px); margin: 4px 0 18px; }
.test-intro p { color: var(--fg-muted); font-size: 16px; line-height: 1.65; max-width: 56ch; }
.test-intro-copy {
  padding: 22px;
  background: var(--bg-soft);
  border-radius: var(--r-md);
  margin-bottom: 24px;
  font-size: 14.5px;
  color: var(--fg-muted);
  line-height: 1.65;
}
.test-intro-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
  margin: 36px 0;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.test-intro-meta strong { font-size: 22px; font-weight: 700; color: var(--wm-azul-oscuro); letter-spacing: -0.02em; display: block; }
.test-intro-meta span { font-size: 13px; color: var(--fg-muted); margin-top: 4px; display: block; }

/* Portal del postulante: preparación breve antes de que comience una evaluación. */
.test-shell--portal .test-intro--portal {
  display: grid;
  gap: 22px;
}
.test-shell--portal .test-intro--portal[hidden] { display: none; }
.test-shell--portal:has([data-stepper-target="intro"]:not([hidden])) {
  padding-block: clamp(32px, 4vw, 48px);
}
.test-intro__heading .test-eyebrow {
  margin: 0 0 12px;
  color: var(--wm-rojo);
  font-size: 11px;
  font-weight: 700;
}
.test-shell--portal .test-intro--portal h2 {
  margin: 0;
  font-size: clamp(28px, 3.25vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}
.test-intro__summary {
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: var(--bg-soft);
}
.test-intro__instructions,
.test-intro__start-note {
  color: var(--fg-muted);
  font-size: 15px;
  line-height: 1.62;
}
.test-intro__instructions > :first-child { margin-top: 0; }
.test-intro__instructions > :last-child { margin-bottom: 0; }
.test-shell--portal .test-intro--portal .test-intro-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}
.test-shell--portal .test-intro--portal .test-intro-meta > div {
  display: grid;
  gap: 4px;
}
.test-shell--portal .test-intro--portal .test-intro-meta dt {
  order: 2;
  color: var(--fg-muted);
  font-size: 13px;
}
.test-shell--portal .test-intro--portal .test-intro-meta dd {
  order: 1;
  margin: 0;
  color: var(--wm-azul-oscuro);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.025em;
}
.test-intro__start {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.test-intro__start-note {
  margin: 0;
  max-width: 48ch;
  font-size: 13.5px;
  line-height: 1.5;
}
.test-intro__start .btn {
  min-height: 50px;
  padding-inline: 22px;
}
.test-shell--portal:has([data-stepper-target="intro"]:not([hidden])) .test-timer-row {
  display: none;
}

/* Estado activo de la evaluación del portal. */
.test-shell--portal:has([data-stepper-target="intro"]:not([hidden])) .test-session-status {
  display: none;
}
.test-session-status {
  position: sticky;
  top: 80px;
  z-index: 6;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin: 8px 0 24px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 8px 20px rgba(28, 37, 67, .08);
}
.test-shell--portal .test-session-status .test-progress {
  display: grid;
  grid-template-columns: max-content minmax(120px, 1fr);
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--wm-azul-oscuro);
  font-size: 12px;
  font-weight: 700;
}
.test-shell--portal .test-session-status .test-bar {
  height: 5px;
  border-radius: 999px;
}
.test-shell--portal .test-session-status .test-timer-row {
  position: static;
  margin: 0;
}
.test-shell--portal .test-session-status .temporizador {
  min-width: 62px;
  padding: 7px 10px;
  border-radius: 10px;
  text-align: center;
  font-size: 14px;
}
.test-shell--portal [data-stepper-target="step"] {
  min-height: 0;
}
.test-shell--portal .read-aloud {
  margin: 0 0 18px;
}
.test-shell--portal .test-question {
  margin: 0 0 20px;
  font-size: clamp(24px, 2.8vw, 32px);
  line-height: 1.22;
}
.test-question-figure {
  display: grid;
  place-items: center;
  min-height: 160px;
  margin: 0 0 24px;
  padding: clamp(8px, 2vw, 16px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.test-question-figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: min(46vh, 440px);
  object-fit: contain;
}
.test-shell--portal .test-options {
  gap: 12px;
  margin-top: 0;
}
.test-shell--portal .test-opt {
  min-height: 60px;
  padding: 16px 18px;
  border-color: var(--line);
  border-radius: 14px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}
.test-shell--portal .test-opt:hover {
  border-color: color-mix(in srgb, var(--wm-rojo) 60%, var(--line));
  background: color-mix(in srgb, var(--wm-rojo) 3%, #fff);
}
.test-shell--portal .test-opt:focus-within {
  border-color: var(--wm-rojo);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--wm-rojo) 12%, transparent);
}
.test-shell--portal .test-opt.selected,
.test-shell--portal .test-opt:has(input:checked) {
  border-color: var(--wm-rojo);
  background: color-mix(in srgb, var(--wm-rojo) 7%, #fff);
  color: var(--fg);
  box-shadow: inset 3px 0 0 var(--wm-rojo);
}
.test-shell--portal .test-opt.selected .radio,
.test-shell--portal .test-opt:has(input:checked) .radio {
  border-color: var(--wm-rojo);
  background: var(--wm-rojo);
}
.test-shell--portal .test-nav {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.test-shell--portal .test-nav .btn {
  min-height: 50px;
}

/* Result */
.test-result { text-align: center; }
.test-result__score {
  display: inline-grid; place-items: center;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: var(--wm-azul-oscuro);
  color: #fff;
  margin: 0 auto 32px;
  position: relative;
}
.test-result__score-num { font-size: 72px; font-weight: 700; line-height: 1; letter-spacing: -0.04em; }
.test-result__score-out { font-size: 13px; opacity: 0.6; margin-top: 4px; letter-spacing: 0.1em; text-transform: uppercase; }
.test-result__band {
  display: inline-block; padding: 8px 16px; border-radius: var(--r-pill);
  font-size: 13px; font-weight: 600; letter-spacing: 0.05em;
  margin-bottom: 16px;
}
.test-result__band--good { background: rgba(31,138,91,0.12); color: #1F8A5B; }
.test-result__band--mid { background: rgba(217,150,30,0.15); color: #B57810; }
.test-result__band--bad { background: rgba(204,45,59,0.12); color: var(--wm-rojo); }

.test-result__breakdown {
  margin: 40px 0; padding: 28px; background: var(--bg-soft); border-radius: var(--r-lg);
  text-align: left;
}
.test-result__row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}
.test-result__row:last-child { border-bottom: none; }
.test-result__row strong { font-weight: 500; color: var(--fg); }
.test-result__row .v { font-weight: 600; color: var(--wm-azul-oscuro); }

/* Time pickers grid for Pittsburgh times */
.time-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) {
  .test-section {
    padding: clamp(16px, 4vw, 28px) 0 64px;
  }
  .test-section--portal {
    min-height: calc(100vh - 68px);
  }
  .test-backwrap {
    margin-bottom: 10px;
  }
  .test-shell {
    padding: 24px 20px;
    border-radius: 20px;
  }
  .test-shell [data-stepper-target="step"] { min-height: 220px; }
  .test-progress {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
  }
  .test-bar {
    width: 100%;
    flex: initial;
  }
  .test-question {
    font-size: clamp(20px, 5vw, 24px);
    line-height: 1.25;
    margin: 12px 0 8px;
  }
  .test-shell--portal .test-options {
    margin-top: 20px;
  }
  .test-opt {
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px;
    font-size: 15px;
    line-height: 1.45;
  }
  .test-intro h2,
  [data-stepper-target="intro"] h2 {
    font-size: clamp(27px, 7vw, 34px);
    line-height: 1.08;
  }
  .test-intro-copy {
    padding: 18px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.55;
  }
  .test-intro-meta {
    gap: 14px;
    margin: 26px 0;
    padding: 18px 0;
  }
  .test-intro-meta strong {
    font-size: 20px;
  }
  .test-shell--portal .test-intro--portal {
    gap: 18px;
  }
  .test-shell--portal:has([data-stepper-target="intro"]:not([hidden])) {
    padding-block: 24px;
  }
  .test-shell--portal .test-intro--portal h2 {
    font-size: clamp(27px, 7.2vw, 32px);
  }
  .test-intro__summary {
    padding: 18px;
    border-radius: 16px;
  }
  .test-intro__instructions,
  .test-intro__start-note {
    font-size: 14px;
    line-height: 1.56;
  }
  .test-shell--portal .test-intro--portal .test-intro-meta {
    margin-top: 20px;
    padding-top: 16px;
  }
  .test-shell--portal .test-intro--portal .test-intro-meta dd {
    font-size: 21px;
  }
  .test-intro__start {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-top: 18px;
  }
  .test-intro__start .btn {
    width: 100%;
    justify-content: center;
    min-height: 52px;
  }
  .test-session-status {
    top: 76px;
    gap: 10px;
    margin: 0 0 18px;
    padding: 8px 10px;
    border-radius: 12px;
  }
  .test-shell--portal .test-session-status .test-progress {
    grid-template-columns: max-content minmax(56px, 1fr);
    gap: 10px;
  }
  .test-shell--portal .test-session-status .test-bar {
    width: 100%;
  }
  .test-shell--portal:has([data-stepper-target="step"]:not([hidden])) {
    padding-top: 20px;
  }
  .test-shell--portal .test-question {
    margin-bottom: 18px;
    font-size: clamp(22px, 6vw, 27px);
    line-height: 1.25;
  }
  .test-question-figure {
    min-height: 132px;
    margin-bottom: 20px;
    padding: 8px;
    border-radius: 14px;
  }
  .test-question-figure img {
    max-height: min(42vh, 360px);
  }
  .test-shell--portal .test-options {
    gap: 10px;
  }
  .test-shell--portal .test-opt {
    min-height: 56px;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 15px;
  }
  .test-shell--portal .test-nav {
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
    gap: 10px;
    margin-top: 24px;
    padding-top: 18px;
  }
  .test-shell--portal .test-nav .btn {
    min-height: 50px;
  }
  .test-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 32px;
  }
  .test-nav .btn {
    justify-content: center;
    min-height: 48px;
    padding-inline: 14px;
  }
  .test-timer-row {
    margin: -4px 0 12px;
  }
  .temporizador {
    font-size: 15px;
    padding: 6px 12px;
  }
  .eval-body-grid, .eval-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .time-row { grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
  .test-section > .container {
    width: min(100% - 28px, 1320px);
  }
  .test-shell {
    padding: 22px 18px;
  }
  .test-nav {
    grid-template-columns: 1fr;
  }
}

/* Read aloud controls for applicant assessments */
.read-aloud {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: -8px 0 14px;
}
[data-controller~="stepper"]:has([data-stepper-target="intro"]:not([hidden])) .read-aloud {
  display: none;
}
.read-aloud__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 34px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: #fff;
  color: var(--wm-azul-oscuro);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  box-shadow: 0 6px 16px rgba(17, 24, 39, .04);
  transition: border-color .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
}
.read-aloud__button:hover,
.read-aloud__button:focus-visible {
  border-color: var(--wm-azul-oscuro);
  background: rgba(45, 51, 78, .04);
  outline: none;
}
.read-aloud__icon {
  display: inline-flex;
  width: 14px;
  height: 14px;
  align-items: center;
  justify-content: center;
}
.read-aloud__icon svg {
  width: 14px;
  height: 14px;
}
.read-aloud__status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 640px) {
  .read-aloud {
    margin: -4px 0 12px;
  }
  .read-aloud__button {
    min-height: 38px;
  }
}
