/* Sun Copywriter — sistema de diseño compartido del funnel de diagnóstico */

:root {
  --cream: #F8F4EE;
  --cream-2: #EFE7DA;
  --paper: #FFFDF9;
  --ink: #26281C;
  --ink-soft: #3B3F2F;
  --brown-dark: #684638;
  --brown: #C1A98F;
  --brown-soft: #9B7F70;
  --line: #E3D6C3;
  --gray: #5C5F52;
  --gray-2: #7C7F74;

  --serif: 'Newsreader', Georgia, serif;
  --serif-2: 'Cormorant Garamond', Georgia, serif;
  --accent: 'Playfair Display', Georgia, serif;
  --sans: 'Open Sans', system-ui, sans-serif;
  --label: 'Archivo', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brown-dark); text-decoration: none; }
a:hover { color: var(--ink); }
button { font-family: inherit; }
input { font-family: inherit; }
input:focus { outline: none; }
::selection { background: var(--line); }
img { max-width: 100%; display: block; }

@keyframes sunUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
.sun-up { animation: sunUp .6s ease both; }

/* ---------- layout ---------- */
.wrap { min-height: 100vh; background: var(--cream); }
.container { max-width: 960px; margin: 0 auto; padding-left: clamp(20px, 5vw, 40px); padding-right: clamp(20px, 5vw, 40px); }
.container-narrow { max-width: 820px; margin: 0 auto; padding-left: clamp(20px, 5vw, 40px); padding-right: clamp(20px, 5vw, 40px); }
.container-wide { max-width: 1120px; margin: 0 auto; padding-left: clamp(20px, 5vw, 40px); padding-right: clamp(20px, 5vw, 40px); }

