/* Test de Seguridad Compuhelp — estilos de la aplicación */

html, body {
  margin: 0;
  padding: 0;
  background: var(--surface-page);
  font-family: var(--font-sans);
  color: var(--text-body);
}

* { box-sizing: border-box; }

.qz-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---- Header ---- */
.qz-header {
  background: var(--surface-card);
  border-bottom: 1px solid var(--border-subtle);
  padding: 14px 0;
}
.qz-header__inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.qz-header__logo { height: 44px; display: block; }

/* ---- Main column ---- */
.qz-main {
  flex: 1;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 20px 56px;
}

/* ---- Eyebrow (mono) ---- */
.qz-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-400);
  margin: 0 0 14px;
}
.qz-eyebrow--blue { color: var(--blue-600); }

/* ---- Intro ---- */
.qz-intro {
  position: relative;
  background: var(--gradient-ink);
  border-radius: var(--radius-xl, 20px);
  color: var(--text-on-dark);
  padding: clamp(32px, 6vw, 56px);
  overflow: hidden;
}
.qz-intro__iso {
  position: absolute;
  right: -60px;
  top: -60px;
  width: 280px;
  opacity: 0.08;
  pointer-events: none;
}
.qz-intro h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 16px;
  text-wrap: pretty;
}
.qz-intro h1 .hl { color: var(--orange-400); }
.qz-intro__lead {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-on-dark-muted);
  max-width: 52ch;
  margin: 0 0 24px;
}
.qz-intro__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0 0 28px;
}
.qz-stat {
  border: 1px solid var(--border-on-dark);
  border-radius: var(--radius-md, 10px);
  padding: 14px 16px;
  background: rgba(255,255,255,0.04);
}
.qz-stat__num {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}
.qz-stat__num.is-orange { color: var(--orange-400); }
.qz-stat__num.is-blue { color: var(--blue-300); }
.qz-stat__label {
  font-size: 12px;
  color: var(--text-on-dark-muted);
  margin-top: 6px;
  line-height: 1.45;
}
.qz-intro__topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 30px;
}
.qz-topic {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--border-on-dark);
  color: var(--text-on-dark);
  background: rgba(255,255,255,0.05);
}
.qz-topic i { width: 14px; height: 14px; color: var(--orange-400); }
.qz-intro__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}
.qz-intro__meta {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--text-on-dark-muted);
}

/* ---- Progress ---- */
.qz-progress {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}
.qz-progress__track {
  flex: 1;
  height: 8px;
  background: var(--gray-200);
  border-radius: 999px;
  overflow: hidden;
}
.qz-progress__fill {
  height: 100%;
  background: var(--gradient-brand);
  border-radius: 999px;
  transition: width 320ms var(--ease-standard, ease);
}
.qz-progress__count {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ---- Question ---- */
.qz-question h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(21px, 3.4vw, 27px);
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--text-strong);
  margin: 10px 0 24px;
  text-wrap: pretty;
}
.qz-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 22px;
}
.qz-option {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  background: var(--surface-card);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-lg, 14px);
  padding: 16px 18px;
  font-family: var(--font-sans);
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--text-body);
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.qz-option:hover:not(:disabled) {
  border-color: var(--blue-300);
  box-shadow: var(--shadow-sm);
}
.qz-option:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--focus-ring); }
.qz-option:disabled { cursor: default; }
.qz-option.is-selected {
  border-color: var(--blue-500);
  background: var(--blue-50);
  color: var(--text-strong);
}
.qz-option.is-dimmed { opacity: 0.55; }
.qz-option__bullet {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--border-default);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface-card);
  transition: all 160ms ease;
}
.qz-option.is-selected .qz-option__bullet {
  background: var(--blue-500);
  border-color: var(--blue-500);
  color: #fff;
}

/* ---- Tip after answering ---- */
.qz-tip {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--status-info-bg);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius-md, 10px);
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--blue-800);
  margin-bottom: 22px;
  animation: qz-fade-in 240ms var(--ease-standard, ease);
}
.qz-tip i { flex: none; width: 18px; height: 18px; color: var(--blue-500); margin-top: 1px; }
@keyframes qz-fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .qz-tip { animation: none; }
}
.qz-question__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* ---- Result ---- */
.qz-result-head {
  text-align: center;
  margin-bottom: 26px;
}
.qz-gauge { position: relative; width: 230px; margin: 0 auto 6px; }
.qz-gauge svg { display: block; width: 100%; height: auto; }
.qz-gauge__value {
  position: absolute;
  left: 0; right: 0;
  bottom: 8px;
  text-align: center;
}
.qz-gauge__num {
  font-family: var(--font-mono);
  font-size: 44px;
  font-weight: 700;
  color: var(--text-strong);
  line-height: 1;
}
.qz-gauge__num small { font-size: 20px; color: var(--text-muted); font-weight: 600; }
.qz-result-head h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(24px, 4vw, 32px);
  letter-spacing: -0.02em;
  color: var(--text-strong);
  margin: 14px 0 10px;
  text-wrap: pretty;
}
.qz-result-head p {
  max-width: 56ch;
  margin: 0 auto;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text-muted);
  text-wrap: pretty;
}

