:root {
  --green: #5fa684;
  --green-dark: #294739;
  --ink: #262625;
  --muted: #3f3f3d;
  --line: #d7e8df;
  --paper: #ffffff;
  --shadow: 0 10px 30px rgba(41, 71, 57, 0.08);
  --nav-w: 248px;
  --side: 280px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Lato, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--green-dark); }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--green-dark);
  color: #fff;
  padding: 8px 12px;
  z-index: 50;
}

.skip:focus { top: 12px; }

.side-nav {
  position: absolute;
  z-index: 20;
  top: 22px;
  left: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: var(--nav-w);
}

.side-nav a {
  display: block;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 14px;
  text-align: center;
  padding: 12px 16px;
  border-radius: 30px;
}

.side-nav a:hover,
.side-nav a.is-active { background: var(--green-dark); }

.phone {
  position: absolute;
  z-index: 20;
  top: 26px;
  right: 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-dark);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 16px;
  border-radius: 30px;
}

.phone svg { flex: none; }

.nav-toggle {
  display: none;
  position: absolute;
  z-index: 30;
  top: 22px;
  left: 16px;
  border: 0;
  background: var(--green-dark);
  color: #fff;
  font: inherit;
  font-weight: 700;
  border-radius: 30px;
  padding: 10px 16px;
  cursor: pointer;
}

.hero {
  min-height: 620px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 55%, #fff),
    url("../img/hero-road.png") center center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  text-align: center;
}

.hero-center { max-width: 760px; }

.hero-center img {
  width: min(340px, 70vw);
  margin: 0 auto 28px;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.18));
}

.tagline {
  margin: 0;
  font-size: clamp(22px, 3vw, 34px);
  letter-spacing: 0.04em;
  font-weight: 900;
}

.page-head {
  padding: 28px 24px 8px;
  text-align: center;
}

.page-head img {
  width: min(280px, 64vw);
  margin: 8px auto 18px;
}

.page-title {
  margin: 10px auto 18px;
  max-width: 920px;
  font-size: clamp(22px, 3vw, 32px);
  letter-spacing: 0.03em;
  line-height: 1.25;
  font-weight: 900;
  text-transform: uppercase;
}

main { padding: 10px 0 40px; }

.wrap {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.split {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) 1.15fr;
  gap: 42px;
  align-items: center;
  margin: 28px auto 54px;
}

.frame {
  border: 3px solid #d5ebe1;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #f4f7f5;
}

.frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1 / 1; }

.frame.wide img { aspect-ratio: 16 / 10; }

.prose h2,
.band h2,
.cta h2 {
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.2;
  margin: 0 0 14px;
}

.prose p,
.legal p,
.cards p { margin: 0 0 14px; }

.prose strong { font-weight: 900; }

.band {
  background: var(--green) url("../img/hero.jpg") center / cover no-repeat;
  color: var(--ink);
  padding: 72px 0;
  position: relative;
}

.band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(95, 166, 132, 0.86);
}

.band .wrap { position: relative; }

.band p { color: var(--ink); }

.section-title {
  text-align: center;
  font-size: clamp(28px, 3vw, 40px);
  margin: 10px 0 28px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 48px;
}

.card {
  background: #f7fbf8;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 20px 8px;
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 10px 0 8px;
  font-size: 20px;
}

.icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: grid;
  place-items: center;
}

.cta {
  margin: 20px 0 10px;
  min-height: 320px;
  display: grid;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.78)),
    url("../img/equipo.jpg") center / cover no-repeat;
}

.cta .wrap { padding: 48px 0; max-width: 760px; }

.btn {
  display: inline-block;
  margin-top: 8px;
  background: var(--green-dark);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  border: 0;
  border-radius: 30px;
  padding: 12px 22px;
  cursor: pointer;
  font: inherit;
}

.btn:hover { background: #1d3328; }

.funding {
  text-align: center;
  padding: 36px 16px 10px;
}

.funding h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 14px;
}

.funding-logos {
  display: flex;
  justify-content: center;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}

.funding-logos img { width: 220px; height: auto; }

.site-footer {
  background: var(--green);
  color: var(--ink);
  padding: 48px 20px 28px;
  margin-top: 20px;
}

.footer-grid {
  width: min(1100px, 100%);
  margin: 0 auto 24px;
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr 1fr;
  gap: 22px;
}

.footer-phone {
  color: var(--ink);
  font-size: 28px;
  font-weight: 900;
  text-decoration: none;
}

.footer-cta {
  margin: 8px 0 0;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.site-footer h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.site-footer ul { list-style: none; margin: 0; padding: 0; }

.site-footer li { margin: 0 0 4px; }

.site-footer a { color: var(--ink); }

.footer-brand {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  margin: 10px 0 18px;
}

.footer-brand img:first-child { width: 180px; background: transparent; }
.footer-brand img:last-child { width: 120px; border-radius: 6px; }

.legal {
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  font-weight: 700;
}

.copy { text-align: center; font-weight: 700; margin: 16px 0 0; }

.legal-page {
  width: min(860px, calc(100% - 48px));
  margin: 10px auto 40px;
}

.legal-page h2 {
  font-size: 22px;
  margin: 28px 0 8px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
  align-items: start;
  margin-bottom: 30px;
}

form label:not(.check) { font-weight: 700; font-size: 14px; }

.cookies button[data-settings] {
  background: none;
  border: 0;
  color: #b7ebc9;
  padding: 0;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

form {
  display: grid;
  gap: 12px;
  background: #f7fbf8;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
}

input, select, textarea {
  width: 100%;
  font: inherit;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #c9ddd3;
  background: #fff;
  color: var(--ink);
}

textarea { min-height: 140px; resize: vertical; }

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 15px;
}

.check input { width: auto; margin-top: 4px; }

.form-ok {
  display: none;
  background: #e8f6ee;
  border: 1px solid var(--green);
  border-radius: 12px;
  padding: 12px 14px;
}

.cookies {
  position: fixed;
  z-index: 40;
  right: 18px;
  bottom: 18px;
  width: min(420px, calc(100% - 24px));
  background: #111;
  color: #fff;
  border-radius: 16px;
  padding: 16px 16px 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

.cookies p { margin: 0 0 8px; font-size: 14px; }

.cookies a { color: #d7f3e4; }

.cookies-actions { display: flex; justify-content: flex-end; gap: 8px; }

.cookies .btn { background: var(--green); color: #fff; }

.cookies-panel { margin-top: 8px; font-size: 14px; }

.cookies-panel[hidden] { display: none; }

.cookies.is-hidden { display: none; }

@media (max-width: 980px) {
  .nav-toggle { display: inline-block; }
  .side-nav {
    display: none;
    top: 70px;
    background: rgba(255, 255, 255, 0.96);
    padding: 12px;
    border-radius: 18px;
    box-shadow: var(--shadow);
  }
  .side-nav.is-open { display: flex; }
  .phone { font-size: 13px; padding: 8px 12px; }
  .hero { min-height: 460px; padding-top: 150px; }
  .split, .contact-layout, .cards, .footer-grid { grid-template-columns: 1fr; }
  .split,
  .contact-layout,
  .cards,
  .legal-page,
  .section-block {
    width: min(720px, calc(100% - 28px));
    margin-left: auto;
    margin-right: auto;
  }
  .page-head { padding-top: 78px; }
}

@media (min-width: 981px) {
  .split,
  .cards,
  .contact-layout,
  .legal-page,
  .section-block {
    width: min(1040px, calc(100% - 340px));
    margin-left: 290px;
  }
}
