:root {
  --ink: #112e36;
  --sea: #116677;
  --mint: #a6ead4;
  --line: #c9dad8;
  --paper: #f6f8f3;
  --accent: #68b8d0;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font:
    17px/1.6 "Segoe UI",
    Arial,
    sans-serif;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
img {
  display: block;
  max-width: 100%;
}
.wrap {
  width: min(1216px, 89%);
  margin-inline: auto;
}
.mast,
nav,
.heading,
footer .wrap,
.cta .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}
header {
  background: white;
  border-bottom: 1px solid var(--line);
}
.mast {
  min-height: 82px;
}
.mast img {
  width: 198px;
}
nav a {
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}
nav a[aria-current] {
  text-decoration: underline;
  text-underline-offset: 8px;
}
nav a:last-child,
.button {
  border-radius: 32px;
  border: 1px solid currentColor;
  padding: 10px 20px;
}
.button {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 650;
}
.button:hover {
  background: #d2ebe4;
  color: #113d42;
}
.button b {
  font-size: 20px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.05;
  letter-spacing: -0.044em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(44px, 5.7vw, 88px);
}
h2 {
  font-size: clamp(32px, 3.65vw, 58px);
}
h3 {
  font-size: clamp(23px, 2.1vw, 33px);
}
small {
  display: block;
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--sea);
  margin-bottom: 15px;
}
.hero {
  position: relative;
  background: #112e36;
  color: white;
}
.slide {
  position: relative;
  isolation: isolate;
  min-height: clamp(510px, 70vh, 730px);
  display: flex;
  align-items: center;
}
.slide > img,
.slide:before,
.slide:after {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  z-index: -3;
}
.slide > img {
  object-position: 50% 46%;
}
.slide:before {
  content: "";
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(8, 33, 41, 0.97), rgba(10, 42, 51, 0.83) 34%, rgba(10, 38, 46, 0.2) 80%),
    linear-gradient(0deg, #112e3655, transparent 40%);
}
.slide:after {
  content: "";
  z-index: -1;
  background: repeating-radial-gradient(
    circle at 90% 108%,
    transparent 0 32px,
    #caf8fd24 33px,
    transparent 34px 62px
  );
  mask-image: linear-gradient(105deg, transparent 50%, black);
}
.slidebody {
  padding-block: 70px 100px;
}
.slide h1,
.slide h2 {
  font-size: clamp(45px, 5.7vw, 88px);
  max-width: 850px;
}
.slide p {
  max-width: 570px;
  font-size: 20px;
  margin: 22px 0;
}
.slide small,
.bands small,
.cta small,
.intro small {
  color: var(--mint);
}
.slide .button,
.cta .button {
  background: var(--mint);
  color: var(--ink);
  border-color: transparent;
}
.controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  pointer-events: none;
}
.controls button {
  pointer-events: auto;
  width: 41px;
  height: 41px;
  border-radius: 50%;
  color: white;
  background: #133943d9;
  border: 1px solid #a7baba;
  font-size: 19px;
  cursor: pointer;
}
.block,
.split,
.columns,
.story {
  padding-block: clamp(46px, 6.3vw, 98px);
}
.split {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 8%;
  align-items: center;
}
.split > img {
  width: 100%;
  height: clamp(260px, 26vw, 390px);
  object-fit: cover;
  border-radius: 2px 58px 2px 2px;
}
.split p,
.intro p,
.story p,
.columns p {
  font-size: 19px;
  line-height: 1.65;
  margin: 19px 0 22px;
}
.bands,
.cta,
.intro {
  background-color: #123c46;
  color: white;
  background-image:
    radial-gradient(ellipse at 88% 14%, #22656866, transparent 58%),
    repeating-linear-gradient(122deg, transparent 0 19px, #9bbdb010 20px 21px, transparent 22px 42px);
  padding-block: clamp(45px, 5vw, 80px);
}
.trio,
.grid,
.columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.trio {
  margin-top: 38px;
}
.impact {
  border-top: 4px solid var(--accent);
  padding: 23px 8px 0 0;
  text-decoration: none;
}
.c1 {
  --accent: #e7bd4c;
}
.c2 {
  --accent: #60c49d;
}
.impact p {
  color: #e1ebeb;
  margin-top: 12px;
}
.heading {
  margin-bottom: 30px;
}
.grid {
  row-gap: 32px;
}
.card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: var(--paper);
  border-bottom: 3px solid var(--accent);
  min-width: 0;
}
.photo {
  overflow: hidden;
}
.photo img {
  width: 100%;
  aspect-ratio: 1.83;
  object-fit: cover;
  transition: transform 0.4s;
}
.card:hover .photo img {
  transform: scale(1.04);
}
.info {
  position: relative;
  padding: 23px 23px 44px;
  flex: 1;
}
.info small {
  margin-bottom: 8px;
}
.info p {
  font-size: 15px;
  margin-top: 12px;
}
.info i {
  position: absolute;
  bottom: 10px;
  right: 18px;
  font-size: 22px;
}
.columns article {
  border-top: 4px solid var(--accent);
  padding: 22px 0;
}
.columns article:nth-child(2) {
  border-color: #e7bd4c;
}
.columns article:nth-child(3) {
  border-color: #60c49d;
}
.intro p {
  max-width: 760px;
  margin-bottom: 0;
  color: #e3f0ef;
}
.identity img {
  width: min(800px, 100%);
  margin: 50px auto 0;
}
.casehead {
  padding-block: 44px 35px;
}
.casehead small {
  margin-top: 32px;
}
.casehead p {
  margin-top: 16px;
}
.caseimage img {
  width: 100%;
  height: clamp(210px, 30vw, 455px);
  object-fit: cover;
}
.story {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 9%;
}
.story aside {
  border-top: 3px solid #66afaf;
  padding-top: 20px;
}
.story aside p {
  font-size: 16px;
}
.story h2 {
  font-size: 32px;
}
.bands .button {
  margin-top: 22px;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.filters button {
  font: inherit;
  font-size: 15px;
  padding: 9px 17px;
  border: 1px solid #9bafb0;
  background: white;
  border-radius: 24px;
  cursor: pointer;
}
.filters [aria-pressed="true"] {
  background: var(--ink);
  color: white;
}
#count {
  margin: 14px 0 22px;
  color: #45626b;
}
.links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 25px;
}
.links a {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
footer {
  background: #0b2930;
  color: white;
  padding: 32px 0;
}
footer span {
  font-size: 14px;
}
.skip {
  position: absolute;
  z-index: 4;
  top: -100px;
  padding: 10px;
  background: white;
}
.skip:focus {
  top: 0;
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid #f1a322;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 880px) {
  .mast {
    flex-wrap: wrap;
    gap: 10px;
    padding-block: 15px;
  }
  .mast nav {
    flex-wrap: wrap;
    gap: 12px 20px;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .trio,
  .columns {
    gap: 16px;
  }
  .slide:before {
    background: linear-gradient(90deg, #0a262eef, #0f343f9e 72%, #0d313e74);
  }
}
@media (max-width: 640px) {
  .wrap {
    width: 90%;
  }
  .mast nav {
    gap: 6px 14px;
  }
  .mast img {
    width: 158px;
  }
  .mast nav a {
    font-size: 13px;
  }
  .mast nav a:last-child {
    padding: 1px 8px;
  }
  .slide {
    min-height: 515px;
  }
  .slidebody {
    padding: 45px 0 85px;
  }
  .slide p {
    font-size: 17px;
  }
  .slide small {
    letter-spacing: 0.06em;
  }
  .trio,
  .columns,
  .split,
  .story,
  .grid,
  .links {
    grid-template-columns: 1fr;
  }
  .split,
  .story {
    gap: 26px;
  }
  .split > img {
    height: 220px;
  }
  .heading,
  .cta .wrap,
  footer .wrap {
    align-items: flex-start;
    flex-direction: column;
  }
  .heading {
    gap: 14px;
  }
  .trio {
    gap: 25px;
  }
  .controls {
    justify-content: flex-start;
  }
  .info {
    padding: 20px 20px 40px;
  }
  .block,
  .columns,
  .split,
  .story {
    padding-block: 40px;
  }
  .columns {
    gap: 10px;
  }
  footer .wrap {
    gap: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

/* Superficies y jerarquía editorial de las páginas institucionales */
.brief,
.methodhome,
.team,
.network,
.ecostrip {
  padding-block: clamp(52px, 7vw, 100px);
}
.brief {
  background-color: #eff5ef;
  background-image: radial-gradient(#648c831e 0.9px, transparent 0.95px);
  background-size: 7px 7px;
  border-block: 1px solid #ccdad1;
}
.spread {
  display: grid;
  grid-template-columns: 0.89fr 1.11fr;
  gap: 9%;
  align-items: start;
}
.spread p,
.ecostrip p {
  margin: 17px 0 22px;
  font-size: 18px;
  max-width: 72ch;
}
.brief .spread > div:last-child p:first-child {
  margin-top: 0;
  font-size: clamp(21px, 2vw, 29px);
  line-height: 1.42;
  letter-spacing: -0.02em;
}
.methodhome {
  background: linear-gradient(120deg, #faf6ec, #f3f6ef);
  border-bottom: 1px solid var(--line);
}
.ladder {
  counter-reset: phase;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ladder li {
  counter-increment: phase;
  position: relative;
  padding: 12px 0 15px 57px;
  border-top: 1px solid #adc6bc;
}
.ladder li:before {
  content: counter(phase, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 15px;
  color: #23675c;
  font: 600 17px/1.5 monospace;
}
.ladder strong,
.ladder span {
  display: block;
}
.ladder strong {
  font-size: 21px;
}
.phases details {
  background: #fff;
  border: 1px solid #c4d7ce;
  margin-bottom: 10px;
  padding: 0 20px;
  border-radius: 3px;
}
.phases summary {
  font-size: 20px;
  font-weight: 650;
  padding: 15px 0;
  cursor: pointer;
}
.phases h3 {
  font-size: 22px;
  margin-top: 6px;
}
.phases p {
  font-size: 17px;
}
.team,
.ecostrip {
  color: #f4ffff;
  background-color: #143b47;
  background-image: repeating-radial-gradient(
    ellipse at 98% 150%,
    transparent 0 35px,
    #a2e1db14 36px 37px,
    transparent 38px 63px
  );
}
.team small,
.ecostrip small {
  color: var(--mint);
}
.netgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 32px;
}
.netgrid article {
  border-top: 3px solid #68b6a5;
  padding: 22px 0 9px;
}
.netgrid article p {
  margin: 13px 0 17px;
}
.network {
  background: #eef4f0;
}
.network article {
  background: #fff;
  padding: 22px;
  border-radius: 1px 18px 1px 1px;
}
.network article:nth-child(2) {
  border-color: #dfb245;
  background: #faf6e9;
}
.opening img {
  object-position: center 42%;
}
.opening .slidebody p {
  max-width: 640px;
}
.ecostrip + .cta {
  background: #e4f0e8;
  color: var(--ink);
}
.ecostrip + .cta small {
  color: var(--sea);
}
@media (max-width: 800px) {
  .spread {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .netgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .netgrid {
    grid-template-columns: 1fr;
  }
  .ladder li {
    padding-left: 43px;
  }
  .opening h1 {
    font-size: 46px;
  }
}

/* Controles lineales y geometría de análisis */
.controls button {
  border: 0;
  border-radius: 0;
  width: 62px;
  height: 44px;
  background: #123b45df;
  display: grid;
  place-items: center;
}
.controls button:hover {
  background: #1b5a63;
}
.arrowline {
  position: relative;
  width: 32px;
  height: 2px;
  background: currentColor;
}
.arrowline:after {
  content: "";
  position: absolute;
  right: 0;
  top: -5px;
  width: 12px;
  height: 12px;
  border: solid currentColor;
  border-width: 2px 2px 0 0;
  transform: rotate(45deg);
}
#prev .arrowline {
  transform: rotate(180deg);
}
.brief {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #f1f5ed;
}
.brief:before {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  width: clamp(360px, 53vw, 840px);
  aspect-ratio: 1;
  left: -14%;
  top: 18%;
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle, transparent 0 41px, #226f7526 42px 43px, transparent 44px 75px),
    conic-gradient(
      from 18deg,
      transparent 0 38deg,
      #6caf9e30 38deg 65deg,
      transparent 65deg 198deg,
      #d1b64526 198deg 223deg,
      transparent 223deg
    );
}
.brief .spread > div:last-child {
  background: #f1f5edf2;
  padding: 8px 15px;
}
.lab,
.utility,
.caselab {
  padding-block: clamp(55px, 7vw, 108px);
}
.lab {
  background: #0b333e;
  color: #f5fffb;
}
.lab small {
  color: #96ddc8;
}
.labcover {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(28px, 4vw, 64px);
  background: #123c47;
  border-left: 4px solid #92d6bd;
}
.labcover:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, #103944 12%, #103944ed 47%, #10394438),
    url(municipios.webp) center/cover;
}
.labcover > div {
  max-width: 700px;
}
.labcover p,
.preface {
  max-width: 830px;
  font-size: 19px;
  margin: 22px 0 0;
}
.domains {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 44px);
  margin-top: 38px;
}
.domains article {
  border-top: 3px solid #72baae;
  padding-top: 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.domains article:nth-child(2) {
  border-color: #d8b548;
}
.domains article:nth-child(3) {
  border-color: #7bb9cf;
}
.domains p {
  margin: 15px 0 20px;
}
.domains a {
  margin-top: auto;
  font-weight: 650;
}
.utility,
.caselab {
  background: #f0f3e9;
}
.test {
  padding: clamp(20px, 3vw, 42px);
  background: #fff;
  border-left: 3px solid #6ca79f;
}
.test h3 {
  font-size: 22px;
}
.test p:last-child {
  margin-bottom: 0;
}
.innerlab {
  background: linear-gradient(120deg, #103a44, #184b50);
}
@media (max-width: 760px) {
  .domains {
    grid-template-columns: 1fr;
  }
  .brief:before {
    opacity: 0.65;
  }
  .labcover:before {
    background:
      linear-gradient(90deg, #103944ee, #103944ce),
      url(municipios.webp) center/cover;
  }
  .brief .spread > div:last-child {
    padding: 0;
  }
}

.collab {
  padding-block: clamp(45px, 6vw, 88px);
  background: white;
}
.collabgrid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: center;
  gap: 7%;
  margin-top: 34px;
}
.hub {
  background: #eef5f4;
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hubcentre {
  display: grid;
  justify-items: center;
  font-size: 18px;
}
.hubcentre img {
  width: 58px;
}
.hub ul {
  list-style: none;
  border-left: 2px solid #639f9f;
  padding: 0 0 0 18px;
  margin-left: 20px;
}
.hub li {
  position: relative;
  padding: 6px 0;
}
.hub li:before {
  content: "";
  position: absolute;
  width: 13px;
  left: -19px;
  top: 50%;
  border-top: 2px solid #639f9f;
}
.hubcentre {
  position: relative;
}
.hubcentre:after {
  content: "";
  position: absolute;
  left: 100%;
  top: 50%;
  width: 20px;
  border-top: 2px solid #639f9f;
}
.modes,
.entitygrid,
.wins {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.modes h3,
.entitygrid h3 {
  font-size: 21px;
}
.modes article {
  border-top: 2px solid #88b8ac;
  padding-top: 12px;
}
.modes p,
.entitygrid p {
  margin-top: 8px;
  font-size: 16px;
}
.wins {
  grid-column: 1/-1;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 20px;
}
.wins a,
.entitygrid article {
  display: flex;
  align-items: center;
  gap: 16px;
  border-top: 1px solid #c7d8d6;
  padding: 18px 5px;
  text-decoration: none;
}
.wins img,
.entitygrid img {
  width: 66px;
  height: 55px;
  object-fit: contain;
}
.wins b {
  display: block;
}
.wins span {
  font-size: 15px;
}
.institutions {
  padding-top: 48px;
}
.entitygrid {
  margin-top: 25px;
  grid-template-columns: repeat(auto-fit, minmax(min(255px, 100%), 1fr));
}
.designroot {
  border: 1px solid #a3d8ca;
  width: fit-content;
  margin: 35px auto 40px;
  padding: 12px 22px;
  font-weight: 700;
  position: relative;
}
.designroot:after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  height: 40px;
  border-left: 2px solid #a3d8ca;
}
.designmap {
  gap: 0;
  background: #17434d;
}
.designmap article {
  padding: 24px;
}
.initiative .innerlab + .bands,
.initiative .bands + .cta,
.foundation .utility + .network {
  border-top: clamp(28px, 4vw, 65px) solid white;
}
.initiative .bands {
  background-color: #edf5f2;
  background-image: linear-gradient(110deg, #f4f8ef, #dcece8);
  color: var(--ink);
}
.initiative .bands small,
.initiative .impact p {
  color: #21545a;
}
@media (max-width: 760px) {
  .collabgrid,
  .wins,
  .modes {
    grid-template-columns: 1fr;
  }
  .collabgrid {
    gap: 26px;
  }
  .hub {
    padding: 18px 10px;
  }
  .designmap {
    gap: 0;
  }
  .wins {
    gap: 5px;
  }
}
/* Privacidad y navegación con teclado */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.cookie-links {
  justify-content: flex-start !important;
  margin-top: 20px;
}
.text-action {
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.cookie-note {
  position: fixed;
  z-index: 10;
  right: 18px;
  bottom: 18px;
  max-width: min(460px, calc(100% - 36px));
  display: flex;
  align-items: flex-end;
  gap: 16px;
  background: white;
  color: #173b45;
  border: 1px solid #a6c4bf;
  border-left: 5px solid #18736e;
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 7px 38px #102f3930;
}
.cookie-note h2,
.policy h2 {
  font-size: 24px;
}
.cookie-note p {
  font-size: 15px;
  margin: 7px 0;
}
.cookie-note a {
  font-size: 14px;
}
.accept {
  cursor: pointer;
  background: #125a61;
  color: white;
  border: 0;
  border-radius: 5px;
  padding: 12px 18px;
  font-weight: 600;
  font-family: inherit;
  font-size: 16px;
}
.policy {
  max-width: 850px;
}
.policy h2 {
  margin: 30px 0 12px;
}
.policy h1 {
  margin-bottom: 25px;
}
body.notice-open {
  padding-bottom: var(--notice-space, 150px);
}
html:has(.notice-open) {
  scroll-padding-bottom: var(--notice-space, 150px);
}
.cookie-links a:hover {
  color: white;
}