/* breakdown */
.qz-breakdown {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.qz-cat {
  display: grid;
  grid-template-columns: 34px 1fr 110px 90px;
  align-items: center;
  gap: 14px;
  padding: 13px 4px;
}
.qz-cat + .qz-cat { border-top: 1px solid var(--border-subtle); }
.qz-cat__icon {
  width: 34px; height: 34px;
  border-radius: var(--radius-md, 10px);
  background: var(--blue-50);
  color: var(--blue-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.qz-cat__icon i { width: 17px; height: 17px; }
.qz-cat__label { font-size: 14.5px; font-weight: 600; color: var(--text-strong); }
.qz-cat__bar {
  height: 7px;
  border-radius: 999px;
  background: var(--gray-200);
  overflow: hidden;
}
.qz-cat__bar span { display: block; height: 100%; border-radius: 999px; }
.qz-cat__status { justify-self: end; }

/* advice list */
.qz-advice { display: flex; flex-direction: column; gap: 12px; }
.qz-advice__item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.55;
}
.qz-advice__item i { flex: none; width: 17px; height: 17px; color: var(--orange-500); margin-top: 2px; }
.qz-advice__item strong { color: var(--text-strong); }

/* CTA band */
.qz-cta {
  position: relative;
  background: var(--gradient-ink);
  border-radius: var(--radius-xl, 20px);
  color: var(--text-on-dark);
  padding: clamp(28px, 5vw, 44px);
  overflow: hidden;
  text-align: center;
  margin-top: 26px;
}
.qz-cta__iso {
  position: absolute;
  left: -50px;
  bottom: -70px;
  width: 230px;
  opacity: 0.08;
  pointer-events: none;
}
.qz-cta h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(22px, 3.6vw, 30px);
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #fff;
  margin: 0 0 12px;
  text-wrap: pretty;
}
.qz-cta h3 .hl { color: var(--orange-400); }
.qz-cta p {
  max-width: 52ch;
  margin: 0 auto 24px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-on-dark-muted);
}
.qz-cta__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 18px;
}
.qz-cta__tel {
  font-family: var(--font-mono);
  white-space: nowrap;
  font-size: 14px;
  color: var(--text-on-dark);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.qz-cta__tel i { width: 15px; height: 15px; color: var(--orange-400); }
.qz-cta__tel:hover { text-decoration: underline; }
.qz-cta__meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
}

.qz-result__retry {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

/* section label inside result cards */
.qz-card-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 16px;
}

/* footer */
.qz-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 18px 20px;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-faint);
}
.qz-footer a { color: var(--text-link); text-decoration: none; }
.qz-footer a:hover { text-decoration: underline; }

/* result layout */
.qz-result-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

@media (max-width: 640px) {
  .qz-intro__stats { grid-template-columns: 1fr; }
  .qz-cat { grid-template-columns: 34px 1fr 80px; }
  .qz-cat__status { display: none; }
}

/* ---- Guide banner ---- */
.qz-guide-banner {
  display: flex;
  align-items: center;
  gap: 28px;
  background: white;
  border: 1.5px solid var(--border-subtle);
  border-radius: 16px;
  padding: 28px 32px;
  margin-top: 24px;
  box-shadow: var(--shadow-md);
}
.qz-guide-banner__img {
  width: 140px;
  flex-shrink: 0;
  object-fit: contain;
  drop-shadow: var(--shadow-sm);
}
.qz-guide-banner__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.qz-guide-banner__eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange-400);
}
.qz-guide-banner__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(17px, 2.5vw, 21px);
  font-weight: 700;
  color: var(--text-strong);
  line-height: 1.2;
}
.qz-guide-banner__desc {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 48ch;
}
.qz-guide-banner__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding: 10px 20px;
  background: var(--orange-500);
  color: white;
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  width: fit-content;
  transition: background 150ms;
}
.qz-guide-banner__btn:hover { background: #cf7708; }
.qz-guide-banner__btn i { width: 16px; height: 16px; }

@media (max-width: 640px) {
  .qz-guide-banner { flex-direction: column; align-items: flex-start; padding: 20px; }
  .qz-guide-banner__img { width: 110px; }
}
