/* dian.css — estilos propios del módulo DIAN 2676.
   Se añaden ENCIMA de styles.css para no tocar el simulador existente.
   Prioridad del diseño: letra grande y legible en celular, una pregunta a la vez. */

.dian-tarjetas { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.dian-modo {
  display: block; text-align: left; width: 100%;
  border: 1px solid #d7dde5; border-radius: 12px; background: #fff;
  padding: 16px 18px; cursor: pointer; font: inherit; color: inherit;
}
.dian-modo:hover { border-color: #0f2a43; background: #f7f9fc; }
.dian-modo h3 { margin: 0 0 6px; font-size: 1.05rem; }
.dian-modo p { margin: 0; font-size: 0.9rem; color: #5b6774; line-height: 1.45; }

/* --- pregunta ------------------------------------------------------- */
.dian-progreso { height: 8px; background: #e7ecf2; border-radius: 99px; overflow: hidden; margin: 10px 0 18px; }
.dian-progreso > i { display: block; height: 100%; background: #0f2a43; transition: width 0.25s; }

.dian-caso {
  background: #f7f9fc; border-left: 4px solid #0f2a43; border-radius: 6px;
  padding: 14px 16px; margin-bottom: 16px; font-size: 1.05rem; line-height: 1.6;
}
.dian-enunciado { font-size: 1.15rem; font-weight: 600; line-height: 1.5; margin: 0 0 16px; }

.dian-opciones { display: grid; gap: 10px; }
.dian-opcion {
  display: flex; gap: 12px; align-items: flex-start; text-align: left;
  border: 2px solid #d7dde5; border-radius: 10px; background: #fff;
  padding: 14px 16px; cursor: pointer; font: inherit; color: inherit;
  font-size: 1.05rem; line-height: 1.5; width: 100%;
}
.dian-opcion:hover { border-color: #0f2a43; }
.dian-opcion .letra {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%;
  background: #0f2a43; color: #fff; display: grid; place-items: center; font-weight: 700;
}
.dian-opcion.elegida { border-color: #0f2a43; background: #eef3f8; }
.dian-opcion.correcta { border-color: #1b7f4b; background: #eaf7f0; }
.dian-opcion.incorrecta { border-color: #b3261e; background: #fdecea; }
.dian-opcion[disabled] { cursor: default; }

.dian-justificacion {
  margin-top: 16px; padding: 14px 16px; border-radius: 8px;
  background: #fffbe9; border: 1px solid #e8d79a; font-size: 1rem; line-height: 1.6;
}
.dian-justificacion .fuente { display: block; margin-top: 10px; font-size: 0.85rem; color: #5b6774; }

.dian-aviso-verificar {
  margin-top: 10px; padding: 10px 14px; border-radius: 8px;
  background: #fdecea; border: 1px solid #e2a9a4; font-size: 0.9rem;
}

/* --- cronómetro y barra de examen ------------------------------------ */
.dian-barra-examen {
  position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: 12px;
  align-items: center; justify-content: space-between;
  background: #0f2a43; color: #fff; padding: 10px 14px; border-radius: 10px; margin-bottom: 14px;
}
.dian-reloj { font-size: 1.3rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.dian-reloj.alerta { color: #ffd166; }
.dian-reloj.critico { color: #ff8a80; }
.dian-barra-examen button { font-size: 0.9rem; }

.dian-lenta { background: #fff3cd; border: 1px solid #e8d79a; border-radius: 8px; padding: 8px 12px; margin-bottom: 12px; font-size: 0.9rem; }

/* --- resultados ------------------------------------------------------ */
.dian-puntaje { font-size: 3rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.dian-alerta-roja {
  border: 2px solid #b3261e; background: #fdecea; border-radius: 10px;
  padding: 14px 16px; margin: 14px 0; font-size: 1rem; line-height: 1.55;
}
.dian-tabla { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.dian-tabla th, .dian-tabla td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #e7ecf2; }
.dian-tabla td.num, .dian-tabla th.num { text-align: right; font-variant-numeric: tabular-nums; }
.dian-bajo { color: #b3261e; font-weight: 600; }
.dian-ok { color: #1b7f4b; font-weight: 600; }

/* --- fichas ---------------------------------------------------------- */
.dian-ficha {
  border: 1px solid #d7dde5; border-radius: 12px; background: #fff;
  padding: 22px; text-align: center; min-height: 190px;
  display: grid; place-content: center; gap: 12px; cursor: pointer;
}
.dian-ficha .actuacion { font-size: 1.25rem; font-weight: 600; line-height: 1.4; }
.dian-ficha .plazo { font-size: 1.6rem; font-weight: 700; color: #0f2a43; line-height: 1.3; }
.dian-ficha .art { font-size: 0.9rem; color: #5b6774; }

@media (max-width: 560px) {
  .dian-enunciado { font-size: 1.1rem; }
  .dian-opcion { font-size: 1rem; padding: 12px 14px; }
  .dian-puntaje { font-size: 2.4rem; }
}
