/* ── Reset seguro ── */
.qz * { box-sizing: border-box; margin: 0; padding: 0; }
.qz { font-family: var(--qz-fuente, 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif); }

/* ── Contenedor ── */
.qz {
  width: 100%; max-width: 1100px; margin: 0 auto;
  background: var(--qz-fondo); border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.10);
  display: flex; overflow: hidden; min-height: 600px;
}

/* ── Sidebar ── */
.qz .qz-side {
  width: 280px; flex-shrink: 0;
  background: var(--qz-sidebar); border-right: 1px solid var(--qz-borde);
  padding: 36px 26px; display: flex; flex-direction: column;
}
.qz .qz-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 40px; }
.qz .qz-logo-icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--qz-logo-ico-bg);
  display: flex; align-items: center; justify-content: center;
  color: var(--qz-texto); font-size: 22px; flex-shrink: 0; overflow: hidden;
}
.qz .qz-logo-icon .qz-logo-img { width:100%; height:100%; object-fit:cover; border-radius:12px; }
.qz .qz-logo-name { font-size: 20px; font-weight: 800; color: var(--qz-texto); line-height: 1.2; }
.qz .qz-logo-name span { color: var(--qz-primary); }
.qz .qz-logo-sub { font-size: 10px; font-weight: 700; letter-spacing: 1px; color: var(--qz-muted); text-transform: uppercase; margin-top: 2px; }
.qz .qz-benefits { display: flex; flex-direction: column; gap: 22px; flex: 1; }
.qz .qz-benefit { display: flex; align-items: flex-start; gap: 12px; }
.qz .qz-benefit-ico {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--qz-ico-bg);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 15px; overflow: hidden;
}
.qz .qz-benefit-ico .qz-img-icon { width:100%; height:100%; object-fit:cover; border-radius:50%; }
.qz .qz-benefit-title { font-size: 14px; font-weight: 700; color: var(--qz-texto); margin-bottom: 3px; }
.qz .qz-benefit-desc  { font-size: 12px; color: var(--qz-muted); line-height: 1.4; }

/* ── Panel principal ── */
.qz .qz-main { flex: 1; padding: 44px 50px; display: flex; flex-direction: column; }
.qz .qz-step-lbl {
  text-align: center; color: var(--qz-primary);
  font-weight: 700; font-size: var(--txt-paso-lbl-tam, 12px); letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 14px;
  font-family: var(--txt-paso-lbl-fuente, var(--qz-fuente));
}
.qz .qz-prog { display: flex; gap: 6px; margin-bottom: 34px; }
.qz .qz-prog-bar { flex: 1; height: 6px; border-radius: 4px; background: var(--qz-borde); overflow: hidden; }
.qz .qz-prog-bar.done span,
.qz .qz-prog-bar.active span { display: block; height: 100%; width: 100%; background: var(--qz-primary); }
.qz .qz-q-title { text-align: center; font-size: var(--txt-pregunta-tam, 28px); font-family: var(--txt-pregunta-fuente, var(--qz-fuente)); font-weight: 800; color: var(--qz-texto); margin-bottom: 9px; }
.qz .qz-q-sub { text-align: center; color: var(--qz-muted); font-size: var(--txt-subtitulo-tam, 14.5px); font-family: var(--txt-subtitulo-fuente, var(--qz-fuente)); margin-bottom: 30px; }

