/* ══════════════════════════════════════════════════════════════
   Arquitecto del Carácter — estilos del diagnóstico
   Hereda tokens de style.css / style-upgrade.css
   ══════════════════════════════════════════════════════════════ */

/* Mantener la textura del grano pero ocultar el watermark "CORSO"
   detrás del cuestionario para no restar legibilidad. */
#diagnostico::after { content: none !important; }

#arqApp { position: relative; z-index: 1; margin-top: 1rem; }

/* ── Progreso ── */
.arq-progress {
  height: 2px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 2.2rem;
}
.arq-progress-fill {
  height: 100%;
  width: 0;
  background: var(--gold-light);
  transition: width 0.45s var(--ease, ease);
}
.arq-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-family: "Inter", sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1.6rem;
}
.arq-meta .arq-cat-name { color: var(--gold-light); }

/* ── Pregunta ── */
.arq-question {
  font-family: "Cormorant Garamond", serif;
  font-weight: 300;
  font-size: clamp(1.5rem, 3.4vw, 2.3rem);
  line-height: 1.25;
  color: var(--text);
  min-height: 4.5em;
  display: flex;
  align-items: center;
}

/* ── Escala 1–5 ── */
.arq-scale {
  display: flex;
  gap: 0.7rem;
  margin: 2rem 0 1rem;
}
.arq-scale-btn {
  flex: 1;
  aspect-ratio: 1 / 1;
  max-width: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0.5px solid var(--border);
  color: var(--text-muted);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.4rem;
  cursor: pointer;
  border-radius: 50%;
  transition: border-color 0.25s var(--ease, ease), color 0.25s var(--ease, ease),
    background 0.25s var(--ease, ease), transform 0.2s var(--ease, ease);
}
@media (hover: hover) {
  .arq-scale-btn:hover {
    border-color: var(--border-gold);
    color: var(--gold-light);
    transform: translateY(-2px);
  }
}
.arq-scale-btn.selected {
  border-color: var(--gold-light);
  background: var(--gold-light);
  color: var(--bg);
}
.arq-scale-labels {
  display: flex;
  justify-content: space-between;
  font-family: "Inter", sans-serif;
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ── Navegación interna ── */
.arq-nav {
  margin-top: 2.5rem;
  display: flex;
  justify-content: flex-start;
}
.arq-back {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-dim);
  font-family: "Inter", sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.7;
  transition: opacity 0.25s, color 0.25s;
}
.arq-back:hover { opacity: 1; color: var(--gold-light); }

/* ── Captura de lead ── */
.arq-lead { max-width: 520px; margin: 0 auto; text-align: center; }
.arq-lead h3 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 300;
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  margin-bottom: 1.2rem;
}
.arq-lead p { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 0.5rem; }
.arq-lead ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem auto 2.2rem;
  max-width: 360px;
  text-align: left;
}
.arq-lead li {
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 0.45rem 0 0.45rem 1.4rem;
  position: relative;
  border-bottom: 0.5px solid var(--border);
}
.arq-lead li::before { content: "—"; position: absolute; left: 0; color: var(--gold-light); }
.arq-field {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 0.5px solid rgba(244,241,236,0.25);
  color: var(--text);
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  padding: 0.9rem 0.2rem;
  margin-bottom: 1.4rem;
  outline: none;
  transition: border-color 0.25s;
}
.arq-field::placeholder { color: var(--text-dim); }
.arq-field:focus { border-bottom-color: var(--gold-light); }
.arq-error { color: #c98b7a; font-size: 0.72rem; letter-spacing: 0.08em; margin: -0.8rem 0 1rem; min-height: 1em; text-align: left; }
.arq-consent { font-size: 0.68rem; color: var(--text-dim); margin-top: 1.2rem; }
.arq-lead form .btn { margin-top: 1.4rem; margin-bottom: 1.4rem; }

/* ── Resultado ── */
.arq-result { text-align: center; }
.arq-score-num {
  font-family: "Cormorant Garamond", serif;
  font-weight: 300;
  font-size: clamp(4.5rem, 14vw, 8rem);
  line-height: 0.9;
  color: var(--gold-light);
}
.arq-score-num span { font-size: 0.3em; color: var(--text-dim); letter-spacing: 0.1em; }
.arq-profile-name {
  font-family: "Inter", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--text);
  margin: 1.2rem 0 0.2rem;
}
.arq-profile-desc {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: clamp(1.2rem, 2.6vw, 1.6rem);
  color: var(--gold-light);
  max-width: 560px;
  margin: 1rem auto 0;
  line-height: 1.4;
}

/* ── Radar SVG ── */
.arq-radar-wrap { max-width: 420px; margin: 3.5rem auto 1rem; }
.arq-radar { width: 100%; height: auto; display: block; }
.arq-radar .axis { stroke: var(--border); stroke-width: 0.5; }
.arq-radar .ring { stroke: rgba(244,241,236,0.07); stroke-width: 0.5; fill: none; }
.arq-radar .shape { fill: rgba(216,196,166,0.14); stroke: var(--gold-light); stroke-width: 1; }
.arq-radar .dot { fill: var(--gold-light); }
.arq-radar .label { fill: var(--text-muted); font-family: "Inter", sans-serif; font-size: 6px; letter-spacing: 0.1em; text-transform: uppercase; }

/* ── Desglose por categoría ── */
.arq-cats { max-width: 560px; margin: 2.5rem auto 0; text-align: left; }
.arq-cat { margin-bottom: 1.4rem; }
.arq-cat-head {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: "Inter", sans-serif; font-size: 0.62rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.5rem;
}
.arq-cat-head .v { color: var(--gold-light); }
.arq-cat-bar { height: 2px; background: var(--border); overflow: hidden; }
.arq-cat-bar > span { display: block; height: 100%; background: var(--gold-light); width: 0; transition: width 0.8s var(--ease, ease); }
.arq-cat.weak .arq-cat-head { color: var(--text); }
.arq-cat.weak .v::after { content: " · fractura principal"; color: var(--text-dim); letter-spacing: 0.1em; }
.arq-cat-note {
  font-size: 0.8rem; color: var(--text-muted); margin-top: 0.55rem; line-height: 1.5;
}

.arq-fracture {
  max-width: 560px; margin: 3rem auto 0; padding-top: 2.5rem;
  border-top: 0.5px solid var(--border); text-align: left;
}
.arq-fracture .lbl {
  display: block; font-family: "Inter", sans-serif; font-size: 0.6rem;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 0.8rem;
}
.arq-fracture p { color: var(--text-muted); line-height: 1.6; }

/* ── Próximos pasos post-resultado ── */
.arq-next-steps {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
}
.arq-next-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.2rem;
}
.arq-next-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

@media (max-width: 600px) {
  .arq-scale { gap: 0.45rem; }
  .arq-scale-btn { font-size: 1.1rem; }
  .arq-question { min-height: 5.5em; }
}
