/* Fonts loaded by Astra theme (Atkinson Hyperlegible Next + Oswald) — no @import needed */

#td-app {
  max-width: 760px;
  margin: 1.5rem auto;
  line-height: 1.55;
  /* font-family and color inherited from Astra body */
}
#td-app *, #td-app *::before, #td-app *::after { box-sizing: border-box; }

.td-card {
  background: #fff;
  border: 1px solid #e3e7eb;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

@media (max-width: 600px) {
  .td-card { padding: 1.25rem; }
}

.td-h2 {
  /* font-family: Oswald — inherited from Astra h2 */
  font-size: 1.6rem;
  font-weight: 600;
  margin: 0 0 0.75rem 0;
  line-height: 1.25;
}

.td-h4 {
  /* font-family: Atkinson Hyperlegible Next — inherited from Astra h4 */
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
}

.td-lead {
  font-size: 1.05rem;
  margin: 0 0 1.25rem 0;
}

.td-meta-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
  font-size: 0.95rem;
  color: #555;
}
.td-meta-list li {
  padding: 0.4rem 0;
  border-bottom: 1px dashed #e3e7eb;
}
.td-meta-list li:last-child { border-bottom: none; }

.td-disclaimer {
  background: #fff8e1;
  border-left: 4px solid #d4a72c;
  padding: 1rem 1.1rem;
  border-radius: 6px;
  font-size: 0.92rem;
  color: #5a4a1a;
  margin: 1.25rem 0;
  line-height: 1.5;
}
.td-disclaimer-strong { font-size: 0.95rem; }
.td-disclaimer-final {
  background: #f5f7fa;
  border-left-color: #7D3443;
  color: #555;
  margin-top: 1.5rem;
}

.td-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.25rem;
}
.td-result-actions { margin-top: 1.5rem; }

.btn {
  padding: 0.75rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-primary { background: #FFAC00; color: #000000; }
.btn-primary:hover:not(:disabled) { background: #EC8118; }
.btn-secondary { background: #f1f4f7; color: #EC8118; border-color: #cbd2d8; }
.btn-secondary:hover:not(:disabled) { background: #e5eaef; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

.td-progress {
  background: #eef1f4;
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}
.td-progress-bar {
  background: #EC8118;
  height: 100%;
  transition: width 0.3s ease;
}
.td-progress-text {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 1.5rem;
}

.td-question {
  /* font-family: Oswald — inherited from Astra h3 */
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 1.5rem 0;
  line-height: 1.4;
}

.td-options {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}
.td-option {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 1.1rem;
  border: 2px solid #e3e7eb;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s;
  background: #fff;
}
.td-option:hover { border-color: #cbd2d8; background: #fafbfc; }
.td-option-active {
  border-color: #EC8118;
  background: #FFF4E5;
}
.td-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.td-opt-bullet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f1f4f7;
  color: #EC8118;
  font-weight: 600;
  flex-shrink: 0;
}
/* Dorado con negro puro (11,15:1), como todos los botones del sitio desde el
   2026-08-20. Aqui importa doble: es el numero de la respuesta ELEGIDA. */
.td-option-active .td-opt-bullet {
  background: #FFAC00;
  color: #000000;
}
.td-opt-label { flex: 1; font-size: 1rem; }
.td-opt-noLabel { color: #888; font-style: italic; font-size: 0.95rem; }

.td-nav {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
}
.td-nav .btn { min-width: 140px; }

.td-score-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  border: 2px solid;
  border-radius: 12px;
  margin: 1.25rem 0;
}
.td-score-num {
  font-size: 3.2rem;
  font-weight: 600;
  line-height: 1;
}
.td-score-label {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.td-score-scale {
  font-size: 0.85rem;
  color: #666;
}

.td-result-block {
  margin: 1.5rem 0;
}
.td-result-block p { margin: 0 0 0.6rem 0; }
.td-result-block ul, .td-result-block ol {
  margin: 0.5rem 0 0 0;
  padding-left: 1.4rem;
}
.td-result-block li { margin: 0.4rem 0; }

.td-roadmap li { padding-left: 0.3rem; }

.td-catalog-placeholder {
  background: #f5f7fa;
  border: 1px dashed #cbd2d8;
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
}

.td-muted { color: #666; font-size: 0.92rem; }

.td-status {
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.6rem;
  min-height: 1.4em;
  text-align: center;
}
