:root {
  --blue: #1267f3;
  --blue-dark: #0755d9;
  --ink: #111318;
  --muted: #5f6570;
  --surface: #ffffff;
  --surface-2: #f2f4f7;
  --surface-3: #e6ecff;
  --line: #d9dde5;
  --sand: #c7a96b;
  --success: #167c4a;
  --shadow: 0 28px 70px rgba(19, 31, 55, .12);
  --radius: 24px;
  color-scheme: light;
}

[data-theme="dark"] {
  --ink: #f7f8fa;
  --muted: #aeb4bf;
  --surface: #001c2c;
  --surface-2: #062a3d;
  --surface-3: #0c3850;
  --line: #24465a;
  --shadow: 0 28px 70px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--surface); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.5; transition: background .25s, color .25s; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { letter-spacing: -.055em; line-height: .98; }
h1 { font-size: clamp(3rem, 7.4vw, 7.7rem); margin-bottom: 28px; max-width: 930px; }
h2 { font-size: clamp(2.35rem, 5vw, 5.4rem); margin-bottom: 24px; }
h3 { font-size: 1.35rem; letter-spacing: -.02em; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 12px 18px; background: var(--ink); color: var(--surface); border-radius: 10px; }
.skip-link:focus { top: 16px; }
.site-header { height: 82px; padding: 0 clamp(20px, 4vw, 72px); display: flex; align-items: center; justify-content: space-between; gap: 30px; border-bottom: 1px solid rgba(255,255,255,.14); position: sticky; top: 0; z-index: 30; background: #001c2c; color: #fff; backdrop-filter: blur(16px); }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: max-content; text-decoration: none; }
.brand-logo-original { width: 126px; height: auto; flex: 0 0 auto; filter: none; transition: filter .25s ease, opacity .25s ease; }
[data-theme="dark"] .brand-logo-original { filter: brightness(0) invert(1); }
.brand-name { font-size: .9rem; line-height: 1; font-weight: 850; letter-spacing: -.02em; white-space: nowrap; }
nav { display: flex; gap: 30px; align-items: center; margin-left: auto; }
nav a, footer a { font-size: .9rem; font-weight: 700; text-decoration: none; }
nav a:hover, footer a:hover { color: var(--blue); }
.theme-toggle { width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.24); background: rgba(255,255,255,.08); color: #fff; border-radius: 50%; cursor: pointer; font-size: 1.25rem; }
.hero { min-height: calc(100vh - 82px); display: grid; grid-template-columns: 1.05fr .95fr; align-items: stretch; }
.hero-copy { padding: clamp(70px, 9vw, 150px) clamp(26px, 6vw, 100px); display: flex; flex-direction: column; justify-content: center; }
.eyebrow { color: #ad8244; font-size: .76rem; line-height: 1.2; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; margin-bottom: 20px; }
.hero-lead { max-width: 660px; font-size: clamp(1.1rem, 1.8vw, 1.45rem); color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 34px 0 24px; }
.button { min-height: 54px; display: inline-flex; align-items: center; justify-content: center; gap: 18px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent; font-weight: 800; text-decoration: none; cursor: pointer; transition: transform .2s, background .2s, color .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--blue); color: white; }
.button-primary:hover { background: var(--blue-dark); }
.button-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.button-dark { background: #111318; color: white; }
.button-full { width: 100%; }
.trust-line { display: flex; flex-wrap: wrap; gap: 10px 18px; font-size: .86rem; color: var(--muted); }
.trust-line span { color: var(--success); font-weight: 900; }
.hero-visual { position: relative; min-height: 660px; overflow: hidden; background: #e8e2d8; }
.hero-visual > img { width: 100%; height: 100%; object-fit: cover; object-position: 67% center; }
.hero-card { position: absolute; right: 28px; bottom: 28px; min-width: 240px; padding: 20px 24px; background: rgba(255,255,255,.9); color: #111318; backdrop-filter: blur(12px); border-radius: 18px; box-shadow: var(--shadow); }
.hero-card strong, .hero-card span { display: block; }
.hero-card strong { font-size: 1.25rem; }
.hero-card span { color: #5f6570; }
.proof-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proof-band p { background: var(--surface); margin: 0; padding: 32px clamp(24px, 5vw, 70px); }
.proof-band strong, .proof-band span { display: block; }
.proof-band strong { font-size: 1rem; margin-bottom: 4px; }
.proof-band span { color: var(--muted); font-size: .9rem; }
.calculator-section, .rights-section, .process-section, .faq-section { padding: clamp(80px, 11vw, 160px) clamp(20px, 5vw, 80px); }
.calculator-section { background: var(--surface-2); }
.section-intro { max-width: 1060px; margin-bottom: 56px; }
.section-intro > p:not(.eyebrow) { max-width: 760px; color: var(--muted); font-size: 1.08rem; }
.calculator-shell { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(340px, .8fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.calculator-form { padding: clamp(28px, 5vw, 64px); }
.step-label { display: flex; gap: 12px; align-items: center; font-weight: 800; margin-bottom: 32px; }
.step-label span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-3); color: var(--blue); font-size: .78rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
label { display: grid; gap: 9px; color: var(--ink); font-size: .85rem; font-weight: 750; }
input, select, textarea { width: 100%; min-height: 52px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); padding: 0 14px; outline: none; }
textarea { padding-top: 13px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 17%, transparent); }
.money-field { position: relative; }
.money-field > span { position: absolute; left: 14px; top: 15px; color: var(--muted); }
.money-field input { padding-left: 46px; }
.checkbox-row, .consent { grid-template-columns: auto 1fr; align-items: flex-start; margin-top: 24px; cursor: pointer; }
.checkbox-row input, .consent input { width: 19px; min-height: 19px; margin: 2px 0 0; accent-color: var(--blue); }
.checkbox-row strong, .checkbox-row small { display: block; }
.checkbox-row small { color: var(--muted); font-weight: 500; margin-top: 3px; }
.calculate-button { margin-top: 32px; min-width: 260px; }
.form-error, .form-status { min-height: 20px; font-size: .85rem; margin: 12px 0 0; color: #b3261e; }
.form-status.success { color: var(--success); }
.result-panel { background: var(--ink); color: var(--surface); padding: clamp(32px, 4vw, 54px); display: flex; }
[data-theme="dark"] .result-panel { background: #e9edf5; color: #111318; }
.result-panel .eyebrow { color: #ad8244; }
.result-empty, .result-content { width: 100%; align-self: center; }
.result-mark { width: 78px; height: 78px; display: grid; place-items: center; border-radius: 22px; background: var(--blue); color: white; font-size: 1.35rem; font-weight: 900; margin-bottom: 24px; transform: rotate(-4deg); }
.result-empty h3 { font-size: 1.75rem; margin-bottom: 10px; }
.result-empty p, .result-note { color: color-mix(in srgb, currentColor 67%, transparent); }
.result-total { font-size: clamp(2.8rem, 5vw, 5rem); line-height: 1; letter-spacing: -.06em; font-weight: 850; margin-bottom: 12px; }
.breakdown { margin: 28px 0; border-top: 1px solid color-mix(in srgb, currentColor 22%, transparent); }
.breakdown p { display: flex; justify-content: space-between; gap: 18px; margin: 0; padding: 12px 0; border-bottom: 1px solid color-mix(in srgb, currentColor 16%, transparent); font-size: .9rem; }
.breakdown span { color: color-mix(in srgb, currentColor 70%, transparent); }
.text-button { display: block; margin: 20px auto 0; background: none; border: 0; color: inherit; font-weight: 800; cursor: pointer; }
.legal-note { color: var(--muted); max-width: 1000px; font-size: .82rem; margin: 24px 0 0; }
.narrow { max-width: 900px; }
.rights-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.right-card { min-height: 330px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; position: relative; }
.right-card:first-child { background: var(--blue); border-color: var(--blue); color: white; }
.card-index { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid color-mix(in srgb, currentColor 25%, transparent); border-radius: 50%; font-size: .75rem; font-weight: 850; }
.right-card h3 { font-size: clamp(1.4rem, 2.2vw, 2.15rem); margin-bottom: 12px; }
.right-card p { color: color-mix(in srgb, currentColor 68%, transparent); margin-bottom: 0; max-width: 520px; }
.faq-section { background: var(--surface-2); }
.faq-list { max-width: 980px; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; padding: 24px 0; display: flex; justify-content: space-between; align-items: center; gap: 24px; font-size: clamp(1.05rem, 2vw, 1.35rem); font-weight: 800; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; font-size: 1.3rem; transition: transform .25s ease, background .25s ease; }
.faq-list details[open] summary span { transform: rotate(45deg); background: var(--blue); border-color: var(--blue); color: white; }
.faq-list details p { max-width: 780px; color: var(--muted); padding: 0 64px 26px 0; margin: 0; }
.process-section { background: var(--ink); color: var(--surface); }
[data-theme="dark"] .process-section { background: #e9edf5; color: #111318; }
.process-section h2 { max-width: 900px; }
.process-list { list-style: none; padding: 0; margin: 64px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: color-mix(in srgb, currentColor 22%, transparent); }
.process-list li { background: var(--ink); padding: 34px; min-height: 210px; display: flex; flex-direction: column; justify-content: space-between; }
[data-theme="dark"] .process-list li { background: #e9edf5; }
.process-list li > span { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; }
.process-list strong { font-size: 1.5rem; }
.process-list p { color: color-mix(in srgb, currentColor 65%, transparent); margin: 6px 0 0; }
.contact-section { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 9vw, 130px); padding: clamp(80px, 11vw, 160px) clamp(20px, 7vw, 110px); background: var(--blue); color: white; }
.contact-copy p:not(.eyebrow) { color: rgba(255,255,255,.78); max-width: 560px; }
.contact-section .eyebrow { color: #ad8244; }
.privacy-note { font-size: .82rem; margin-top: 30px; }
.lead-form { background: var(--surface); color: var(--ink); padding: clamp(24px, 4vw, 44px); border-radius: 20px; display: grid; gap: 18px; align-self: start; box-shadow: var(--shadow); }
.lead-form .form-grid { gap: 16px; }
.consent { margin-top: 0; font-size: .75rem; color: var(--muted); }
footer { padding: 56px clamp(20px, 5vw, 80px) 34px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; border-top: 1px solid rgba(255,255,255,.14); background: #001c2c; color: #fff; }
footer p { margin: 0; color: rgba(255,255,255,.7); }
footer div { display: flex; gap: 24px; }
footer small { grid-column: 1 / -1; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.62); }
footer .brand-logo-original, [data-theme="dark"] footer .brand-logo-original { filter: none; }
footer a:hover, footer .footer-link:hover { color: #ad8244; }
.whatsapp-float { position: fixed; right: 22px; bottom: 22px; z-index: 25; min-height: 56px; padding: 7px 20px 7px 8px; display: flex; align-items: center; gap: 10px; border: 0; border-radius: 999px; background: #1ebd64; color: #071d10; box-shadow: 0 12px 30px rgba(5, 87, 43, .32); cursor: pointer; }
.whatsapp-float span { width: 42px; height: 42px; display: grid; place-items: center; background: #087c3a; border-radius: 50%; }
.whatsapp-float span img { width: 24px; height: 24px; }
.whatsapp-button { background: #1ebd64; color: #071d10; }
.footer-link { border: 0; background: none; color: inherit; padding: 0; font-size: .9rem; font-weight: 700; cursor: pointer; }
.footer-link:hover { color: var(--blue); }
.cookie-banner { position: fixed; left: 18px; right: 18px; bottom: 18px; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 18px; background: color-mix(in srgb, var(--surface) 96%, transparent); backdrop-filter: blur(18px); box-shadow: var(--shadow); }
.cookie-banner[hidden] { display: none; }
.cookie-banner strong { display: block; margin-bottom: 3px; }
.cookie-banner p { margin: 0; max-width: 680px; color: var(--muted); font-size: .83rem; }
.cookie-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.cookie-actions .text-button { margin: 0; color: var(--ink); white-space: nowrap; }
.cookie-actions .button { min-height: 44px; padding-inline: 18px; font-size: .82rem; white-space: nowrap; }
.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 18px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(4, 9, 18, .76); backdrop-filter: blur(5px); }
.modal-card { width: min(100%, 540px); max-height: calc(100vh - 36px); overflow: auto; position: relative; background: var(--surface); border-radius: 24px; padding: clamp(26px, 4vw, 44px); box-shadow: var(--shadow); }
.modal-card h2 { font-size: clamp(2rem, 5vw, 3.6rem); }
.modal-card > p:not(.eyebrow) { color: var(--muted); }
.modal-close { position: absolute; right: 18px; top: 18px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); font-size: 1.5rem; cursor: pointer; }
.compact { box-shadow: none; padding: 18px 0 0; background: transparent; }
.legal-modal-card { width: min(100%, 760px); }
.legal-content { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 26px 0; }
.legal-content section { padding: 18px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; }
.legal-content h3 { font-size: 1rem; margin-bottom: 8px; }
.legal-content p { font-size: .82rem; color: var(--muted); margin: 0; }
body.modal-open { overflow: hidden; }

.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.reveal-visible { opacity: 1; transform: translateY(0); }
.js .reveal-stagger > * { opacity: 0; transform: translateY(20px); transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1); }
.js .reveal-stagger.reveal-visible > * { opacity: 1; transform: translateY(0); }
.js .reveal-stagger.reveal-visible > *:nth-child(2) { transition-delay: .08s; }
.js .reveal-stagger.reveal-visible > *:nth-child(3) { transition-delay: .16s; }
.js .reveal-stagger.reveal-visible > *:nth-child(4) { transition-delay: .24s; }

@media (max-width: 960px) {
  nav { display: none; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { min-height: 600px; }
  .hero-visual { min-height: 520px; }
  .calculator-shell, .contact-section { grid-template-columns: 1fr; }
  .rights-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .result-panel { min-height: 430px; }
  footer { grid-template-columns: 1fr; }
  footer div { flex-wrap: wrap; }
  footer small { grid-column: 1; }
  .cookie-banner { align-items: flex-start; flex-direction: column; gap: 16px; }
}

@media (max-width: 680px) {
  .site-header { height: 70px; }
  .brand-logo-original { width: 100px; }
  .brand-name { font-size: .76rem; }
  .hero-copy { min-height: auto; padding-top: 70px; padding-bottom: 70px; }
  h1 { font-size: clamp(3rem, 14vw, 4.5rem); }
  .hero-visual { min-height: 390px; }
  .hero-card { right: 16px; bottom: 16px; }
  .proof-band { grid-template-columns: 1fr; }
  .form-grid, .rights-grid, .process-list { grid-template-columns: 1fr; }
  .right-card { min-height: 260px; }
  .calculator-form, .result-panel { padding: 26px 20px; }
  .calculate-button { width: 100%; min-width: 0; }
  .contact-section { padding-left: 16px; padding-right: 16px; }
  .lead-form .form-grid { grid-template-columns: 1fr; }
  footer div { flex-wrap: wrap; }
  .whatsapp-float { width: 56px; padding: 7px; right: 14px; bottom: 14px; }
  .whatsapp-float strong { display: none; }
  .cookie-banner { left: 10px; right: 10px; bottom: 10px; padding: 18px; }
  .cookie-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .cookie-actions .text-button { grid-column: 1 / -1; }
  .cookie-actions .button { width: 100%; padding-inline: 10px; }
  .legal-content { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .js .reveal, .js .reveal-stagger > * { opacity: 1; transform: none; }
}
