:root {
  color-scheme: light;
  --brand-blue: #38527f;
  --navy: #263d68;
  --navy-deep: #192c51;
  --blue: #496999;
  --ink: #172743;
  --muted: #6d7b91;
  --line: #e1e7f0;
  --soft: #f5f7fb;
  --gold: #c6a96b;
  --green: #2d866d;
  --shadow: 0 24px 70px rgba(30, 51, 87, .13);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

html { min-width: 320px; background: #eef2f8; }

body { margin: 0; color: var(--ink); background: var(--brand-blue); min-height: 100vh; }

button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid rgba(198, 169, 107, .7); outline-offset: 3px; }

.page-shell { width: min(100% - 32px, 740px); margin: 0 auto; padding: 22px 0 28px; min-height: 100vh; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 18px; }
.brand { width: 218px; height: 74px; background: transparent; border-radius: 0; overflow: hidden; display: block; }
.brand img { width: 100%; height: 100%; object-fit: contain; display: block; }

.quiz-card { background: rgba(255, 255, 255, .97); border: 1px solid rgba(222, 229, 240, .95); border-radius: 24px; box-shadow: var(--shadow); overflow: hidden; flex: 1; }
.intro-screen, .question-screen, .contact-screen, .result-screen { min-height: 650px; padding: 34px clamp(24px, 6vw, 64px) 42px; display: flex; flex-direction: column; }
.progress-wrap { width: 100%; margin-bottom: 18px; }
.progress-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: .71rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; margin-bottom: 9px; }
.progress-track { height: 5px; background: #edf0f6; border-radius: 5px; overflow: hidden; }
.progress-value { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--gold)); transition: width .35s ease; }

