:root {
  --navy: #061f34;
  --navy-2: #0a2f4f;
  --blue: #0b74d1;
  --cyan: #2ed2ef;
  --white: #ffffff;
  --ink: #102333;
  --muted: #5d6e7b;
  --line: #d9e4eb;
  --success: #0b8b61;
  --danger: #b42318;
  --shadow: 0 22px 60px rgba(4, 27, 46, .22);
  --radius: 22px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  min-width: 320px;
  width: 100%;
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  color: var(--ink);
  font-family: var(--font);
  background: #f4f8fb;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input, select { font: inherit; }
a { color: inherit; }

.landing-shell { min-height: 0; }

.hero {
  position: relative;
  padding: 24px 16px 32px;
  background:
    linear-gradient(180deg, rgba(1, 20, 34, .88) 0%, rgba(2, 31, 52, .88) 38%, rgba(4, 44, 70, .92) 100%),
    url("https://kitsolares.cl/assets/portadas/v237/portada-inicio.webp") center top / cover no-repeat,
    linear-gradient(135deg, #052b49 0%, #0b74d1 62%, #2ed2ef 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 0%, rgba(46, 210, 239, .15), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,.02), rgba(0,0,0,.14));
}

.container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

.brand {
  width: min(390px, 78vw);
  margin: 0 auto 18px;
}
.brand img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.hero-copy {
  text-align: center;
  color: var(--white);
  max-width: 840px;
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: .78rem;
  line-height: 1.2;
  letter-spacing: .12em;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--cyan);
}
.eyebrow.alt {
  margin-bottom: 8px;
}

h1, h2, h3 {
  margin: 0;
  letter-spacing: -.04em;
}

#hero-title {
  font-size: clamp(2.2rem, 6vw, 4.6rem);
  line-height: .98;
  text-wrap: balance;
  max-width: 11ch;
  margin: 0 auto;
}

.lead {
  margin: 14px auto 0;
  max-width: 58ch;
  font-size: clamp(.98rem, 1.5vw, 1.14rem);
  line-height: 1.55;
  color: rgba(255,255,255,.90);
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 18px auto 0;
}
.hero-chips span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(46,210,239,.28);
  background: rgba(4, 32, 51, .66);
  color: rgba(255,255,255,.96);
  font-size: .74rem;
  font-weight: 800;
}

.form-wrap {
  width: 100%;
  max-width: 620px;
  margin: 22px auto 0;
}

