/* ── Reset seguro ── */
.qz * { box-sizing: border-box; margin: 0; padding: 0; }
.qz { font-family: '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: linear-gradient(135deg, var(--qz-primary), var(--qz-primary-dk));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 22px; flex-shrink: 0; overflow: hidden;
}
/* Imagen dentro del logo */
.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; }

/* ── Beneficios ── */
.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); color: var(--qz-primary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 15px; overflow: hidden;
}
/* Imagen dentro de beneficio */
.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: 12px; letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 14px;
}
.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: 28px; font-weight: 800; color: var(--qz-texto); margin-bottom: 9px; }
.qz .qz-q-sub { text-align: center; color: var(--qz-muted); font-size: 14.5px; 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;
}
/* Imagen dentro de opción */
.qz .qz-opt-ico .qz-opt-img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
}
.qz .qz-opt-title { font-size: 16px; 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: 12.5px; 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; }
.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; }
.qz .qz-res-ico {
  width: 80px; height: 80px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--qz-ico-bg); display: flex; align-items: center;
  justify-content: center; font-size: 32px; 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: 12px; letter-spacing: .5px; text-transform: uppercase;
  padding: 6px 18px; border-radius: 20px; margin-bottom: 18px;
}
.qz .qz-res-title { font-size: 26px; font-weight: 800; color: var(--qz-texto); margin-bottom: 13px; }
.qz .qz-res-desc { font-size: 15px; 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: 13px; justify-content: center; }
.qz .qz-btn {
  padding: 13px 24px; border-radius: 12px; font-weight: 700; font-size: 15px;
  cursor: pointer; border: none; text-decoration: none !important; display: inline-block; transition: transform .15s;
}
.qz .qz-btn:hover { transform: translateY(-2px); }
.qz .qz-btn-p { background: var(--qz-primary);  color: #fff !important; box-shadow: 0 6px 16px var(--qz-sombra); }
.qz .qz-btn-w { background: var(--qz-wa);        color: #fff !important; box-shadow: 0 6px 16px rgba(37,211,102,.3); }
.qz .qz-btn-s { background: var(--qz-sidebar);   color: var(--qz-texto) !important; border: 2px solid var(--qz-borde); }
.qz .qz-btn-dl {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #fff !important;
  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,0.30); }
  50%       { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(124,58,237,0.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-opts { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .qz .qz-opt { padding: 18px 12px; border-radius: 14px; }
  .qz .qz-opt-ico { width: 56px; height: 56px; font-size: 22px; margin-bottom: 10px; }
  .qz .qz-opt-title { font-size: 14px; }
  .qz .qz-opt-desc { font-size: 11.5px; }
}

/* ── Responsive: móviles ── */
@media (max-width: 600px) {
  .qz { border-radius: 16px; min-height: 0; box-shadow: 0 10px 30px rgba(0,0,0,0.10); }
  .qz .qz-side { padding: 16px; gap: 10px; }
  .qz .qz-logo { gap: 10px; }
  .qz .qz-logo-icon { width: 38px; height: 38px; font-size: 18px; border-radius: 10px; }
  .qz .qz-logo-name { font-size: 16px; }
  .qz .qz-logo-sub { font-size: 9px; }
  .qz .qz-main { padding: 22px 16px; }
  .qz .qz-step-lbl { font-size: 11px; margin-bottom: 10px; }
  .qz .qz-prog { margin-bottom: 20px; }
  .qz .qz-q-title { font-size: 19px; margin-bottom: 6px; }
  .qz .qz-q-sub { font-size: 13px; margin-bottom: 18px; }

  /* Cards de opciones: layout horizontal compacto en vez de tarjetas grandes verticales */
  .qz .qz-opts { grid-template-columns: 1fr; gap: 10px; margin-bottom: 18px; }
  .qz .qz-opt {
    display: flex; align-items: center; text-align: left; gap: 14px;
    padding: 12px 14px; border-radius: 14px;
  }
  .qz .qz-opt:hover { transform: none; }
  .qz .qz-opt-ico { width: 44px; height: 44px; margin: 0; font-size: 18px; flex-shrink: 0; }
  .qz .qz-opt-text { flex: 1; min-width: 0; }
  .qz .qz-opt-title { font-size: 14px; margin-bottom: 2px; }
  .qz .qz-opt-desc { font-size: 12px; line-height: 1.35; }

  /* Resultado y botones apilados a ancho completo, más fáciles de tocar */
  .qz .qz-res-ico { width: 62px; height: 62px; font-size: 24px; margin-bottom: 12px; }
  .qz .qz-res-badge { font-size: 11px; padding: 5px 14px; margin-bottom: 14px; }
  .qz .qz-res-title { font-size: 20px; margin-bottom: 10px; }
  .qz .qz-res-desc { font-size: 13.5px; margin-bottom: 22px; }
  .qz .qz-res-btns { flex-direction: column; gap: 10px; }
  .qz .qz-btn { width: 100%; text-align: center; padding: 14px 20px; font-size: 14px; }
}
