:root { --forest: #194D33; --forest-2: #123A26; --leaf: #4D8750; --sage: #A8CC8C; --sage-soft: #E9F1E1; --ivory: #F7F8F2; --charcoal: #29332D; --muted: #68726B; --line: #E3E8DD;
  --green: #2FA552; --yellow: #F2B632; --red: #E9533D; --shadow: 0 2px 14px rgba(25, 77, 51, .08); }
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--ivory); color: var(--charcoal); font: 16px/1.5 'Nunito Sans', system-ui, sans-serif; -webkit-font-smoothing: antialiased; min-height: 100vh; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
h1, h2, h3 { font-family: 'Outfit', sans-serif; color: var(--forest-2); letter-spacing: -.01em; }

.q-top { position: relative; display: flex; justify-content: center; align-items: center; height: 64px; max-width: 520px; margin: 0 auto; }
.q-logo { height: 32px; }
.q-back { position: absolute; left: 12px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; }
.q-back[hidden] { display: none; }
.q-back svg { width: 24px; height: 24px; stroke: var(--forest); stroke-width: 2.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.q-progress { max-width: 480px; margin: 0 auto; height: 8px; background: #E6EBE0; border-radius: 8px; overflow: hidden; width: calc(100% - 36px); }
.q-progress i { display: block; height: 100%; width: 4%; background: linear-gradient(90deg, var(--sage), var(--leaf)); border-radius: 8px; transition: width .5s ease; }

.q-wrap { max-width: 480px; margin: 0 auto; padding: 22px 18px 48px; }
.q-step { animation: qIn .45s ease both; }
@keyframes qIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.q-kicker { text-align: center; font-size: 13px; font-weight: 800; letter-spacing: .1em; color: var(--leaf); text-transform: uppercase; margin-bottom: 8px; }
.q-title { text-align: center; font-size: 25px; line-height: 1.2; margin-bottom: 10px; }
.q-sub { text-align: center; color: #4A5650; font-size: 16.5px; margin-bottom: 18px; }
.q-hint { text-align: center; color: var(--muted); font-size: 15px; margin: -4px 0 18px; }
.q-note { text-align: center; color: var(--muted); font-size: 12.5px; margin-top: 22px; }
.q-badges { text-align: center; font-weight: 700; color: var(--forest-2); font-size: 14.5px; margin-top: 16px; white-space: pre-wrap; }

.q-opts { display: grid; gap: 10px; margin-top: 6px; }
.q-opt { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: #fff; border: 2px solid var(--line); border-radius: 16px; padding: 15px 16px; font-weight: 700; font-size: 16.5px; color: var(--forest-2); box-shadow: var(--shadow); transition: border-color .15s, background .15s, transform .1s; }
.q-opt:active { transform: scale(.985); }
.q-opt .q-check { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #C9D3C3; display: grid; place-items: center; }
.q-opt.multi .q-check { border-radius: 7px; }
.q-opt .q-check svg { width: 15px; height: 15px; stroke: #fff; stroke-width: 3.4; fill: none; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.q-opt.on { border-color: var(--leaf); background: var(--sage-soft); }
.q-opt.on .q-check { background: var(--leaf); border-color: var(--leaf); }
.q-opt.on .q-check svg { opacity: 1; }
.q-yesno { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
.q-yesno .q-opt { justify-content: center; font-size: 19px; padding: 18px 10px; }

.q-btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 58px; border-radius: 16px; background: var(--forest); color: #fff; font-weight: 800; font-size: 18px; padding: 14px 18px; margin-top: 22px; box-shadow: 0 12px 26px rgba(25, 77, 51, .25); text-decoration: none; text-align: center; }
.q-btn.pulse { animation: qPulse 2.4s ease-in-out infinite; }
.q-btn[disabled] { opacity: .45; box-shadow: none; animation: none; }
@keyframes qPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.025); } }

/* medidor */
.gauge { position: relative; width: 100%; max-width: 360px; margin: 6px auto 0; }
.gauge svg { width: 100%; height: auto; display: block; overflow: visible; }
.gauge .needle { transform-origin: 180px 190px; transform: rotate(-88deg); transition: transform 2.2s cubic-bezier(.22, 1.2, .36, 1); }
.gauge-score { text-align: center; margin-top: 4px; }
.gauge-score b { font-family: 'Outfit', sans-serif; font-size: 44px; line-height: 1; }
.gauge-score span { display: block; color: var(--muted); font-size: 14px; font-weight: 700; }

.q-level { border-radius: 18px; padding: 16px; margin-top: 16px; text-align: center; }
.q-level h2 { font-size: 22px; margin-bottom: 4px; }
.q-level p { font-size: 16px; }
.lvl-0 { background: #E3F4E6; } .lvl-0 h2 { color: #1D7A3A; }
.lvl-1 { background: #FFF4D9; } .lvl-1 h2 { color: #9A6B00; }
.lvl-2 { background: #FDE5E0; } .lvl-2 h2 { color: #B3321F; }
.q-factors { background: #fff; border-radius: 18px; padding: 14px 16px; margin-top: 12px; box-shadow: var(--shadow); }
.q-factors p { font-weight: 800; color: var(--forest-2); font-size: 15px; margin-bottom: 6px; }
.q-factors li { list-style: none; display: flex; gap: 8px; align-items: baseline; font-size: 15px; padding: 3px 0; }
.q-factors li::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--red); transform: translateY(-1px); }
.q-factors .none { color: var(--muted); font-size: 15px; }

/* escalera */
.stairs { display: flex; align-items: flex-end; gap: 6px; height: 170px; margin: 46px 0 14px; }
.stairs > div { flex: 1; border-radius: 12px 12px 6px 6px; padding: 10px 8px; color: #fff; display: flex; flex-direction: column; justify-content: flex-start; position: relative; }
.stairs b { font-family: 'Outfit', sans-serif; font-size: 13.5px; line-height: 1.15; text-align: center; }
.stairs span { font-size: 11px; line-height: 1.25; margin-top: 4px; opacity: .95; }
.stairs i { position: absolute; top: -34px; left: 50%; transform: translateX(-50%); font-style: normal; font-family: 'Outfit', sans-serif; font-weight: 800; color: var(--forest-2); background: #fff; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; box-shadow: var(--shadow); font-size: 14px; }
.stairs-legend { list-style: none; display: grid; gap: 8px; margin-bottom: 14px; }
.stairs-legend li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: #3B4640; }
.stairs-legend span { flex: none; width: 24px; height: 24px; border-radius: 50%; color: #fff; font-weight: 800; font-size: 13px; display: grid; place-items: center; }
.stairs-legend b { color: var(--forest-2); }
.q-text { font-size: 16px; color: #3B4640; margin-top: 8px; }
.q-good { background: var(--sage-soft); border-radius: 16px; padding: 14px 16px; margin-top: 14px; color: var(--forest-2); font-size: 15.5px; }

/* cargando */
.q-loader { display: grid; place-items: center; gap: 18px; padding: 50px 0 20px; text-align: center; }
.q-ring { width: 120px; height: 120px; }
.q-ring circle { fill: none; stroke-width: 10; }
.q-ring .bg { stroke: #E3EADB; }
.q-ring .fg { stroke: var(--leaf); stroke-linecap: round; stroke-dasharray: 314; stroke-dashoffset: 314; transform: rotate(-90deg); transform-origin: 60px 60px; }
.q-loader b { font-family: 'Outfit', sans-serif; font-size: 28px; color: var(--forest-2); }
.q-loader p { color: #4A5650; font-size: 16.5px; }

/* VSL */
.q-video { position: relative; width: 100%; aspect-ratio: 9 / 16; max-height: 70vh; border-radius: 18px; overflow: hidden; background: #0f1a14; box-shadow: var(--shadow); margin: 6px auto 0; }
.q-video.wide { aspect-ratio: 16 / 9; }
.q-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.q-video.empty { display: grid; place-items: center; color: #CFE8BE; font-weight: 700; aspect-ratio: 16 / 9; }
.q-offer { display: none; margin-top: 16px; }
.q-offer.on { display: block; animation: qIn .6s ease both; }
.q-card { background: #fff; border: 2px solid var(--sage); border-radius: 20px; padding: 20px 18px; text-align: center; box-shadow: 0 8px 24px rgba(25, 77, 51, .10); }
.q-card .k { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--leaf); }
.q-card .p { font-family: 'Outfit', sans-serif; font-weight: 800; color: var(--forest); font-size: 52px; line-height: 1.05; margin-top: 4px; }
.q-card .pn { color: var(--muted); font-size: 14px; font-weight: 700; }
.q-card .d { margin: 14px 0; background: var(--sage-soft); border-radius: 14px; padding: 12px; }
.q-card .d p:first-child { font-size: 17px; font-weight: 700; color: var(--forest-2); }
.q-card .d p:last-child { font-size: 14px; color: #4A5650; }
.q-card ul { list-style: none; display: grid; gap: 8px; text-align: left; }
.q-card li { background: var(--ivory); border-radius: 12px; padding: 9px 12px; font-weight: 700; color: var(--forest-2); font-size: 15px; }
.q-card .g { display: flex; gap: 12px; align-items: center; text-align: left; margin-top: 14px; font-size: 14px; color: #4A5650; }
.q-card .g span { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--forest); color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 19px; }
.q-cta { display: none; }
.q-cta.on { display: block; animation: qIn .6s ease both; }
.q-cta small { display: block; text-align: center; color: var(--muted); font-size: 13px; margin-top: 8px; }

.q-preview { position: fixed; bottom: 10px; left: 50%; transform: translateX(-50%); background: #2B3566; color: #fff; font-size: 12.5px; font-weight: 800; padding: 6px 12px; border-radius: 999px; z-index: 9; }
.q-loading-first { height: 60vh; }