section { padding-top: clamp(48px, 8vw, 96px); padding-bottom: clamp(48px, 8vw, 96px); }
section.tight { padding-top: clamp(36px, 6vw, 64px); padding-bottom: clamp(36px, 6vw, 64px); }
.section-line { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-dark { background: var(--ink); color: var(--cream); }
.section-dark p { color: var(--cream-2); }
.section-tan { background: var(--cream-2); }
.section-hero { background: radial-gradient(120% 80% at 50% 0%, var(--cream-2) 0%, var(--cream) 62%); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(248,244,238,.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container-wide,
.site-header .container {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 15px; padding-bottom: 15px;
}
.brand { font-family: var(--label); font-weight: 600; font-size: 10px; letter-spacing: .28em; text-transform: uppercase; color: var(--ink); }
.header-tag { font-family: var(--label); font-weight: 500; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--brown-soft); }

/* progress bar (quiz) */
.progress-track { height: 3px; width: 100%; background: var(--line); }
.progress-fill { height: 100%; background: var(--ink); transition: width .45s cubic-bezier(.4,0,.2,1); }

/* ---------- type ---------- */
.eyebrow { font-family: var(--label); font-weight: 600; font-size: 10px; letter-spacing: .28em; text-transform: uppercase; color: var(--brown-soft); }
.eyebrow.dark { color: var(--brown); }
.eyebrow.strong { color: var(--brown-dark); }

.display {
  font-family: var(--serif); font-weight: 200; letter-spacing: -.018em; line-height: 1.06; margin: 0;
  text-wrap: pretty;
}
.display-1 { font-size: clamp(34px, 6.6vw, 68px); }
.display-2 { font-size: clamp(30px, 5.4vw, 56px); }
.display-3 { font-size: clamp(27px, 4.6vw, 46px); }

.italic-accent { font-family: var(--accent); font-style: italic; font-weight: 500; }

.lede { font-size: clamp(19px, 2.5vw, 24px); line-height: 1.5; color: var(--ink-soft); margin: 24px 0 0; max-width: 46ch; }

.body-lg { font-size: clamp(19px, 2.5vw, 23px); line-height: 1.6; color: var(--ink-soft); }
.body-md { font-size: clamp(18px, 2.3vw, 21px); line-height: 1.6; color: var(--ink-soft); }
p.pull { margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(23px, 3.4vw, 32px); line-height: 1.3; color: var(--ink); }
p.pull-italic { margin: 0; font-family: var(--accent); font-style: italic; font-weight: 400; font-size: clamp(22px, 3.4vw, 30px); line-height: 1.35; color: var(--ink); }

.dotted-rule {
  height: 1px; margin: 22px 0;
  background-image: repeating-linear-gradient(90deg, var(--brown) 0 11px, transparent 11px 17px);
}
.dotted-rule.center { margin-left: auto; margin-right: auto; }
.dotted-rule.short { width: 86px; }

/* ---------- buttons ---------- */
.btn {
  appearance: none; border: 1px solid; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 60px; padding: 20px 40px;
  font-family: var(--label); font-weight: 600; font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .2s ease;
  text-decoration: none;
}
.btn-dark { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.btn-dark:hover { background: var(--brown-dark); border-color: var(--brown-dark); color: var(--cream); }
.btn-light { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.btn-light:hover { background: var(--brown); border-color: var(--brown); color: var(--ink); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--cream); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: default; }

.btn-caption { font-family: var(--label); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gray-2); }

/* ---------- cards / grids ---------- */
.grid { display: grid; gap: clamp(16px, 2.5vw, 24px); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(24px, 4vw, 40px); }

.split-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 2px; background: var(--line); border: 1px solid var(--line); }
.split-cards > div { padding: clamp(22px, 3.6vw, 32px); }
.split-cards > div.a { background: var(--cream); }
.split-cards > div.b { background: var(--cream-2); }

.card { background: var(--paper); border: 1px solid var(--line); padding: clamp(22px, 3.4vw, 30px); }
.card-tan { background: var(--cream-2); border: 1px solid var(--brown); padding: clamp(24px, 4vw, 36px); }
.card-dark { background: var(--ink); color: var(--cream); padding: clamp(26px, 4.4vw, 44px); }
.card-dark p { color: var(--cream-2); }

.step-item { border-top: 1px solid var(--brown); padding-top: 20px; }
.step-num { font-family: var(--label); font-weight: 700; font-size: 11px; letter-spacing: .2em; color: var(--brown-dark); }
.step-title { font-family: var(--serif); font-weight: 300; font-size: clamp(22px, 3vw, 27px); line-height: 1.2; margin: 12px 0 0; }
.step-text { margin: 14px 0 0; font-size: 18px; line-height: 1.55; color: var(--ink-soft); }

/* ---------- pillar breakdown rows (result pages) ---------- */
.pillar-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(8px, 2vw, 32px); padding: clamp(18px, 3vw, 26px) 0; border-top: 1px solid var(--line); align-items: center;
}
.pillar-label { font-family: var(--label); font-weight: 600; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.pillar-value { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.pillar-value .num { font-family: var(--serif); font-weight: 300; font-size: 26px; line-height: 1; }
.pillar-value .max { font-family: var(--serif-2); font-size: 18px; color: var(--brown-soft); }
.pillar-bar { flex: 1; height: 4px; background: var(--line); min-width: 60px; }
.pillar-bar > span { display: block; height: 100%; background: var(--brown); }
.pillar-meaning { margin: 0; font-size: clamp(17px, 2.2vw, 20px); line-height: 1.5; color: var(--ink-soft); }

/* ---------- score header (result pages) ---------- */
.score-grid { margin-top: clamp(34px, 5vw, 52px); display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(20px, 4vw, 44px); align-items: end; }
.score-label { font-family: var(--label); font-weight: 600; font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--gray); }
.score-num { display: flex; align-items: baseline; gap: 8px; margin-top: 10px; }
.score-num .big { font-family: var(--serif); font-weight: 200; font-size: clamp(58px, 11vw, 104px); line-height: .9; letter-spacing: -.03em; }
.score-num .of { font-family: var(--serif-2); font-size: clamp(20px, 3vw, 28px); color: var(--gray-2); }
.score-track { height: 6px; width: 100%; background: var(--line); position: relative; }
.score-fill { height: 100%; background: var(--ink); }
.score-levels { display: flex; justify-content: space-between; margin-top: 12px; font-family: var(--label); font-weight: 600; font-size: 9px; letter-spacing: .2em; text-transform: uppercase; }
.score-levels span { color: var(--brown); }
.score-levels span.on { color: var(--ink); }

/* ---------- video block ---------- */
.video-frame { position: relative; width: 100%; aspect-ratio: 16/9; background: #3B3F2F; border: 1px solid var(--gray); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- quiz ---------- */
.quiz-shell { flex: 1; display: flex; align-items: flex-start; justify-content: center; padding: clamp(36px, 7vw, 84px) clamp(20px, 5vw, 32px) clamp(48px, 8vw, 96px); }
.quiz-intro { flex: 1; display: flex; align-items: center; justify-content: center; padding: clamp(40px, 9vw, 96px) clamp(20px, 5vw, 32px); text-align: center; }
.quiz-col { width: 100%; max-width: 700px; }
.quiz-col.narrow { max-width: 620px; }
.quiz-question { font-family: var(--serif); font-weight: 200; font-size: clamp(27px, 4.6vw, 46px); line-height: 1.12; letter-spacing: -.012em; margin: 20px 0 0; text-wrap: pretty; }
.quiz-helper { font-size: clamp(17px, 2.2vw, 20px); line-height: 1.5; color: var(--gray); margin: 16px 0 0; font-style: italic; }

.option-btn {
  text-align: left; appearance: none; cursor: pointer; display: grid; grid-template-columns: 30px 1fr; align-items: center; gap: 16px;
  width: 100%; min-height: 64px; border: 1px solid var(--line); background: var(--paper);
  padding: clamp(14px, 2.4vw, 20px); margin: 0 0 10px; transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.option-btn:hover { border-color: var(--ink); background: var(--cream-2); transform: translateX(3px); }
.option-letter { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 1px solid var(--brown); border-radius: 50%; font-family: var(--label); font-weight: 600; font-size: 11px; letter-spacing: .06em; color: var(--brown-dark); }
.option-label { font-family: var(--sans); font-weight: 400; font-size: clamp(16px, 2vw, 19px); line-height: 1.4; color: var(--ink); }

.link-back { appearance: none; border: 0; background: none; cursor: pointer; font-family: var(--label); font-weight: 500; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--gray-2); padding: 10px 0; }
.link-back:hover { color: var(--ink); }

.form-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
.form-field label { font-family: var(--label); font-weight: 600; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--gray); }
.form-field input {
  border: 0; border-bottom: 1px solid var(--brown); background: transparent; padding: 12px 2px; min-height: 52px;
  font-size: 20px; color: var(--ink); transition: border-color .2s ease; width: 100%;
}
.form-field input:focus { border-bottom-color: var(--ink); }
.form-error { font-family: var(--label); font-size: 12px; letter-spacing: .04em; color: var(--brown-dark); background: var(--cream-2); border-left: 2px solid var(--brown-dark); padding: 12px 14px; margin-bottom: 20px; }
.form-hint { font-family: var(--label); font-size: 11px; line-height: 1.6; color: var(--gray-2); margin: 6px 0 0; }

/* ---------- countdown ---------- */
.countdown-bar { background: var(--ink); color: var(--cream); }
.countdown-bar .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 34px; padding-top: 22px; padding-bottom: 22px; }
.countdown-label { font-family: var(--label); font-weight: 600; font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: var(--brown); }
.countdown-nums { display: flex; gap: clamp(16px, 4vw, 34px); }
.countdown-num { text-align: center; min-width: 52px; }
.countdown-num .n { font-family: var(--serif); font-weight: 200; font-size: clamp(28px, 4vw, 38px); line-height: 1; }
.countdown-num .u { font-family: var(--label); font-size: 9px; letter-spacing: .22em; text-transform: uppercase; color: var(--brown-soft); margin-top: 6px; }
.countdown-note { font-family: var(--label); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--gray-2); }

