:root {
  --ink: #20242a;
  --soft-ink: #3f4854;
  --muted: #66717f;
  --line: #e9e1da;
  --bg: #faf7f4;
  --paper: #ffffff;
  --warm: #f4eee7;
  --brand-blue: #1f73d8;
  --brand-blue-dark: #1558a9;
  --rose: #1f73d8;
  --rose-dark: #1558a9;
  --green: #24695f;
  --gold: #c58a2e;
  --shadow: 0 18px 45px rgba(32, 36, 42, 0.10);
  --soft-shadow: 0 10px 26px rgba(32, 36, 42, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.72;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--green);
  text-decoration: none;
}

a:hover {
  color: var(--rose-dark);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 22px rgba(32, 36, 42, 0.04);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-dark) 100%);
  font-size: 13px;
  font-weight: 900;
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: -0.02em;
  box-shadow: 0 8px 18px rgba(31, 115, 216, 0.22);
}

.nav-toggle {
  display: none;
}

.nav-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-button span,
.nav-button span::before,
.nav-button span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  content: "";
  position: relative;
}

.nav-button span::before {
  position: absolute;
  top: -7px;
}

.nav-button span::after {
  position: absolute;
  top: 7px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  font-weight: 700;
}

.button,
.text-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--rose);
  color: #fff;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(214, 95, 88, 0.16);
}

.button:hover,
.text-link-button:hover {
  background: var(--rose-dark);
  color: #fff;
}

.button.secondary {
  background: #fff;
  border-color: var(--green);
  color: var(--green);
  box-shadow: none;
}

.button.secondary:hover {
  background: var(--green);
  color: #fff;
}

.hero {
  background: linear-gradient(135deg, #ffffff 0%, #faf5ef 52%, #f0e7de 100%);
  border-bottom: 1px solid var(--line);
}

.home-hero {
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: center;
  position: relative;
  isolation: isolate;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(22, 35, 38, 0.82) 0%, rgba(22, 35, 38, 0.64) 48%, rgba(22, 35, 38, 0.22) 100%),
    url("../images/mexico-community-hero.png") center / cover no-repeat;
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 140px;
  background: linear-gradient(180deg, rgba(250, 247, 244, 0) 0%, var(--bg) 100%);
  z-index: -1;
}

.home-hero .hero-grid {
  grid-template-columns: minmax(0, 760px);
  padding: 90px 0 120px;
}

.home-hero h1,
.home-hero .lead,
.home-hero p {
  color: #fff;
}

.home-hero .eyebrow {
  color: #f0c987;
}

.home-hero .button.secondary {
  background: rgba(255, 255, 255, 0.94);
}

.hero-grid {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0 42px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.78fr);
  gap: 44px;
  align-items: center;
}

.hero-copy {
  max-width: 700px;
}

.eyebrow {
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tag {
  display: inline-flex;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

h1,
h2,
h3 {
  margin: 0 0 14px;
  line-height: 1.18;
  letter-spacing: 0;
  color: var(--ink);
}

h1 {
  margin-top: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: clamp(36px, 5vw, 58px);
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: clamp(27px, 3.4vw, 38px);
}

h3 {
  font-size: 21px;
  font-weight: 800;
}

p {
  margin: 0 0 17px;
}

.lead {
  color: var(--soft-ink);
  font-size: 19px;
}

.hero-actions,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.section-head {
  max-width: 760px;
  margin-bottom: 24px;
}

.home-intro {
  padding-top: 70px;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 48px;
  align-items: start;
}

.intro-grid p {
  color: var(--soft-ink);
  font-size: 18px;
}

.feature-strip,
.signup-support {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px;
  box-shadow: var(--soft-shadow);
}

.feature-item span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--gold);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.city-showcase {
  align-items: stretch;
}

.city-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--soft-shadow);
}

.city-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.city-card div {
  padding: 22px;
}

.city-card a {
  font-weight: 800;
}

.privacy-band {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.split-panel,
.signup-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
  gap: 42px;
  align-items: center;
}

.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  color: var(--soft-ink);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: inset 0 0 0 4px #dcebe7;
}

.home-faq {
  max-width: 840px;
}

.signup-hero {
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(22, 35, 38, 0.84) 0%, rgba(22, 35, 38, 0.54) 100%),
    url("../images/mexico-community-hero.png") center / cover no-repeat;
  padding: 64px 0;
}

.signup-copy,
.signup-copy h1,
.signup-copy .lead,
.signup-copy .check-list li {
  color: #fff;
}

.signup-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  padding: 30px;
  box-shadow: var(--shadow);
}

.signup-card .button {
  width: 100%;
  margin-top: 10px;
}

.small-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}

.hero-media {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  box-shadow: var(--shadow);
}

.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
}

