:root {
  --ink: #172018;
  --muted: #66705f;
  --paper: #fbfaf4;
  --panel: #ffffff;
  --line: #d9dccf;
  --green: #255f3a;
  --green-dark: #12351f;
  --gold: #d9a441;
  --sand: #eee7d6;
  --soft: #f4f1e7;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

a {
  color: inherit;
}

.hero {
  min-height: 100vh;
  padding: 24px;
  background:
    linear-gradient(90deg, rgba(18, 53, 31, 0.96), rgba(18, 53, 31, 0.74)),
    url("assets/granjas-elizabeth-vista-aerea.jpg") center / cover;
  color: #fff;
}

.topbar {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.navlinks {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 20px;
  font-size: 0.95rem;
}

.navlinks a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.84);
}

.navlinks a:hover {
  color: #fff;
}

.hero-grid {
  width: min(1180px, 100%);
  margin: 70px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 42px;
  align-items: center;
}

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

.eyebrow,
.section-label {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(2.6rem, 6vw, 5.8rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.06;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.lead {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.18rem;
  line-height: 1.65;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  background: var(--gold);
  color: #1c1c12;
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.42);
  color: #fff;
}

.hero-media {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.hero-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.hero-media figcaption {
  padding: 12px 14px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
}

.band,
.section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 42px;
  align-items: start;
  padding: 76px 0;
}

.band p,
.section p,
.steps,
.timeline p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.section {
  padding: 72px 0;
  border-top: 1px solid var(--line);
}

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

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

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

.project-card {
  display: block;
  min-height: 190px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: var(--panel);
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease;
}

.project-card:hover {
  border-color: var(--green);
  transform: translateY(-2px);
}

.project-card span {
  display: inline-flex;
  margin-bottom: 20px;
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--sand);
  color: var(--green-dark);
  font-size: 0.82rem;
  font-weight: 800;
}

.project-card p {
  margin-bottom: 0;
}

.project-anchor {
  padding-bottom: 18px;
}

.stats article,
.document-grid article,
.timeline article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 22px;
}

.stat {
  display: block;
  margin-bottom: 12px;
  color: var(--green);
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1;
}

.notice {
  margin-top: 18px;
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  padding: 18px 20px;
  background: var(--soft);
  color: #4c4b3f;
  line-height: 1.65;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 44px;
  align-items: start;
}

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

.steps li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding: 0 0 16px;
}

.steps span {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-weight: 900;
}

.document-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.document-grid span {
  display: inline-flex;
  margin-top: 12px;
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--sand);
  color: var(--green-dark);
  font-size: 0.82rem;
  font-weight: 800;
}

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

time {
  display: block;
  margin-bottom: 12px;
  color: var(--green);
  font-size: 0.88rem;
  font-weight: 900;
}

.authority {
  align-items: center;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chips span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  background: #fff;
  color: var(--green-dark);
  font-weight: 800;
}

.closing {
  border-top: 1px solid var(--line);
  align-items: center;
}

.closing .button,
.closing .contact-card {
  width: fit-content;
  justify-self: end;
}

.contact-card {
  display: inline-flex;
  min-width: 250px;
  min-height: 72px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  border-radius: 8px;
  padding: 12px 18px;
  background: var(--gold);
  color: #1c1c12;
  font-weight: 800;
  text-decoration: none;
}

.contact-card span {
  font-size: 0.92rem;
}

.contact-card strong {
  font-size: 0.98rem;
  overflow-wrap: anywhere;
}

footer {
  padding: 28px 18px 36px;
  background: var(--green-dark);
  color: rgba(255, 255, 255, 0.74);
  text-align: center;
  font-size: 0.9rem;
}

footer p {
  margin: 6px auto;
  max-width: 980px;
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    padding: 18px;
  }

  .topbar,
  .hero-grid,
  .band,
  .split,
  .closing {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-grid {
    margin-top: 52px;
  }

  .stats,
  .project-grid,
  .document-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .closing .button,
  .closing .contact-card {
    justify-self: start;
  }
}

@media (max-width: 540px) {
  h1 {
    font-size: 2.45rem;
  }

  .navlinks {
    justify-content: flex-start;
  }

  .button {
    width: 100%;
  }

  .contact-card {
    width: 100%;
  }

  .band,
  .section {
    width: min(100% - 28px, 1180px);
  }
}
