/* public/css/evaluacion.css — formulario de evaluación y página "completar" */

[hidden] { display: none !important; }
.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; }

/* Indicador de pasos */
.pasos { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin: 0 0 1.5rem; padding: 0; list-style: none; }
.paso-ind { display: flex; align-items: center; gap: .5rem; font-size: .8rem; color: #6b7280; padding-bottom: .5rem; border-bottom: 3px solid #e5e7eb; }
.paso-ind span { width: 1.5rem; height: 1.5rem; border-radius: 9999px; background: #e5e7eb; color: #374151; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; font-size: .75rem; flex-shrink: 0; }
.paso-ind.activa { color: #111827; border-color: #5182f7; }
.paso-ind.activa span { background: #5182f7; color: #fff; }
.paso-ind.hecha { border-color: #16a34a; }
.paso-ind.hecha span { background: #16a34a; color: #fff; }
@media (max-width: 640px) { .paso-ind { font-size: 0; } .paso-ind span { font-size: .75rem; } }

/* Preguntas y opciones */
.pregunta { margin-bottom: 1.25rem; }
.pregunta__titulo { font-size: .9rem; font-weight: 600; color: #111827; margin: 0 0 .5rem; }
.pregunta__badge { display: inline-block; margin-left: .5rem; padding: .1rem .5rem; border-radius: 9999px; background: #fef3c7; color: #92400e; font-size: .7rem; font-weight: 600; vertical-align: middle; }
.pregunta--falta { padding: .75rem; border-radius: .75rem; background: #fffbeb; border: 1px solid #fde68a; }
.opciones { display: flex; flex-wrap: wrap; gap: .5rem; }
.opciones--lista { flex-direction: column; }
.opcion { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem .9rem; border: 1px solid #d1d5db; border-radius: .6rem; background: #fff; cursor: pointer; font-size: .9rem; color: #374151; transition: border-color .15s, background .15s; }
.opcion:hover { border-color: #5182f7; background: #f5f8ff; }
.opcion:has(input:checked) { border-color: #5182f7; background: #eef3ff; color: #111827; box-shadow: 0 0 0 1px #5182f7 inset; }
.opcion:has(input:focus-visible) { outline: 2px solid #5182f7; outline-offset: 2px; }
.opcion input { accent-color: #5182f7; margin: 0; }
.opcion--grande { padding: .9rem 1rem; font-size: 1rem; }

/* Errores */
.campo-error { margin: .4rem 0 0; font-size: .8rem; color: #b91c1c; }
[aria-invalid="true"] { border-color: #dc2626 !important; }
#necesidadGroup:has([aria-invalid="true"]) .opcion { border-color: #dc2626; }

/* Botón ocupado */
[aria-busy="true"] { opacity: .7; cursor: progress; }
