/* ============================================================
   RESPONDEDOR — vista integrada (sistema ICFES Cyberdeck, acento cyan)
   ============================================================ */

.rsp-root { max-width: 860px; }

/* ── Entrada ─────────────────────────────────────────────── */
.rsp-input {
  border-color: var(--line-2);
  border-left: 3px solid var(--cyan);
}
.rsp-textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line-2);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 0.95rem;
  line-height: 1.5;
  padding: 12px 14px;
  resize: vertical;
  outline: none;
  transition: border-color 0.15s;
}
.rsp-textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 2px rgba(61, 240, 255, 0.25);
}
.rsp-analyze {
  background: var(--cyan);
  color: #0A0A0A;
  border-color: var(--cyan);
}
.rsp-analyze:hover { background: #5cf3ff; border-color: #5cf3ff; }
.rsp-input .btn-outline:hover { border-color: var(--cyan); color: var(--cyan); }

/* ── Progreso ────────────────────────────────────────────── */
.rsp-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-2);
}
.rsp-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: rspPulse 1s infinite;
}
@keyframes rspPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ── Tarjeta de respuesta ────────────────────────────────── */
.rsp-card {
  border-color: var(--line);
  border-left: 3px solid var(--cyan);
  margin-bottom: 16px;
  animation: rspIn 0.25s ease both;
}
@keyframes rspIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .rsp-card, .rsp-dot { animation: none; } }

.rsp-card-head { margin-bottom: 12px; }
.rsp-enunciado {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 14px;
}

/* Opciones */
.rsp-opts { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.rsp-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  font-size: 13px;
}
.rsp-opt-letter {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--muted);
  flex-shrink: 0;
}
.rsp-opt-correct {
  border-color: var(--ok);
  background: rgba(110, 231, 135, 0.08);
}
.rsp-opt-correct .rsp-opt-letter { color: var(--ok); }
.rsp-opt-check { margin-left: auto; color: var(--ok); font-weight: 700; }

/* Justificación */
.rsp-just {
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: 12px 14px;
  margin-bottom: 14px;
}
.rsp-just p { font-size: 13px; line-height: 1.65; color: var(--ink-2); }
.rsp-concepto {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-2);
}
.rsp-concepto .label { color: var(--cyan); margin-right: 6px; }

/* Fuentes */
.rsp-fuentes { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.rsp-fuente {
  font-size: 11px;
  color: var(--cyan);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rsp-fuente:hover { text-decoration: underline; }

/* Feedback */
.rsp-feedback {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.rsp-feedback .btn-sm { font-size: 11px; }
.rsp-feedback .rsp-fb:hover { border-color: var(--cyan); color: var(--cyan); }

/* ── CTA en la página de Práctica ────────────────────────── */
.practice-rsp-cta {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--cyan);
  padding: 14px 18px;
  margin-bottom: 24px;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
}
.practice-rsp-cta:hover {
  background: var(--surface-2);
  box-shadow: 0 0 0 1px rgba(61, 240, 255, 0.3), 0 0 24px rgba(61, 240, 255, 0.08);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 600px) {
  .rsp-actions { flex-direction: column; align-items: stretch; }
  .rsp-actions .btn { width: 100%; justify-content: center; }
}

/* ── Modal selección de modo ─────────────────────────────── */
.rsp-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
  animation: rspIn 0.2s ease both;
}
.rsp-modal-box {
  width: 100%;
  max-width: 560px;
  border-left: 3px solid var(--cyan);
  padding: 24px;
}
.rsp-modo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.rsp-modo-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: 18px 16px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.rsp-modo-card:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 0 1px rgba(61,240,255,0.2), 0 0 20px rgba(61,240,255,0.06);
}
#rsp-modo-pedagogico:hover {
  border-color: var(--amber);
  box-shadow: 0 0 0 1px rgba(251,191,36,0.2), 0 0 20px rgba(251,191,36,0.06);
}
.rsp-modo-icon { font-size: 24px; margin-bottom: 4px; }
.rsp-modo-title {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--cyan);
}
.rsp-modo-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}
@media (max-width: 480px) {
  .rsp-modo-grid { grid-template-columns: 1fr; }
}

/* ── Indicador de pasos (modo pedagógico) ────────────────── */
.rsp-paso-indicator { display: flex; align-items: center; gap: 6px; }
.rsp-paso-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--line);
  transition: background 0.2s, box-shadow 0.2s;
}
.rsp-paso-dot.rsp-paso-active {
  background: var(--amber);
  box-shadow: 0 0 8px rgba(251,191,36,0.5);
}
.rsp-paso-dot.rsp-paso-done {
  background: var(--ok);
}

/* ── Card pedagógico ─────────────────────────────────────── */
.rsp-card-ped { border-left-color: var(--amber); }

/* Guía socrática */
.rsp-guia-box {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-left: 2px solid var(--amber);
  padding: 12px 14px;
  margin-bottom: 4px;
}
.rsp-guia-lista {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.rsp-guia-punto {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.5;
  padding-left: 16px;
  position: relative;
}
.rsp-guia-punto::before {
  content: '◉';
  position: absolute;
  left: 0;
  color: var(--amber);
  font-size: 10px;
  top: 2px;
}
.rsp-pista {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-2);
}
.rsp-pista .label { color: var(--muted); margin-right: 6px; }

/* Opciones seleccionables (paso 2 pedagógico) */
.rsp-opts-ped { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.rsp-opt-ped {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  font-size: 13px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.12s, background 0.12s;
  width: 100%;
}
.rsp-opt-ped:hover { border-color: var(--amber); background: rgba(251,191,36,0.04); }
.rsp-opt-ped-sel {
  border-color: var(--amber);
  background: rgba(251,191,36,0.08);
}
.rsp-opt-ped-sel .rsp-opt-letter { color: var(--amber); }

/* Textarea justificación estudiante */
.rsp-student-just {
  border-color: var(--line-2);
}
.rsp-student-just:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 2px rgba(251,191,36,0.2);
}

/* Resultado de evaluación */
.rsp-resultado-rta { flex-wrap: wrap; margin-bottom: 14px; }

/* Checkpoints */
.rsp-checkpoints {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.rsp-checkpoint-lista {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 6px;
}
.rsp-checkpoint {
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.5;
  padding: 6px 10px 6px 28px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  position: relative;
  animation: rspIn 0.2s ease both;
}
.rsp-checkpoint::before {
  content: '☐';
  position: absolute;
  left: 8px;
  color: var(--amber);
  font-size: 13px;
}
