:root {
  --ink: #484538;
  --ink-soft: #76746a;
  --taupe: #a3a29b;
  --line: #d1d0cd;
  --teal: #1f97a1;
  --teal-mid: #57b1b9;
  --teal-soft: #8fcbd0;
  --aqua: #c7e5e7;
  --sage: #84bca6;
  --sage-mid: #a3cdbc;
  --sage-soft: #c1ddd2;
  --mint: #e0eee9;
  --mist: #bfdaf3;
  --sky: #cfe3f6;
  --sky-soft: #dfecf9;
  --ice: #eff6fc;
  --white: #ffffff;
  --font: "DM Sans", "Segoe UI", sans-serif;
  --measure: 68ch;
  --header: 4.75rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

p,
blockquote,
dl,
ol,
ul,
h1,
h2,
h3 {
  margin: 0;
}

h1,
h2,
h3 {
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.container {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 20;
  padding: 0.5rem 0.75rem;
  background: var(--ink);
  color: var(--white);
}

.skip:focus {
  top: 0.75rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.site-header::before {
  content: "";
  display: block;
  height: 6px;
  background: linear-gradient(
    90deg,
    var(--ink) 0 25%,
    var(--teal) 25% 50%,
    var(--sage) 50% 75%,
    var(--mist) 75% 100%
  );
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header);
  gap: 1.5rem;
}

.brand img {
  width: 10.5rem;
  height: auto;
}

.cover,
.hero,
.section,
.valores {
  scroll-margin-top: 5.25rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.site-nav a {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}

.site-nav a:hover,
.text-link:hover {
  color: var(--teal);
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--white);
  cursor: pointer;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 1rem;
  height: 1px;
  margin-inline: auto;
  background: var(--ink);
}

.nav-toggle__bars {
  position: relative;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle__bars::before {
  top: -5px;
}

.nav-toggle__bars::after {
  top: 5px;
}

.cover {
  position: relative;
  height: min(46vw, calc(100svh - var(--header) - 6px));
  background: var(--teal);
  overflow: hidden;
}

.cover canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right bottom;
}

.hero {
  padding: 3.25rem 0 2.75rem;
  background: linear-gradient(180deg, var(--ice) 0%, var(--white) 46%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 22rem);
  gap: 3rem;
  align-items: center;
}

.hero-copy h1 {
  max-width: 16ch;
  font-size: clamp(2.1rem, 4vw, 3.15rem);
}

.lead {
  max-width: var(--measure);
  margin-top: 1.25rem;
  font-size: 1.125rem;
}

.text-link {
  display: inline-block;
  margin-top: 1.35rem;
  color: var(--teal);
  font-weight: 600;
  text-underline-offset: 0.22em;
}

.plate--hero {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  justify-self: end;
  background: var(--mist);
  border-top: 12px solid var(--teal);
  border-bottom: 12px solid var(--sage);
}

.plate--hero img {
  width: min(46%, 11rem);
}

.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.facts p {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 6.75rem;
  margin: 0;
  padding: 1.6rem 2rem;
  color: var(--ink);
  font-size: 1.05rem;
}

.facts p:first-child {
  padding-left: max(1.25rem, calc((100vw - 1120px) / 2 + 1.25rem));
}

.facts p:last-child {
  padding-right: max(1.25rem, calc((100vw - 1120px) / 2 + 1.25rem));
}

.facts p:nth-child(1) {
  background: var(--mint);
}

.facts p:nth-child(2) {
  background: var(--aqua);
}

.facts span {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section {
  padding: 5rem 0;
}

.section--paper {
  background: var(--mint);
}

#junta {
  background: var(--ice);
}

.section--mist {
  background: var(--sky-soft);
}

.split {
  display: grid;
  grid-template-columns: 11.5rem minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}

.split__body {
  max-width: 46rem;
}

.split__body p + p {
  margin-top: 1rem;
}

.section-intro {
  max-width: 36rem;
  margin-bottom: 2.5rem;
}

.section-intro h2,
.split__label h2 {
  font-size: clamp(1.8rem, 3vw, 2.35rem);
}

.split__label h2::after,
.section-intro h2::after {
  content: "";
  display: block;
  width: 2.75rem;
  height: 3px;
  margin-top: 0.85rem;
  background: var(--sage);
}

.object {
  padding: 1.35rem 1.4rem 1.35rem 1.35rem;
  background: var(--white);
  border-left: 4px solid var(--teal);
}

.object p {
  font-size: 1.2rem;
  line-height: 1.55;
}

.subhead {
  margin: 2.5rem 0 0.5rem;
  color: var(--teal);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.objectives {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: item;
}

.objectives li {
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  gap: 0.75rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--sage-soft);
  counter-increment: item;
}

.objectives li::before {
  content: counter(item, decimal-leading-zero);
  color: var(--teal-mid);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.7;
}

.objectives li:nth-child(3n)::before {
  color: var(--sage);
}

.objectives li:nth-child(3n + 2)::before {
  color: var(--teal);
}

.valores {
  background: var(--teal);
  color: var(--white);
}

.valores__lead {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
  padding: 5.5rem 0 3.5rem;
}

.valores__kicker {
  margin-bottom: 1rem;
  color: var(--mint);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.valores__lead h2 {
  max-width: 14ch;
  color: var(--white);
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.valores__lead p:last-child {
  max-width: 36rem;
  margin-top: 1.5rem;
  color: var(--mint);
  font-size: 1.25rem;
  line-height: 1.45;
}

.valores__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}

.valores__item {
  min-height: 22rem;
  padding: 2.5rem 2rem 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.valores__item h3 {
  font-size: clamp(2.1rem, 3.5vw, 3.3rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.valores__item p {
  max-width: 22rem;
  margin-top: 1rem;
  font-size: 1.05rem;
  line-height: 1.45;
}

.valores__item--sage {
  background: var(--sage);
  color: var(--ink);
}

.valores__item--icy {
  background: var(--mist);
  color: var(--ink);
}

.valores__item--ink {
  background: var(--ink);
  color: var(--white);
}

.valores__marca {
  padding: 3.2rem 0;
  background: var(--ink);
}

.valores__marca p {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
  color: var(--white);
  font-size: clamp(1.5rem, 3vw, 2.35rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.valores__marca strong {
  color: var(--mint);
  font-weight: 700;
}

.board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.member h3 {
  margin-top: 0.85rem;
  font-size: 1.125rem;
}

.portrait {
  display: grid;
  place-items: end start;
  aspect-ratio: 4 / 5;
  padding: 1.1rem;
}

.portrait span {
  font-size: 1.65rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.board li:nth-child(1) .portrait {
  background: var(--teal);
  color: var(--white);
}

.board li:nth-child(2) .portrait {
  background: var(--teal-mid);
  color: var(--ink);
}

.board li:nth-child(3) .portrait {
  background: var(--sage);
  color: var(--ink);
}

.board li:nth-child(4) .portrait {
  background: var(--teal-soft);
  color: var(--ink);
}

.board li:nth-child(5) .portrait {
  background: var(--mist);
  color: var(--ink);
}

.board li:nth-child(6) .portrait {
  background: var(--sage-mid);
  color: var(--ink);
}

#contacto.section {
  padding: 2.5rem 0;
}

.contact-line {
  display: grid;
  grid-template-columns: 11.5rem minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.contact-line h2 {
  font-size: clamp(1.8rem, 3vw, 2.35rem);
}

.contact-line h2::after {
  content: "";
  display: block;
  width: 2.75rem;
  height: 3px;
  margin-top: 0.85rem;
  background: var(--sage);
}

.contact-line p {
  margin: 0;
  max-width: 36rem;
  font-weight: 500;
  line-height: 1.4;
}

.contact-line span {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer {
  background: var(--ink);
  color: var(--sage-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3rem;
  align-items: center;
  padding: 2.5rem 0;
}

.footer-brand {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.35rem;
  align-items: center;
}

.footer-mark {
  display: grid;
  place-items: center;
  width: 4.75rem;
  height: 4.75rem;
  background: var(--mint);
}

.footer-mark img {
  width: 2.85rem;
  margin: 0;
}

.footer-name {
  max-width: 28ch;
  margin: 0;
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.35;
}

.footer-brand p:not(.footer-name) {
  max-width: 42ch;
  margin: 0.4rem 0 0;
  color: var(--sage-soft);
  font-size: 0.95rem;
  line-height: 1.45;
}

.site-footer nav {
  display: grid;
  gap: 0.7rem;
  align-content: center;
  justify-items: start;
}

.site-footer nav a {
  color: var(--mist);
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  text-decoration: none;
}

.site-footer nav a:hover {
  color: var(--white);
}

.footer-base {
  padding: 1.25rem 0 1.6rem;
  border-top: 1px solid rgb(255 255 255 / 14%);
  color: var(--taupe);
  font-size: 0.85rem;
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.25rem 1rem;
    background: var(--white);
    border-bottom: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.8rem 0;
    border-top: 1px solid var(--line);
  }

  .hero-grid,
  .split,
  .facts,
  .board,
  .footer-grid,
  .contact-line,
  .valores__grid {
    grid-template-columns: 1fr;
  }

  .plate--hero {
    justify-self: stretch;
    max-width: 28rem;
    aspect-ratio: 16 / 9;
  }

  .facts p,
  .facts p:first-child,
  .facts p:last-child {
    padding-inline: 1.25rem;
  }

  .contact-line {
    gap: 1rem;
  }

  .cover {
    height: min(72vw, calc(100svh - var(--header) - 6px));
  }

  .footer-grid {
    align-items: start;
    padding: 2.75rem 0 2.25rem;
  }

  .hero {
    padding-top: 2.75rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .board {
    grid-template-columns: repeat(2, 1fr);
  }

  .valores__item {
    min-height: 14rem;
  }
}

@media (max-width: 640px) {
  .board {
    grid-template-columns: 1fr;
  }

  .portrait {
    aspect-ratio: 16 / 9;
  }

  .hero-copy h1 {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
