/* =========================================================================
   Quiz — appended to /dimensiones after Dim 07
   ========================================================================= */

.qz {
  background: #111110;
  color: #FAFAF8;
  min-height: 100vh;
  scroll-snap-align: start;
  display: flex; align-items: center; justify-content: center;
  padding: 80px 6vw;
  font-family: "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.qz * { box-sizing: border-box; }

.qz-stage {
  width: 100%;
  max-width: 720px;
  display: flex; flex-direction: column;
  animation: qzFadeIn .6s cubic-bezier(.16,1,.3,1);
}
@keyframes qzFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.qz-eyebrow {
  font: 500 11px/1 "Inter", sans-serif;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: rgba(250,250,248,0.55);
  margin: 0 0 20px;
}

.qz-h1 {
  font: 300 clamp(36px, 5.5vw, 64px)/1.05 "Inter", sans-serif;
  letter-spacing: -0.03em;
  color: #FAFAF8;
  margin: 0 0 24px;
}
.qz-h2 {
  font: 300 clamp(22px, 3vw, 32px)/1.3 "Inter", sans-serif;
  letter-spacing: -0.02em;
  color: #FAFAF8;
  margin: 0;
}
.qz-body {
  font: 400 17px/1.75 "Inter", sans-serif;
  color: rgba(250,250,248,0.7);
  max-width: 560px;
  margin: 0 0 40px;
}

.qz-cta {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 18px 32px;
  font: 500 13px/1 "Inter", sans-serif;
  letter-spacing: 0.06em;
  text-decoration: none;
  border-radius: 999px;
  cursor: pointer;
  background: #FAFAF8;
  color: #111110;
  border: 1px solid transparent;
  transition: transform .25s, background .25s;
  align-self: flex-start;
}
.qz-cta:hover { transform: translateY(-2px); }
.qz-cta-red { background: #C8362A; color: #FAFAF8; }
.qz-cta-red:hover { background: #b02e23; }
.qz-cta:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.qz-fineprint {
  margin: 20px 0 0;
  font: 400 12px/1.6 "Inter", sans-serif;
  color: rgba(250,250,248,0.4);
  max-width: 520px;
}

/* Intro */
.qz-intro .qz-cta { margin-top: 8px; }

/* Progress */
.qz-progress { margin: 0 0 40px; }
.qz-progress-bar {
  height: 1px;
  background: #C8362A;
  transition: width .5s cubic-bezier(.16,1,.3,1);
  margin-bottom: 14px;
}
.qz-progress-dots { display: flex; gap: 6px; }
.qz-dot {
  flex: 1;
  height: 2px;
  background: rgba(250,250,248,0.12);
  transition: background .35s;
}
.qz-dot.on { background: rgba(250,250,248,0.6); }

/* Question */
.qz-question {
  font: 300 clamp(26px, 4vw, 44px)/1.2 "Inter", sans-serif;
  letter-spacing: -0.025em;
  color: #FAFAF8;
  margin: 0 0 36px;
  animation: qzFadeIn .5s cubic-bezier(.16,1,.3,1);
}

.qz-options { display: flex; flex-direction: column; gap: 10px; }
.qz-option {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  align-items: center;
  padding: 20px 22px;
  background: rgba(250,250,248,0.04);
  border: 1px solid rgba(250,250,248,0.08);
  border-radius: 12px;
  color: #FAFAF8;
  font: 400 16px/1.5 "Inter", sans-serif;
  text-align: left;
  cursor: pointer;
  transition: background .25s, border-color .25s, transform .2s;
}
.qz-option:hover {
  background: rgba(250,250,248,0.07);
  border-color: rgba(250,250,248,0.18);
}
.qz-option.is-selected {
  background: rgba(200,54,42,0.12);
  border-color: #C8362A;
}
.qz-letter {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(250,250,248,0.08);
  font: 500 12px/1 "Inter", sans-serif;
  letter-spacing: 0.06em;
}
.qz-option.is-selected .qz-letter { background: #C8362A; }
.qz-text { line-height: 1.55; }

.qz-nav {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 32px;
}
.qz-back {
  background: transparent; border: none;
  color: rgba(250,250,248,0.55);
  font: 500 12px/1 "Inter", sans-serif;
  letter-spacing: 0.08em; text-transform: uppercase;
  cursor: pointer;
}
.qz-back:disabled { opacity: 0.3; cursor: not-allowed; }
.qz-count {
  font: 500 11px/1 "Inter", sans-serif;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(250,250,248,0.4);
}

/* Analyzing */
.qz-analyzing { align-items: center; text-align: center; }
.qz-pulse {
  display: flex; gap: 10px; margin-bottom: 32px;
  justify-content: center;
}
.qz-pulse span {
  width: 14px; height: 14px; border-radius: 50%;
  background: #C8362A;
  animation: qzPulse 1.4s ease-in-out infinite;
}
.qz-pulse span:nth-child(2) { animation-delay: 0.2s; }
.qz-pulse span:nth-child(3) { animation-delay: 0.4s; }
@keyframes qzPulse {
  0%, 100% { transform: scale(0.6); opacity: 0.4; }
  50% { transform: scale(1.2); opacity: 1; }
}

/* Gate */
.qz-form { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.qz-form input {
  background: rgba(250,250,248,0.05);
  border: 1px solid rgba(250,250,248,0.15);
  border-radius: 12px;
  padding: 18px 22px;
  font: 300 18px/1.4 "Inter", sans-serif;
  color: #FAFAF8;
  outline: none;
  transition: border-color .25s, background .25s;
}
.qz-form input::placeholder { color: rgba(250,250,248,0.3); }
.qz-form input:focus {
  border-color: #C8362A;
  background: rgba(250,250,248,0.08);
}
.qz-error {
  color: #ff8a82;
  font: 400 13px/1.5 "Inter", sans-serif;
  margin: 4px 0 0;
}

/* =========================================================================
   QuizFlow — lead-magnet styled shell
   ========================================================================= */
.qz--lm {
  background: radial-gradient(ellipse at top, #1a1414 0%, #0a0a0a 60%);
  padding: 80px 4vw;
}
.qz-lm-shell {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
}
.qz-lm-topnav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.qz-lm-topnav .lm-ghost {
  font-size: 18px;
  padding: 6px 12px;
}
.qz-lm-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}
.qz-lm-form input {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 16px 20px;
  color: #f5f1ea;
  font: 400 16px/1.4 "Inter", sans-serif;
  outline: none;
  transition: border-color .25s, background .25s;
}
.qz-lm-form input::placeholder { color: rgba(245,241,234,0.35); }
.qz-lm-form input:focus {
  border-color: #c01f1f;
  background: rgba(255,255,255,0.07);
}
.qz-lm-form .lm-btn { align-self: flex-start; margin-top: 4px; }
