.projects-page { --project-cyan: #00b8da; --project-ink: #061637; color: var(--project-ink); }
.projects-page h1,.projects-page h2,.projects-page h3,.projects-page h4,.projects-page p { margin-top: 0; }
.projects-page button { font: inherit; cursor: pointer; }
.projects-page button:disabled { cursor: not-allowed; }
.projects-page a:focus-visible,.projects-page button:focus-visible{ outline: 3px solid #39ccef; outline-offset: 5px; }
.dark-topography { color: #fff; background: #00172e url("../images/decor/sie-topographic-pattern.svg") center / cover no-repeat; }
.eyebrow { margin-bottom: 1rem; color: var(--project-cyan); font-size: clamp(.8rem,1.35vw,1.35rem); font-weight: 500; }
.project-button { display: inline-flex; align-items: center; justify-content: center; gap: 1.2rem; min-height: 48px; padding: .8rem 1.7rem; border: 1px solid #00c7ed; border-radius: 6px; color: inherit; background: transparent; font-size: clamp(.9rem,1.3vw,1.3rem); line-height: 1.35; text-decoration: none; }
.project-button--solid { background: #009fd0; border-color: #08c2ee; color: #fff; }
.project-button:hover:not(:disabled) { background: #009fc226; }
.project-button--solid:hover { background: #008fbd !important; }
.projects-hero__inner { position: relative; width: min(100%,1716px); min-height: min(47vw,805px); margin: auto; padding: 6% 4% 12%; }
.projects-hero__copy { position: relative; z-index: 2; pointer-events: none; }
.projects-hero__copy a { pointer-events: auto; }
.projects-hero .eyebrow { letter-spacing: .05em; }
.projects-hero h1 { margin-bottom: 1.8rem; font-size: clamp(2.5rem,4.05vw,4.35rem); line-height: 1.08; letter-spacing: -.045em; }
.projects-hero__description { margin-bottom: 1.8rem; font-size: clamp(1rem,1.3vw,1.35rem); line-height: 1.6; }
.projects-values { display: flex; gap: .6rem; padding: 0; margin: 2rem 0 0; list-style: none; }
.projects-values li { display: flex; align-items: center; gap: .5rem; padding: .55rem .75rem; border: 1px solid #00c7ed; border-radius: 6px; font-size: clamp(.75rem,.95vw,1rem); }
.projects-values li > span { color: #00c7ed; font-size: 1.8rem; line-height: 1; }
.projects-values svg { width: 26px; height: 30px; fill: none; stroke: #00c7ed; stroke-width: 1.4; }
.projects-hero__frames { position: absolute; inset: 0 1.5% 0 35%; }
.hero-frame { position: absolute; border: 1px solid #00bde7; border-radius: 14px; background: #06243a; box-shadow: 0 16px 36px #0005; overflow: hidden; }
.hero-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-frame--territory img { object-position: 55% 65%; }
.hero-frame--field img { object-position: 48% 40%; }
.hero-frame--results img { object-position: 38% 50%; }
.hero-frame .hero-frame__label { position: absolute; top: .75rem; left: .75rem; display: inline-flex; align-items: center; gap: .6rem; max-width: calc(100% - 1.5rem); padding: .4rem .7rem .4rem .4rem; border: 1px solid #58d8ef80; border-radius: 9px; background: #00172ef0; color: #fff; box-shadow: 0 4px 12px #0003; font-size: clamp(.65rem,.8vw,.85rem); font-weight: 600; line-height: 1.25; letter-spacing: .035em; text-transform: uppercase; }
.hero-frame__label b { display: grid; place-items: center; flex: 0 0 1.7rem; height: 1.7rem; border-radius: 5px; color: #00172e; background: #35d0e8; font-size: .7rem; font-variant-numeric: tabular-nums; }
.hero-frame--territory { left: 0; top: 43%; width: 39%; height: 44%; transform: skewY(-5deg); }
.hero-frame--field { left: 32%; top: 23%; width: 33%; height: 46%; transform: skewY(-5deg); z-index: 1; }
.hero-frame--results { left: 65%; top: 7%; width: 33%; height: 44%; transform: skewY(-5deg); }
.hero-frame .hero-frame__label { transform: skewY(5deg); }
.hero-route { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: #00c6ed; stroke-width: 1.6; pointer-events: none; z-index: -1; }
.hero-route circle { fill: #00172e; stroke-width: 3; }


.mobile-arrow { display: none; }
.relationships { padding: 2.25rem 3.6% 2.7rem; }
.relationships__heading { text-align: center; max-width: 1600px; margin: 0 auto 1.5rem; }
.relationships__heading .eyebrow { margin-bottom: .35rem; }
.relationships h2 { font-size: clamp(1.8rem,2.65vw,2.9rem); line-height: 1.18; letter-spacing: -.03em; margin-bottom: .65rem; }
.relationships__heading > p:last-child { font-size: clamp(1rem,1.5vw,1.6rem); margin-bottom: 0; }
.relationships__layout { display: grid; grid-template-columns: 16% minmax(0,1fr); gap: 2%; position: relative; max-width: 1600px; margin: auto; }
.clients__heading { font-size: 1.2rem; }
.clients__list { display: grid; gap: 1.1rem; }
.client {
  display: flex;
  align-items: center;
  gap: .85rem;
  border: 0;
  color: white;
  background: transparent;
  padding: 0;
  text-align: left;
  font-size: clamp(.85rem,1.2vw,1.2rem) !important;
  text-decoration: none;
}
.client__logo { display: grid; place-items: center; background: #fff; transition: transform 180ms ease; position: relative; flex: 0 0 auto; width: clamp(50px,4.8vw,82px); aspect-ratio: 1; border: 1.5px solid white; border-radius: 50%; }
.relationships .client__logo img { display: block; width: 92%; height: 92%; object-fit: contain; }
.relationships .client[data-client="0"] .client__logo img { width: 78%; height: 78%; }
.relationships .client > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.client:not(:last-child) .client__logo::after { content: ""; position: absolute; left: 50%; top: 100%; height: 1.2rem; width: 1px; background: #00bde7; }
.client.is-active .client__logo,
.client--projects:is(:hover, :focus-visible, :active) .client__logo {
  width: clamp(50px,4.8vw,82px);
  transform: scale(1.08);
  background: #fff;
  outline: 4px solid #00bde7;
  outline-offset: 4px;
  box-shadow: 0 0 25px #00bde799;
  margin: .6rem 0;
}
.client--projects .client__logo,
.client--projects:is(:hover, :focus-visible, :active) .client__logo {
  background: transparent;
  border-color: transparent;
}

.client--projects .client__logo img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.trajectory { background: #fdfdfe; border: 1px solid #e1e5eb; border-radius: 24px; color: #071830; padding: 1.35rem 2.5rem .9rem; }
.trajectory__heading { position: relative; }
@media (min-width: 701px) {
  .trajectory__heading {
    padding-right: 10rem;
  }

  .trajectory__client-logo {
    position: absolute;
    top: .35rem;
    right: 0;
    width: clamp(100px, 10vw, 155px);
    height: 72px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
  }

  .trajectory__client-logo img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: right top;
  }
}
.trajectory h3 {
  font-size: clamp(1.6rem, 2.2vw, 2.4rem);
  line-height: 1.05;
  letter-spacing: -.035em;
  margin-bottom: .45rem;
}


.trajectory__disciplines { font-size: clamp(.9rem,1.3vw,1.3rem); color: #505662; }
.milestones { list-style: none; padding: 0 0 2.2rem; margin: 1.6rem 0 .8rem; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 3.5%; border-bottom: 2px solid #00a2c9; }
.milestone { position: relative; display: flex; flex-direction: column; }
.milestone::after {
  content: "";
  position: absolute;
  bottom: -3rem;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 22px;
  background: #00a6d1;
  border: 3px solid #fff;
  outline: 1px solid #00a6d1;
  border-radius: 50%;
}
.milestone__year { font-size: .8rem; color: #505662; margin-bottom: .4rem; }
.milestone h4 {
  font-size: clamp(.85rem,1.15vw,1.2rem);
  line-height: 1.2;
  margin-bottom: .8rem;
  min-height: 3.6em;
}
.milestone__photo { width: 100%; aspect-ratio: 1.17; border-radius: 12px; background: #eff2f5; }
.relationships .milestone__photo { position: relative; overflow: hidden; }
.relationships .milestone__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.relationships .milestone:first-child .milestone__photo img {
  object-position: center bottom;
}
.relationships .milestones[hidden] { display: none; }
.relationships .trajectory h3 { overflow-wrap: anywhere; }

.milestone__scope {
  display: none;
}
#trayectorias .milestone__detail {
  align-self: flex-start; display: inline-flex; align-items: center; justify-content: center;
  gap: .55rem; width: fit-content; max-width: 100%; min-height: 30px;
  margin-top: .55rem; padding: .3rem .75rem; border: 1px solid #005083;
  border-radius: 3rem; background: linear-gradient(110deg, #006399, #003663);
  color: #fff; font-size: .75rem; font-weight: 600; line-height: 1.3;
}
#trayectorias .milestone__detail span { color: #74ddff; }
#trayectorias .milestone__detail:hover { background: #002f55; border-color: #008cb3; }
@media (min-width: 701px) {
  #trayectorias .milestone__detail { width: 100%; box-sizing: border-box; }
}
html.milestone-detail-open { overflow: hidden; }
#trayectorias .milestone-dialog {
  box-sizing: border-box; width: min(760px, calc(100% - 32px)); max-width: calc(100% - 32px);
  max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
  margin: auto; padding: 0; overflow: auto; overscroll-behavior: contain;
  border: 1px solid #52768e; border-radius: 16px; background: #fff; color: #061637;
  box-shadow: 0 24px 80px #001a3666; overflow-wrap: anywhere;
}
#trayectorias .milestone-dialog::backdrop { background: rgb(0 23 46 / 78%); }
#trayectorias .milestone-dialog__bar {
  position: sticky; top: 0; z-index: 1; display: flex; justify-content: flex-end;
  padding: .5rem .75rem; background: #001a36; border-bottom: 2px solid #00b8da;
}
#trayectorias .milestone-dialog__close {
  display: grid; place-items: center; width: 36px; height: 36px; padding: 0;
  border: 1px solid #52768e; border-radius: 50%; background: #002443; color: #fff;
  font-size: 1.5rem; line-height: 1;
}
#trayectorias .milestone-dialog__close:hover { background: #0a405f; border-color: #74ddff; }
#trayectorias .milestone-dialog__content { padding: clamp(1rem, 4vw, 2rem); }
#trayectorias .milestone-dialog__meta { color: #006399; font-size: .8rem; font-weight: 600; }
#trayectorias .milestone-dialog__title { margin: 0 0 1.2rem; font-size: clamp(1.3rem, 4vw, 1.85rem); line-height: 1.2; }

#trayectorias .milestone-dialog__content h4 { margin: 1.25rem 0 .4rem; font-size: 1rem; color: #006399; }
#trayectorias .milestone-dialog__content p, #trayectorias .milestone-dialog__content li { line-height: 1.65; white-space: pre-line; }
#trayectorias .milestone-dialog__content p { margin-bottom: .8rem; }
#trayectorias .milestone-dialog__content ul { padding-left: 1.25rem; }
@media (max-width: 700px) {
  #trayectorias .milestone__detail { grid-column: 2; justify-self: start; margin-top: .15rem; padding: .3rem .6rem; font-size: .7rem; }
  #trayectorias .milestone-dialog { width: calc(100% - 16px); max-width: calc(100% - 16px); max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); border-radius: 12px; }
  #trayectorias .milestone-dialog__content { font-size: .9rem; }
}





.project-catalog { padding: 2rem 2.5% 2.3rem; background: #fff; }
.catalog-showcase .project-catalog__heading {
  padding: 0;
  margin-bottom: .9rem;
}
.project-catalog__heading { padding-inline: 1%; }
.project-catalog .eyebrow { margin-bottom: .5rem; }
.project-catalog h2 { font-size: clamp(2rem,3.4vw,3.6rem); letter-spacing: -.04em; line-height: 1.12; margin-bottom: .9rem; }
.project-catalog__heading > p:last-child { color: #61708e; font-size: clamp(1rem,1.4vw,1.5rem); }


























@media(min-width:1800px) { .relationships,.project-catalog{ padding-inline: max(4%,calc((100% - 1600px)/2)); } }
@media(max-width:1000px) and (min-width:701px) { .projects-values { gap: .3rem; }.projects-values li { padding: .4rem; }.trajectory { padding: 1.5rem; } }
@media(max-width:700px) {
  .dark-topography { background-image: url("../images/decor/sie-topographic-pattern-mobile.svg"); }
  .projects-hero__inner { padding: 2rem 5% 1.3rem; min-height: 0; }
  .eyebrow { font-size: .83rem; }
  .projects-hero h1 { font-size: clamp(1.85rem,6.65vw,3rem); line-height: 1.08; letter-spacing: -.035em; margin-bottom: 1rem; }
  .projects-hero__description { font-size: clamp(.95rem,2.6vw,1.2rem); line-height: 1.35; margin-bottom: .9rem; }
  .desktop-break { display: none; }
  .projects-hero__copy > .project-button { width: 64%; min-width: 245px; padding: .65rem .8rem; justify-content: space-between; font-size: 1.1rem; border-radius: 9px; }
  .mobile-arrow { display: inline; font-size: 1.8rem; line-height: .8; }
  .projects-values { gap: 2.7%; margin: .85rem 0 1.2rem; }
  .projects-values li { font-size: clamp(.6rem,2.35vw,1rem); padding: .4rem .45rem; gap: .3rem; border-radius: 8px; white-space: nowrap; }
  .projects-values li > span { font-size: 1.25rem; }
  .projects-values svg { width: 20px; height: 24px; }
  .projects-hero__frames { position: relative; inset: auto; height: auto; display: grid; gap: .65rem; }
  .hero-frame { position: relative; inset: auto; transform: none; width: 69%; height: auto; aspect-ratio: 2.03; border-radius: 13px; }
  .hero-frame .hero-frame__label { transform: none; top: .5rem; left: .65rem; font-size: .7rem; color: #00c5ef; padding: .45rem .6rem; }
  .hero-frame--field { margin-left: 26%; }
  .hero-frame--results { margin-left: 9%; width: 75%; }
  .hero-frame:not(:last-of-type)::after { content: ""; position: absolute; top: 50%; left: 100%; width: 20px; height: 80%; border: 1px solid #00c5ef; border-left: 0; border-radius: 0 12px 12px 0; z-index: -1; }
  .hero-frame--field::after { left: auto !important; right: 100%; border: 1px solid #00c5ef !important; border-right: 0 !important; border-radius: 12px 0 0 12px !important; }
  .hero-route { display: none; }
  
  
  .relationships { padding: 1.4rem 5.7% 1.2rem; }
  .relationships__heading { margin-bottom: 1.5rem; }
  .relationships__heading .eyebrow { margin-bottom: .75rem; }
  .relationships h2 { font-size: clamp(1.45rem,5.7vw,2.5rem); line-height: 1.25; margin-bottom: .8rem; }
  .relationships__heading > p:last-child {
  font-size: clamp(.85rem, 1.05vw, 1.1rem);
  line-height: 1.35;
  margin-bottom: 0;
}
  .relationships__layout { display: flex; flex-direction: column; gap: 1.25rem; }
  .clients { margin-inline: -.4rem; }
  .clients__heading{ display: none; }
  .clients__list { display: flex; gap: 1%; justify-content: space-between; }
  .client { flex: 1 1 0; min-width: 0; flex-direction: column; gap: .7rem; text-align: center; font-size: clamp(.6rem,2.4vw,1rem) !important; line-height: 1.2; position: relative; padding-bottom: .6rem; }
  .client__logo,.client.is-active .client__logo { width: 80%; margin: 0; }
  .client.is-active .client__logo { outline-width: 2px; outline-offset: 3px; }
  .client__logo::after { display: none; }
  .client.is-active::after { content: ""; position: absolute; bottom: 0; width: 42%; height: 3px; background: #00bde7; border-radius: 3px; }
  .trajectory { padding: 1.3rem 5.2% 1rem; border-radius: 17px; }
  .trajectory h3 { font-size: clamp(1.9rem,6.3vw,2.7rem); max-width: 100%; padding-right: 38%; line-height: 1.1; }
  #trayectorias .trajectory__heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 36%);
    align-items: center;
    gap: 1rem .85rem;
  }
  #trayectorias .trajectory h3 {
    min-width: 0;
    margin: 0;
    padding-right: 0;
    font-size: clamp(1.1rem, 4.3vw, 1.65rem);
    font-weight: 650;
    line-height: 1.22;
    letter-spacing: -.025em;
    text-wrap: balance;
  }
  #trayectorias .trajectory__client-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: 0;
    width: 100%;
    height: clamp(64px, 18vw, 88px);
    margin: 0;
    padding: .4rem;
    background: #fff;
    border: 1px solid #e5edf2;
    border-radius: 10px;
  }
  #trayectorias .trajectory__client-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
  }
  #trayectorias .trajectory__disciplines {
    grid-column: 1 / -1;
    margin: 0;
    padding-top: .8rem;
    border-top: 1px solid #dce9f0;
    color: #506578;
    font-size: clamp(.72rem, 2.5vw, .9rem);
    line-height: 1.65;
  }
  
  
  .trajectory__disciplines { font-size: clamp(.7rem,2.35vw,1rem); line-height: 1.6; color: #061637; }
  .milestones { display: grid; grid-template-columns: 1fr; gap: .65rem; margin: 1.2rem 0 1rem .25rem; padding: 0 0 0 1rem; border-bottom: 0; position: relative; }
  .milestones::before { content: ""; position: absolute; top: 10%; bottom: 10%; left: 0; width: 1px; background: #00a8dd; }
  .milestone { display: grid; grid-template-columns: 47% minmax(0,1fr); grid-template-rows: auto auto auto auto; column-gap: 5%; align-content: center; padding-block: .3rem; }
  .milestone::after { width: 11px; height: 11px; left: -22px; top: calc(50% - 5px); bottom: auto; background: #001a36; border-width: 2px; }
  .milestone__photo { grid-column: 1; grid-row: 1 / 5; aspect-ratio: 1.5; align-self: center; border: 1px solid #1eb7e4; border-radius: 11px; }
  .milestone__year { grid-column: 2; color: #00a5db; font-size: clamp(.64rem,2.4vw,1rem); font-weight: 600; margin-bottom: .35rem; }
  .milestone h4 {
  grid-column: 2;
  font-size: clamp(.8rem,3.1vw,1.4rem);
  line-height: 1.2;
  min-height: 0;
  margin-bottom: .4rem;
}
  
  .milestone__scope { grid-column: 2; font-size: clamp(.65rem,2.3vw,1rem); }
  
  
  
  
  
  .project-catalog { padding: 2.2rem 0 1.5rem; overflow: hidden; }
  .project-catalog__heading { padding: 0 6%; }
  .project-catalog .eyebrow { color: #008aff; font-size: .85rem; }
  .project-catalog h2 { font-size: clamp(1.9rem,6.7vw,3rem); line-height: 1.1; margin: .8rem 0 1rem; }
  .project-catalog__heading > p:last-child { color: #061637; font-size: 1rem; line-height: 1.45; }
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
}
/* Homogeneizar tipografía del footer con el HOME */
.projects-page .home-footer__nav .home-footer__pending {
  font-family: inherit;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.2;
}
@media(prefers-reduced-motion:no-preference) { html { scroll-behavior: smooth; } }
/* Keep typography consistent when system font fallbacks vary. */
.projects-page { font-family: var(--font-sans); }
.projects-page [hidden] { display: none !important; }




@media(max-width:700px) { .projects-hero__frames { isolation: isolate; } }

/* Compact assistant after the projects introduction; mobile appearance is preserved. */
@media (min-width: 75rem) {
  .projects-page.projects-agent-compact .ai-agent__trigger {
    display: grid;
    gap: 0;
    width: 4rem;
    min-width: 4rem;
    height: 4rem;
    min-height: 4rem;
    padding: 0;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--color-cyan-500), #007ca7);
  }
  .projects-page.projects-agent-compact .ai-agent__text { display: none; }
  .projects-page.projects-agent-compact .ai-agent__icon {
    width: 2.8rem;
    height: 2.8rem;
    padding: 0;
    background: transparent;
  }
}
/* Keep the image sequence clear of the introduction on every screen. */
@media (min-width: 1101px) {
  .projects-hero__inner {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  align-items: center;
  gap: clamp(2rem,4vw,4.5rem);
  min-height: 0;
  padding: clamp(1.5rem,2vw,2rem) 4.5% clamp(1rem,1.8vw,1.5rem);
}
  .projects-hero__copy { min-width: 0; }
  .projects-hero .eyebrow { margin-bottom: 1.25rem; font-size: clamp(.85rem,1.1vw,1.1rem); letter-spacing: .1em; }
  .projects-hero h1 { margin-bottom: 1.5rem; font-size: clamp(2.35rem,3.15vw,3.4rem); line-height: 1.12; letter-spacing: -.04em; }
  .projects-hero__description { max-width: 29rem; margin-bottom: 1.8rem; font-size: clamp(1rem,1.2vw,1.2rem); line-height: 1.65; color: #d5e3ee; }
  .projects-hero__description .desktop-break { display: none; }
  .projects-hero__copy > .project-button { min-height: 52px; padding-inline: 1.5rem; font-size: 1rem; }
  .projects-values { flex-wrap: wrap; gap: .65rem; margin-top: 1.75rem; }
  .projects-values li { padding: .6rem .75rem; border-color: #37bed34d; background: #06243a80; font-size: .8rem; }
  .projects-hero__frames { position: relative; inset: auto; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: clamp(185px,16vw,265px) clamp(175px,14vw,235px); gap: 1rem; isolation: isolate; }
  .projects-hero .hero-frame { position: relative; inset: auto; width: 100%; height: 100%; transform: none; border-color: #44c9df80; border-radius: 16px; }
  .projects-hero .hero-frame--territory { grid-column: 1 / -1; }
  .projects-hero .hero-frame--territory img { object-position: 50% 68%; }
  .projects-hero .hero-frame--field img { object-position: 48% 38%; }
  .projects-hero .hero-frame__label { top: .85rem; left: .85rem; transform: none; font-family: inherit; font-size: .65rem; letter-spacing: .05em; }
  .projects-hero .hero-route { display: none; }
  /* Reserve a narrow desktop gutter for the assistant, clear of page content. */
  .projects-page > main {
  padding-right: 0;
}
  .projects-page > .home-footer { padding-right: 80px; }
  .projects-page #site-ai-agent { right: 12px; bottom: 24px; width: 56px; }
  .projects-page #site-ai-agent .ai-agent__trigger { display: grid; place-items: center; gap: 0; width: 56px; min-width: 56px; height: 56px; min-height: 56px; padding: 0; border: 1px solid #7ee8fa; border-radius: 50%; background: linear-gradient(145deg,#00b8da,#007ca7); box-shadow: 0 6px 20px #0005; }
  .projects-page #site-ai-agent .ai-agent__text { display: none; }
  .projects-page #site-ai-agent .ai-agent__icon { width: 40px; height: 40px; padding: 0; background: transparent; }
}
@media (min-width: 701px) and (max-width: 1100px) {
  .projects-hero__inner { padding-bottom: 3rem; }
  .projects-hero__frames { position: relative; inset: auto; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; margin-top: 2rem; }
  .hero-frame { position: relative; inset: auto; width: 100%; height: auto; aspect-ratio: 1.25; transform: none; }
  .hero-frame .hero-frame__label { transform: none; }
  .hero-route { display: none; }
}
@media (max-width: 700px) {
  .projects-hero__frames { gap: 1rem; margin-top: 1.4rem; }
  .hero-frame { width: 100%; aspect-ratio: 1.8; }
  .hero-frame--field, .hero-frame--results { width: 100%; margin-left: 0; }
  .hero-frame .hero-frame__label { top: .65rem; left: .65rem; font-size: .7rem; transform: none; }
  .hero-frame:not(:last-of-type)::after { display: none; }
  .projects-values { flex-wrap: wrap; gap: .5rem; }
}
.projects-hero .hero-frame--territory .hero-frame__label,
.projects-hero .hero-frame--field .hero-frame__label,
.projects-hero .hero-frame--results .hero-frame__label {
  top: auto;
  bottom: .65rem;
}

/* Informational layers stay within the existing photo geometry. */
.projects-hero .hero-frame { padding: 0; text-align: left; color: #fff; font-family: inherit; }
.projects-hero .hero-frame img { transition: transform .35s ease; }
.hero-frame__overlay { position: absolute; inset: auto 0 0; padding: 0 .75rem .65rem; }
.projects-hero .hero-frame .hero-frame__label { position: relative; inset: auto; width: fit-content; max-width: 100%; margin: 0; }
.hero-frame__info { display: grid; grid-template-rows: 0fr; opacity: 0; transform: translateY(8px); transition: grid-template-rows .35s ease, opacity .35s ease, transform .35s ease; }
.hero-frame__content { display: block; overflow: hidden; min-height: 0; }
.hero-frame__title { display: block; padding-top: .45rem; font-size: clamp(.85rem,1.1vw,1.1rem); line-height: 1.2; font-weight: 600; text-wrap: pretty; }
.hero-frame__meta { display: block; margin: .35rem 0 0; font-size: .72rem; line-height: 1.35; color: #dceaf3; }
.hero-frame__overlay::before { content: ""; position: absolute; inset: -1.5rem 0 0; z-index: -1; background: linear-gradient(180deg,transparent,rgba(0,23,46,.83) 25%,rgba(0,23,46,.96)); opacity: 0; transition: opacity .35s ease; }
.hero-frame__overlay { isolation: isolate; }
.projects-hero .hero-frame:focus-visible { outline: 3px solid #39ccef; outline-offset: 4px; }
.hero-frame:is(:focus-visible,.is-info-active) img { transform: scale(1.03); }
.hero-frame:is(:focus-visible,.is-info-active) .hero-frame__info { grid-template-rows: 1fr; opacity: 1; transform: none; }
.hero-frame:is(:focus-visible,.is-info-active) .hero-frame__overlay::before { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .hero-frame:hover img { transform: scale(1.03); }
  .hero-frame:hover .hero-frame__info { grid-template-rows: 1fr; opacity: 1; transform: none; }
  .hero-frame:hover .hero-frame__overlay::before { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .projects-hero .hero-frame img, .hero-frame__info, .hero-frame__overlay::before { transition: none; }
  .hero-frame:is(:hover,:focus-visible,.is-info-active) img { transform: none; }
}
/* Keep the category compact while details are visible on smaller photos. */
.hero-frame:is(:focus-visible,.is-info-active) { --info-label-padding: .2rem .5rem .2rem .3rem; --info-number-size: 1.25rem; }
.projects-hero .hero-frame .hero-frame__label { padding: var(--info-label-padding,.4rem .7rem .4rem .4rem); }
.hero-frame__label b { flex-basis: var(--info-number-size,1.7rem); height: var(--info-number-size,1.7rem); }
@media (hover: hover) and (pointer: fine) {
  .hero-frame:hover { --info-label-padding: .2rem .5rem .2rem .3rem; --info-number-size: 1.25rem; }
}
@media (min-width:1101px) { .hero-frame__overlay { padding-inline: .85rem; } }
@media (max-width:700px) { .hero-frame__overlay { padding-inline: .65rem; } }
/* Project catalog: featured slide and project thumbnails. */
.project-catalog.catalog-showcase {
  padding: clamp(2rem, 4vw, 4.5rem) max(5%, calc((100% - 1520px) / 2));
  background: #fff;
  color: #061637;
}
.catalog-showcase .project-catalog__heading {
  margin-bottom: .8rem;
}
.catalog-showcase .eyebrow {
  display: flex;
  align-items: center;
  gap: .65rem;
  color: #00abc9;
  font-size: clamp(1.15rem, 1.6vw, 1.5rem);
  font-weight: 600;
  letter-spacing: .02em;
}
.catalog-showcase .eyebrow::before { content: ""; width: 2rem; height: 2px; background: currentColor; }
.catalog-showcase h2 { font-size: clamp(1.8rem, 3vw, 3.15rem); margin: 0 0 .75rem; }
.catalog-showcase .project-catalog__heading > p:last-child { color: #71809b; line-height: 1.5; margin: 0; }

.catalog-slide { display: grid; grid-template-columns: 55% minmax(0, 1fr); min-height: 430px; }
.catalog-slide[hidden] { display: none; }
.catalog-slide__image { position: relative; min-width: 0; min-height: 100%; background: #fff; }
.catalog-slide__image > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center; }
.catalog-slide__image::after { content: none; }
.catalog-slide__caption {
  display: none;
}
.catalog-slide__caption strong { font-size: .8rem; }
.catalog-slide__caption span { font-size: .65rem; }
.catalog-slide__copy { padding: clamp(1.5rem, 2.6vw, 3rem); min-width: 0; }
.catalog-slide__category { display: inline-block; border-radius: 2rem; padding: .5rem 1.1rem; background: #d0f0f6; color: #009ebd; font-size: .75rem; font-weight: 600; margin: 0 0 1rem; }
.catalog-slide h3 { font-size: clamp(1.4rem, 2.1vw, 2.3rem); letter-spacing: -.04em; line-height: 1.15; margin: 0 0 1.25rem; }
.catalog-slide__meta { display: flex; flex-wrap: wrap; gap: .8rem 1.15rem; list-style: none; margin: 0 0 1.6rem; padding: 0 0 1.6rem; border-bottom: 1px solid #d9e1eb; color: #67768d; font-size: .87rem; }
.catalog-slide__meta li { display: flex; align-items: center; gap: .45rem; }
.catalog-slide__meta svg { width: 20px; height: 20px; flex: none; }
.catalog-slide__fact { display: grid; grid-template-columns: 48px minmax(0,1fr); gap: 1rem; margin-top: 1.4rem; }
.catalog-slide__icon { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: #e5f5fa; color: #00a8c9; }
.catalog-slide__icon svg { width: 26px; height: 26px; }
.catalog-slide__fact h4 { font-size: 1rem; margin: .15rem 0 .45rem; }
.catalog-slide__fact p { color: #687994; font-size: .92rem; line-height: 1.55; margin: 0; }
.catalog-controls { display: flex; align-items: center; gap: 1.75rem; padding: 1.25rem 0 .8rem; }
.catalog-controls > button { display: grid; place-items: center; width: 46px; height: 46px; flex: none; padding: 0 0 .2rem; border: 0; border-radius: 50%; color: #00558b; background: #e8f0f6; font-size: 2rem; cursor: pointer; }
.catalog-controls > button:hover { background: #cdebf3; }
.catalog-count { flex: none; font-size: 1.1rem; margin: 0; font-variant-numeric: tabular-nums; }
.catalog-count span { color: #94a2b9; }
.catalog-progress { height: 4px; background: #d7e0e9; flex: 1; border-radius: 5px; overflow: hidden; }
.catalog-progress span { display: block; width: 12.5%; height: 100%; background: #00afca; border-radius: inherit; }






.catalog-showcase button:focus-visible{ outline: 2px solid #009fc5; outline-offset: 3px; }
@media (max-width: 1000px) {
  .catalog-slide { grid-template-columns: 50% minmax(0,1fr); }
  .catalog-slide__copy { padding: 1.5rem; }
  
  
}
@media (max-width: 700px) {
  .project-catalog.catalog-showcase {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 2.25rem 5%;
    box-sizing: border-box;
    background: #fff;
  }
  .catalog-showcase .project-catalog__heading { margin-bottom: 1.4rem; }
  .catalog-showcase h2 { font-size: clamp(1.8rem, 7vw, 2.5rem); line-height: 1.12; }
  .catalog-slide { grid-template-columns: minmax(0,1fr); min-height: 0; }
  .catalog-slide__image { aspect-ratio: 1.4; min-height: 0; }
  .catalog-slide__caption { bottom: 1.1rem; left: 1rem; padding-left: .8rem; }
  .catalog-slide__copy { padding: 1.4rem 1.15rem 1.7rem; }
  .catalog-slide h3 { font-size: 1.6rem; }
  .catalog-slide__meta { font-size: .8rem; gap: .7rem; padding-bottom: 1.2rem; margin-bottom: 1.2rem; }
  .catalog-slide__fact { grid-template-columns: 38px minmax(0,1fr); gap: .75rem; }
  .catalog-slide__icon { width: 38px; height: 38px; }
  .catalog-slide__icon svg { width: 23px; height: 23px; }
  .catalog-slide__fact p { font-size: .88rem; }
  .catalog-controls { gap: .85rem; padding-top: 1rem; }
  .catalog-controls > button { width: 40px; height: 40px; }
  .catalog-count { font-size: .95rem; }
  
}
.relationships.dark-topography {
  background-image: none;
}

/* Block 4: territory and a single conversation CTA. */












/* Visual evidence is scoped to the existing project detail dialog. */
#trayectorias .milestone-dialog__lead { margin: 0 0 1.5rem; }
#trayectorias .milestone-dialog__figure { min-width: 0; margin: 0; }
#trayectorias .milestone-dialog__figure img {
  display: block; width: 100%; height: auto; max-height: 420px;
  object-fit: contain; border-radius: 10px; background: #eff2f5;
}
#trayectorias .milestone-dialog__figure figcaption {
  margin-top: .5rem; color: #505662; font-size: .8rem; line-height: 1.5;
}
#trayectorias .milestone-dialog__evidence { margin-top: 1.75rem; padding-top: .25rem; border-top: 1px solid #dce5eb; }
#trayectorias .milestone-dialog__gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin-top: .85rem; }
#trayectorias .milestone-dialog__gallery .milestone-dialog__figure--technical { grid-column: 1 / -1; }
#trayectorias .milestone-dialog__gallery--pair .milestone-dialog__figure { grid-column: auto; }
#trayectorias .milestone-dialog__figure--technical img { max-height: none; }
@media (max-width: 600px) {
  #trayectorias .milestone-dialog__gallery { grid-template-columns: minmax(0, 1fr); }
}

/* Field-image navigation stays within the photo, without a separate row. */
.catalog-showcase .catalog-slide { align-items: start; min-height: 0; }
.catalog-showcase .catalog-slide__image { min-height: 0; aspect-ratio: auto; }
.catalog-showcase .catalog-slide__image > img { position: static; display: block; width: 100%; height: auto; }
.catalog-showcase .catalog-slide__copy { padding-bottom: 0; }
.catalog-slide__image .catalog-controls--overlay {
  position: absolute; z-index: 1; inset: auto .75rem .75rem;
  display: flex; align-items: center; gap: .5rem; margin: 0; padding: 0;
}
.catalog-controls--overlay > button {
  width: 44px; height: 44px; background: #001a36; color: #fff;
  box-shadow: 0 2px 10px #001a3633;
}
.catalog-controls--overlay .catalog-count {
  margin: 0; padding: .4rem .55rem; border-radius: 6px;
  background: #001a36; color: #fff; font-size: .8rem; white-space: nowrap;
}
.catalog-controls--overlay .catalog-count span { color: #dceaf3; }
.catalog-controls--overlay > .catalog-next {
  display: flex; justify-content: center; align-items: center; gap: .6rem;
  width: auto; margin-left: auto; padding: .65rem .85rem; border-radius: 8px;
  font-family: inherit; font-size: .85rem; line-height: 1.25;
}
.catalog-controls--overlay > button:hover { background: #00558b; }
.catalog-controls--overlay > button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.catalog-controls--overlay .catalog-progress { display: none; }
@media (max-width: 700px) {
  .catalog-slide__image .catalog-controls--overlay { inset: auto .5rem .5rem; gap: .35rem; }
  .catalog-controls--overlay > .catalog-next { font-size: .8rem; padding-inline: .65rem; }
  .catalog-showcase .catalog-slide__copy { padding-bottom: 0; }
}

/* Compact heading directly above the project image. */
.project-catalog.catalog-showcase { padding-top: 1.5rem; }
.catalog-showcase .project-catalog__heading {
  display: block; padding: 0; margin: 0 0 .75rem; border: 0;
}
.catalog-showcase .project-catalog__heading h2.eyebrow {
  margin: 0; font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  line-height: 1.3; letter-spacing: .01em; text-transform: none;
}
.catalog-showcase .project-catalog__heading .eyebrow::before { width: 1.5rem; flex: none; }
@media (min-width: 701px) {
  .catalog-showcase .catalog-slide__copy { padding-top: 0; }
  .catalog-showcase .catalog-slide__image > img { object-position: center top; }
}

/* Institutional innovation project: copy and three-image composition. */
.sena-project { display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); gap: clamp(1.5rem, 3vw, 3rem); padding: clamp(2rem, 4vw, 4rem) max(4%, calc((100% - 1600px) / 2)); }
.sena-project.dark-topography { background-image: none; }
.sena-project__copy { min-width: 0; }
.sena-project__eyebrow { margin: 0 0 1.25rem; padding-left: 1rem; border-left: 2px solid #52d9f0; color: #52d9f0; font-size: .78rem; font-weight: 600; line-height: 1.5; letter-spacing: .14em; text-transform: uppercase; }
.sena-project h2 { margin: 0 0 1.4rem; font-size: clamp(1.8rem, 2.7vw, 3rem); line-height: 1.18; letter-spacing: -.03em; font-weight: 700; text-wrap: pretty; }
.sena-project__intro p { margin: 0 0 1rem; font-size: clamp(1rem, 1.3vw, 1.15rem); line-height: 1.65; color: #e1eaf1; }
.sena-project svg { width: 30px; height: 30px; flex: none; color: #52d9f0; }
.sena-project__facts { display: grid; grid-template-columns: .75fr 1.25fr 1.2fr .85fr; margin: 1.5rem 0 1.2rem; padding: 0 0 1.25rem; border-bottom: 1px solid #285062; }
.sena-project__facts > div { display: grid; grid-template-columns: 30px minmax(0, 1fr); align-content: start; gap: .4rem .6rem; padding-inline: .7rem; border-right: 1px solid #285062; }
.sena-project__facts > div:first-child { padding-left: 0; }
.sena-project__facts > div:last-child { border: 0; padding-right: 0; }
.sena-project__facts svg { grid-row: 1 / 3; }
.sena-project__facts dt { font-size: .75rem; color: #52d9f0; }
.sena-project__facts dd { margin: 0; font-size: .82rem; line-height: 1.35; }
.sena-project__scope-title { margin: 0 0 .8rem; font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.sena-project__scopes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; list-style: none; margin: 0 0 1rem; padding: 0; }
.sena-project__scopes li { display: flex; align-items: center; gap: .7rem; padding: .85rem .7rem; border: 1px solid #1c566e; border-radius: 11px; background: #10384d80; font-size: .85rem; line-height: 1.35; }
.sena-project__detail { display: inline-flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 48px; padding: .8rem 1.5rem; border: 1px solid #61e4f5; border-radius: 10px; background: #52d4ed; color: #001b2d; font: inherit; font-weight: 600; cursor: pointer; }
.sena-project__detail:hover { background: #86e7f7; }
.sena-project__detail:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.sena-project__photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 1.35fr 1fr; gap: 1rem; min-width: 0; }
.sena-project__photos figure { position: relative; min-height: 0; margin: 0; overflow: hidden; border: 1px solid #2b5060; border-radius: 14px; }
.sena-project__main-photo { grid-column: 1 / -1; }
.sena-project__photos img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.sena-project__photos figure:not(.sena-project__main-photo) img { object-position: center; }
.sena-dialog { width: min(880px, calc(100% - 24px)); max-height: calc(100dvh - 24px); box-sizing: border-box; padding: 0; border: 1px solid #285062; border-radius: 14px; background: #fff; color: #001b2d; overscroll-behavior: contain; font-family: inherit; }
.sena-dialog::backdrop { background: #001322dc; }
.sena-dialog__bar { position: sticky; top: 0; z-index: 1; display: flex; justify-content: end; padding: .5rem .75rem; background: #fff; }
.sena-dialog__bar button { width: 44px; height: 44px; border: 1px solid #b5cbd6; border-radius: 50%; background: #fff; color: #001b2d; font-size: 1.5rem; cursor: pointer; }
.sena-dialog__bar button:hover { background: #eaf7fa; }
.sena-dialog__bar button:focus-visible { outline: 3px solid #007f99; outline-offset: 3px; }
.sena-dialog__body { padding: 0 clamp(1rem, 3vw, 2rem) 2rem; overflow-wrap: break-word; }
.sena-dialog__eyebrow { margin: 0 0 .65rem; color: #007f99; font-size: .72rem; font-weight: 600; letter-spacing: .16em; }
.sena-dialog .sena-dialog__body h2 { margin: 0 0 1rem; font-family: var(--font-heading); font-size: clamp(1.4rem, 2.5vw, 1.9rem); font-weight: 600; line-height: 1.25; }
.sena-dialog__intro, .sena-dialog__compliance p { margin: 0; color: #4a6070; font-size: .94rem; line-height: 1.65; }
.sena-dialog__indicators { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; margin: 1.5rem 0; }
.sena-dialog__indicator { position: relative; min-width: 0; padding: 3.2rem 1rem 1rem; border: 1px solid #d8e5eb; border-radius: 10px; background: #f5f9fb; display: flex; flex-direction: column; gap: .5rem; }
.sena-dialog__indicator dt { color: #4a6070; font-size: .8rem; line-height: 1.5; }
.sena-dialog__indicator dd { order: -1; margin: 0; font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700; line-height: 1.3; }
.sena-dialog__indicator svg { position: absolute; top: 1rem; left: 1rem; width: 25px; height: 25px; color: #007f99; }
.sena-dialog__indicator--accent { background: #eaf8fb; border-color: #aadce5; }
.sena-dialog__indicator--accent dd { color: #007f99; }
.sena-dialog__compliance { padding-top: 1.25rem; border-top: 1px solid #d8e5eb; }
.sena-dialog__compliance h3 { margin: 0 0 .65rem; font-family: var(--font-heading); font-size: 1.05rem; }
.sena-dialog__compliance ul { display: grid; gap: .6rem; list-style: none; margin: 1rem 0 0; padding: 0; }
.sena-dialog__compliance li { display: flex; align-items: start; gap: .65rem; font-size: .9rem; line-height: 1.5; }
.sena-dialog__compliance li svg { width: 20px; height: 20px; margin-top: .05rem; flex: none; color: #007f99; }
@media (max-width: 800px) { .sena-dialog__indicators { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 359px) { .sena-dialog__indicators { grid-template-columns: minmax(0, 1fr); } }
html.sena-detail-open { overflow: hidden; }
@media (max-width: 1200px) {
  .sena-project__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  .sena-project__facts > div { padding: 0; border: 0; }
  .sena-project__scopes { grid-template-columns: minmax(0, 1fr); }
  .sena-project__scopes li { padding: .65rem .85rem; }
}
@media (max-width: 900px) {
  .sena-project { grid-template-columns: minmax(0, 1fr); padding: 2rem 5%; gap: 1.5rem; }
  .sena-project__photos { grid-template-rows: auto auto; gap: .65rem; }
  .sena-project__photos figure { aspect-ratio: 3 / 2; }
  .sena-project__photos .sena-project__main-photo { aspect-ratio: 3 / 2; }
  .sena-project__detail { width: 100%; }
  .sena-project__eyebrow { font-size: .7rem; letter-spacing: .1em; }
}