.form-card {
  padding: clamp(18px, 2.5vw, 34px);
  background: rgba(255,255,255,.98);
  border: 1px solid rgba(255,255,255,.74);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-heading {
  margin-bottom: 20px;
  text-align: center;
}
.form-kicker {
  color: var(--blue);
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.form-heading h2 {
  margin-top: 4px;
  font-size: clamp(1.6rem, 2.5vw, 2.05rem);
}
.form-heading p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: .92rem;
}

#leadForm { display: grid; gap: 15px; }
.field-grid { display: grid; gap: 12px; }
.field-grid.two { grid-template-columns: repeat(2, minmax(0,1fr)); }
.field, .field-group { display: grid; gap: 7px; min-width: 0; }
.field > span, .field-label {
  font-size: .80rem;
  font-weight: 780;
  color: #314758;
}

.field input, .field select, .input-with-affix {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.field input, .field select {
  padding: 0 14px;
  font-size: 16px;
}
.field input::placeholder { color: #9aabb7; }
.field input:focus,
.field select:focus,
.input-with-affix:focus-within {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(46, 210, 239, .16);
}
.field input[aria-invalid="true"],
.field select[aria-invalid="true"] {
  border-color: #d92d20;
  background: #fff7f6;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 6px;
  padding: 5px;
  border-radius: 12px;
  background: #edf3f7;
}
.segmented label { cursor: pointer; min-width: 0; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span {
  min-height: 42px;
  display: grid;
  place-items: center;
  padding: 8px 10px;
  border-radius: 9px;
  color: #536877;
  font-size: .82rem;
  font-weight: 760;
  text-align: center;
  transition: .18s ease;
}
.segmented input:checked + span {
  background: #fff;
  color: var(--blue);
  box-shadow: 0 2px 7px rgba(18, 59, 86, .10);
}

.input-with-affix {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  overflow: hidden;
  padding-left: 13px;
}
.input-with-affix input {
  min-height: 48px;
  border: 0;
  border-radius: 0;
  padding: 0 8px;
  font-size: 16px;
  box-shadow: none !important;
}
.input-with-affix > span {
  color: #60717d;
  font-weight: 700;
  font-size: .82rem;
}
.input-with-affix .suffix {
  padding-right: 12px;
  font-size: .70rem;
  letter-spacing: .04em;
}

.privacy-check {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 9px;
  align-items: start;
  cursor: pointer;
}
.privacy-check input {
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  accent-color: var(--blue);
}
.privacy-check span {
  font-size: .72rem;
  line-height: 1.43;
  color: #667784;
}
.privacy-check a { color: var(--blue); font-weight: 750; }

.submit-btn {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 14px;
  color: #032339;
  background: linear-gradient(135deg, var(--cyan), #63e4f6);
  font-weight: 900;
  letter-spacing: .01em;
  box-shadow: 0 12px 26px rgba(10, 166, 198, .23);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 15px 30px rgba(10, 166, 198, .28);
  filter: saturate(1.08);
}
.submit-btn:disabled { opacity: .62; cursor: wait; transform: none; }

.submit-note {
  margin: -4px 0 0;
  text-align: center;
  color: #788895;
  font-size: .66rem;
}
.form-status { display: none; padding: 11px 12px; border-radius: 10px; font-size: .75rem; line-height: 1.4; }
.form-status.is-visible { display: block; }
.form-status.success { background: #ecfdf3; color: #086b4e; border: 1px solid #b7ebd2; }
.form-status.error { background: #fff2f0; color: #a32d25; border: 1px solid #f4c7c1; }

.benefits-panel {
  margin: 26px auto 0;
  color: var(--white);
}

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 16px;
}
.section-head h3 {
  font-size: clamp(1.55rem, 2.8vw, 2.2rem);
  color: #fff;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
}

.benefit-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 112px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(46,210,239,.22);
  background: linear-gradient(145deg, rgba(3,29,47,.70), rgba(4,40,64,.48));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 8px 24px rgba(0,0,0,.08);
}
.benefit-card img {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 5px 10px rgba(0,0,0,.26));
}
.benefit-card strong,
.benefit-card span {
  display: block;
}
.benefit-card strong {
  font-size: .90rem;
  line-height: 1.18;
}
.benefit-card span {
  margin-top: 5px;
  color: rgba(255,255,255,.75);
  font-size: .74rem;
  line-height: 1.32;
}

.microcopy {
  margin: 14px auto 0;
  text-align: center;
  font-size: .66rem;
  line-height: 1.45;
  color: rgba(255,255,255,.62);
  max-width: 78ch;
}

.site-footer {
  min-height: 76px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 24px;
  align-items: center;
  padding: 16px 18px;
  color: #647581;
  background: #fff;
  border-top: 1px solid #e2e9ee;
  font-size: .72rem;
}
.site-footer > div {
  display: flex;
  gap: 10px;
  align-items: baseline;
  flex-wrap: wrap;
}
.site-footer strong { color: #263d4d; }
.site-footer nav { display: flex; gap: 14px; flex-wrap: wrap; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--blue); }

.noscript-fallback {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 100;
}
.noscript-fallback a {
  display: block;
  padding: 15px 18px;
  border-radius: 14px;
  text-align: center;
  text-decoration: none;
  font-weight: 900;
  color: #032339;
  background: #2ed2ef;
}

@media (max-width: 1024px) {
  .benefits-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

@media (max-width: 680px) {
  .hero {
    padding: 20px 12px 24px;
    background:
      linear-gradient(180deg, rgba(1, 20, 34, .90) 0%, rgba(2, 31, 52, .91) 42%, rgba(4, 44, 70, .95) 100%),
      url("https://kitsolares.cl/assets/portadas/v237/portada-inicio.webp") 54% top / auto 360px no-repeat,
      linear-gradient(135deg, #052b49 0%, #0b74d1 62%, #2ed2ef 100%);
  }
  .brand {
    width: min(240px, 68vw);
    margin-bottom: 12px;
  }
  #hero-title {
    font-size: clamp(2rem, 10vw, 3.2rem);
    max-width: 12ch;
  }
  .lead {
    font-size: .95rem;
    line-height: 1.45;
  }
  .hero-chips span {
    font-size: .66rem;
    min-height: 30px;
    padding: 7px 10px;
  }
  .form-wrap {
    max-width: 100%;
    margin-top: 18px;
  }
  .form-card {
    padding: 18px 14px;
    border-radius: 18px;
  }
  .form-heading h2 {
    font-size: 1.48rem;
  }
  .field-grid.two {
    grid-template-columns: 1fr;
  }
  .benefits-panel {
    margin-top: 20px;
  }
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 9px;
  }
  .benefit-card {
    min-height: 88px;
    padding: 11px 12px;
  }
  .benefit-card img {
    width: 50px;
    height: 50px;
    flex-basis: 50px;
  }
  .benefit-card strong {
    font-size: .84rem;
  }
  .benefit-card span {
    font-size: .70rem;
  }
  .microcopy {
    font-size: .58rem;
  }
  .site-footer {
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 18px 14px calc(18px + env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
