:root {
  --ink: #142117;
  --forest: #1a3d28;
  --forest-deep: #0f2418;
  --leaf: #2d7446;
  --leaf-mid: #3d9159;
  --leaf-soft: #8fc9a2;
  --gold: #e8c547;
  --gold-deep: #c9a227;
  --earth: #8a6238;
  --clay: #c46a3a;
  --cream: #f7f3e8;
  --cream-2: #efe6d2;
  --paper: #fffdf7;
  --white: #ffffff;
  --muted: #5c6b5f;
  --line: rgba(26, 61, 40, 0.12);
  --shadow: 0 28px 70px rgba(15, 36, 24, 0.16);
  --radius: 22px;
  --max: 1180px;
  --nav-h: 80px;
  --font: "Outfit", system-ui, sans-serif;
  --display: "Fraunces", Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--leaf);
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--gold);
}

.lead {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 58ch;
}

h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

h1 { font-size: clamp(2.4rem, 5.4vw, 4.6rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 3rem); }
h3 { font-size: 1.35rem; }

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

.section-head .lead { margin: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  border: 0;
  font-weight: 600;
  cursor: pointer;
  transition: transform .2s, background .2s, color .2s, box-shadow .2s;
}

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

.btn-gold {
  background: var(--gold);
  color: var(--forest-deep);
}

.btn-forest {
  background: var(--forest);
  color: var(--cream);
}

.btn-ghost {
  background: transparent;
  color: var(--forest);
  border: 1.5px solid rgba(26, 61, 40, 0.22);
}

.btn-cream {
  background: var(--cream);
  color: var(--forest);
}

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav-h);
  background: rgba(247, 243, 232, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 160px;
}

.brand img {
  width: auto;
  height: 58px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid var(--line);
}

.brand-text { display: none; }

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-family: var(--display);
  font-size: 1.05rem;
}

.brand-text span {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.94rem;
  font-weight: 500;
}

.nav-links a:hover { color: var(--leaf); }
.nav-links a.active { color: var(--leaf); }

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

.lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 40px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--paper);
  font-weight: 700;
  cursor: pointer;
}

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  position: relative;
}

.menu-btn span,
.menu-btn::before,
.menu-btn::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--forest);
}

.menu-btn span { top: 21px; }
.menu-btn::before { top: 14px; }
.menu-btn::after { top: 28px; }

/* HERO */
.hero {
  position: relative;
  min-height: min(88vh, 860px);
  display: grid;
  place-items: end start;
  overflow: hidden;
  background: var(--forest-deep);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 36, 24, 0.18) 0%, rgba(15, 36, 24, 0.72) 100%),
    linear-gradient(90deg, rgba(15, 36, 24, 0.55) 0%, rgba(15, 36, 24, 0.05) 70%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 80px 0 72px;
  color: var(--cream);
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.hero-badge {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(232, 197, 71, 0.16);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero h1 { max-width: 16ch; }
.hero .lead {
  color: rgba(247, 243, 232, 0.82);
  margin: 18px 0 28px;
  max-width: 52ch;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* STATS */
.stats {
  background: var(--forest);
  color: var(--cream);
  padding: 28px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.stat b {
  display: block;
  font-family: var(--display);
  font-size: 2rem;
  color: var(--gold);
}

.stat span {
  font-size: 0.9rem;
  color: rgba(247, 243, 232, 0.72);
}

/* SECTIONS */
section { padding: 88px 0; }

.page-hero {
  padding: 72px 0 40px;
}

.page-logo {
  width: 168px;
  height: 168px;
  object-fit: cover;
  border-radius: 22px;
  margin-bottom: 22px;
  box-shadow: var(--shadow);
}

.page-logo.wordmark {
  width: 220px;
  height: auto;
  object-fit: contain;
  background: #fff;
  padding: 14px 16px 10px;
}

.family-card .card-logo {
  position: relative;
  z-index: 1;
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
}

.page-hero h1 { max-width: 16ch; }
.page-hero .lead { margin-top: 16px; }

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.split img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
  border-radius: 28px;
}

.pillars { background: var(--paper); }

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

.card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}

.card .num {
  font-family: var(--display);
  color: var(--gold-deep);
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.card p, .project p, .ally p { color: var(--muted); margin-top: 8px; }

.family {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.family-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  min-height: 420px;
  color: var(--cream);
  display: flex;
  align-items: end;
}

.family-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.family-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(15, 36, 24, 0.86));
}

.family-card > div {
  position: relative;
  z-index: 1;
  padding: 32px;
}

.family-card.wide { grid-column: 1 / -1; min-height: 320px; }

.tag {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(232, 197, 71, 0.18);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.projects { background: var(--cream-2); }

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.project {
  background: var(--paper);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.project img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.project-body { padding: 24px; }

.manifesto {
  background: var(--forest-deep);
  color: var(--cream);
}

.manifesto .lead { color: rgba(247, 243, 232, 0.78); }
.manifesto blockquote {
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.6vw, 2.15rem);
  line-height: 1.35;
  max-width: 22ch;
}

.teachers {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.teacher {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
}

.teacher b { display: block; margin-bottom: 6px; }
.teacher span { color: var(--muted); font-size: 0.9rem; }

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 36px;
}

.gallery img {
  height: 180px;
  width: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.impact {
  background: var(--forest);
  color: var(--cream);
}

.impact .lead { color: rgba(247, 243, 232, 0.75); }

.impact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
}

.impact-big, .impact-side article {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 26px;
}

.n {
  font-family: var(--display);
  font-size: 3.2rem;
  color: var(--gold);
  line-height: 1;
}

.impact-side { display: grid; gap: 16px; }
.impact-side .n { font-size: 2rem; }

.contact { background: var(--paper); }

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
}

.contact-card, form {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
}

.contact-links {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.contact-links a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
}

.contact-links span { color: var(--muted); font-weight: 500; }

label { display: block; font-size: 0.88rem; font-weight: 600; margin: 12px 0 6px; }

input, select, textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  background: var(--paper);
  border-radius: 12px;
  padding: 12px 14px;
}

