.tde-lead {
  margin: 0;
  color: #6b7280;
  font-size: 0.95rem;
  line-height: 1.5;
}

.tde-mensaje {
  min-height: 1.25rem;
  font-size: 0.9rem;
}

.tde-mensaje.is-error {
  color: #b42318;
}

.tde-mensaje.is-ok {
  color: #0f766e;
}

.tde-test-box,
.tde-result {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.tde-result {
  margin-top: 1.5rem;
  text-align: center;
}

.tde-test-head p,
.tde-result__lead {
  margin: 0 0 1rem;
  color: #6b7280;
}

.tde-result__value {
  margin: 0;
  color: #2c1a46;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
}

.tde-progress-wrap {
  display: grid;
  gap: 0.5rem;
}

.tde-progress-bar {
  width: 100%;
  height: 10px;
  background: #ece7f6;
  border-radius: 999px;
  overflow: hidden;
}

.tde-progress-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, #2c1a46 0%, #ff0081 100%);
  transition: width 0.2s ease;
}

.tde-progress {
  text-align: right;
  font-size: 0.9rem;
  font-weight: 600;
  color: #2c1a46;
}

.tde-question__title {
  margin: 0 0 1.25rem;
  font-size: 1.15rem;
  line-height: 1.6;
  color: #040037;
}

.tde-question__title span {
  color: #ff0081;
  font-weight: 700;
}

.tde-options {
  display: grid;
  gap: 0.85rem;
}

.tde-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.tde-option:hover {
  border-color: #ff0081;
  box-shadow: 0 0 0 3px rgba(255, 0, 129, 0.1);
  transform: translateY(-1px);
}

.tde-option.is-selected {
  border-color: #2c1a46;
  background: #f8f5ff;
  box-shadow: 0 0 0 3px rgba(44, 26, 70, 0.1);
}

.tde-option input {
  display: none;
}

.tde-option__label {
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
}

.tde-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.tde-btn,
#tde_btnEnviar {
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.25rem;
  background: #2c1a46;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, opacity 0.15s ease;
}

.tde-btn:hover,
#tde_btnEnviar:hover {
  background: #3d2560;
}

.tde-btn:disabled,
#tde_btnEnviar:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.tde-btn--ghost {
  background: #eef2f7;
  color: #1f2937;
}

.tde-btn--ghost:hover {
  background: #e2e8f0;
}

.tde-result__summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.tde-score-card {
  padding: 1.15rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #faf7ff 100%);
}

.tde-score-card__label {
  margin: 0 0 0.4rem;
  color: #6b7280;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.tde-score-card__value {
  margin: 0;
  color: #2c1a46;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
}

.tde-score-card__value small {
  font-size: 0.95rem;
  font-weight: 600;
}

.tde-score-card__value--small {
  font-size: 1.35rem;
}

@media (max-width: 767px) {
  .tde-test-box,
  .tde-result {
    max-width: 100%;
    margin-left: 12px;
    margin-right: 12px;
    padding: 1.25rem;
  }

  .tde-option {
    flex-direction: column;
    align-items: flex-start;
  }

  .tde-actions {
    justify-content: stretch;
  }

  .tde-btn,
  #tde_btnEnviar {
    width: 100%;
  }
}
