body {
  margin: 0;
  background: var(--isc-fondo);
  font-family: var(--isc-fuente);
  color: var(--isc-texto);
}

.tf-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 16px;
  padding: 20px 24px 40px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}
@media (max-width: 760px) {
  .tf-layout { grid-template-columns: 1fr; }
  .tf-escalera { order: -1; }
}

.tf-cuerpo { padding: 20px; }

.tf-subtitulo {
  font-size: 12px;
  font-weight: 650;
  color: var(--isc-suave);
  text-transform: uppercase;
  letter-spacing: .4px;
  margin: 0 0 6px;
}

.tf-pregunta {
  font-size: 17px;
  font-weight: 650;
  color: var(--isc-verde-osc);
  margin: 0 0 16px;
}

.tf-opciones {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 560px) {
  .tf-opciones { grid-template-columns: 1fr; }
}

.tf-opcion {
  text-align: left;
  padding: 12px 14px;
  border: 1px solid var(--isc-borde);
  border-radius: var(--isc-radio);
  background: var(--isc-panel-2);
  cursor: pointer;
  font: inherit;
  font-size: 13.5px;
  display: flex;
  gap: 8px;
}
.tf-opcion:hover:not(:disabled) { border-color: var(--isc-verde); background: var(--isc-verde-claro); }
.tf-opcion b { color: var(--isc-verde-osc); }
.tf-opcion:disabled { cursor: default; }
.tf-opcion.correcta { background: var(--isc-verde-claro); border-color: var(--isc-verde); animation: tf-pulso-ok .55s ease; }
.tf-opcion.incorrecta { background: var(--isc-rojo-claro); border-color: var(--isc-rojo); animation: tf-sacudida .5s ease; }
.tf-opcion.oculta { visibility: hidden; }

@keyframes tf-pulso-ok {
  0% { transform: scale(1); box-shadow: 0 0 0 rgba(30, 123, 60, 0); }
  40% { transform: scale(1.04); box-shadow: 0 0 0 7px rgba(30, 123, 60, .22); }
  100% { transform: scale(1); box-shadow: 0 0 0 rgba(30, 123, 60, 0); }
}
@keyframes tf-sacudida {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-4px); }
  40%, 60% { transform: translateX(4px); }
}

.tf-flash {
  position: fixed; inset: 0; pointer-events: none; z-index: 998;
  animation: tf-flash-desvanece .55s ease forwards;
}
.tf-flash.mal { background: rgba(192, 0, 0, .16); }
.tf-flash.ok { background: rgba(30, 123, 60, .16); }
@keyframes tf-flash-desvanece { from { opacity: 1; } to { opacity: 0; } }

.tf-confeti-pieza {
  position: fixed; top: -12px; width: 8px; height: 14px; opacity: .9;
  pointer-events: none; z-index: 999;
  animation: tf-confeti-caer .9s ease-in forwards;
}
@keyframes tf-confeti-caer {
  to { transform: translateY(75vh) rotate(360deg); opacity: 0; }
}

.tf-acciones { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.tf-resultado { font-weight: 650; margin: 12px 0; animation: tf-aparecer .35s ease; }
.tf-resultado.ok { color: var(--isc-verde-osc); }
.tf-resultado.mal { color: var(--isc-rojo); }
@keyframes tf-aparecer {
  0% { opacity: 0; transform: translateY(-6px) scale(.92); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.tf-lista-escalera {
  list-style: none;
  margin: 0;
  padding: 10px;
  display: flex;
  flex-direction: column-reverse;
  gap: 2px;
}
.tf-lista-escalera li {
  padding: 6px 10px;
  border-radius: var(--isc-radio);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--isc-suave);
  display: flex;
  justify-content: space-between;
}
.tf-lista-escalera li.actual {
  background: var(--isc-dorado-claro);
  color: var(--isc-dorado-texto);
  border: 1px solid var(--isc-dorado);
}
.tf-lista-escalera li.pasada { color: var(--isc-verde-osc); }
.tf-lista-escalera li.hito { border-bottom: 1px dashed var(--isc-borde); }

.tf-fin { text-align: center; padding: 10px 0; }
.tf-fin .puntos { font-size: 32px; color: var(--isc-dorado-texto); font-weight: 750; }

.tf-vacio { color: var(--isc-suave); font-size: 13.5px; }
