@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/fonts/instrument-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/fonts/instrument-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #171a18;
  --paper: #f4f2ec;
  --bone: #f4f2ec;
  --muted: #5c615c;
  --line: #d8d4ca;
  --route: #1f6a4a;
  --header: calc(60px + env(safe-area-inset-top));
  --etym: 0px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
  font-family: "Instrument Sans", "Avenir Next", "Segoe UI", sans-serif;
  background: var(--ink);
  color: var(--bone);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { background: var(--ink); }
body { overflow-x: clip; }
img { max-width: 100%; }
button, a { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
a { text-decoration: none; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--route); outline-offset: 3px; }
body.menu-open { overflow: hidden; }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--paper);
  color: var(--ink);
  padding: 8px 12px;
  z-index: 50;
}
.skip:focus { top: 12px; }

.site-header {
  position: fixed;
  z-index: 30;
  top: 0; left: 0; right: 0;
  height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: env(safe-area-inset-top) max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
  background: var(--ink);
  color: var(--bone);
}
body[data-surface="paper"] .site-header {
  background: var(--paper);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.mark {
  display: flex;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
}
.mark img {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 22%;
}
.menu-btn {
  min-height: 44px;
  min-width: 44px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nav-links { display: none; }
.nav-links.is-open {
  display: flex;
  position: fixed;
  z-index: 40;
  inset: var(--header) 0 0 0;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 12px 24px calc(24px + env(safe-area-inset-bottom));
  background: var(--ink);
  color: var(--bone);
}
body[data-surface="paper"] .nav-links.is-open {
  background: var(--paper);
  color: var(--ink);
}
.nav-links a {
  font-size: clamp(28px, 8vw, 40px);
  font-weight: 600;
  letter-spacing: -0.04em;
  padding: 10px 0;
  min-height: 44px;
}
.nav-links a[aria-current="true"] { box-shadow: inset 3px 0 0 var(--route); padding-left: 12px; }

.stage { position: relative; }
.screen {
  position: relative;
  background: var(--ink);
  color: var(--bone);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}
.screen[data-surface="paper"] { background: var(--paper); color: var(--ink); }
#inicio {
  height: 100vh;
  height: 100svh;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
}
body.leaving-hero { overflow: hidden; }
body.leaving-hero #inicio {
  position: fixed;
  inset: 0;
  z-index: 25;
  transform: translateY(-100%);
  transition: transform 0.7s var(--ease);
}

