/* =========================================================
   Diagnóstico — page header
   ========================================================= */
.diag-hero {
  position: relative;
  overflow: hidden;
  padding: 150px 0 80px;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(37,99,235,0.22), transparent 60%), var(--bg);
}
.diag-hero__glow {
  position: absolute;
  top: -120px; left: 50%;
  transform: translateX(-50%);
  width: 640px; height: 420px;
  background: radial-gradient(circle, rgba(37,99,235,0.35), transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}
.diag-hero__inner {
  position: relative;
  max-width: 720px;
  text-align: center;
  margin-inline: auto;
}
.diag-hero__title {
  font-size: clamp(2rem, 4.4vw, 3rem);
  font-weight: 700;
  margin: 20px 0 18px;
}
.diag-hero__subtitle {
  color: var(--text-dim);
  font-size: 1.05rem;
  max-width: 560px;
  margin-inline: auto;
}

/* =========================================================
   Wizard card
   ========================================================= */
.diag-section { padding-top: 0; }

.diag-card {
  max-width: 680px;
  margin-inline: auto;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glow);
  padding: 40px;
}

@media (max-width: 640px) {
  .diag-card { padding: 28px 20px; }
}

/* ---- progress ---- */
.diag-progress { margin-bottom: 32px; }
.diag-progress__bar {
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--bg-alt);
  overflow: hidden;
  margin-bottom: 14px;
}
.diag-progress__fill {
  height: 100%;
  width: 25%;
  background: var(--grad-primary);
  border-radius: var(--radius-full);
  transition: width 0.45s var(--ease);
}
.diag-progress__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.diag-progress__label span:first-child {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--secondary);
}
.diag-progress__label span:last-child {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
}

/* ---- steps ---- */
.diag-step {
  display: none;
  flex-direction: column;
  gap: 20px;
  animation: diagStepIn 0.35s var(--ease);
}
.diag-step.is-active { display: flex; }
@keyframes diagStepIn {
  from { opacity: 0; transform: translateX(12px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ---- chip-style checkbox / radio groups ---- */
.diag-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
.diag-chips input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.diag-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-strong);
  background: var(--bg-alt);
  color: var(--text-dim);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.diag-chip:hover { border-color: rgba(59,130,246,0.5); color: var(--text); }
.diag-chips input:checked + .diag-chip {
  background: var(--grad-primary);
  border-color: transparent;
  color: #fff;
  transform: translateY(-1px);
}
.diag-chips input:focus-visible + .diag-chip {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

/* ---- nav buttons ---- */
.diag-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
}
.diag-nav .btn--primary,
.diag-nav .btn--outline { margin-left: auto; }
.diag-nav #diagBack { margin-left: 0; margin-right: auto; }

.diag-card #diagNote {
  text-align: center;
  margin-top: 16px;
}

/* ---- success state ---- */
.diag-success {
  text-align: center;
  padding: 20px 0 4px;
}
.diag-success__icon {
  width: 64px; height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 8px 24px -6px rgba(37,99,235,0.6);
}
.diag-success h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}
.diag-success p {
  color: var(--text-dim);
  margin-bottom: 24px;
}
