:root {
  --green: #3caf2e;
  --green-dark: #2f9424;
  --ink: #182018;
  --muted: #667066;
  --line: #dfe5df;
  --paper: #ffffff;
  --radius: 26px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #2b322c;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.hero {
  position: relative;
  min-height: 100svh;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  color: #fff;
}

.hero__background,
.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__background {
  background: url("assets/obra-mi-pase.jfif") center / cover no-repeat;
  transform: scale(1.015);
}

.hero__shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(25, 30, 26, .78) 0%, rgba(48, 53, 49, .62) 50%, rgba(54, 59, 55, .48) 100%),
    linear-gradient(180deg, rgba(28, 33, 29, .42), rgba(28, 33, 29, .32));
  backdrop-filter: grayscale(.55);
}

.container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 22px;
}

.brand {
  display: flex;
  align-items: center;
  width: 170px;
  height: 56px;
  padding: 7px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .12);
}

.brand img { width: 100%; height: 100%; object-fit: contain; }

.header-cta,
.text-link {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.header-cta {
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  backdrop-filter: blur(8px);
  transition: background .2s ease, border-color .2s ease;
}

.header-cta:hover { background: rgba(255, 255, 255, .18); border-color: #fff; }

.hero__content {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, .92fr);
  align-items: center;
  gap: clamp(48px, 8vw, 100px);
  padding-block: 38px 54px;
}

.intro { max-width: 620px; text-shadow: 0 3px 24px rgba(0, 0, 0, .32); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .78rem;
  font-weight: 800;
}

.eyebrow span { width: 28px; height: 3px; border-radius: 2px; background: var(--green); }

h1 {
  margin: 0;
  max-width: 650px;
  font-size: clamp(3.25rem, 6.4vw, 6.8rem);
  line-height: .92;
  letter-spacing: -.065em;
  text-wrap: balance;
}

.intro__text {
  max-width: 540px;
  margin: 28px 0 24px;
  color: rgba(255, 255, 255, .9);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.6;
}

.text-link { display: inline-flex; gap: 10px; align-items: center; border-bottom: 1px solid rgba(255,255,255,.55); padding-bottom: 5px; }
.text-link span { color: #79d66d; font-size: 1.3em; }

.form-card {
  color: var(--ink);
  background: rgba(255, 255, 255, .95);
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 42px);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .24);
  backdrop-filter: blur(16px);
}

.form-card__kicker {
  margin: 0 0 8px;
  color: var(--green-dark);
  text-transform: uppercase;
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .17em;
}

.form-card h2, .privacy-dialog h2 { margin: 0; font-size: clamp(1.75rem, 3vw, 2.4rem); letter-spacing: -.04em; }
.form-card__heading > p:last-child { margin: 10px 0 26px; color: var(--muted); line-height: 1.55; }

.field { display: grid; gap: 7px; margin-bottom: 17px; }
.field-row { display: grid; grid-template-columns: .85fr 1.15fr; gap: 14px; }
.field label { font-size: .78rem; font-weight: 780; letter-spacing: .01em; }

.field input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #f8faf8;
  color: var(--ink);
  padding: 13px 14px;
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}

.field input:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(60, 175, 46, .12); background: #fff; }
.field input[aria-invalid="true"] { border-color: #c83f37; box-shadow: 0 0 0 3px rgba(200, 63, 55, .1); }
.field-error { min-height: 0; color: #ad2d26; font-size: .74rem; }

.privacy-check { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; color: #5c655c; font-size: .78rem; line-height: 1.45; cursor: pointer; }
.privacy-check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--green); }
.privacy-link, .footer-link { border: 0; padding: 0; background: transparent; color: var(--green-dark); text-decoration: underline; cursor: pointer; }
.privacy-error { display: block; margin: 5px 0 0 28px; }

.submit-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 22px;
  padding: 14px 15px 14px 19px;
  border: 0;
  border-radius: 14px;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(60, 175, 46, .24);
  transition: transform .2s, background .2s;
}

.submit-button:hover { background: var(--green-dark); transform: translateY(-1px); }
.submit-button:disabled { opacity: .7; cursor: wait; transform: none; }
.button-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: rgba(255, 255, 255, .18); font-size: 1.1rem; }
.form-status { min-height: 20px; margin: 12px 0 0; font-size: .82rem; text-align: center; color: var(--muted); }
.form-status.success { color: #207c18; }
.form-status.error { color: #ad2d26; }
.honey { position: absolute !important; left: -9999px !important; }

.site-footer { display: flex; justify-content: space-between; gap: 20px; padding-block: 18px 24px; color: rgba(255, 255, 255, .75); font-size: .78rem; }
.footer-link { color: rgba(255, 255, 255, .86); }

.privacy-dialog {
  width: min(630px, calc(100% - 32px));
  max-height: min(760px, calc(100svh - 32px));
  border: 0;
  border-radius: 24px;
  padding: 30px;
  color: var(--ink);
  box-shadow: 0 30px 100px rgba(0, 0, 0, .35);
}

.privacy-dialog::backdrop { background: rgba(20, 25, 21, .7); backdrop-filter: blur(5px); }
.privacy-dialog__header { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.dialog-close { border: 0; background: #f1f4f1; width: 38px; height: 38px; border-radius: 50%; cursor: pointer; font-size: 1.5rem; line-height: 1; }
.privacy-dialog__content { margin-block: 24px; color: #535d54; line-height: 1.65; }
.privacy-dialog__content a { color: var(--green-dark); }
.privacy-date { font-size: .82rem; color: #7b847c; }
.dialog-accept { border: 0; border-radius: 12px; padding: 12px 22px; background: var(--green); color: #fff; font-weight: 800; cursor: pointer; }

@media (max-width: 880px) {
  .hero { min-height: auto; }
  .hero__content { grid-template-columns: 1fr; gap: 38px; padding-block: 48px; }
  .intro { padding-top: 10px; }
  h1 { font-size: clamp(3.4rem, 12vw, 6rem); max-width: 720px; }
  .form-card { width: min(620px, 100%); }
}

@media (max-width: 560px) {
  .container { width: min(100% - 28px, 1180px); }
  .site-header { padding-block: 14px; }
  .brand { width: 142px; height: 48px; border-radius: 13px; }
  .header-cta { display: none; }
  .hero__content { padding-block: 38px 40px; gap: 30px; }
  h1 { font-size: clamp(3.05rem, 15vw, 4.65rem); }
  .intro__text { margin-top: 22px; }
  .form-card { padding: 24px 20px; border-radius: 22px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .site-footer { padding-bottom: 20px; }
  .privacy-dialog { padding: 24px 20px; }
}

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