.hero-media { position: absolute; inset: 0; background: var(--ink); }
.hero-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-media.is-novideo .hero-video { display: none; }
.wash { position: absolute; inset: 0; background: rgba(23, 26, 24, 0.42); }
.hero-media.is-novideo .wash { background: transparent; }
.hero-copy {
  position: absolute;
  z-index: 2;
  left: max(20px, env(safe-area-inset-left));
  right: max(20px, env(safe-area-inset-right));
  bottom: calc(28px + env(safe-area-inset-bottom));
  max-width: 920px;
}
.kicker { margin: 0 0 16px; font-size: 14px; font-weight: 500; max-width: 36rem; line-height: 1.4; }
#inicio h1 {
  margin: 0;
  font-size: clamp(72px, 14vw, 168px);
  line-height: 0.84;
  letter-spacing: -0.065em;
  font-weight: 600;
}
.lead {
  margin: 16px 0 0;
  max-width: 34rem;
  font-size: clamp(18px, 4.6vw, 22px);
  line-height: 1.35;
}
.enter {
  margin-top: 22px;
  min-height: 44px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.enter::before {
  content: "";
  display: inline-block;
  width: 2px;
  height: 18px;
  margin-right: 10px;
  background: var(--route);
  vertical-align: -4px;
}

.frame {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: none;
  padding: calc(var(--header) + 12px) max(16px, env(safe-area-inset-right)) calc(16px + var(--etym) + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}
.eyebrow {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--route);
}
.screen[data-surface="ink"] .eyebrow,
.screen[data-surface="ink"] .role { color: #8dceae; }

.quienes {
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 10px;
}
.display {
  margin: 0 auto;
  max-width: 62rem;
  font-size: 14px;
  line-height: 1.35;
}
.lead-in {
  display: block;
  margin: 0 auto 6px;
  font-size: clamp(22px, 5.5vw, 26px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 600;
  max-width: 16em;
}
.areas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 0;
  margin: 0;
  padding: 4px 0 0;
  list-style: none;
}
.areas li {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--route);
}
.areas li:not(:last-child)::after {
  content: "·";
  margin: 0 8px;
  color: var(--muted);
  font-weight: 400;
}
.columns {
  display: grid;
  gap: 10px;
  width: min(100%, 68rem);
}
.columns p { margin: 0 auto; font-size: 13.5px; line-height: 1.35; max-width: 36rem; }

.rumbo { justify-content: center; gap: 14px; }
.pair { display: grid; gap: 12px; }
.pair h2 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8dceae;
}
.pair p {
  margin: 0;
  font-size: 16px;
  line-height: 1.25;
  letter-spacing: -0.03em;
  font-weight: 500;
  max-width: 22em;
}
.route {
  list-style: none;
  margin: 0;
  padding: 0 0 0 18px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.route::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: color-mix(in srgb, #8dceae 55%, transparent);
}
.route li { position: relative; }
.route li::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 7px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #8dceae;
}
.route strong { display: block; font-size: 15px; font-weight: 600; }
.route span { display: block; margin-top: 1px; font-size: 13px; line-height: 1.3; max-width: 36rem; opacity: 0.88; }

.svc { gap: 14px; }
.svc-col { display: flex; flex-direction: column; min-height: 0; }
.svc-index {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  overflow: visible;
  padding: 2px 0 0;
  margin: 0;
}
.svc-index button {
  display: grid;
  place-items: center;
  min-width: 0;
  width: 100%;
  min-height: 36px;
  padding: 0;
  border-radius: 999px;
  color: var(--muted);
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}
.svc-index .t { display: none; }
.svc-index .n {
  width: min(100%, 42px);
  aspect-ratio: 1;
  height: auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid var(--line);
  background: var(--paper);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.svc-index button:not([aria-selected="true"]) .n {
  animation: svc-pulse 2.2s ease-in-out infinite;
}
.svc-index button:nth-child(2) .n { animation-delay: 0.15s; }
.svc-index button:nth-child(3) .n { animation-delay: 0.3s; }
.svc-index button:nth-child(4) .n { animation-delay: 0.45s; }
.svc-index button:nth-child(5) .n { animation-delay: 0.6s; }
.svc-index button:nth-child(6) .n { animation-delay: 0.75s; }
.svc-index button:nth-child(7) .n { animation-delay: 0.9s; }
.svc-index button:hover,
.svc-index button:focus-visible { color: var(--ink); }
.svc-index button:hover .n,
.svc-index button:focus-visible .n {
  transform: scale(1.1);
  border-color: var(--route);
  animation: none;
}
@keyframes svc-pulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--route) 28%, transparent); }
  70% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--route) 0%, transparent); }
}
.svc-index button[aria-selected="true"] { color: var(--ink); }
.svc-index button[aria-selected="true"] .n {
  background: var(--route);
  border-color: var(--route);
  color: #f4f2ec;
}
.svc-panel {
  flex: 1;
  display: grid;
  align-items: stretch;
  min-height: 0;
  container-type: size;
  min-width: 0;
  position: relative;
}
.svc-panel article {
  grid-area: 1 / 1;
  position: relative;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), visibility 0s linear 0.5s;
}
.svc-panel article.is-on {
  opacity: 1;
  visibility: visible;
  transform: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
  min-width: 0;
  width: 100%;
  gap: 14px;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), visibility 0s;
}
.idx { display: none; }
.count {
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--route);
}
.svc-panel h2 {
  position: relative;
  z-index: 1;
  margin: 0 0 8px;
  font-size: clamp(34px, 5.6vh, 48px);
  line-height: 1.05;
  max-width: 100%;
  overflow-wrap: break-word;
  letter-spacing: -0.04em;
  font-weight: 600;
  max-width: 14em;
}
.svc-panel article > p:last-child {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 34rem;
  font-size: clamp(18px, 2.7vh, 22px);
  line-height: 1.4;
  max-width: 100%;
}