/* ---------- FAQ ---------- */
details { border-top: 1px solid var(--line); padding: 20px 0; }
details:last-child { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; font-family: var(--serif); font-weight: 300; font-size: clamp(20px, 2.8vw, 25px); line-height: 1.3; color: var(--ink); }
summary::-webkit-details-marker { display: none; }
details p { margin: 14px 0 0; font-size: 18px; line-height: 1.6; color: var(--ink-soft); }

/* ---------- sticky bottom bar (taller) ---------- */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: rgba(248,244,238,.96); backdrop-filter: blur(10px); border-top: 1px solid var(--brown); }
.sticky-cta .container-wide { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
.sticky-cta .title { font-family: var(--label); font-weight: 600; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink); }
.sticky-cta .sub { font-family: var(--label); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--gray-2); }
.sticky-cta .btn { min-height: 52px; padding: 16px 28px; font-size: 11px; }
body.has-sticky-cta { padding-bottom: 92px; }

/* ---------- footer ---------- */
.site-footer { padding: 26px clamp(20px, 5vw, 40px); display: flex; justify-content: center; background: var(--cream); }
.site-footer.line-top { border-top: 1px solid var(--line); }
.footer-tag { font-family: var(--label); font-weight: 500; font-size: 9px; letter-spacing: .28em; text-transform: uppercase; color: var(--brown-soft); }

/* ---------- misc ---------- */
.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.badge { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--brown); padding: 8px 16px; font-family: var(--label); font-weight: 600; font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--brown-dark); }
.mono-placeholder { min-height: 280px; background-image: repeating-linear-gradient(135deg, var(--line) 0 9px, var(--cream-2) 9px 18px); border: 1px solid var(--brown); display: flex; align-items: flex-end; padding: 18px; }
.mono-placeholder span { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; letter-spacing: .06em; color: var(--brown-dark); background: var(--cream); padding: 6px 10px; }
.cross-list { display: flex; flex-direction: column; gap: 12px; font-size: 19px; line-height: 1.5; color: var(--gray); }
.cross-list div { display: flex; gap: 12px; }
.cross-list span.x { color: var(--brown-soft); }

@media (max-width: 640px) {
  .sticky-cta .sub { display: none; }
}
