:root {
  --background: #fbfcfa;
  --foreground: #182134;
  --muted: #667184;
  --card: #ffffff;
  --primary: #253f8f;
  --primary-hover: #3d5ed4;
  --primary-soft: #edf2ff;
  --yellow: #e8b437;
  --yellow-soft: #fff6d8;
  --border: #e0e5ee;
  --input: #dbe2ec;
  --shadow: 0 22px 70px rgba(37, 63, 143, 0.14);
  --font-sans: "DM Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--foreground);
  background: var(--background);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(224, 229, 238, 0.9);
  background: rgba(251, 252, 250, 0.86);
  backdrop-filter: blur(16px);
}

.topbar-inner {
  width: min(1120px, calc(100% - 40px));
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--foreground);
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 700;
  text-decoration: none;
}

.brand-mark,
.footer-brand {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
}

.brand-mark {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(37, 63, 143, 0.18);
}

.brand-mark span,
.footer-brand span {
  color: var(--yellow);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.nav a:hover {
  color: var(--foreground);
}

.topbar-cta {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  color: #2a2410;
  background: var(--yellow);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(232, 180, 55, 0.22);
}

.hero {
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.hero-bg::before,
.hero-bg::after {
  content: "";
  position: absolute;
  width: 430px;
  height: 430px;
  border-radius: 999px;
  filter: blur(70px);
}

.hero-bg::before {
  top: -180px;
  left: -160px;
  background: rgba(37, 63, 143, 0.13);
}

.hero-bg::after {
  right: -150px;
  bottom: -190px;
  background: rgba(232, 180, 55, 0.26);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: clamp(34px, 6vw, 72px);
  align-items: center;
  padding: 74px 0 84px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 7px 12px;
  color: var(--primary);
  background: rgba(37, 63, 143, 0.06);
  border: 1px solid rgba(37, 63, 143, 0.18);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.pill span {
  width: 7px;
  height: 7px;
  background: var(--yellow);
  border-radius: 50%;
}

.hero h1,
h2,
h3 {
  font-family: var(--font-display);
  letter-spacing: 0;
}

.hero h1 {
  max-width: 660px;
  margin: 20px 0 0;
  font-size: clamp(3rem, 7vw, 5.9rem);
  font-weight: 700;
  line-height: 1.02;
}

.hero h1 span {
  color: var(--primary);
}

.hero-copy {
  max-width: 610px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.72;
}

.hero-actions,
.success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary,
.button-submit {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 12px 30px rgba(37, 63, 143, 0.24);
}

.button-primary:hover,
.button-submit:hover {
  background: var(--primary-hover);
}

.button-secondary,
.button-light {
  color: var(--foreground);
  background: var(--card);
  border-color: var(--border);
}

.button-secondary:hover,
.button-light:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 560px;
  margin: 42px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--border);
}

.hero-stats div,
.hero-stats dt,
.hero-stats dd {
  margin: 0;
}

.hero-stats dt {
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
}

.hero-stats dd {
  color: var(--muted);
  font-size: 0.82rem;
}

.hero-card {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.hero-card img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

.hero-card-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(35deg, rgba(37, 63, 143, 0.58) 0%, rgba(37, 63, 143, 0.16) 50%, transparent 100%);
}

.hero-card-caption {
  position: absolute;
  right: 22px;
  bottom: 22px;
  left: 22px;
  display: inline-grid;
  width: max-content;
  max-width: calc(100% - 44px);
  gap: 2px;
  padding: 12px 15px;
  background: rgba(255, 255, 255, 0.93);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 10px;
  backdrop-filter: blur(12px);
}

.hero-card-caption strong {
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 0.84rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-card-caption span {
  color: var(--muted);
  font-size: 0.82rem;
}

.hero-card-badge {
  position: absolute;
  right: -1px;
  bottom: -1px;
  display: none;
  padding: 14px 18px;
  color: #2a2410;
  background: var(--yellow);
  border-top-left-radius: 14px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.ticker,
.footer {
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
}

.ticker-inner {
  width: min(1120px, calc(100% - 40px));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 30px;
  margin: 0 auto;
  padding: 14px 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ticker i {
  color: var(--yellow);
  font-style: normal;
}

.section {
  padding: 84px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 38px;
}

.section-kicker {
  margin: 0;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h2 {
  max-width: 700px;
  margin: 8px 0 0;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.05;
}

.space-cards,
.detail-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.space-card,
.summary-card,
.detail-list article,
.lead-form,
.success-box {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
}

.space-card {
  position: relative;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  padding: 28px;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.space-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 22px 45px rgba(37, 63, 143, 0.1);
}

.space-number {
  color: var(--yellow);
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1;
}

.space-card h3 {
  margin: 18px 0 0;
  font-size: 1.35rem;
}

.space-card p {
  flex: 1;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.68;
}

.space-card a {
  display: inline-flex;
  gap: 8px;
  margin-top: 24px;
  color: var(--primary);
  font-weight: 800;
  text-decoration: none;
  transition: gap 180ms ease;
}

.space-card:hover a {
  gap: 13px;
}

.form-band {
  padding: 84px 0;
  background: rgba(237, 242, 255, 0.52);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.form-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(34px, 6vw, 70px);
  align-items: start;
}

.form-copy p {
  max-width: 520px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.summary-card {
  max-width: 460px;
  display: grid;
  gap: 5px;
  margin-top: 28px;
  padding: 20px;
  border-left: 5px solid var(--yellow);
  box-shadow: 0 10px 26px rgba(37, 63, 143, 0.06);
}

.summary-card strong {
  font-family: var(--font-display);
}

.summary-card span {
  color: var(--muted);
  font-size: 0.92rem;
}

.lead-form {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 4vw, 32px);
  box-shadow: var(--shadow);
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

label,
fieldset {
  display: grid;
  gap: 8px;
  margin: 0;
  color: var(--foreground);
  font-size: 0.9rem;
  font-weight: 700;
}

input,
select {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  color: var(--foreground);
  border: 1px solid var(--input);
  border-radius: 8px;
  background: var(--background);
  font: inherit;
}

input::placeholder {
  color: #9aa4b3;
}

input:focus,
select:focus {
  outline: 3px solid rgba(61, 94, 212, 0.14);
  border-color: var(--primary);
}

.field-help {
  margin: -8px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

fieldset {
  padding: 0;
  border: 0;
}

legend {
  margin-bottom: 10px;
  padding: 0;
}

.check-option {
  grid-template-columns: 18px 1fr;
  align-items: center;
  margin-top: 8px;
  padding: 12px;
  color: var(--foreground);
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}

.consent {
  grid-template-columns: 18px 1fr;
  align-items: start;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.55;
}

.check-option input,
.consent input {
  width: 16px;
  min-height: auto;
  accent-color: var(--primary);
}

.consent input {
  margin-top: 4px;
}

.button-submit {
  width: 100%;
  min-height: 54px;
}

.form-status {
  min-height: 20px;
  margin: 0;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 800;
}

.success-box {
  display: grid;
  gap: 10px;
  padding: clamp(24px, 4vw, 34px);
  box-shadow: var(--shadow);
}

.success-icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  color: #2a2410;
  background: var(--yellow);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 900;
}

.success-box strong {
  font-family: var(--font-display);
  font-size: 1.8rem;
}

.success-box > span:not(.success-icon) {
  color: var(--muted);
}

.detail-list article {
  padding: 28px;
}

.detail-list article span {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--primary);
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 800;
}

.detail-list strong {
  display: block;
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.detail-list p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 32px 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
}

.footer-brand {
  color: #fff;
  background: transparent;
  font-family: var(--font-display);
  font-weight: 800;
}

@media (min-width: 980px) {
  .hero-card-badge {
    display: block;
  }
}

@media (max-width: 920px) {
  .hero-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    padding-top: 54px;
  }

  .hero-card,
  .hero-card img {
    min-height: 380px;
    height: 420px;
  }

  .space-cards,
  .detail-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .container,
  .topbar-inner,
  .ticker-inner {
    width: min(100% - 28px, 1120px);
  }

  .topbar-inner {
    min-height: auto;
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }

  .topbar-cta {
    width: 100%;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 16vw, 4.2rem);
  }

  .hero-stats,
  .field-row {
    grid-template-columns: 1fr;
  }

  .section,
  .form-band {
    padding: 58px 0;
  }
}

/* WhatsApp-first actions */
:root {
  --whatsapp: #128c7e;
  --whatsapp-dark: #075e54;
}

.quick-whatsapp {
  max-width: 720px;
  margin-top: 28px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(37, 63, 143, 0.08);
  backdrop-filter: blur(14px);
}

.quick-whatsapp p {
  margin: 0 0 12px;
  color: var(--foreground);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
}

.quick-whatsapp div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.wa-button {
  display: inline-flex;
  min-height: 58px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  padding: 12px 14px;
  color: #fff;
  background: var(--whatsapp);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(18, 140, 126, 0.2);
}

.wa-button:hover {
  background: var(--whatsapp-dark);
}

.wa-button span {
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wa-button-soft {
  color: var(--foreground);
  background: var(--yellow);
  box-shadow: 0 12px 28px rgba(232, 180, 55, 0.2);
}

.wa-button-soft:hover {
  background: #dca729;
}

.wa-button-soft span {
  color: rgba(42, 36, 16, 0.72);
}

.space-button {
  width: 100%;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  color: #fff !important;
  background: var(--whatsapp);
  border-radius: 8px;
}

.space-button:hover {
  background: var(--whatsapp-dark);
}

.space-button-soft {
  color: var(--foreground) !important;
  background: var(--yellow);
}

.space-button-soft:hover {
  background: #dca729;
}

@media (max-width: 700px) {
  .quick-whatsapp {
    padding: 14px;
  }

  .quick-whatsapp div {
    grid-template-columns: 1fr;
  }

  .wa-button {
    width: 100%;
    min-height: 64px;
    font-size: 1.04rem;
  }

  .success-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}
