:root {
  --night: #011738;
  --night-2: #012653;
  --blue: #044e95;
  --paper: #f5f8fc;
  --tint: #e4edf6;
  --ink: #0a1b33;
  --ink-soft: #46576f;
  --line: #cbd6e4;
  --accent: #00c0e4;
  --accent-strong: #4fd6f0;
  --ice: #96d8ea;
  --mist: #bad2ea;
  --line-dark: #1e4573;
  --display: 'Montserrat', 'Helvetica Neue', Arial, system-ui, sans-serif;
  --body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--body); overflow-wrap: break-word; }
h1, h2, h3, h4, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
svg { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.section:not(.section-dark) :focus-visible { outline-color: var(--blue); }

.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--accent); color: var(--night); padding: 8px 16px; font-weight: 600; }
.skip:focus { top: 8px; }

h1, h2 { font-family: var(--display); font-weight: 700; letter-spacing: -0.025em; line-height: 1.08; text-wrap: balance; }
h1 { font-size: clamp(2.625rem, 5.8vw, 5.25rem); }
h2 { font-size: clamp(1.875rem, 3.8vw, 3.25rem); }
.lead { font-size: clamp(1.125rem, 1.6vw, 1.3125rem); line-height: 1.5; max-width: 34em; }
.eyebrow { font: 500 0.8125rem/1.4 var(--mono); letter-spacing: 0.02em; color: var(--accent); margin-bottom: 20px; max-width: 46ch; }
.eyebrow-blue { color: var(--blue); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 24px; border: 2px solid transparent; border-radius: 3px; font: 600 1rem/1.2 var(--body); text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.btn-sun { background: var(--accent); color: var(--night); }
.btn-sun:hover { background: var(--accent-strong); }
.btn-sun:disabled { opacity: .6; cursor: progress; }
.btn-ghost { border-color: var(--line-dark); color: var(--paper); }
.btn-ghost:hover { border-color: var(--paper); }
.btn-small { min-height: 40px; padding: 8px 16px; font-size: 0.9375rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--night); color: var(--paper); border-bottom: 1px solid var(--night-2); }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 1.0625rem/1 var(--display); text-decoration: none; letter-spacing: -0.01em; }
.logo-mark { width: auto; height: 46px; flex: none; }
.site-nav { display: flex; align-items: center; gap: 24px; font-size: 0.9375rem; }
.site-nav a:not(.btn) { text-decoration: none; }
.site-nav a:not(.btn):hover { color: var(--accent); }
.lang-switch { padding-left: 24px; border-left: 1px solid var(--line-dark); font-weight: 600; }
.menu-toggle { display: none; min-height: 44px; padding: 8px 14px; background: none; border: 1px solid var(--line-dark); border-radius: 3px; color: inherit; font: 600 0.9375rem var(--body); cursor: pointer; }

