/* Pantalla de pregunta de examen (Banquea). Vive en un archivo porque Vue elimina los <style> dentro de #app. */

.qx-card { border: 0; border-radius: 22px; box-shadow: 0 14px 40px rgba(1, 25, 27, .28) !important; }
.qx-card > .card-body { padding: 1.75rem; }
.qx-text { font-size: 1.15rem; line-height: 1.6; color: #0d2d30; font-weight: 500; }

/* Ayuda "Eliminar distractores" */
.qx-helper { border-radius: 999px; font-weight: 600; font-size: .9rem; padding: .45rem 1.1rem; box-shadow: 0 6px 16px rgba(255, 193, 7, .35); }

/* Alternativas */
.qx-opt { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; margin-bottom: 12px; padding: 12px 16px;
  border: 2px solid #d9e6e7; border-radius: 16px; background: #fff; color: #0d2d30; line-height: 1.45;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease, background .15s ease; }
.qx-opt:hover:not(:disabled) { transform: translateY(-2px); border-color: #01897B; box-shadow: 0 8px 20px rgba(2, 85, 91, .16); background: #f4fbfb; }
.qx-opt:disabled { cursor: default; }
.qx-letter { flex: 0 0 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px;
  background: #e6f2f2; color: #02555b; font-weight: 700; transition: all .15s ease; }
.qx-opt-text { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.qx-check { flex: 0 0 auto; font-size: 1.3rem; color: #fff; }
.qx-opt.is-selected { border-color: #02555b; background: linear-gradient(135deg, #02555b 0%, #01897B 100%); color: #fff;
  box-shadow: 0 10px 24px rgba(2, 85, 91, .38); }
.qx-opt.is-selected .qx-letter { background: rgba(255, 255, 255, .22); color: #fff; }
.qx-opt.is-dashed { opacity: .5; background: #f1f4f4; border-style: dashed; }
.qx-opt.is-dashed .qx-opt-text { text-decoration: line-through; }
.qx-opt.is-dashed .qx-check { color: #7b8d8f; }
.qx-opt-loading { color: #7b8d8f; justify-content: center; }

/* Botones: Saltar a la izquierda, Confirmar a la derecha */
.qx-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; }
.qx-btn { border: 0; border-radius: 14px; padding: .8rem 1.4rem; font-weight: 600; font-size: 1rem; display: inline-flex; align-items: center;
  justify-content: center; gap: 8px; transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease; }
.qx-btn:hover:not(:disabled) { transform: translateY(-2px); }
.qx-skip { background: #eef3f3; color: #4d6466; }
.qx-skip:hover:not(:disabled) { background: #e1ecec; color: #02555b; }
.qx-confirm { background: linear-gradient(135deg, #02555b 0%, #01897B 100%); color: #fff; box-shadow: 0 10px 22px rgba(2, 85, 91, .35); }
.qx-confirm:hover:not(:disabled) { box-shadow: 0 14px 28px rgba(2, 85, 91, .45); color: #fff; }
.qx-confirm:disabled { opacity: .45; box-shadow: none; cursor: not-allowed; }

/* Panel "Ver preguntas" */
.qx-nav { margin-bottom: 1.5rem; overflow: hidden; }
.qx-nav-head { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 20px 20px 16px; background: transparent; border: 0;
  color: #fff; font-weight: 600; font-size: 1.25rem; }
.qx-nav-head > span:first-child i { margin-right: 8px; font-size: 1.05rem; opacity: .8; }
.qx-nav-count { background: rgba(52, 217, 192, .16); color: #34D9C0; border-radius: 999px; padding: 3px 12px; font-size: .85rem; }
.qx-nav-count i { margin: 0 0 0 4px; display: inline-block; transition: transform .2s ease; }
.qx-nav-head:not(.collapsed) .qx-nav-count i { transform: rotate(180deg); }
.qx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 8px; padding: 4px 20px 14px; }
.qx-dot { display: flex; align-items: center; justify-content: center; height: 44px; border-radius: 12px; background: rgba(255, 255, 255, .08);
  color: #cfe3e3; font-weight: 600; text-decoration: none; transition: transform .15s ease, background .15s ease; }
.qx-dot:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .18); color: #fff; }
.qx-dot.is-done { background: #01897B; color: #fff; }
.qx-dot.is-current { background: #34D9C0; color: #01191b; box-shadow: 0 0 0 3px rgba(52, 217, 192, .35); pointer-events: none; }
.qx-legend { display: flex; gap: 16px; flex-wrap: wrap; padding: 0 20px 16px; font-size: .78rem; color: #94BFBF; }
.qx-legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: rgba(255, 255, 255, .18); margin-right: 6px; }
.qx-legend .is-done::before { background: #01897B; }
.qx-legend .is-current::before { background: #34D9C0; }

@media (max-width: 575.98px) {
  .qx-card > .card-body { padding: 1.1rem; }
  .qx-text { font-size: 1.02rem; }
  .qx-actions .qx-btn { flex: 1 1 0; padding: .8rem .6rem; font-size: .92rem; }
  .qx-actions .qx-confirm { flex: 1.5 1 0; }
}

/* Entrada suave y corta (sin rebote) */
@keyframes qxFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.qx-card > .card-body { animation: qxFade .22s ease-out both; }
@media (prefers-reduced-motion: reduce) { .qx-card > .card-body { animation: none; } }

/* Alternativa elegida: el :hover (que en celular queda "pegado" tras tocar) no debe pisar el color */
.qx-opt.is-selected,
.qx-opt.is-selected:hover:not(:disabled),
.qx-opt.is-selected:focus,
.qx-opt.is-selected:active { border-color: #02555b; background: linear-gradient(135deg, #02555b 0%, #01897B 100%); color: #fff; transform: none; }
.qx-opt.is-selected .qx-opt-text { color: #fff; }
@media (hover: none) { .qx-opt:hover:not(:disabled):not(.is-selected) { transform: none; box-shadow: none; background: #fff; border-color: #d9e6e7; } }
