:root {
  --green: #158a3f;
  --green-deep: #0f6b30;
  --ink: #122018;
  --muted: #5a6b61;
  --paper: #f4f1ea;
  --line: rgba(18, 32, 24, 0.14);
  --dark: #0c1611;
  --nav-h: 76px;
  --max: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: Manrope, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 200;
  background: #fff;
  padding: 0.5rem 0.8rem;
}

.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Nav over hero */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--nav-h);
  color: #fff;
  background: transparent;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.nav.scrolled {
  background: rgba(12, 22, 17, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: #fff;
}

.brand img { height: 36px; width: auto; }
.brand span { display: flex; flex-direction: column; line-height: 1.05; }
.brand strong { font-size: 1.05rem; font-weight: 800; }
.brand em { font-style: normal; font-size: 0.68rem; color: rgba(255,255,255,0.7); font-weight: 600; }

.nav__links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0.15rem;
}

.nav__links a {
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255,255,255,0.88);
}

.nav__links a:hover { color: #fff; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 0.85rem 1.3rem;
  font-family: inherit;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn--solid {
  background: var(--green);
  color: #fff;
}

.btn--solid:hover { background: var(--green-deep); }

.btn--ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.45);
}

.btn--ghost:hover { background: rgba(255,255,255,0.1); }

.nav__toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.25);
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 1.1rem;
}

/* Hero: imagen a fondo completo */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: end;
  color: #fff;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(8, 18, 12, 0.42) 0%, rgba(8, 18, 12, 0.72) 48%, rgba(8, 18, 12, 0.94) 100%),
    url("assets/pdf_Image5.jpg") center 40% / cover no-repeat;
}

.hero .wrap {
  width: 100%;
  align-self: end;
}

.hero__content {
  padding: 8rem 0 4.5rem;
  max-width: 42rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9dcea8;
  margin-bottom: 1.1rem;
}

.eyebrow::before {
  content: "";
  width: 16px;
  height: 16px;
  background: var(--green);
  clip-path: polygon(50% 0, 100% 86%, 0 86%);
}

h1, h2, h3 { font-family: Fraunces, Georgia, serif; letter-spacing: -0.03em; line-height: 1.12; }

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 600;
  margin-bottom: 1.1rem;
}

.hero .lead {
  font-size: 1.12rem;
  color: rgba(255,255,255,0.78);
  max-width: 36rem;
  margin-bottom: 1.8rem;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }

.hero__line {
  margin-top: 2.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.62);
  font-size: 0.88rem;
  letter-spacing: 0.04em;
}

/* Shared section type */
section { padding: 5.2rem 0; }

.kicker {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.7rem;
}

h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 0.85rem; }

.intro,
.lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 40rem;
}

/* Enfoques: columnas abiertas, sin cajas */
.approach { background: var(--paper); }

.approach .intro { margin-bottom: 3.2rem; }

.foci {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.8rem 2.4rem;
}

.foci article {
  padding-top: 1.2rem;
  border-top: 1px solid var(--ink);
}

.foci h3 {
  font-size: 1.55rem;
  margin-bottom: 0.4rem;
}

.foci p {
  color: var(--muted);
  margin-bottom: 0.85rem;
}

.foci ul {
  list-style: none;
  font-size: 0.92rem;
}

.foci li {
  padding: 0.22rem 0;
  color: var(--ink);
}

.foci li::before {
  content: "–  ";
  color: var(--green);
}

.method {
  margin-top: 3.4rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.2rem;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.method i {
  display: inline-block;
  width: 2.2rem;
  height: 1px;
  background: var(--green);
  margin: 0 0.7rem;
  vertical-align: middle;
}

/* Servicios: lista, no tarjetas */
.services { background: #fff; }

.service-list {
  list-style: none;
  margin-top: 2.4rem;
}

.service-list li {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1rem;
  padding: 1.45rem 0;
  border-top: 1px solid var(--line);
}

.service-list li:last-child { border-bottom: 1px solid var(--line); }

.service-list span {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.15rem;
  color: var(--green);
  padding-top: 0.15rem;
}

.service-list h3 { font-size: 1.35rem; margin-bottom: 0.3rem; }
.service-list p { color: var(--muted); max-width: 46rem; }

/* Nosotros */
.about {
  background: var(--dark);
  color: #d5e3d9;
}

.about .kicker { color: #7dcc90; }
.about h2 { color: #fff; max-width: 18ch; }
.about p { max-width: 40rem; margin-bottom: 1rem; color: #b7c9bc; }

/* Partners */
.partners { text-align: left; }

.partners img {
  width: min(720px, 100%);
  margin-top: 1.4rem;
}

/* Contacto */
.contact { background: #fff; }

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

.contact__meta {
  margin-top: 1.6rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.8;
}

.contact__meta a { color: var(--green-deep); }

form { display: grid; gap: 0.45rem; }

label { font-size: 0.8rem; font-weight: 700; margin-top: 0.35rem; }

input, textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  border-radius: 0;
  padding: 0.65rem 0;
  font: inherit;
}

input:focus, textarea:focus {
  outline: none;
  border-bottom-color: var(--green);
}

textarea { min-height: 110px; resize: vertical; }

form .btn { margin-top: 1rem; justify-self: start; }

.form-msg { font-size: 0.9rem; color: var(--green-deep); min-height: 1.2em; }

/* Footer */
footer {
  background: var(--dark);
  color: #c5d4ca;
  padding: 2rem 0 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.foot img { height: 34px; }
.foot__brand { display: flex; align-items: center; gap: 0.7rem; }
.foot__brand strong { display: block; color: #fff; }
.foot__brand span { font-size: 0.75rem; color: #9db8a6; }
.legal { font-size: 0.82rem; color: #8ea397; }

@media (max-width: 900px) {
  .nav__links, .nav .btn { display: none; }
  .nav.open .nav__links {
    display: flex;
    flex-direction: column;
    position: absolute;
    inset: var(--nav-h) 1.2rem auto;
    background: var(--dark);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    padding: 0.7rem;
  }
  .nav.open .nav__links a { width: 100%; }
  .nav__toggle { display: grid; place-items: center; }

  .foci,
  .contact__grid,
  .service-list li {
    grid-template-columns: 1fr;
  }

  .hero__content { padding-top: 7rem; padding-bottom: 3.2rem; }
  .method { font-size: 1rem; }
  .method i { width: 1.2rem; margin: 0 0.4rem; }
}