/* Hero */
.hero { background: var(--night); color: var(--paper); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); align-items: end; gap: clamp(24px, 3vw, 48px); padding-top: clamp(48px, 7vw, 96px); }
.hero-copy { align-self: center; padding-bottom: clamp(48px, 7vw, 96px); }
.hero .lead { margin-top: 28px; color: var(--mist); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-art { align-self: end; margin-right: calc(var(--gutter) * -1); }
.pyramid { width: 100%; height: auto; }
.sun { fill: var(--ice); opacity: .92; }
.light { fill: var(--accent); animation: descend 9s linear infinite; animation-delay: calc(var(--i) * 0.42s); opacity: .08; }
.light-head { animation-name: descend; }
@keyframes descend {
  0% { opacity: .08; }
  5%, 55% { opacity: 1; }
  68%, 100% { opacity: .08; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .light { animation: none; opacity: 1; }
  .btn { transition: none; }
}

/* Stepped band between the hero and the page */
.fret { height: 32px; background-color: var(--night); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='32'%3E%3Cpath fill='%23f5f8fc' d='M0 32V24H10V16H20V8H30V0H50V8H60V16H70V24H80V32Z'/%3E%3C/svg%3E"); background-size: 80px 32px; background-repeat: repeat-x; }

/* Sections */
.section { padding-block: clamp(64px, 9vw, 128px); }
.section-sand { background: var(--tint); }
.section-dark { background: var(--night); color: var(--paper); }
.section-head { margin-bottom: clamp(40px, 5vw, 72px); }
.section-head .lead { margin-top: 20px; color: var(--ink-soft); }

/* Services */
.service-group { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px clamp(24px, 4vw, 64px); padding-block: clamp(28px, 3.5vw, 44px); border-top: 2px solid var(--ink); }
.service-label h3 { font: 700 clamp(1.625rem, 2.6vw, 2.25rem)/1.1 var(--display); letter-spacing: -0.02em; }
.service-label p { margin-top: 8px; color: var(--ink-soft); max-width: 24em; }
.service-list li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4px 24px; padding-block: 16px; border-top: 1px solid var(--line); }
.service-list li:first-child { border-top: 0; padding-top: 4px; }
.service-list h4 { font: 600 1.0625rem/1.35 var(--body); }
.service-list p { color: var(--ink-soft); font-size: 1rem; line-height: 1.5; }

/* Method: three rising steps */
.stairs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 0; }
.stairs li { padding: 28px clamp(20px, 2.5vw, 36px) 36px; background: var(--paper); border-top: 4px solid var(--blue); min-height: calc(280px + var(--step) * 72px); }
.stairs li + li { border-left: 1px solid var(--line); }
.stairs li:last-child { background: var(--blue); color: var(--paper); border-top-color: var(--accent); }
.step-number { font: 500 0.875rem var(--mono); color: var(--blue); }
.stairs li:last-child .step-number { color: var(--ice); }
.stairs h3 { margin: 16px 0 12px; font: 700 clamp(1.75rem, 2.8vw, 2.375rem)/1.1 var(--display); letter-spacing: -0.02em; }

/* Calculator */
.calc-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.calc-intro .lead { margin-top: 20px; color: var(--mist); }
.calc-inputs { display: grid; gap: 24px; margin-top: 40px; }
.field-range { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; align-items: baseline; }
.field-range label { font-weight: 500; }
.field-range output { font: 500 1.0625rem var(--mono); color: var(--accent); font-variant-numeric: tabular-nums; }
.field-range input { grid-column: 1 / -1; width: 100%; height: 28px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.calc-result { padding: clamp(24px, 3vw, 40px); background: var(--paper); color: var(--ink); position: sticky; top: calc(var(--header-h) + 24px); }
.result-label { font-weight: 600; }
.result-main { margin-top: 4px; font: 700 clamp(2.25rem, 4.2vw, 3.75rem)/1.05 var(--display); letter-spacing: -0.03em; color: var(--blue); font-variant-numeric: tabular-nums; }
.calc-result dl { margin-top: 24px; border-top: 1px solid var(--line); }
.calc-result dl > div { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; padding-block: 12px; border-bottom: 1px solid var(--line); }
.calc-result dt { color: var(--ink-soft); }
.calc-result dd { font-weight: 600; font-variant-numeric: tabular-nums; }
.note { margin-block: 16px 24px; font-size: 0.875rem; line-height: 1.5; color: var(--ink-soft); }
.calc-result .btn { width: 100%; background: var(--night); color: var(--paper); }
.calc-result .btn:hover { background: var(--blue); }

/* Commitments */
.commitments { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); }
.commitments li { padding-top: 20px; border-top: 2px solid var(--ink); }
.commitments h3 { font: 700 1.5rem/1.15 var(--display); letter-spacing: -0.015em; margin-bottom: 12px; }
.commitments p { color: var(--ink-soft); }
.origin { margin-top: clamp(56px, 7vw, 96px); max-width: 900px; }
.origin-text { font: 500 clamp(1.375rem, 2.5vw, 2rem)/1.3 var(--display); letter-spacing: -0.012em; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px clamp(24px, 4vw, 64px); }
.faq-list details { border-top: 1px solid #b5c4d6; }
.faq-list details:last-child { border-bottom: 1px solid #b5c4d6; }
.faq-list summary { padding-block: 18px; font-weight: 600; font-size: 1.125rem; line-height: 1.35; cursor: pointer; }
.faq-list summary:hover { color: var(--blue); }
.faq-list p { padding-bottom: 20px; max-width: 42em; color: var(--ink-soft); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 88px); }
.contact-grid .lead { margin-top: 20px; color: var(--mist); }
.contact-direct { margin-top: 28px; color: var(--mist); }
.contact-direct a, .contact-whatsapp { color: var(--accent); font-weight: 600; }
.contact-whatsapp { display: inline-block; margin-top: 8px; }
.contact-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field label { display: block; margin-bottom: 6px; font-weight: 500; font-size: 0.9375rem; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 10px 12px; background: var(--night-2); border: 1px solid #4f78aa; border-radius: 3px; color: var(--paper); font: 400 1rem/1.4 var(--body); }
.field select option, .field select optgroup { background: var(--night-2); color: var(--paper); }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.field-wide { grid-column: 1 / -1; }
.field-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.privacy { font-size: 0.875rem; color: var(--mist); }
.form-status { color: var(--accent); font-weight: 500; min-height: 1.6em; }

/* Footer */
.site-footer { background: var(--night); color: var(--mist); border-top: 1px solid var(--line-dark); padding-block: 28px; font-size: 0.9375rem; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; }
.site-footer .brand { color: var(--paper); }

/* Layout */
@media (max-width: 1040px) {
  .menu-toggle { display: inline-flex; align-items: center; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px; background: var(--night); border-bottom: 1px solid var(--line-dark); }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { padding-block: 12px; border-bottom: 1px solid var(--night-2); }
  .lang-switch { padding-left: 0; border-left: 0; }
  .site-nav .btn { margin-top: 16px; min-height: 48px; }
  .site-header { position: sticky; }
  .commitments { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .hero-grid, .calc-grid, .contact-grid, .faq-grid, .service-group { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { padding-bottom: 8px; }
  .hero-art { margin-inline: calc(var(--gutter) * -1); }
  .calc-result { position: static; }
  .service-list li { grid-template-columns: minmax(0, 1fr); }
  .service-list li:first-child { padding-top: 0; }
  .stairs { grid-template-columns: minmax(0, 1fr); }
  .stairs li { min-height: 0; }
  .stairs li + li { border-left: 0; }
}
@media (max-width: 560px) {
  .commitments, .contact-form { grid-template-columns: minmax(0, 1fr); }
  .actions .btn { width: 100%; }
  .form-foot .btn { width: 100%; }
}