/* ── Opciones ── */
.qz .qz-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(195px, 1fr)); gap: 16px; margin-bottom: 24px; }
.qz .qz-opt {
  border: 2px solid var(--qz-borde); border-radius: 18px; padding: 28px 18px;
  text-align: center; cursor: pointer; background: var(--qz-fondo);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.qz .qz-opt:hover { border-color: var(--qz-primary); transform: translateY(-4px); box-shadow: 0 10px 24px var(--qz-sombra); }
.qz .qz-opt.sel { border-color: var(--qz-primary); background: var(--qz-sel-bg); box-shadow: 0 10px 24px var(--qz-sombra); }
.qz .qz-opt-ico {
  width: 74px; height: 74px; margin: 0 auto 15px; border-radius: 50%;
  background: var(--qz-ico-bg); display: flex; align-items: center;
  justify-content: center; font-size: 28px; overflow: hidden;
}
.qz .qz-opt-ico .qz-opt-img { width:100%; height:100%; object-fit:cover; border-radius:50%; }
.qz .qz-opt-title { font-size: var(--txt-opt-titulo-tam, 16px); font-family: var(--txt-opt-titulo-fuente, var(--qz-fuente)); font-weight: 700; color: var(--qz-texto); margin-bottom: 6px; }
.qz .qz-opt.sel .qz-opt-title { color: var(--qz-primary); }
.qz .qz-opt-desc { font-size: var(--txt-opt-desc-tam, 12.5px); font-family: var(--txt-opt-desc-fuente, var(--qz-fuente)); color: var(--qz-muted); line-height: 1.45; }

/* ── Navegación ── */
.qz .qz-nav { display: flex; justify-content: space-between; align-items: center; }
.qz .qz-back { background: none; border: none; color: var(--qz-muted); font-weight: 600; font-size: 14px; cursor: pointer; visibility: hidden; font-family: inherit; }
.qz .qz-back.show { visibility: visible; }
.qz .qz-priv { margin-top: auto; padding-top: 20px; text-align: center; font-size: 13px; color: var(--qz-muted); display: flex; align-items: center; justify-content: center; gap: 5px; }

/* ── Resultado ── */
.qz .qz-result { text-align: center; margin: auto 0; padding: 20px 0; }
.qz .qz-res-ico {
  width: 90px; height: 90px; margin: 0 auto 20px; border-radius: 50%;
  background: var(--qz-ico-bg); display: flex; align-items: center;
  justify-content: center; font-size: 36px; overflow: hidden;
}
.qz .qz-res-ico .qz-res-img { width:100%; height:100%; object-fit:cover; border-radius:50%; }
.qz .qz-res-badge {
  display: inline-block; background: var(--qz-ico-bg); color: var(--qz-primary-dk);
  font-weight: 700; font-size: var(--txt-res-badge-tam, 12px); font-family: var(--txt-res-badge-fuente, var(--qz-fuente)); letter-spacing: .5px; text-transform: uppercase;
  padding: 6px 18px; border-radius: 20px; margin-bottom: 18px;
}
.qz .qz-res-title { font-size: var(--txt-res-titulo-tam, 24px); font-family: var(--txt-res-titulo-fuente, var(--qz-fuente)); font-weight: 800; color: var(--qz-texto); margin-bottom: 12px; line-height: 1.3; }
.qz .qz-res-desc { font-size: var(--txt-res-desc-tam, 15px); font-family: var(--txt-res-desc-fuente, var(--qz-fuente)); color: var(--qz-muted); max-width: 520px; margin: 0 auto 28px; line-height: 1.65; }
.qz .qz-res-btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ── Botones ── */
.qz .qz-btn {
  padding: 13px 24px; border-radius: 12px; font-weight: 700; font-size: var(--txt-btn-tam, 15px);
  cursor: pointer; border: none; display: inline-block;
  transition: transform .15s, box-shadow .15s;
  font-family: var(--txt-btn-fuente, var(--qz-fuente)); line-height: 1.4; text-decoration: none;
}
.qz .qz-btn:hover { transform: translateY(-2px); }
.qz .qz-btn-p  { background: var(--qz-primary);  color: #fff; box-shadow: 0 6px 16px var(--qz-sombra); }
.qz .qz-btn-w  { background: var(--qz-wa);        color: #fff; box-shadow: 0 6px 16px rgba(37,211,102,.3); }
.qz .qz-btn-s  { background: var(--qz-sidebar);   color: var(--qz-texto); border: 2px solid var(--qz-borde); }
.qz .qz-btn-dl {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #fff;
  box-shadow: 0 6px 16px rgba(124,58,237,0.30);
  animation: qz-pulse 2s infinite;
}
@keyframes qz-pulse {
  0%,100% { transform: translateY(0);    box-shadow: 0 6px 16px rgba(124,58,237,.30); }
  50%      { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(124,58,237,.45); }
}

/* ── Responsive ── */
@media (max-width: 860px) {
  .qz { flex-direction: column; }
  .qz .qz-side { width: 100%; border-right: none; border-bottom: 1px solid var(--qz-borde); padding: 20px; flex-direction: row; align-items: center; }
  .qz .qz-logo { margin-bottom: 0; }
  .qz .qz-benefits { display: none; }
  .qz .qz-main { padding: 28px 18px; }
  .qz .qz-q-title { font-size: 22px; }
  .qz .qz-res-btns { flex-direction: column; align-items: center; }
  .qz .qz-btn { width: 100%; text-align: center; }
}
