:root {
  --navy: #10223f;
  --navy-deep: #08172d;
  --coral: #df7157;
  --coral-dark: #b84f3c;
  --cream: #f7f0e4;
  --paper: #fffaf2;
  --ink: #18202c;
  --muted: #5f6670;
  --green: #46614f;
  --gold: #c89a47;
  --line: rgba(16, 34, 63, .16);
  --shadow: 0 22px 60px rgba(8, 23, 45, .12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.6; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .18em; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--navy); font-family: Georgia, "Times New Roman", serif; line-height: 1.08; text-wrap: balance; }
h1 { font-size: clamp(2.7rem, 6vw, 5.9rem); letter-spacing: -.055em; }
h2 { font-size: clamp(2.2rem, 4vw, 4.2rem); letter-spacing: -.045em; }
h3 { font-size: clamp(1.28rem, 2vw, 1.75rem); letter-spacing: -.025em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
::selection { color: white; background: var(--coral-dark); }

.skip-link { position: fixed; z-index: 100; left: 16px; top: 12px; transform: translateY(-150%); padding: 10px 16px; border-radius: 8px; color: white; background: var(--navy); }
.skip-link:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header { position: sticky; z-index: 50; top: 0; display: flex; align-items: center; justify-content: space-between; width: min(100%, 1440px); margin: 0 auto; padding: 16px clamp(18px, 4vw, 56px); border-bottom: 1px solid var(--line); background: rgba(255, 250, 242, .92); backdrop-filter: blur(18px); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); font-size: 1.04rem; text-decoration: none; letter-spacing: -.02em; }
.brand img { width: 38px; height: 38px; object-fit: contain; }
.brand strong { font-weight: 800; }
.site-header nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 34px); font-size: .92rem; font-weight: 700; }
.site-header nav > a:not(.button) { position: relative; text-decoration: none; }
.site-header nav > a:not(.button)::after { position: absolute; right: 0; bottom: -4px; left: 0; height: 2px; content: ""; background: var(--coral); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.site-header nav > a:not(.button):hover::after { transform: scaleX(1); }

.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; padding: 13px 22px; border: 2px solid var(--coral); border-radius: 999px; color: white; background: var(--coral); font-weight: 800; line-height: 1.2; text-align: center; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { background: var(--coral-dark); border-color: var(--coral-dark); box-shadow: 0 10px 24px rgba(184, 79, 60, .22); transform: translateY(-2px); }
.button-small { min-height: 42px; padding: 9px 17px; font-size: .88rem; }
.button-ghost { color: var(--navy); border-color: var(--line); background: transparent; }
.button-ghost:hover { color: var(--navy); border-color: var(--navy); background: rgba(16, 34, 63, .05); box-shadow: none; }
.button-light { color: var(--navy); border-color: var(--cream); background: var(--cream); }
.button-light:hover { border-color: white; background: white; }
.button-outline-light { color: white; border-color: rgba(255, 255, 255, .55); background: transparent; }
.button-outline-light:hover { border-color: white; background: rgba(255, 255, 255, .08); }
.button-full { width: 100%; }
.text-link { color: var(--coral-dark); font-weight: 800; }

.hero { display: grid; min-height: calc(100svh - 76px); grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr); gap: clamp(32px, 6vw, 84px); align-items: center; width: min(calc(100% - 40px), var(--max)); margin: 0 auto; padding: clamp(56px, 8vw, 110px) 0; }
.hero-copy { position: relative; z-index: 1; }
.hero h1 { margin-bottom: 28px; }
.hero-lead { max-width: 650px; margin-bottom: 32px; color: #3f4751; font-size: clamp(1.08rem, 1.7vw, 1.32rem); }
.eyebrow { margin-bottom: 20px; color: var(--coral-dark); font-size: .78rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow-light { color: #f4bd7a; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 38px 0 20px; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); list-style: none; background: var(--line); }
.hero-facts li { display: flex; min-height: 92px; flex-direction: column; justify-content: center; padding: 18px; background: var(--paper); }
.hero-facts strong { color: var(--navy); font-size: 1.18rem; }
.hero-facts span { color: var(--muted); font-size: .84rem; }
.honesty-note { max-width: 700px; margin-bottom: 0; color: var(--muted); font-size: .8rem; }
.hero-visual { position: relative; margin: 0; }
.hero-visual::before { position: absolute; z-index: -1; inset: -26px 30% 28% -26px; border-radius: 50%; content: ""; background: rgba(223, 113, 87, .15); filter: blur(2px); }
.hero-visual img { width: 100%; min-height: 560px; border-radius: 46% 46% var(--radius-lg) var(--radius-lg) / 28% 28% var(--radius-lg) var(--radius-lg); box-shadow: var(--shadow); object-fit: cover; object-position: right center; }
.hero-visual figcaption { position: absolute; right: 18px; bottom: 18px; max-width: 330px; padding: 13px 16px; border: 1px solid rgba(255, 255, 255, .4); border-radius: 12px; color: white; background: rgba(8, 23, 45, .82); backdrop-filter: blur(12px); font-size: .8rem; }

.section { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; padding: clamp(84px, 10vw, 150px) 0; }
.section-heading { display: grid; max-width: 980px; grid-template-columns: 1fr minmax(260px, .55fr); column-gap: clamp(30px, 6vw, 90px); margin-bottom: 54px; align-items: end; }
.section-heading .eyebrow { grid-column: 1 / -1; }
.section-heading h2 { margin-bottom: 0; }
.section-heading > p:last-child { margin-bottom: 7px; color: var(--muted); }

.module-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.module-card { display: grid; min-height: 350px; grid-template-columns: minmax(190px, .82fr) 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: white; box-shadow: 0 14px 42px rgba(8, 23, 45, .07); }
.module-card img { width: 100%; height: 100%; object-fit: cover; }
.module-card > div { position: relative; display: flex; flex-direction: column; justify-content: flex-end; padding: 30px; }
.module-card p:last-child { margin-bottom: 0; color: var(--muted); }
.module-number { position: absolute; top: 20px; right: 24px; color: rgba(16, 34, 63, .18); font-family: Georgia, serif; font-size: 3.8rem; line-height: 1; }
.card-kicker { margin-bottom: 9px; color: var(--coral-dark); font-size: .72rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }

.section-dark { position: relative; width: 100%; max-width: none; padding-right: max(20px, calc((100% - var(--max)) / 2)); padding-left: max(20px, calc((100% - var(--max)) / 2)); color: #e5ebf3; background: var(--navy); }
.section-dark h2, .section-dark h3 { color: white; }
.section-dark .section-heading { margin-right: auto; margin-left: auto; }
.benefit-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.benefit-card { min-height: 285px; padding: 26px; border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius-md); background: rgba(255, 255, 255, .045); }
.benefit-card > span { display: grid; width: 42px; height: 42px; place-items: center; margin-bottom: 62px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 50%; color: #f4bd7a; font-weight: 900; }
.benefit-card p { margin-bottom: 0; color: #bdc8d7; font-size: .9rem; }
.format-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 42px; overflow: hidden; border-radius: var(--radius-md); background: rgba(255, 255, 255, .18); }
.format-strip > div { display: flex; min-height: 125px; flex-direction: column; justify-content: center; padding: 22px; background: #172d4e; }
.format-strip span { color: #92a0b4; font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.format-strip strong { color: white; font-size: 1.04rem; }
.format-strip small { color: #bdc8d7; }

.people-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.person-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: white; }
.person-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.person-card > div { padding: 24px; }
.person-card p:last-child { margin-bottom: 0; color: var(--muted); font-size: .9rem; }

.quiz-section { display: grid; grid-template-columns: minmax(260px, .62fr) minmax(480px, 1fr); gap: clamp(40px, 8vw, 110px); align-items: start; }
.quiz-intro { position: sticky; top: 120px; }
.quiz-shell { min-height: 520px; padding: clamp(26px, 4vw, 50px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--cream); box-shadow: var(--shadow); }
.quiz-topline { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 10px; color: var(--muted); font-size: .78rem; font-weight: 800; }
.progress-track { height: 8px; overflow: hidden; border-radius: 999px; background: rgba(16, 34, 63, .12); }
.progress-bar { width: 14.285%; height: 100%; border-radius: inherit; background: var(--coral); }
.quiz-question { margin: 38px 0 28px; font-size: clamp(1.75rem, 3vw, 2.65rem); }
.quiz-options { display: grid; gap: 12px; }
.quiz-option { width: 100%; padding: 17px 20px; border: 1px solid var(--line); border-radius: 14px; color: var(--navy); background: white; font-weight: 750; text-align: left; transition: border .2s ease, transform .2s ease, background .2s ease; }
.quiz-option:hover { border-color: var(--coral); background: #fff6ed; transform: translateX(4px); }
.quiz-result { padding-top: 34px; }
.quiz-result-badge { display: inline-flex; padding: 7px 11px; border-radius: 999px; color: var(--coral-dark); background: rgba(223, 113, 87, .13); font-size: .75rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.quiz-result h3 { margin-top: 22px; font-size: clamp(2rem, 4vw, 3.5rem); }
.quiz-result-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

.lead-section { display: grid; grid-template-columns: .78fr 1.1fr; gap: clamp(40px, 8vw, 100px); padding-right: clamp(24px, 5vw, 64px); padding-left: clamp(24px, 5vw, 64px); border-radius: var(--radius-lg); background: #efe4d4; }
.lead-copy { align-self: start; }
.lead-form { display: grid; gap: 18px; padding: clamp(24px, 4vw, 42px); border: 1px solid rgba(16, 34, 63, .12); border-radius: var(--radius-lg); background: white; box-shadow: var(--shadow); }
.field-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.lead-form label { display: grid; gap: 7px; color: var(--navy); font-size: .85rem; font-weight: 800; }
.lead-form input, .lead-form textarea { width: 100%; padding: 13px 14px; border: 1px solid rgba(16, 34, 63, .28); border-radius: 10px; color: var(--ink); background: var(--paper); font-weight: 500; }
.lead-form input:focus, .lead-form textarea:focus { border-color: var(--coral); outline: 3px solid rgba(223, 113, 87, .18); }
.optional { color: var(--muted); font-size: .75rem; font-weight: 500; }
.consent { display: grid !important; grid-template-columns: 22px 1fr; align-items: start; font-size: .78rem !important; font-weight: 500 !important; }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--coral-dark); }
.form-fineprint { margin: -5px 0 0; color: var(--muted); font-size: .75rem; text-align: center; }
.honeypot { position: absolute !important; left: -9999px !important; }
.form-message { margin-top: 28px; padding: 16px; border-radius: var(--radius-sm); }
.form-message strong { display: block; }
.form-message.success { border: 1px solid #8aa68f; background: #e6f1e8; }
.form-message.error { border: 1px solid #d39b8d; background: #f7e4df; }

.next-section { display: grid; grid-template-columns: 1.15fr .7fr; gap: clamp(36px, 7vw, 86px); align-items: center; }
.next-visual { position: relative; }
.next-visual::after { position: absolute; z-index: -1; right: -24px; bottom: -24px; width: 70%; height: 70%; border-radius: var(--radius-lg); content: ""; background: var(--coral); }
.next-visual img { width: 100%; min-height: 470px; border-radius: var(--radius-lg); object-fit: cover; }
.principle-section { max-width: 980px; text-align: center; }
.principle-section blockquote { margin: 0 0 28px; color: var(--navy); font-family: Georgia, serif; font-size: clamp(2rem, 4.5vw, 4rem); line-height: 1.16; letter-spacing: -.035em; }
.principle-section > p:last-child { color: var(--muted); font-size: .82rem; }

.final-cta { width: min(calc(100% - 40px), var(--max)); margin: 0 auto clamp(80px, 10vw, 140px); padding: clamp(46px, 7vw, 88px); border-radius: var(--radius-lg); color: #d9e2ef; background: var(--navy); text-align: center; }
.final-cta h2 { max-width: 900px; margin: 0 auto 20px; color: white; }
.final-cta p:not(.eyebrow) { max-width: 680px; margin: 0 auto 30px; }
.final-cta .hero-actions { justify-content: center; }

.site-footer { display: grid; grid-template-columns: 1.5fr .7fr .8fr 1.3fr; gap: clamp(28px, 5vw, 70px); padding: clamp(54px, 7vw, 90px) max(20px, calc((100% - var(--max)) / 2)); color: #b8c4d4; background: var(--navy-deep); }
.site-footer h2 { margin-bottom: 18px; color: white; font-family: inherit; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.site-footer > div:not(.footer-bottom), .site-footer address { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.site-footer a { color: #d8e0eb; }
.site-footer address { font-style: normal; }
.site-footer address strong { color: white; }
.site-footer address small { max-width: 360px; color: #8997aa; }
.brand-footer { margin-bottom: 12px; color: white; font-size: 1.16rem; }
.footer-brand p { max-width: 310px; }
.footer-bottom { display: flex; grid-column: 1 / -1; justify-content: space-between; gap: 20px; margin-top: 22px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .13); color: #8997aa; font-size: .78rem; }

.cookie-banner { position: fixed; z-index: 80; right: 18px; bottom: 18px; left: 18px; display: flex; max-width: 1120px; align-items: center; justify-content: space-between; gap: 24px; margin: 0 auto; padding: 18px 20px; border: 1px solid rgba(255, 255, 255, .15); border-radius: 16px; color: #dbe3ee; background: rgba(8, 23, 45, .97); box-shadow: 0 18px 60px rgba(0, 0, 0, .3); }
.cookie-banner[hidden] { display: none; }
.cookie-banner strong { color: white; }
.cookie-banner p { margin: 3px 0 0; font-size: .83rem; }
.cookie-actions { display: flex; flex: 0 0 auto; gap: 8px; }
.cookie-banner .button-ghost { color: white; border-color: rgba(255, 255, 255, .35); }

.legal-page { background: var(--cream); }
.legal-header { position: static; }
.legal-container { width: min(calc(100% - 40px), 860px); margin: 0 auto; padding: 64px 0 110px; }
.legal-container > h1 { margin-bottom: 18px; font-size: clamp(2.5rem, 6vw, 4.7rem); }
.legal-meta { margin-bottom: 42px; color: var(--muted); }
.legal-container section { margin: 42px 0; padding-top: 4px; }
.legal-container h2 { font-size: clamp(1.55rem, 3vw, 2.1rem); }
.legal-container h3 { margin-top: 28px; font-family: inherit; font-size: 1.03rem; }
.legal-container li + li { margin-top: 8px; }
.legal-callout { padding: 18px 20px; border-left: 4px solid var(--coral); border-radius: 0 12px 12px 0; background: white; }
.back-home { display: inline-flex; margin-bottom: 34px; color: var(--coral-dark); font-weight: 800; }

.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .65s ease, transform .65s ease; }
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr 1fr; }
  .hero-visual img { min-height: 500px; }
  .module-card { grid-template-columns: 1fr; }
  .module-card img { aspect-ratio: 16 / 10; }
  .module-number { top: 18px; }
  .benefit-grid { grid-template-columns: repeat(3, 1fr); }
  .benefit-card > span { margin-bottom: 35px; }
  .people-grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer { grid-template-columns: 1.3fr 1fr 1fr; }
  .site-footer address { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .site-header nav > a:not(.button) { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 54px; }
  .hero-visual { order: -1; }
  .hero-visual img { min-height: 420px; max-height: 620px; border-radius: var(--radius-lg); }
  .hero-visual figcaption { max-width: calc(100% - 36px); }
  .section-heading { display: block; }
  .section-heading h2 { margin-bottom: 22px; }
  .module-grid { grid-template-columns: 1fr; }
  .benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .format-strip { grid-template-columns: repeat(2, 1fr); }
  .quiz-section, .lead-section, .next-section { grid-template-columns: 1fr; }
  .quiz-intro { position: static; }
  .next-visual img { min-height: 360px; }
  .site-footer { grid-template-columns: 1fr 1fr; }
  .footer-brand, .site-footer address { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  html { scroll-padding-top: 78px; }
  .site-header { padding: 12px 16px; }
  .brand span { font-size: .92rem; }
  .site-header .button { min-height: 40px; padding: 8px 12px; font-size: .78rem; }
  .hero, .section, .final-cta { width: min(calc(100% - 28px), var(--max)); }
  .hero { min-height: 0; padding: 28px 0 72px; }
  .hero-visual img { min-height: 330px; }
  .hero-visual figcaption { position: static; max-width: none; margin-top: -8px; border-radius: 0 0 12px 12px; }
  .hero h1 { margin-bottom: 20px; }
  .hero-actions { display: grid; }
  .hero-facts { grid-template-columns: 1fr; }
  .hero-facts li { min-height: 72px; }
  .section { padding: 76px 0; }
  .module-card > div { padding: 24px; }
  .module-card img { aspect-ratio: 1; }
  .section-dark { width: 100%; }
  .benefit-grid, .format-strip, .people-grid { grid-template-columns: 1fr; }
  .benefit-card { min-height: 0; }
  .benefit-card > span { margin-bottom: 28px; }
  .quiz-shell { min-height: 500px; padding: 22px 18px; }
  .quiz-topline { gap: 8px; font-size: .7rem; }
  .quiz-option { padding: 15px 16px; }
  .lead-section { width: 100%; padding: 70px 14px; border-radius: 0; }
  .field-row { grid-template-columns: 1fr; }
  .next-visual::after { right: -10px; bottom: -10px; }
  .principle-section blockquote { font-size: 2rem; }
  .final-cta { padding: 50px 22px; }
  .site-footer { grid-template-columns: 1fr; padding-right: 22px; padding-left: 22px; }
  .footer-brand, .site-footer address { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
  .cookie-banner { align-items: stretch; flex-direction: column; gap: 14px; }
  .cookie-actions { display: grid; grid-template-columns: 1fr; }
  .legal-container { width: min(calc(100% - 28px), 860px); padding-top: 40px; }
}

@media (max-width: 400px) {
  .site-header nav .button { padding-right: 10px; padding-left: 10px; font-size: 0; }
  .site-header nav .button::after { content: "Diagnóstico"; font-size: .75rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
