/* Prueba de diseño aislada: Sentient en la sección de servicios. */
@font-face {
  font-family: "Sentient";
  src: url("/assets/fonts/sentient-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Sentient";
  src: url("/assets/fonts/sentient-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

#nosotros .services-lead {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: end;
  gap: clamp(32px, 6vw, 96px);
  margin-bottom: 64px;
}

#nosotros .services-heading {
  max-width: 10ch;
  margin: 0;
  font-family: "Sentient", Georgia, serif !important;
  font-weight: 400;
  font-size: clamp(3.25rem, 6.25vw, 6.25rem);
  line-height: .97;
  letter-spacing: -.04em;
  text-align: left;
}

#nosotros .services-intro {
  max-width: 34ch;
  align-self: center;
  margin: 0 0 4px;
  color: var(--muted);
  font: 400 clamp(1.0625rem, 1.8vw, 1.625rem)/1.5 Satoshi, sans-serif;
  text-align: left;
  text-wrap: pretty;
}

#nosotros .services-intro p + p {
  margin-top: 16px;
  font-size: clamp(.9375rem, 1.15vw, 1.125rem);
  line-height: 1.5;
}

#nosotros .services-term {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  transition: text-decoration-color .25s ease, color .25s ease;
}

#nosotros .services-route {
  display: flex;
  gap: 12px;
  border-top: 1px solid var(--line);
  margin-bottom: 16px;
  --route-1: 1;
  --route-2: 1;
  --route-3: 1;
}

#nosotros .services-route-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1 0;
  min-width: 0;
  padding: 20px 0 4px;
  text-align: center;
  color: var(--muted);
  transition: flex-grow .55s cubic-bezier(.22,.68,0,1), color .25s ease;
}

#nosotros .services-route-item:nth-child(1) { flex-grow: var(--route-1); }
#nosotros .services-route-item:nth-child(2) { flex-grow: var(--route-2); }
#nosotros .services-route-item:nth-child(3) { flex-grow: var(--route-3); }

/* Las etiquetas siguen las mismas proporciones y prioridades que las fotos. */
@media (min-width: 769px) {
  #nosotros:has(:where(.gallery-card:nth-child(1).is-active)) .services-route { --route-1: 1.8; --route-2: .8; --route-3: .8; }
  #nosotros:has(:where(.gallery-card:nth-child(2).is-active)) .services-route { --route-1: .8; --route-2: 1.8; --route-3: .8; }
  #nosotros:has(:where(.gallery-card:nth-child(3).is-active)) .services-route { --route-1: .8; --route-2: .8; --route-3: 1.8; }
  #nosotros:has(:where(.gallery-card:nth-child(1):focus-within)) .services-route { --route-1: 1.8; --route-2: .8; --route-3: .8; }
  #nosotros:has(:where(.gallery-card:nth-child(2):focus-within)) .services-route { --route-1: .8; --route-2: 1.8; --route-3: .8; }
  #nosotros:has(:where(.gallery-card:nth-child(3):focus-within)) .services-route { --route-1: .8; --route-2: .8; --route-3: 1.8; }
}

@media (hover: hover) and (min-width: 769px) {
  #nosotros:has(:where(.gallery-card:nth-child(1):hover)) .services-route { --route-1: 1.8; --route-2: .8; --route-3: .8; }
  #nosotros:has(:where(.gallery-card:nth-child(2):hover)) .services-route { --route-1: .8; --route-2: 1.8; --route-3: .8; }
  #nosotros:has(:where(.gallery-card:nth-child(3):hover)) .services-route { --route-1: .8; --route-2: .8; --route-3: 1.8; }
}

#nosotros .services-route-item::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--coffee);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .35s ease;
}

#nosotros .services-route-item strong {
  color: inherit;
  font: 500 clamp(1.5rem, 2.4vw, 2.35rem)/1.1 "Sentient", Georgia, serif;
  letter-spacing: -.025em;
}

#nosotros .services-route-item span {
  margin-top: 4px;
  font: 500 .875rem/1.35 Satoshi, sans-serif;
}

#nosotros:has(.gallery-card:nth-child(1):is(:hover, :focus-within, .is-active)) .services-route-item:nth-child(1),
#nosotros:has(.gallery-card:nth-child(2):is(:hover, :focus-within, .is-active)) .services-route-item:nth-child(2),
#nosotros:has(.gallery-card:nth-child(3):is(:hover, :focus-within, .is-active)) .services-route-item:nth-child(3) {
  color: var(--ink);
}

#nosotros:has(.gallery-card:nth-child(1):is(:hover, :focus-within, .is-active)) .services-term:nth-of-type(1),
#nosotros:has(.gallery-card:nth-child(2):is(:hover, :focus-within, .is-active)) .services-term:nth-of-type(2),
#nosotros:has(.gallery-card:nth-child(3):is(:hover, :focus-within, .is-active)) .services-term:nth-of-type(3) {
  color: var(--ink);
  text-decoration-color: var(--coffee);
}

#nosotros:has(.gallery-card:nth-child(1):is(:hover, :focus-within, .is-active)) .services-route-item:nth-child(1)::before,
#nosotros:has(.gallery-card:nth-child(2):is(:hover, :focus-within, .is-active)) .services-route-item:nth-child(2)::before,
#nosotros:has(.gallery-card:nth-child(3):is(:hover, :focus-within, .is-active)) .services-route-item:nth-child(3)::before {
  transform: scaleX(1);
}

#nosotros .gallery-card {
  container-type: inline-size;
}

#nosotros .gallery-card::after {
  inset: 0;
  background: linear-gradient(transparent 15%, rgba(23, 17, 13, .52) 44%, rgba(23, 17, 13, .86) 100%);
}

#nosotros .gallery-card-title {
  max-width: 100%;
  font-family: "Sentient", Georgia, serif;
  font-size: clamp(1rem, calc((100cqw - 64px) / 8), 2.5rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.02em;
}

#nosotros .gallery-card-detail {
  max-width: min(100%, 34ch);
  font-size: 16px;
  line-height: 1.5;
}

@media (max-width: 768px) {
  #nosotros .services-lead {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 44px;
  }

  #nosotros .services-heading {
    max-width: 11ch;
    font-size: clamp(2.9rem, 10.5vw, 4.5rem);
  }

  #nosotros .services-intro { max-width: 40ch; }
  #nosotros .services-route-item { padding-top: 14px; }
  #nosotros .services-route-item strong { font-size: clamp(1.1rem, 4.8vw, 1.5rem); }
  #nosotros .services-route-item span { font-size: .75rem; }
}

@media (max-width: 390px) {
  #nosotros .services-heading { font-size: 2.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  #nosotros .services-route-item,
  #nosotros .services-route-item::before,
  #nosotros .services-term { transition: none; }
}