.intro-content { margin: 0; max-width: 600px; padding-top: 8px; }
.eyebrow { color: var(--blue); font-size: .72rem; font-weight: 800; letter-spacing: .11em; line-height: 1.5; text-transform: uppercase; }
.eyebrow-line { display: inline-block; width: 26px; height: 2px; margin: 0 7px 3px 0; background: var(--gold); }
h1 { color: var(--navy-deep); font-size: clamp(2rem, 5vw, 3.12rem); letter-spacing: -.045em; line-height: 1.08; margin: 16px 0 20px; }
h1 em { color: var(--blue); font-style: normal; }
.lead { color: #506078; font-size: clamp(1rem, 2vw, 1.12rem); line-height: 1.7; margin: 0; max-width: 570px; }
.lead strong { color: var(--ink); font-weight: 750; }
.benefit-row { display: flex; flex-wrap: wrap; gap: 12px 24px; margin: 27px 0 30px; }
.benefit { display: inline-flex; align-items: center; gap: 8px; color: #56657a; font-size: .83rem; font-weight: 650; }
.benefit-icon { display: grid; place-items: center; width: 23px; height: 23px; color: var(--green); border-radius: 50%; background: #e8f5f0; font-weight: 900; }
.benefit-icon svg { fill: none; height: 15px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.9; width: 15px; }
.primary-button { align-items: center; border: 0; border-radius: 12px; background: var(--navy); color: #fff; cursor: pointer; display: inline-flex; font-size: .88rem; font-weight: 800; justify-content: center; letter-spacing: .08em; min-height: 54px; padding: 15px 22px; text-decoration: none; text-transform: uppercase; transition: transform .18s ease, background .18s ease, box-shadow .18s ease; }
.primary-button:hover { background: var(--navy-deep); box-shadow: 0 12px 24px rgba(38, 61, 104, .22); transform: translateY(-1px); }
.primary-button--whatsapp, .primary-button--whatsapp:hover { background: #25d366; box-shadow: 0 12px 24px rgba(37, 211, 102, .23); }
.primary-button--instagram, .primary-button--instagram:hover { background: linear-gradient(135deg, #833ab4, #fd1d1d 55%, #fcb045); box-shadow: 0 12px 24px rgba(131, 58, 180, .22); }
.whatsapp-icon, .instagram-icon { fill: none; height: 20px; margin-right: 10px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; width: 20px; }
.whatsapp-icon { fill: currentColor; stroke: none; }
.primary-button span { font-size: 1.25rem; margin-left: 12px; line-height: 0; }
.primary-button--wide { width: 100%; }
.microcopy { color: #8a95a5; font-size: .72rem; line-height: 1.5; margin: 13px 0 0; text-align: center; }

.question-screen { padding-top: 28px; }
.question-header { max-width: 590px; margin: 0 auto 24px; width: 100%; }
.back-button { align-items: center; background: transparent; border: 0; color: #78869a; cursor: pointer; display: inline-flex; font-size: .78rem; font-weight: 750; gap: 7px; padding: 0; }
.back-button:hover { color: var(--navy); }
.back-button span { font-size: 1.1rem; }
.question-header .eyebrow { margin-top: 27px; }
.question-header h1 { font-size: clamp(1.75rem, 4vw, 2.35rem); margin: 12px 0 10px; }
.question-hint { color: var(--muted); font-size: .94rem; line-height: 1.55; margin: 0; }
.answer-list { display: grid; gap: 10px; max-width: 590px; margin: 0 auto; width: 100%; }
.answer-card { align-items: center; appearance: none; background: #fff; border: 1px solid var(--line); border-radius: 13px; color: var(--ink); cursor: pointer; display: flex; gap: 13px; min-height: 58px; padding: 13px 16px; text-align: left; transition: border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease; width: 100%; }
.answer-card:hover { border-color: #a9bad4; transform: translateX(2px); }
.answer-card.is-selected { background: #f0f4fa; border-color: var(--blue); box-shadow: 0 0 0 2px rgba(73, 105, 153, .11); }
.answer-icon { color: var(--blue); font-size: 1.4rem; width: 24px; text-align: center; }
.answer-copy { display: flex; flex-direction: column; gap: 2px; }
.answer-label { font-size: .95rem; font-weight: 720; line-height: 1.3; }
.answer-detail { color: var(--muted); font-size: .78rem; }
.answer-check { align-items: center; border: 1px solid #dbe2ec; border-radius: 50%; color: transparent; display: flex; font-size: .68rem; height: 21px; justify-content: center; margin-left: auto; width: 21px; }
.is-selected .answer-check { background: var(--blue); border-color: var(--blue); color: #fff; }
.question-footnote { color: #8c98a8; font-size: .73rem; margin: auto auto 0; padding-top: 25px; text-align: center; }
.question-footnote span { color: var(--gold); }

.contact-screen, .result-screen { max-width: 680px; margin: 0 auto; width: 100%; }
.contact-header, .result-hero { max-width: 590px; width: 100%; margin: 0 auto; }
.contact-header h1, .result-hero h1 { font-size: clamp(1.8rem, 4vw, 2.55rem); margin: 13px 0 13px; }
.contact-header p, .result-hero p { color: var(--muted); line-height: 1.65; margin: 0; }
.result-seal { align-items: center; background: #e8f5f0; border: 7px solid #f4fbf8; border-radius: 50%; color: var(--green); display: flex; font-size: 1.45rem; font-weight: 900; height: 62px; justify-content: center; margin-bottom: 21px; width: 62px; }
.contact-form { max-width: 590px; width: 100%; margin: 28px auto 0; }
.field-label { color: var(--ink); display: block; font-size: .78rem; font-weight: 800; margin: 0 0 8px; }
.field-label + input { margin-bottom: 17px; }
input { background: #fbfcfe; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); min-height: 54px; outline: none; padding: 14px 15px; transition: border .18s ease, box-shadow .18s ease; width: 100%; }
input::placeholder { color: #a1adbc; }
input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(73, 105, 153, .1); }
.form-error { color: #b63e4a; font-size: .78rem; margin: 0 0 14px; }
.privacy-note, .result-note { align-items: flex-start; color: #8995a5; display: flex; font-size: .71rem; gap: 8px; line-height: 1.5; margin: 16px auto 0; max-width: 590px; width: 100%; }
.privacy-note > span:first-child, .result-note > span:first-child { color: var(--gold); }
.back-button--center { margin: 24px auto 0; }

.result-screen--qualified .result-seal { background: #e8f5f0; color: var(--green); }
.result-screen--disqualified .result-seal { background: #f6f1e7; color: #9a7740; }
.result-screen--disqualified .result-note { margin-top: 24px; }
.result-hero { margin-top: auto; margin-bottom: 27px; }
.result-hero h1 { letter-spacing: -.035em; }
.result-screen .primary-button { margin-top: 0; }
.result-screen .back-button--center { margin-top: auto; }

.site-footer { align-items: center; color: rgba(255, 255, 255, .82); display: flex; font-size: .68rem; gap: 8px; justify-content: center; line-height: 1.5; padding: 17px 0 0; text-align: center; }

@media (max-width: 520px) {
  .page-shell { width: min(100% - 20px, 740px); padding-top: 12px; }
  .topbar { margin-bottom: 11px; }
  .brand { height: 60px; width: 196px; }
  .quiz-card { border-radius: 19px; }
  .intro-screen, .question-screen, .contact-screen, .result-screen { min-height: 680px; padding: 23px 20px 28px; }
  .progress-wrap { margin-bottom: 15px; }
  .intro-content { margin-top: 0; padding-top: 5px; }
  h1 { font-size: 2rem; }
  .lead { font-size: .95rem; line-height: 1.63; }
  .benefit-row { display: grid; gap: 10px; margin: 23px 0 27px; }
  .question-header .eyebrow { margin-top: 22px; }
  .question-header h1 { font-size: 1.74rem; }
  .answer-card { min-height: 56px; padding: 12px 13px; }
  .answer-label { font-size: .91rem; }
  .site-footer { flex-direction: column; gap: 0; padding-top: 13px; }
  .footer-separator { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
