/* ==========================================================================
   BRÚJULA VOCACIONAL — accesibilidad y confort
   Un cuestionario de 74 ítems se puede responder entero con el teclado. Para
   que eso sea usable de verdad, el foco tiene que verse siempre.
   ========================================================================== */

/* Anillo de foco solo para navegación por teclado, nunca al hacer clic. */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}
.opt:focus-visible { outline-offset: 3px; }

/* Salto directo al contenido para quien navega con teclado o lector. */
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--accent); color: #fff; padding: 10px 18px;
  border-radius: 0 0 10px 10px; text-decoration: none; font-size: .9rem;
  transition: top .15s ease;
}
.skip:focus { top: 0; color: #fff; }
[data-theme="dark"] .skip { color: #12141a; }

/* Áreas táctiles cómodas en móvil: el pulgar no acierta en 32 px. */
@media (pointer: coarse) {
  .opt { min-width: 46px; height: 46px; }
  .q.bipolar .opt { height: 46px; }
  .icon-btn { width: 38px; height: 38px; }
  .icon-btn.sm { width: 32px; height: 32px; }
  .choice { padding: 16px 18px; }
  .btn { padding: 14px 24px; }
}

/* Respeta a quien pide menos animación en su sistema. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Contraste reforzado si el sistema lo pide. */
@media (prefers-contrast: more) {
  :root { --muted: #5c564e; --line: #c8c0b2; --line-2: #a89f8e; }
  [data-theme="dark"] { --muted: #b0aaa2; --line: #454a56; --line-2: #5d6474; }
}

/* En pantallas estrechas el contador no debe empujar a los botones a otra fila. */
@media (max-width: 560px) {
  .hide-xs { display: none; }
  .quiz-nav .inner { padding: 11px 16px; gap: 10px; }
  .quiz-nav .count { font-size: .8rem; }
}

/* Solo para lectores de pantalla. */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
