/* ============================================================
   Autoevaluación Comercial — Método ALTAG
   Estilos: mobile-first, tono ejecutivo, sobrio.
   ============================================================ */

:root {
  --navy: #10192b;
  --navy-soft: #2b3550;
  --ink: #1c2333;
  --muted: #667085;
  --bg: #f6f5f2;
  --card: #ffffff;
  --accent: #b5883a;
  --accent-dark: #8f6a28;
  --accent-soft: #f2e6cf;
  --line: #e6e4de;
  --danger-soft: #fbeee0;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(16, 25, 43, 0.04), 0 8px 24px rgba(16, 25, 43, 0.06);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

#app {
  min-height: 100vh;
  display: flex;
  justify-content: center;
}

button {
  font-family: inherit;
}

/* ---------- Layout general de pantalla ---------- */
.screen {
  width: 100%;
  max-width: 640px;
  padding: 32px 22px 48px;
  display: flex;
  flex-direction: column;
  animation: fadeUp 0.4s ease;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.brand {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent-dark);
  margin-bottom: 14px;
}

.logo {
  display: block;
  object-fit: contain;
}

.logo--intro {
  width: 72px;
  height: 72px;
  margin-bottom: 18px;
}

.logo--informe {
  width: 52px;
  height: 52px;
  margin-bottom: 12px;
}

/* ---------- Intro ---------- */
.screen--intro {
  justify-content: center;
  min-height: 100vh;
  padding-top: 56px;
  padding-bottom: 56px;
}

.intro-title {
  font-size: 30px;
  line-height: 1.25;
  margin: 0 0 16px;
  color: var(--navy);
  font-weight: 700;
}

.intro-text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 20px;
}

.intro-sublabel {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.intro-bullets {
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.intro-bullets li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  font-size: 15px;
  color: var(--ink);
  line-height: 1.5;
}

.intro-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.field-group {
  margin-bottom: 28px;
}

.field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}

.field-label span {
  font-weight: 400;
  color: var(--muted);
}

.field-input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 16px;
  background: var(--card);
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s;
}

.field-input:focus {
  border-color: var(--accent);
}

.intro-foot {
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

/* ---------- Botones ---------- */
.btn {
  border: none;
  border-radius: 999px;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease;
  width: 100%;
}

.btn--primary {
  background: var(--navy);
  color: #fff;
}

.btn--primary:hover {
  background: var(--navy-soft);
}

.btn--primary:active {
  transform: scale(0.98);
}

.btn--secondary {
  background: var(--accent-soft);
  color: var(--accent-dark);
  margin-bottom: 10px;
}

.btn--ghost {
  background: transparent;
  color: var(--muted);
  border: 1.5px solid var(--line);
}

/* ---------- Progreso ---------- */
.progreso {
  margin-bottom: 28px;
}

.progreso-bar {
  height: 6px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.progreso-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-dark) 100%);
  border-radius: 999px;
  transition: width 0.35s ease;
}

.progreso-label {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ---------- Transición entre bloques ---------- */
.screen--transicion {
  justify-content: center;
  min-height: 100vh;
}

.transicion-titulo {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.transicion-texto {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  margin-bottom: 32px;
}

/* ---------- Pregunta ---------- */
.screen--pregunta {
  min-height: 100vh;
  justify-content: flex-start;
  padding-top: 28px;
}

.motor-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: var(--accent-soft);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
  width: fit-content;
}

.pregunta-texto {
  font-size: 23px;
  line-height: 1.35;
  color: var(--navy);
  font-weight: 700;
  margin: 0 0 28px;
}

.opciones {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.opcion {
  text-align: left;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-size: 15.5px;
  line-height: 1.45;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
}

.opcion:hover {
  border-color: var(--accent);
  background: #fffdf8;
}

.opcion:active {
  transform: scale(0.99);
}

.opcion--selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 600;
}

.opcion:disabled {
  cursor: default;
  opacity: 0.55;
}

.opcion--selected:disabled {
  opacity: 1;
}

/* ---------- Procesando ---------- */
.screen--procesando {
  min-height: 100vh;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.spinner {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3.5px solid var(--line);
  border-top-color: var(--accent);
  animation: spin 0.9s linear infinite;
  margin: 0 auto 22px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.procesando-texto {
  font-size: 15px;
  color: var(--muted);
  font-weight: 500;
}

/* ---------- Informe ---------- */
.screen--informe {
  padding-top: 40px;
}

.informe-header {
  margin-bottom: 24px;
}

.informe-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 26px 24px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}

.card-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 14px;
}

.card--capacidad {
  text-align: center;
}

.anillo-cont {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 4px auto 14px;
}

.anillo-cont svg {
  position: absolute;
  top: 0;
  left: 0;
}

.anillo-base {
  stroke: var(--line);
}

.anillo-fill {
  stroke: var(--accent);
  stroke-linecap: round;
}

.anillo-valor {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  font-weight: 800;
  color: var(--navy);
}

.card-nota {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
  max-width: 420px;
  margin: 0 auto;
}

.perfil-nombre {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.perfil-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  margin: 0;
}

.hallazgos-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hallazgo-titulo {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.hallazgo-texto {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink);
  margin: 0;
}

.card--fortalezas .hallazgo-titulo::before {
  content: "";
}

.prioridades-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.prioridad-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.prioridad-num {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prioridad-texto {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink);
  padding-top: 3px;
}

.card--reflexion {
  background: var(--navy);
}

.card--reflexion .card-label {
  color: var(--accent-soft);
}

.reflexion-texto {
  font-size: 15px;
  line-height: 1.7;
  color: #f2f1ee;
  margin: 0;
}

.informe-acciones {
  margin-top: 22px;
}

.informe-foot {
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 24px;
}

/* ---------- Responsive ---------- */
@media (min-width: 720px) {
  .screen { padding-top: 56px; }
  .intro-title { font-size: 36px; }
  .pregunta-texto { font-size: 26px; }
}

/* ---------- Impresión (Guardar informe) ---------- */
@media print {
  body { background: #fff; }
  .informe-acciones { display: none; }
  .card { box-shadow: none; border: 1px solid var(--line); break-inside: avoid; }
  .card--reflexion { background: #f4f2ec !important; }
  .card--reflexion .card-label, .reflexion-texto { color: var(--ink) !important; }
}