.page-hero {
  background: linear-gradient(135deg, #ffffff 0%, #f7f0ea 100%);
  border-bottom: 1px solid var(--line);
  padding: 48px 0;
}

.page-hero .wrap {
  max-width: 1120px;
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: 38px;
  align-items: center;
}

.page-hero-copy {
  max-width: 720px;
}

.page-hero-media {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  box-shadow: var(--shadow);
}

.page-hero-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 10px;
}

.breadcrumb {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding: 54px 0;
}

.section.compact {
  padding: 34px 0;
}

.section.tint {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section.alt {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.grid.three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.cta {
  background: linear-gradient(135deg, #1f5c53 0%, #2a7167 100%);
  color: #fff;
  text-align: center;
  padding: 54px 0;
}

.cta h2,
.cta p {
  color: #fff;
}

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

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(260px, 320px);
  gap: 42px;
  align-items: start;
}

.content {
  max-width: 780px;
}

.content h2 {
  padding-top: 22px;
  margin-top: 34px;
  border-top: 1px solid rgba(36, 105, 95, 0.16);
}

.content h2:first-child {
  margin-top: 0;
  border-top: 0;
}

.content h3 {
  margin-top: 24px;
}

.content p,
.content li {
  color: var(--soft-ink);
}

.list {
  margin: 0;
  padding-left: 20px;
}

.list li {
  margin-bottom: 10px;
}

.aside {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 16px;
}

.note,
.mini-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
  box-shadow: var(--soft-shadow);
}

.note {
  border-left: 4px solid var(--green);
}

.mini-card strong {
  display: block;
  margin-bottom: 8px;
}

.toc {
  padding-left: 18px;
  margin: 0;
}

.toc li {
  margin-bottom: 8px;
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 16px;
  margin: 22px 0;
}

.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 20px 20px 64px;
  box-shadow: 0 6px 18px rgba(32, 36, 42, 0.035);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 20px;
  top: 22px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green);
  color: #fff;
  font-weight: 800;
}

.benefit-grid,
.city-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
  box-shadow: 0 6px 18px rgba(32, 36, 42, 0.035);
}

.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 12px;
  box-shadow: 0 5px 16px rgba(32, 36, 42, 0.025);
}

.faq summary {
  cursor: pointer;
  font-weight: 800;
}

.faq p {
  margin-top: 12px;
}

.final-cta {
  background: linear-gradient(135deg, #1f5c53 0%, #2a7167 100%);
  color: #fff;
  text-align: center;
  padding: 54px 0;
}

.final-cta p {
  max-width: 740px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 255, 255, 0.88);
}

.legal-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
  box-shadow: var(--soft-shadow);
}

.site-footer {
  background: #1b2227;
  color: rgba(255, 255, 255, 0.75);
  padding: 38px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 24px;
}

.site-footer .brand {
  color: #fff;
  margin-bottom: 12px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.92);
}

.footer-links {
  display: grid;
  gap: 8px;
}

.fine {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 18px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
}

@media (max-width: 900px) {
  .nav {
    min-height: 64px;
  }

  .home-hero {
    min-height: calc(100vh - 64px);
    background:
      linear-gradient(180deg, rgba(22, 35, 38, 0.82) 0%, rgba(22, 35, 38, 0.66) 100%),
      url("../images/mexico-community-hero.png") center / cover no-repeat;
  }

  .nav-button {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 16px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .nav-links a {
    padding: 13px 4px;
    border-bottom: 1px solid var(--line);
  }

  .nav-links .button {
    margin-top: 12px;
    border-bottom: 0;
  }

  .nav-toggle:checked ~ .nav-links {
    display: flex;
  }

  .hero-grid,
  .page-hero-grid,
  .content-layout,
  .intro-grid,
  .feature-strip,
  .split-panel,
  .signup-grid,
  .signup-support,
  .grid.three,
  .benefit-grid,
  .city-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    padding: 36px 0 32px;
    gap: 26px;
  }

  .hero-media img {
    aspect-ratio: 16 / 10;
  }

  .page-hero-media {
    order: -1;
  }

  .section-head {
    margin-bottom: 18px;
  }

  .signup-hero {
    min-height: auto;
    padding: 44px 0;
  }

  .aside {
    position: static;
  }
}

@media (max-width: 560px) {
  .brand {
    font-size: 17px;
  }

  .button,
  .text-link-button {
    width: 100%;
  }

  .section {
    padding: 38px 0;
  }

  .page-hero {
    padding: 28px 0;
  }

  h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 28px;
  }

  .lead {
    font-size: 17px;
  }

  .home-hero .hero-grid {
    padding: 56px 0 78px;
  }

  .page-hero-grid {
    gap: 22px;
  }

  .page-hero-media,
  .hero-media {
    padding: 6px;
    border-radius: 12px;
  }

  .feature-item,
  .card,
  .note,
  .mini-card,
  .signup-card {
    padding: 20px;
  }

  .legal-box {
    padding: 20px;
  }
}