.equipo { justify-content: flex-start; gap: 0; }
.equipo-grid { display: grid; gap: 0; }
.team {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  min-height: calc(100dvh - var(--header) - 88px);
  align-content: center;
}
.aside {
  min-height: 100dvh;
  box-sizing: border-box;
  padding-top: var(--header);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
}
.card {
  display: grid;
  grid-template-columns: 34% minmax(0, 1fr);
  min-height: 30vh;
  background: #f6f3ec;
  color: var(--ink);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
}
.photo {
  min-height: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: radial-gradient(120% 90% at 50% 15%, #efebe3, #d5d0c4 72%);
}
.photo:has(img) .initials { display: none; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.initials {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: color-mix(in srgb, var(--ink) 32%, transparent);
}
.card-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px 14px 16px;
}
.card h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 600;
}
.card .role { margin: 6px 0 0; font-size: 14px; font-weight: 600; color: var(--route); }
.aside h2 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8dceae;
}
.plain { list-style: none; margin: 0; padding: 0; }
.plain li {
  padding: 6px 0;
  border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent);
  font-size: 15px;
  line-height: 1.4;
}
.legal { margin: 8px 0 0; font-size: 13px; letter-spacing: 0.04em; opacity: 0.7; }

.etym {
  margin: 0;
  padding: 20px max(20px, env(safe-area-inset-right)) calc(20px + env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  font-size: 13px;
  line-height: 1.45;
  color: color-mix(in srgb, var(--bone) 70%, transparent);
  background: var(--ink);
  text-align: center;
  pointer-events: none;
}

.rail { display: none; }

@media (min-width: 900px) {
  :root {
    --header: 64px;
    --etym: 58px;
  }
  .site-header { justify-content: center; gap: 28px; }
  .menu-btn { display: none; }
  .mark img { width: 44px; height: 44px; }
  .nav-links,
  .nav-links.is-open {
    display: flex;
    position: static;
    inset: auto;
    flex-direction: row;
    align-items: center;
    gap: 22px;
    padding: 0;
    background: none;
    color: inherit;
    z-index: auto;
  }
  body[data-surface="paper"] .nav-links.is-open { background: none; color: inherit; }
  .nav-links a {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0;
    padding: 0;
    min-height: 0;
  }
  .nav-links a[aria-current="true"] {
    box-shadow: inset 0 -2px 0 var(--route);
    padding-left: 0;
  }
  .hero-copy {
    left: 7vw;
    right: 8vw;
    bottom: calc(36px + var(--etym));
  }
  #inicio h1 { font-size: clamp(96px, 12vw, 168px); }
  .frame {
    padding: calc(var(--header) + 28px) max(6vw, 96px) calc(32px + var(--etym)) 6vw;
  }
  .lead-in { font-size: clamp(36px, 3.4vw, 52px); margin-bottom: 12px; }
  .display { font-size: 17px; line-height: 1.5; }
  .areas li { font-size: 13px; letter-spacing: 0.06em; }
  .quienes { gap: 28px; }
  .columns {
    grid-template-columns: 1fr 1fr;
    gap: 28px 56px;
    align-items: start;
  }
  .columns p { font-size: 17px; line-height: 1.5; }
  .rumbo { min-height: 0; gap: 32px; }
  .pair {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
  }
  .pair p { font-size: clamp(22px, 2vw, 32px); }
  .route {
    margin-top: 8px;
    padding: 26px 0 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
  }
  .route::before {
    left: 0;
    right: 0;
    top: 4px;
    bottom: auto;
    width: auto;
    height: 1px;
  }
  .route li::before { left: 0; top: -26px; }
  .route strong { font-size: 17px; }
  .route span { font-size: 14px; line-height: 1.4; }
  .svc {
    display: grid;
    grid-template-columns: minmax(250px, 340px) minmax(0, 1fr);
    gap: 56px;
    align-items: stretch;
  }
  .svc-col { height: 100%; }
  .svc-index {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: space-between;
    overflow: visible;
    gap: 0;
    margin: 0;
    padding: 8px 0;
    position: relative;
  }
  .svc-index::before {
    content: "";
    position: absolute;
    left: 19px;
    top: 20px;
    bottom: 20px;
    width: 1px;
    background: color-mix(in srgb, var(--route) 45%, var(--line));
  }
  .svc-index button {
    position: relative;
    z-index: 1;
    width: 100%;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 14px;
    place-items: center start;
    min-height: 48px;
    border-radius: 0;
    text-align: left;
  }
  .svc-index .t {
    display: block;
    font-size: 15px;
    line-height: 1.3;
  }
  .svc-index .n {
    width: 40px;
    height: 40px;
    aspect-ratio: auto;
    font-size: 12px;
  }
  .svc-index button[aria-selected="true"] .t { font-weight: 600; color: var(--ink); }
  .svc-index button:hover,
  .svc-index button:focus-visible {
    background: color-mix(in srgb, var(--route) 8%, transparent);
    border-radius: 999px;
  }
  .svc-panel { min-height: 0; overflow: hidden; align-items: center; container-type: normal; }
  .svc-panel article.is-on { display: block; min-height: 0; }
  .svc-panel h2 {
    font-size: clamp(56px, 4.8vw, 84px);
    line-height: 0.96;
    letter-spacing: -0.05em;
    max-width: none;
    margin-bottom: 22px;
  }
  .svc-panel article > p:last-child {
    font-size: clamp(22px, 1.7vw, 28px);
    line-height: 1.35;
    max-width: none;
  }
  .equipo-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.8fr);
    gap: 36px;
    align-items: stretch;
  }
  .team { grid-template-columns: 1fr 1fr; gap: 22px; align-items: stretch; min-height: 0; }
  .aside { min-height: 0; padding-top: 0; display: grid; justify-content: start; }
  .card {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    min-height: 0;
    border-radius: 22px;
  }
  .photo {
    aspect-ratio: 4 / 5;
    max-height: min(48vh, 420px);
    height: auto;
    min-height: 0;
  }
  .card-copy { padding: 16px 18px 20px; }
  .card h2 { font-size: clamp(22px, 1.6vw, 28px); }
  .etym {
    position: fixed;
    z-index: 22;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px max(6vw, 96px) 12px;
    font-size: 12px;
    line-height: 1.35;
    background: color-mix(in srgb, var(--ink) 92%, transparent);
  }
  body[data-surface="paper"] .etym {
    background: color-mix(in srgb, var(--paper) 92%, transparent);
    color: color-mix(in srgb, var(--ink) 62%, transparent);
  }
  .rail {
    position: fixed;
    z-index: 30;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .rail button {
    min-width: 32px;
    min-height: 28px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: color-mix(in srgb, currentColor 45%, transparent);
  }
  .rail button[aria-current="true"] { color: var(--route); }
  body[data-surface="paper"] .rail { color: var(--ink); }
}

@media (prefers-reduced-motion: reduce) {
  body.leaving-hero #inicio,
  .svc-panel article,
  .svc-index button,
  .svc-index .n { transition: none; }
  .svc-index button .n { animation: none; }
  .hero-video { display: none; }
}