textarea { min-height: 120px; resize: vertical; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-note { margin-top: 12px; color: var(--muted); font-size: 0.88rem; }

footer {
  background: var(--forest-deep);
  color: rgba(247, 243, 232, 0.78);
  padding: 48px 0 24px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 28px;
  margin-bottom: 28px;
}

.foot-brand {
  display: flex;
  gap: 14px;
}

.foot-brand img {
  width: auto;
  height: 72px;
  border-radius: 8px;
  background: #fff;
}

.foot-brand img[src*="hierbawena"] {
  width: 72px;
  height: 72px;
  object-fit: cover;
}

.foot-brand img[src*="residuos-logo"] {
  width: auto;
  height: 110px;
  object-fit: contain;
  padding: 6px 8px;
}

.foot-brand strong { display: none; }
footer a:hover { color: var(--gold); }

.legal {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: 0.86rem;
}

.timeline {
  display: grid;
  gap: 0;
  border-left: 2px solid var(--line);
  padding-left: 22px;
}

.time-item { padding: 0 0 26px; position: relative; }
.time-item::before {
  content: "";
  position: absolute;
  left: -29px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px var(--cream);
}

.time-item b { display: block; }
.time-item span { color: var(--muted); font-size: 0.92rem; }

.curriculum {
  display: grid;
  gap: 14px;
}

.lesson {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
}

.lesson .mod {
  font-family: var(--display);
  color: var(--leaf);
  font-size: 1.4rem;
}

.service {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 16px;
}

.service img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.service > div { padding-right: 24px; }

.ally-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.ally {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
}

.note {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 28px;
}

.phase {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.phase-now {
  background: rgba(61, 145, 89, 0.14);
  color: var(--leaf);
}

.phase-soon {
  background: rgba(232, 197, 71, 0.2);
  color: #8a6a12;
}

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

.crop-group {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
}

.crop-group h3 { margin-bottom: 12px; }

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

.chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 6px 12px 6px 6px;
  font-size: 0.86rem;
}

.chip img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
  background: var(--cream-2);
}

.chip span { line-height: 1.25; }

.chip i {
  display: block;
  font-style: italic;
  color: var(--muted);
  font-size: 0.72rem;
}

.bird-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

.bird-bar input {
  max-width: 320px;
}

.bird-count {
  font-weight: 600;
  color: var(--leaf);
}

.bird-table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
}

.bird-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}

.bird-table th,
.bird-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.bird-table th {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.bird-table em { color: var(--muted); }

.bird-name {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bird-name img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
  background: var(--cream-2);
}

.bird-name strong { line-height: 1.25; }

.bio-group { margin-bottom: 36px; }
.bio-group h3 { margin-bottom: 14px; }

.bio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}

.bio-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.bio-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  background: var(--cream-2);
}

.bio-card-body {
  padding: 10px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bio-card-body strong { line-height: 1.25; }
.bio-card-body em { color: var(--muted); font-size: 0.8rem; }

.bio-badge {
  display: inline-flex;
  width: fit-content;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 3px 8px;
  margin-bottom: 4px;
}

.bio-badge.seen {
  background: rgba(61, 145, 89, 0.14);
  color: var(--leaf);
}

.bio-badge.area {
  background: rgba(138, 98, 56, 0.12);
  color: var(--earth);
}

.future-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.future-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px;
}

.future-card p { color: var(--muted); margin-top: 8px; }

.callout {
  background: var(--cream-2);
  border: 1px dashed rgba(26, 61, 40, 0.22);
  border-radius: 16px;
  padding: 16px 18px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--cream);
    padding: 18px 20px 24px;
    border-bottom: 1px solid var(--line);
    align-items: flex-start;
  }
  .menu-btn { display: block; }
  .lang-desktop { display: none; }
  .brand img { height: 46px; }
  .stats-grid, .cards, .teachers, .gallery, .family, .project-grid, .contact-grid, .split, .impact-grid, .foot-grid, .ally-grid, .form-row, .service, .crop-groups, .future-grid {
    grid-template-columns: 1fr;
  }
  .section-head { flex-direction: column; align-items: start; }
  .legal { flex-direction: column; }
  .service img { height: 200px; }
  .service > div { padding: 0 20px 20px; }
  .split img { min-height: 260px; }
}
