/* Casos de exito: una pagina propia sobre la misma base visual de 8iT. */
.projects-page {
  background: var(--panel);
}
.projects-page .screen {
  box-sizing: border-box;
  min-height: 100svh;
  min-height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.projects-hero {
  position: relative;
  overflow: clip;
  background: #1d1e27;
}
.projects-hero::before {
  position: absolute;
  top: -22vw;
  right: -8vw;
  width: min(56vw, 860px);
  aspect-ratio: 1;
  border: 1px solid rgb(46 106 177 / 32%);
  box-shadow:
    0 0 0 32px rgb(46 106 177 / 6%),
    0 0 0 84px rgb(245 242 233 / 2%);
  content: '';
  transform: rotate(45deg);
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(500px, 1.1fr);
  gap: clamp(42px, 7vw, 120px);
  align-items: center;
}
.projects-hero-copy {
  max-width: 630px;
}
.projects-hero h1 {
  max-width: 9ch;
  font-size: clamp(54px, 6.2vw, 102px);
}
.projects-hero h1 .outline {
  display: block;
}
.projects-lead {
  position: relative;
  max-width: 38ch;
  margin-top: clamp(28px, 5vh, 62px);
  padding-top: 18px;
  color: rgb(245 242 233 / 88%);
  font-size: clamp(16px, 1.25vw, 20px);
}
.projects-lead::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 42px;
  height: 2px;
  background: var(--paper);
  content: '';
}
.case-network {
  position: relative;
  min-height: clamp(430px, 58vh, 620px);
  isolation: isolate;
}
.case-network::before {
  position: absolute;
  inset: 8% 2% 12%;
  z-index: -1;
  border: 1px solid rgb(245 242 233 / 11%);
  background:
    radial-gradient(circle at center, rgb(46 106 177 / 13%), transparent 54%),
    linear-gradient(rgb(245 242 233 / 4%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(245 242 233 / 4%) 1px, transparent 1px);
  background-size:
    auto,
    38px 38px,
    38px 38px;
}
.network-label {
  position: absolute;
  top: 10%;
  left: 7%;
  margin: 0;
  color: #b7c5d6;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.15em;
}
.network-lines {
  position: absolute;
  inset: 7% 0 10%;
  width: 100%;
  height: 83%;
  overflow: visible;
  fill: none;
}
.network-ring {
  stroke: rgb(245 242 233 / 11%);
  stroke-width: 1;
  stroke-dasharray: 3 8;
}
.network-line {
  stroke: rgb(158 203 249 / 36%);
  stroke-width: 1.25;
  stroke-dasharray: 5 9;
}
.network-core {
  position: absolute;
  top: 48%;
  left: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 112px;
  aspect-ratio: 1;
  border: 1px solid #a6c8ea;
  border-radius: 50%;
  color: var(--paper);
  background: var(--blue);
  box-shadow:
    0 0 0 9px rgb(46 106 177 / 13%),
    0 0 32px rgb(46 106 177 / 26%);
  transform: translate(-50%, -50%);
}
.network-core::before {
  position: absolute;
  inset: 9px;
  border: 1px solid rgb(245 242 233 / 45%);
  border-radius: inherit;
  content: '';
}
.network-core strong {
  font-size: 32px;
  letter-spacing: -0.08em;
  line-height: 0.8;
}
.network-core small {
  margin-top: 7px;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.14em;
}
.graph-node {
  position: absolute;
  z-index: 3;
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: center;
  gap: 6px;
  width: max-content;
  min-width: 94px;
  padding: 9px 11px;
  border: 1px solid rgb(245 242 233 / 28%);
  border-radius: 0;
  color: var(--paper);
  background: rgb(29 30 39 / 88%);
  cursor: pointer;
  text-align: left;
  transition:
    opacity 160ms ease,
    color 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    transform 180ms cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 180ms ease;
}
.graph-node > span {
  color: #92c0ee;
  font-size: 9px;
  font-weight: 800;
}
.graph-node strong {
  font-size: 10px;
  letter-spacing: 0.05em;
  line-height: 1.06;
}
.graph-node--1 {
  top: 14%;
  left: 5%;
}
.graph-node--2 {
  top: 13%;
  right: 5%;
}
.graph-node--3 {
  top: 52%;
  right: 0;
}
.graph-node--4 {
  bottom: 9%;
  left: 16%;
}
.graph-node--5 {
  right: 22%;
  bottom: 8%;
}
.graph-node.is-active,
.graph-node:focus-visible {
  border-color: #a6c8ea;
  color: white;
  background: var(--blue);
  box-shadow: 4px 4px 0 rgb(245 242 233 / 72%);
  outline: 0;
  transform: translate(-2px, -2px);
}
.graph-node.is-active > span,
.graph-node:focus-visible > span {
  color: white;
}
.case-network.has-selection .graph-node:not(.is-active) {
  opacity: 0.52;
}
.network-selection {
  position: absolute;
  z-index: 4;
  left: 7%;
  bottom: 7%;
  display: grid;
  gap: 4px;
  padding: 12px 0 0;
  border-top: 1px solid rgb(245 242 233 / 45%);
  color: var(--paper);
}
.network-selection > span {
  color: #a8c8e9;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.11em;
}
.network-selection strong {
  font-size: 16px;
}
.network-selection a {
  width: fit-content;
  margin-top: 4px;
  color: inherit;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-decoration: none;
  border-bottom: 1px solid #7daddd;
}
.cases-showcase {
  background: var(--paper);
}
.cases-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.76fr) minmax(420px, 1.24fr);
  gap: clamp(50px, 9vw, 150px);
  align-items: center;
}
.cases-intro > p:not(.eyebrow) {
  position: relative;
  max-width: 36ch;
  margin-top: 28px;
  padding-top: 16px;
}
.cases-intro > p:not(.eyebrow)::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 42px;
  height: 2px;
  background: var(--blue);
  content: '';
}
.cases-intro h2 {
  max-width: 10ch;
  font-size: clamp(42px, 5.3vw, 82px);
}
.cases-intro h2 .outline {
  display: block;
}
.case-index {
  display: grid;
  gap: 0;
  margin: clamp(28px, 5vh, 56px) 0 0;
  padding: 0;
  list-style: none;
}
.case-index__button {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  width: 100%;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid #aaa9a3;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  text-align: left;
  font:
    800 clamp(14px, 1.25vw, 18px)/1.2 Arial,
    Helvetica,
    sans-serif;
  transition:
    color 140ms ease,
    border-color 140ms ease,
    padding-left 180ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.case-index__button span {
  color: var(--blue);
  font-size: 9px;
  padding-top: 4px;
}
.case-index__button.is-active,
.case-index__button:focus-visible {
  padding-left: 10px;
  border-color: var(--blue);
  color: var(--blue);
  outline: 0;
}
.case-sheet {
  position: relative;
  min-height: min(460px, 56vh);
  padding: clamp(28px, 4vw, 58px);
  border: 1px solid var(--ink);
  background: #eef1f2;
  box-shadow: 8px 8px 0 var(--blue);
}
.case-sheet::before {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 34%;
  background: linear-gradient(145deg, transparent 0 49.5%, rgb(46 106 177 / 11%) 49.5% 50%, transparent 50%);
  content: '';
  pointer-events: none;
}
.case-sheet > * {
  position: relative;
  z-index: 1;
}
.case-sheet__marker {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--blue);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.case-sheet h3 {
  max-width: 9ch;
  margin: clamp(34px, 7vh, 76px) 0 18px;
  font-size: clamp(40px, 5vw, 78px);
  letter-spacing: -0.065em;
  line-height: 0.9;
}
.case-sheet__rule {
  width: 42px;
  height: 2px;
  margin-bottom: 28px;
  background: var(--blue);
  transition: width 180ms ease;
}
.case-sheet dl {
  display: grid;
  gap: 20px;
  max-width: 46ch;
  margin: 0;
}
.case-sheet dl div {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 14px;
  padding-top: 10px;
  border-top: 1px solid rgb(12 13 12 / 35%);
}
.case-sheet dt {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
}
.case-sheet dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
}
.case-sheet__note {
  max-width: 42ch;
  margin: 22px 0 0;
  font-size: 11px;
}
.case-sheet__cta {
  position: absolute;
  right: clamp(28px, 4vw, 58px);
  bottom: clamp(28px, 4vw, 58px);
}
.projects-closing {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  padding-bottom: 0;
  background: var(--paper);
}
.projects-closing .section-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: clamp(40px, 9vw, 140px);
  align-items: center;
}
.projects-closing h2 {
  font-size: clamp(44px, 5.8vw, 92px);
}
.projects-closing h2 .outline {
  display: block;
}
.closing-copy {
  padding: clamp(24px, 3vw, 38px);
  border: 1px solid var(--ink);
  box-shadow: 7px 7px 0 var(--blue);
}
.closing-copy p {
  margin-bottom: 26px;
}
.projects-closing > .site-footer {
  align-self: end;
  width: auto;
  margin-inline: calc(-1 * var(--gutter));
  color: var(--ink);
  background: var(--paper) !important;
  border-top-color: rgb(12 13 12 / 16%);
}
.projects-closing > .site-footer::before {
  display: none;
}
.projects-closing > .site-footer img {
  filter: invert(1) !important;
}
.projects-closing > .site-footer .footer-legal {
  color: #50514f;
}
.projects-closing > .site-footer nav a::before,
.projects-closing > .site-footer nav a::after {
  display: none !important;
  margin: 0 !important;
  content: none !important;
}
body.motion-ready .projects-hero .projects-hero-copy,
body.motion-ready .projects-hero .case-network,
body.motion-ready .cases-showcase .cases-intro,
body.motion-ready .cases-showcase .case-sheet,
body.motion-ready .projects-closing .section-inner {
  opacity: 0.82;
  transform: translateY(28px);
  transition:
    opacity 860ms ease-in-out,
    transform 1340ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
body.motion-ready .screen.is-visible .projects-hero-copy,
body.motion-ready .screen.is-visible .case-network,
body.motion-ready .screen.is-visible .cases-intro,
body.motion-ready .screen.is-visible .case-sheet,
body.motion-ready .screen.is-visible .section-inner {
  opacity: 1;
  transform: none;
}
.graph-ready .network-core {
  animation: core-in 540ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
.graph-ready .network-line {
  stroke-dasharray: 500;
  stroke-dashoffset: 500;
  animation: line-in 780ms cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
.graph-ready .network-line--2 {
  animation-delay: 100ms;
}
.graph-ready .network-line--3 {
  animation-delay: 200ms;
}
.graph-ready .network-line--4 {
  animation-delay: 300ms;
}
.graph-ready .network-line--5 {
  animation-delay: 400ms;
}
.graph-ready .graph-node {
  opacity: 0;
  animation: node-in 420ms cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
.graph-ready .graph-node--1 {
  animation-delay: 500ms;
}
.graph-ready .graph-node--2 {
  animation-delay: 620ms;
}
.graph-ready .graph-node--3 {
  animation-delay: 740ms;
}
.graph-ready .graph-node--4 {
  animation-delay: 860ms;
}
.graph-ready .graph-node--5 {
  animation-delay: 980ms;
}
@keyframes core-in {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.72);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}
@keyframes line-in {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes node-in {
  to {
    opacity: 1;
  }
}
@media (hover: hover) and (pointer: fine) {
  .graph-node:hover {
    border-color: #a6c8ea;
    color: white;
    background: var(--blue);
    box-shadow: 4px 4px 0 rgb(245 242 233 / 72%);
    transform: translate(-2px, -2px);
  }
  .case-index__button:hover {
    padding-left: 10px;
    border-color: var(--blue);
    color: var(--blue);
  }
  .case-sheet:hover .case-sheet__rule {
    width: 76px;
  }
}
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 0.82fr) minmax(390px, 1.18fr);
    gap: 32px;
  }
  .projects-hero h1 {
    font-size: clamp(44px, 6.1vw, 72px);
  }
  .case-network {
    min-height: 440px;
  }
  .cases-layout {
    gap: 42px;
  }
  .case-sheet h3 {
    font-size: clamp(36px, 5vw, 60px);
  }
}
@media (max-width: 700px), (max-width: 1000px) and (max-height: 500px) {
  .projects-page .screen {
    min-height: 100svh;
    min-height: 100dvh;
  }
  .projects-hero {
    padding-top: calc(var(--nav-height) + 12px);
    align-content: start;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .projects-hero-copy {
    text-align: center;
  }
  .projects-hero-copy .eyebrow {
    margin-bottom: 12px;
  }
  .projects-hero h1 {
    max-width: 12ch;
    margin-inline: auto;
    font-size: clamp(38px, 11vw, 50px);
  }
  .projects-lead {
    margin: 16px auto 0;
    padding-top: 14px;
    font-size: 14px;
    line-height: 1.32;
  }
  .projects-lead::before {
    left: 50%;
    transform: translateX(-50%);
  }
  .case-network {
    min-height: 340px;
    margin-inline: calc(-1 * var(--gutter));
  }
  .case-network::before {
    inset: 4% 0 8%;
  }
  .network-label {
    top: 8%;
    left: 7%;
  }
  .network-core {
    width: 82px;
  }
  .network-core strong {
    font-size: 25px;
  }
  .graph-node {
    min-width: 62px;
    padding: 6px 7px;
    grid-template-columns: 15px 1fr;
    gap: 3px;
  }
  .graph-node > span {
    font-size: 7px;
  }
  .graph-node strong {
    font-size: 7px;
  }
  .graph-node--1 {
    top: 17%;
    left: 5%;
  }
  .graph-node--2 {
    top: 17%;
    right: 5%;
  }
  .graph-node--3 {
    top: 51%;
    right: 1%;
  }
  .graph-node--4 {
    bottom: 11%;
    left: 9%;
  }
  .graph-node--5 {
    right: 28%;
    bottom: 7%;
  }
  .network-selection {
    left: 7%;
    bottom: 8%;
  }
  .network-selection strong {
    font-size: 13px;
  }
  .network-selection > span,
  .network-selection a {
    font-size: 8px;
  }
  .cases-showcase {
    padding-block: calc(var(--nav-height) + 14px) max(74px, calc(58px + env(safe-area-inset-bottom)));
    align-content: center;
  }
  .cases-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .cases-intro {
    text-align: center;
  }
  .cases-intro .eyebrow {
    margin-bottom: 10px;
  }
  .cases-intro h2 {
    max-width: 13ch;
    margin-inline: auto;
    font-size: clamp(30px, 9vw, 40px);
  }
  .cases-intro > p:not(.eyebrow) {
    margin: 12px auto 0;
    padding-top: 12px;
    font-size: 13px;
    line-height: 1.3;
  }
  .cases-intro > p:not(.eyebrow)::before {
    left: 50%;
    transform: translateX(-50%);
  }
  .case-index {
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
    margin-top: 16px;
  }
  .case-index__button {
    display: block;
    min-height: 42px;
    padding: 5px 2px;
    font-size: 0;
    text-align: center;
    border: 1px solid #aaa9a3;
  }
  .case-index__button span {
    display: block;
    padding: 0;
    font-size: 9px;
  }
  .case-index__button.is-active,
  .case-index__button:focus-visible {
    padding-left: 2px;
    color: var(--blue);
    border-color: var(--blue);
    background: rgb(46 106 177 / 7%);
  }
  .case-sheet {
    min-height: 0;
    padding: 18px;
    box-shadow: 5px 5px 0 var(--blue);
  }
  .case-sheet__marker {
    font-size: 8px;
  }
  .case-sheet h3 {
    max-width: none;
    margin: 20px 0 12px;
    font-size: clamp(32px, 10vw, 42px);
  }
  .case-sheet__rule {
    margin-bottom: 15px;
  }
  .case-sheet dl {
    gap: 10px;
  }
  .case-sheet dl div {
    grid-template-columns: 58px 1fr;
    gap: 8px;
    padding-top: 7px;
  }
  .case-sheet dt {
    font-size: 8px;
  }
  .case-sheet dd {
    font-size: 11px;
    line-height: 1.25;
  }
  .case-sheet__note {
    margin-top: 12px;
    font-size: 9px;
  }
  .case-sheet__cta {
    position: static;
    min-height: 38px;
    margin-top: 14px;
    padding: 9px 13px;
    font-size: 9px;
  }
  .projects-closing {
    padding-block: calc(var(--nav-height) + 18px) 0;
  }
  .projects-closing .section-inner {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-bottom: 20px;
    text-align: center;
  }
  .projects-closing h2 {
    font-size: clamp(32px, 10vw, 44px);
  }
  .closing-copy {
    padding: 18px;
  }
  .closing-copy p {
    margin-bottom: 16px;
    font-size: 14px;
  }
  .projects-closing > .site-footer {
    margin-inline: 0;
  }
  body.motion-ready .projects-hero .projects-hero-copy,
  body.motion-ready .projects-hero .case-network,
  body.motion-ready .cases-showcase .cases-intro,
  body.motion-ready .cases-showcase .case-sheet,
  body.motion-ready .projects-closing .section-inner {
    transform: none;
    transition: opacity 360ms ease-out;
  }
}
@media (prefers-reduced-motion: reduce) {
  .projects-page *,
  .projects-page *::before,
  .projects-page *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Proporciones de viewport: las composiciones editoriales no crean una parada extra. */
.projects-page .screen {
  height: 100svh;
  height: 100dvh;
  overflow: clip;
}
.projects-hero h1 {
  max-width: 13ch;
  font-size: clamp(48px, 5.2vw, 82px);
}
.cases-intro h2 {
  max-width: 13ch;
  font-size: clamp(38px, 4.5vw, 70px);
}
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.network-selection {
  top: 54%;
  bottom: auto;
}
.graph-node--4 {
  bottom: 10%;
  left: 3%;
}
@media (max-width: 700px), (max-width: 1000px) and (max-height: 500px) {
  .projects-page .screen {
    height: 100svh;
    height: 100dvh;
  }
  .projects-hero h1 {
    max-width: 12ch;
    font-size: clamp(38px, 11vw, 50px);
  }
  .cases-intro h2 {
    max-width: 13ch;
    font-size: clamp(30px, 9vw, 40px);
  }
  .network-selection {
    top: auto;
    bottom: 8%;
  }
  .graph-node--4 {
    bottom: 11%;
    left: 9%;
  }
}

/* Iteracion visual: la red actua como una pieza de interfaz, no como un diagrama. */
.hero-grid {
  grid-template-columns: minmax(0, 0.72fr) minmax(540px, 1.28fr);
  gap: clamp(36px, 5vw, 92px);
}
.projects-hero h1 {
  max-width: 12ch;
  font-size: clamp(46px, 5.05vw, 80px);
}
.projects-hero h1 .outline {
  display: block;
}
.case-network {
  min-height: clamp(500px, 64vh, 690px);
}
.case-network::before {
  inset: 2% 0 5%;
  border-color: rgb(245 242 233 / 8%);
  background:
    radial-gradient(circle at 50% 49%, rgb(46 106 177 / 19%), transparent 33%),
    linear-gradient(rgb(245 242 233 / 3%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(245 242 233 / 3%) 1px, transparent 1px);
  background-size:
    auto,
    34px 34px,
    34px 34px;
}
.case-network::after {
  position: absolute;
  inset: 16% 14% 15%;
  z-index: -1;
  border: 1px solid rgb(126 177 228 / 12%);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgb(46 106 177 / 3%);
  content: '';
  transform: rotate(-18deg);
}
.network-lines {
  inset: 4% 0 7%;
  width: 100%;
  height: 89%;
}
.network-ring {
  stroke: rgb(168 204 239 / 17%);
  stroke-dasharray: 2 7;
}
.network-line {
  stroke: rgb(104 167 227 / 44%);
  stroke-width: 1.15;
  stroke-dasharray: none;
  transition:
    opacity 180ms ease,
    stroke 180ms ease,
    stroke-width 180ms ease;
}
.network-secondary {
  stroke: rgb(245 242 233 / 10%);
  stroke-width: 0.8;
  stroke-dasharray: 2 10;
}
.network-pulse {
  stroke: #79b5ed;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-dasharray: 1 70;
  stroke-dashoffset: 0;
  opacity: 0.72;
  animation: data-pulse 4.8s linear infinite;
}
.network-pulse--2 {
  animation-delay: -1s;
}
.network-pulse--3 {
  animation-delay: -2s;
}
.network-pulse--4 {
  animation-delay: -2.8s;
}
.network-pulse--5 {
  animation-delay: -3.7s;
}
.network-core {
  width: 132px;
  border: 0;
  background: rgb(17 20 26 / 85%);
  box-shadow:
    0 0 0 1px rgb(166 200 234 / 78%),
    0 0 0 11px rgb(46 106 177 / 14%),
    0 0 52px rgb(46 106 177 / 28%);
}
.network-core::before {
  inset: -20px;
  border-color: rgb(166 200 234 / 44%);
  border-style: dashed;
  animation: core-ring 34s linear infinite;
}
.network-core::after {
  position: absolute;
  inset: -35px;
  border: 1px solid rgb(245 242 233 / 10%);
  border-radius: inherit;
  content: '';
}
.network-core img {
  position: relative;
  z-index: 1;
  width: 74%;
  height: 74%;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgb(245 242 233 / 15%));
}
.network-label {
  top: 5%;
  left: 5%;
  color: #b6d0e9;
}
.graph-node {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgb(245 242 233 / 90%);
  box-shadow: none;
  grid-template-columns: 12px auto;
  gap: 6px;
}
.graph-node::before {
  width: 6px;
  height: 6px;
  border: 1px solid #8dbce8;
  border-radius: 50%;
  background: var(--panel);
  box-shadow: 0 0 0 4px rgb(46 106 177 / 10%);
  content: '';
}
.graph-node > span {
  color: #87b7e4;
  font-size: 8px;
}
.graph-node strong {
  font-size: 11px;
  letter-spacing: 0.08em;
}
.graph-node.is-active,
.graph-node:focus-visible {
  border: 0;
  color: white;
  background: transparent;
  box-shadow: none;
  transform: translateY(-2px);
}
.graph-node.is-active::before,
.graph-node:focus-visible::before {
  background: var(--blue);
  box-shadow:
    0 0 0 5px rgb(46 106 177 / 20%),
    0 0 15px rgb(46 106 177 / 50%);
}
.graph-node.is-active > span,
.graph-node:focus-visible > span {
  color: #b8d8f7;
}
.graph-node--1 {
  top: 16%;
  left: 7%;
}
.graph-node--2 {
  top: 14%;
  right: 9%;
}
.graph-node--3 {
  top: 51%;
  right: 2%;
}
.graph-node--4 {
  bottom: 13%;
  left: 13%;
}
.graph-node--5 {
  right: 23%;
  bottom: 10%;
}
.network-selection {
  top: auto;
  bottom: 5%;
  left: 5%;
  min-width: 172px;
  padding: 10px 0 0;
  border-top-color: rgb(166 200 234 / 54%);
  background: transparent;
}
.network-selection::before {
  position: absolute;
  top: -1px;
  left: 0;
  width: 42px;
  height: 1px;
  background: var(--blue);
  content: '';
}
.network-selection strong {
  font-size: 15px;
}
.network-selection a {
  border-bottom-color: var(--blue);
}
.case-network.has-selection .graph-node:not(.is-active) {
  opacity: 0.35;
}
.case-network.has-selection .network-line {
  opacity: 0.18;
}
.case-network.active-project-1 .network-line--1,
.case-network.active-project-2 .network-line--2,
.case-network.active-project-3 .network-line--3,
.case-network.active-project-4 .network-line--4,
.case-network.active-project-5 .network-line--5 {
  opacity: 1;
  stroke: #9acbfa;
  stroke-width: 2;
}
.case-network.active-project-1 .network-pulse--1,
.case-network.active-project-2 .network-pulse--2,
.case-network.active-project-3 .network-pulse--3,
.case-network.active-project-4 .network-pulse--4,
.case-network.active-project-5 .network-pulse--5 {
  stroke-width: 3;
  opacity: 1;
  animation-duration: 1.2s;
}
.cases-layout {
  grid-template-columns: minmax(410px, 0.95fr) minmax(480px, 1.05fr);
  gap: clamp(44px, 7vw, 110px);
}
.cases-intro {
  align-self: center;
}
.cases-intro h2 {
  max-width: 17ch;
  font-size: clamp(38px, 4.35vw, 68px);
}
.cases-intro h2 .outline {
  display: inline;
}
.cases-intro > p:not(.eyebrow) {
  max-width: 45ch;
  margin-top: 20px;
}
.case-index {
  max-width: 430px;
  margin-top: 24px;
}
.case-index__button {
  padding-block: 8px;
  font-size: clamp(13px, 1.05vw, 16px);
}
.case-index__button.is-active,
.case-index__button:focus-visible {
  padding-left: 8px;
}
.case-sheet {
  height: clamp(470px, 57vh, 530px);
  min-height: 0;
  box-sizing: border-box;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  padding: clamp(28px, 3.4vw, 48px);
}
.case-sheet h3 {
  align-self: center;
  margin: 0;
  font-size: clamp(40px, 4.45vw, 68px);
}
.case-sheet__rule {
  margin-bottom: 18px;
}
.case-sheet dl {
  gap: 14px;
}
.case-sheet dl div {
  padding-top: 8px;
}
.case-sheet__note {
  align-self: end;
  margin: 12px 0 0;
}
.case-sheet__cta {
  right: clamp(28px, 3.4vw, 48px);
  bottom: clamp(28px, 3.4vw, 48px);
}
.case-sheet.is-changing > * {
  animation: sheet-change 280ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
.case-sheet.is-changing > :nth-child(2) {
  animation-delay: 35ms;
}
.case-sheet.is-changing > :nth-child(3) {
  animation-delay: 65ms;
}
.case-sheet.is-changing > :nth-child(4) {
  animation-delay: 90ms;
}
.projects-closing {
  color: var(--paper);
  background: #171923;
}
.projects-closing::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, transparent 0 54%, rgb(46 106 177 / 13%) 54% 54.15%, transparent 54.15%),
    radial-gradient(circle at 78% 24%, rgb(46 106 177 / 22%), transparent 26%);
  content: '';
  pointer-events: none;
}
.projects-closing .section-inner {
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
}
.projects-closing h2 {
  max-width: 14ch;
  font-size: clamp(42px, 5.2vw, 78px);
}
.projects-closing h2 .outline {
  display: block;
}
.projects-closing .heading-punctuation {
  color: inherit;
  -webkit-text-stroke-color: currentColor;
}
.closing-copy {
  padding: 0;
  border: 0;
  box-shadow: none;
}
.closing-copy p {
  max-width: 30ch;
  color: rgb(245 242 233 / 88%);
  font-size: clamp(17px, 1.35vw, 21px);
  line-height: 1.42;
}
.closing-copy .button {
  --button-bg: var(--paper);
  --button-shadow: var(--blue);
  color: var(--ink);
  border-color: var(--paper);
}
.projects-closing > .site-footer {
  color: var(--paper);
  background: #171923 !important;
  border-top-color: rgb(245 242 233 / 18%);
}
.projects-closing > .site-footer img {
  filter: none !important;
}
.projects-closing > .site-footer .footer-legal {
  color: rgb(245 242 233 / 62%);
}
.projects-closing > .site-footer a {
  color: inherit;
}
@keyframes data-pulse {
  to {
    stroke-dashoffset: -140;
  }
}
@keyframes core-ring {
  to {
    transform: rotate(360deg);
  }
}
@keyframes sheet-change {
  from {
    opacity: 0.35;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (hover: hover) and (pointer: fine) {
  .graph-node:hover {
    border: 0;
    background: transparent;
    box-shadow: none;
    transform: translateY(-2px);
  }
  .graph-node:hover::before {
    background: var(--blue);
    box-shadow:
      0 0 0 5px rgb(46 106 177 / 20%),
      0 0 15px rgb(46 106 177 / 50%);
  }
}
@media (max-width: 1100px) {
  .hero-grid {
    grid-template-columns: minmax(0, 0.76fr) minmax(450px, 1.24fr);
    gap: 28px;
  }
  .projects-hero h1 {
    font-size: clamp(42px, 5.4vw, 64px);
  }
  .case-network {
    min-height: 500px;
  }
  .cases-layout {
    grid-template-columns: minmax(340px, 0.85fr) minmax(400px, 1.15fr);
    gap: 32px;
  }
  .cases-intro h2 {
    font-size: clamp(36px, 4.6vw, 52px);
  }
  .case-sheet {
    padding: 30px;
  }
  .case-sheet__cta {
    right: 30px;
    bottom: 30px;
  }
}
@media (max-width: 700px), (max-width: 1000px) and (max-height: 500px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .projects-hero h1 {
    max-width: 15ch;
    font-size: clamp(35px, 10.5vw, 48px);
  }
  .projects-hero h1 .outline {
    display: block;
  }
  .case-network {
    min-height: 320px;
  }
  .network-lines {
    inset: 8% 0 10%;
    height: 80%;
  }
  .network-core {
    width: 82px;
  }
  .network-core::before {
    inset: -14px;
  }
  .network-core::after {
    inset: -25px;
  }
  .network-core img {
    width: 70%;
    height: 70%;
  }
  .graph-node--1 {
    top: 18%;
    left: 5%;
  }
  .graph-node--2 {
    top: 17%;
    right: 5%;
  }
  .graph-node--3 {
    top: 51%;
    right: 1%;
  }
  .graph-node--4 {
    bottom: 12%;
    left: 9%;
  }
  .graph-node--5 {
    right: 28%;
    bottom: 8%;
  }
  .network-selection {
    left: 7%;
    bottom: 4%;
  }
  .cases-layout {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .cases-intro h2 {
    max-width: 16ch;
    font-size: clamp(29px, 8.9vw, 38px);
  }
  .cases-intro h2 .outline {
    display: inline;
  }
  .case-index {
    margin-top: 14px;
  }
  .case-sheet {
    height: auto;
    min-height: 0;
    display: block;
  }
  .case-sheet h3 {
    margin: 18px 0 12px;
  }
  .case-sheet__cta {
    position: static;
    margin-top: 14px;
  }
  .projects-closing .section-inner {
    grid-template-columns: 1fr;
  }
  .projects-closing h2 {
    max-width: 14ch;
    margin-inline: auto;
    font-size: clamp(31px, 9.5vw, 42px);
  }
  .projects-closing h2 .outline {
    display: block;
  }
  .closing-copy p {
    margin-inline: auto;
  }
  .projects-closing > .site-footer {
    color: var(--paper);
    background: #171923 !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .network-pulse,
  .network-core::before {
    animation: none !important;
  }
}

/* En pantallas estrechas la red pasa a una composicion contenida: conserva
   el concepto de conexiones sin intentar comprimir la cartografia desktop. */
@media (max-width: 700px) {
  .case-network {
    width: 100%;
    min-height: 300px;
    margin-inline: 0;
  }

  .case-network::before {
    inset: 4% 0 8%;
  }
  .case-network::after {
    inset: 17% 12% 18%;
  }
  .network-lines {
    inset: 9% 4% 14%;
    width: 92%;
    height: 77%;
  }
  .network-label {
    top: 5%;
    left: 0;
  }
  .network-core {
    top: 49%;
    width: 78px;
  }
  .network-core::before {
    inset: -13px;
  }
  .network-core::after {
    inset: -23px;
  }

  .graph-node {
    grid-template-columns: 10px minmax(0, 1fr);
    gap: 4px;
    max-width: 74px;
  }

  .graph-node strong {
    font-size: 8px;
    line-height: 1.05;
    overflow-wrap: anywhere;
  }
  .graph-node > span {
    font-size: 7px;
  }
  .graph-node--1 {
    top: 20%;
    left: 2%;
  }
  .graph-node--2 {
    top: 20%;
    right: 2%;
  }
  .graph-node--3 {
    top: 48%;
    right: 2%;
  }
  .graph-node--4 {
    bottom: 14%;
    left: 2%;
  }
  .graph-node--5 {
    right: 23%;
    bottom: 4%;
  }

  /* El detalle del nodo aparece en los casos al tocarlo; no duplica texto
     sobre la red, que en móvil debe quedar limpia. */
  .network-selection {
    display: none;
  }
}

/* La ficha activa ocupa la esquina libre; así no compite con Pictet ni con
   las etiquetas de la red. */
@media (min-width: 701px) {
  .network-selection {
    right: 0;
    bottom: 0;
    left: auto;
    min-width: 184px;
    padding: 14px 0 18px 16px;
    background: #1d1e27;
    border-left: 1px solid rgb(166 200 234 / 20%);
  }

  .graph-node--4 {
    bottom: 10%;
    left: 7%;
  }
  .graph-node--5 {
    right: 34%;
    bottom: 11%;
  }
}

/* El cierre y su footer comparten literalmente el mismo fondo. */
.projects-closing.screen {
  --projects-closing-background: #1d1e27;

  background: var(--projects-closing-background) !important;
}

.projects-closing > .site-footer {
  background: var(--projects-closing-background) !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Identidad de cada caso: los logos publicados sustituyen las etiquetas
   abstractas y las conexiones terminan en el ancla de cada proyecto. */
.graph-node {
  grid-template-columns: 16px 56px auto;
  align-items: center;
}

.graph-node::before {
  position: absolute;
  top: 50%;
  left: -10px;
  transform: translateY(-50%);
}

.graph-node img {
  display: block;
  width: 50px;
  height: 50px;
  object-fit: contain;
  /* Cada marca conserva su color y proporción originales. */
  filter: none;
  mix-blend-mode: normal;
  opacity: 1;
}

.graph-node.is-active img,
.graph-node:focus-visible img {
  opacity: 1;
}

.graph-node--4 img {
  box-sizing: border-box;
  width: 60px;
  height: auto;
  padding: 5px 8px;
  background: #fff;
}

/* Testimonios publicados, con una lectura editorial en desktop y una ficha
   seleccionable que sigue cabiendo en viewport en movil. */
.testimonials-showcase {
  color: var(--ink);
  background: var(--paper);
}

.testimonials-showcase .section-inner {
  display: grid;
  grid-template-columns: minmax(260px, 0.68fr) minmax(0, 1.32fr);
  gap: clamp(38px, 7vw, 112px);
  align-items: center;
}
.testimonials-heading h2 {
  max-width: 12ch;
  margin-bottom: 22px;
  font-size: clamp(40px, 4.5vw, 70px);
}
.testimonials-heading h2 .outline {
  display: block;
}
.testimonials-heading > p:not(.eyebrow) {
  position: relative;
  max-width: 31ch;
  margin-top: 0;
  padding-top: 17px;
}
.testimonials-heading > p:not(.eyebrow)::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 42px;
  height: 2px;
  background: var(--blue);
  content: '';
}
.testimonial-tabs {
  display: none;
}
.testimonials-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.testimonial-card {
  display: flex;
  min-height: 280px;
  flex-direction: column;
  padding: 22px;
  border-top: 2px solid var(--blue);
  background: #edf0ef;
}
.testimonial-card img {
  width: 76px;
  height: 36px;
  margin-bottom: 22px;
  object-fit: contain;
  object-position: left center;
}
.testimonial-card blockquote {
  margin: 0;
  font-size: clamp(14px, 1.15vw, 17px);
  font-weight: 700;
  line-height: 1.34;
}
.testimonial-card p {
  margin: auto 0 0;
  padding-top: 18px;
  border-top: 1px solid rgb(12 13 12 / 20%);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1.35;
}

@media (max-width: 700px) {
  .graph-node {
    grid-template-columns: 10px 38px minmax(0, 1fr);
  }
  .graph-node img {
    width: 34px;
    height: 34px;
  }
  .graph-node::before {
    left: -7px;
  }

  .testimonials-showcase {
    padding-top: calc(var(--nav-height) + 14px);
  }
  .testimonials-showcase .section-inner {
    grid-template-columns: 1fr;
    gap: 14px;
    text-align: center;
  }
  .testimonials-heading .eyebrow {
    margin-bottom: 10px;
  }
  .testimonials-heading h2 {
    max-width: 15ch;
    margin: 0 auto 12px;
    font-size: clamp(29px, 8.9vw, 38px);
  }
  .testimonials-heading > p:not(.eyebrow) {
    margin-inline: auto;
    padding-top: 12px;
    font-size: 13px;
  }
  .testimonials-heading > p:not(.eyebrow)::before {
    left: 50%;
    transform: translateX(-50%);
  }
  .testimonial-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
  }
  .testimonial-tabs button {
    min-height: 42px;
    padding: 5px 3px;
    border: 1px solid #aaa9a3;
    color: var(--ink);
    background: transparent;
    font:
      800 9px/1.15 Arial,
      Helvetica,
      sans-serif;
  }
  .testimonial-tabs button span {
    display: block;
    margin-top: 3px;
    font-size: 7px;
  }
  .testimonial-tabs button.is-active,
  .testimonial-tabs button:focus-visible {
    border-color: var(--blue);
    color: var(--blue);
    outline: 0;
  }
  .testimonials-list {
    display: block;
  }
  .testimonial-card {
    display: none;
    min-height: 0;
    padding: 18px;
    text-align: left;
  }
  .testimonial-card.is-active {
    display: flex;
  }
  .testimonial-card img {
    width: 70px;
    height: 32px;
    margin-bottom: 14px;
  }
  .testimonial-card blockquote {
    font-size: 14px;
    line-height: 1.32;
  }
  .testimonial-card p {
    margin-top: 15px;
    padding-top: 12px;
    font-size: 8px;
  }
}

/* La alternancia continua tras los testimonios: archivo oscuro y cierre
   claro. Los componentes conservan sus proporciones editoriales. */
.cases-showcase.screen[data-theme='dark'] {
  color: var(--paper);
  background: var(--panel);
}
.cases-showcase[data-theme='dark'] .cases-intro > p:not(.eyebrow),
.cases-showcase[data-theme='dark'] .case-index__button {
  color: var(--paper);
}
.cases-showcase[data-theme='dark'] .cases-intro > p:not(.eyebrow)::before {
  background: var(--paper);
}
.cases-showcase[data-theme='dark'] .case-index__button {
  border-bottom-color: rgb(245 242 233 / 32%);
}
.cases-showcase[data-theme='dark'] .case-index__button.is-active,
.cases-showcase[data-theme='dark'] .case-index__button:focus-visible {
  border-color: #8dbce8;
  color: #a9cef2;
}
.cases-showcase[data-theme='dark'] .case-sheet {
  color: var(--ink);
  background: #eef1f2;
}

.projects-closing.screen[data-theme='light'] {
  --projects-closing-background: var(--paper);

  color: var(--ink);
  background: var(--projects-closing-background) !important;
}
.projects-closing[data-theme='light']::before {
  background:
    linear-gradient(135deg, transparent 0 54%, rgb(46 106 177 / 11%) 54% 54.15%, transparent 54.15%),
    radial-gradient(circle at 78% 24%, rgb(46 106 177 / 11%), transparent 26%);
}
.projects-closing[data-theme='light'] .heading-punctuation {
  color: var(--ink);
  -webkit-text-stroke-color: var(--ink);
}
.projects-closing[data-theme='light'] .closing-copy p {
  color: var(--ink);
}
.projects-closing[data-theme='light'] .closing-copy .button {
  --button-bg: var(--ink);
  --button-shadow: var(--blue);
  color: var(--paper);
  border-color: var(--ink);
}
.projects-closing[data-theme='light'] > .site-footer {
  color: var(--ink);
  border-top-color: rgb(12 13 12 / 16%);
}
.projects-closing[data-theme='light'] > .site-footer img {
  filter: invert(1) !important;
}
.projects-closing[data-theme='light'] > .site-footer .footer-legal {
  color: #50514f;
}

@media (max-width: 700px) {
  .graph-node--4 img {
    width: 42px;
    height: auto;
    padding: 4px 6px;
  }
}

@media (max-width: 700px) {
  .case-network {
    min-height: 340px;
  }
  .graph-node {
    grid-template-columns: 10px 34px minmax(0, 1fr);
    max-width: 110px;
  }
  .graph-node img {
    width: 34px;
    height: 34px;
  }
  .graph-node strong {
    font-size: 9px;
    line-height: 1.12;
    overflow-wrap: normal;
  }
  .graph-node > span {
    font-size: 7px;
  }
  .graph-node--1,
  .graph-node--4 {
    left: 1%;
  }
  .graph-node--2,
  .graph-node--3 {
    right: 1%;
  }
  .graph-node--5 {
    right: 2%;
  }
  .projects-closing .keep-punctuation {
    white-space: normal;
  }
}

/* En móvil, las composiciones editoriales pueden extenderse sin clip: cada
   tramo conserva su snap, pero ningún grafo, ficha o CTA queda oculto. */
@media (max-width: 700px), (max-width: 1000px) and (max-height: 500px) {
  :root {
    --projects-floating-clearance: max(96px, calc(76px + env(safe-area-inset-bottom)));
  }
  .projects-page .screen {
    height: auto;
    min-height: 100svh;
    overflow-x: clip;
    overflow-y: visible;
    padding-bottom: var(--projects-floating-clearance);
    scroll-snap-stop: normal;
  }
  .projects-page .screen > .section-inner {
    max-height: none;
  }
  .projects-hero,
  .cases-showcase,
  .testimonials-showcase {
    text-align: center;
  }
  .projects-hero .button,
  .cases-showcase .button,
  .projects-closing .button {
    margin-inline: auto;
  }
  .projects-closing {
    display: block;
    min-height: 100svh;
  }
  .projects-closing > .section-inner {
    padding-bottom: 30px;
  }
  .projects-closing > .site-footer {
    margin-inline: 0;
    padding: 24px var(--gutter) var(--projects-floating-clearance);
  }
  .site-nav .nav-links {
    pointer-events: none;
  }
  .site-nav.is-open .nav-links {
    pointer-events: auto;
  }
}

@media (min-width: 701px) and (max-width: 1199px) {
  :root {
    --projects-tablet-clearance: max(92px, calc(72px + env(safe-area-inset-bottom)));
  }
  .projects-page .screen {
    height: auto;
    min-height: 100svh;
    min-height: 100dvh;
    overflow-x: clip;
    overflow-y: visible;
    padding-bottom: var(--projects-tablet-clearance);
  }
  .hero-grid,
  .cases-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .projects-hero-copy,
  .cases-intro {
    max-width: 680px;
    margin-inline: auto;
    text-align: center;
  }
  .projects-lead,
  .cases-intro > p:not(.eyebrow) {
    margin-inline: auto;
  }
  .projects-lead::before,
  .cases-intro > p:not(.eyebrow)::before {
    left: 50%;
    transform: translateX(-50%);
  }
  .case-network {
    min-height: clamp(420px, 52dvh, 560px);
  }
  .projects-closing {
    height: auto;
    min-height: 100svh;
    min-height: 100dvh;
  }
  .projects-closing > .site-footer {
    padding-bottom: var(--projects-tablet-clearance);
  }
}

@media (min-width: 701px) and (max-width: 900px) {
  .testimonials-showcase .section-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }
  .testimonials-heading > p:not(.eyebrow) {
    margin-inline: auto;
  }
  .testimonials-heading > p:not(.eyebrow)::before {
    left: 50%;
    transform: translateX(-50%);
  }
  .testimonial-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .testimonial-tabs button {
    min-height: 46px;
    padding: 6px;
    border: 1px solid #aaa9a3;
    color: var(--ink);
    background: transparent;
    font:
      800 11px/1.15 Arial,
      Helvetica,
      sans-serif;
  }
  .testimonial-tabs button span {
    display: block;
    margin-top: 4px;
    font-size: 9px;
  }
  .testimonial-tabs button.is-active,
  .testimonial-tabs button:focus-visible {
    border-color: var(--blue);
    color: var(--blue);
    outline: 0;
  }
  .testimonials-list {
    display: block;
  }
  .testimonial-card {
    display: none;
    min-height: 0;
    padding: 28px;
    text-align: left;
  }
  .testimonial-card.is-active {
    display: flex;
  }
}

/* En tablet vertical la red y las fichas usan el alto de forma contenida: no
   dejan una zona vacía entre bloques ni fuerzan texto bajo WhatsApp. */
@media (min-width: 701px) and (max-width: 1199px) and (orientation: portrait) {
  .projects-page .screen {
    padding-top: calc(var(--nav-height) + clamp(18px, 2.2dvh, 26px));
  }
  .hero-grid,
  .cases-layout {
    gap: clamp(22px, 3dvh, 32px);
  }
  .projects-hero-copy h1,
  .cases-intro h2,
  .projects-closing h2 {
    font-size: clamp(38px, min(6vw, 5.4dvh), 52px);
    line-height: 0.96;
  }
  .projects-lead,
  .cases-intro > p:not(.eyebrow),
  .closing-copy p {
    font-size: clamp(14px, 1.9vw, 16px);
    line-height: 1.4;
  }
  .case-network {
    min-height: clamp(370px, 46dvh, 470px);
  }
  .testimonials-showcase .section-inner {
    gap: clamp(26px, 3.6dvh, 38px);
  }
  .testimonials-heading h2 {
    font-size: clamp(38px, min(5.6vw, 5dvh), 48px);
  }
  .testimonial-card {
    min-height: clamp(225px, 27dvh, 270px);
  }
}

@media (min-width: 901px) and (max-width: 1199px) and (orientation: portrait) {
  .projects-hero-copy h1,
  .cases-intro h2,
  .projects-closing h2 {
    font-size: clamp(52px, 5.5vw, 64px);
  }
  .testimonials-heading h2 {
    font-size: clamp(48px, 5vw, 58px);
  }
  .projects-lead,
  .cases-intro > p:not(.eyebrow),
  .closing-copy p,
  .testimonials-heading > p:not(.eyebrow) {
    font-size: 18px;
    line-height: 1.45;
  }
  .testimonial-card blockquote {
    font-size: 17px;
    line-height: 1.45;
  }
  .case-index__button {
    font-size: 18px;
  }
  .case-sheet h3 {
    font-size: clamp(48px, 5vw, 60px);
  }
  .case-sheet dd {
    font-size: 16px;
  }
}

@media (max-width: 700px) {
  .projects-page .screen,
  .projects-page .projects-closing {
    min-height: 0;
    height: auto;
    scroll-snap-align: none;
  }
  .projects-page .screen {
    padding-block: calc(var(--nav-height) + 40px) 64px;
  }
  .projects-page .projects-closing {
    padding-bottom: 0;
  }
}

@media (max-width: 700px) {
  .projects-page .screen {
    min-height: 100svh;
    min-height: 100dvh;
  }

  /* The testimonial is a focused single-card interaction on mobile, not a
     forced viewport panel. Keep the transition to the cases archive tight. */
  .projects-page .testimonials-showcase {
    min-height: 0;
    padding-bottom: 56px;
  }

  /* The case archive begins with its own heading; reserving a viewport above
     it leaves an unexplained dark gap on phones. */
  .projects-page .cases-showcase {
    min-height: 0;
  }
}

body .whatsapp {
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: none !important;
}

@media (max-width: 700px) and (prefers-reduced-motion: no-preference) {
  @keyframes projects-mobile-in {
    from {
      opacity: 0;
      transform: translateY(22px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
  body.motion-ready
    .screen.is-visible
    :is(
      .projects-hero-copy,
      .case-network,
      .cases-intro,
      .case-sheet,
      .testimonials-heading,
      .testimonial-card,
      .projects-closing .section-inner
    ) {
    animation: projects-mobile-in 560ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
  }
  body.motion-ready .screen.is-visible .case-index__button:nth-child(2) {
    animation-delay: 90ms;
  }
}
/* El tramo destacado conserva el signo final unido a su última palabra. */
.projects-hero .title-highlight,
.testimonials-heading .title-highlight,
.projects-closing .title-highlight {
  display: block !important;
}
.projects-hero .title-highlight .outline,
.testimonials-heading .title-highlight .outline,
.projects-closing .title-highlight .outline {
  display: inline !important;
}
.projects-hero .title-highlight .heading-punctuation,
.testimonials-heading .title-highlight .heading-punctuation,
.projects-closing .title-highlight .heading-punctuation {
  display: inline-block !important;
  white-space: nowrap;
}
.projects-hero .title-ending,
.testimonials-heading .title-ending,
.projects-closing .title-ending {
  display: inline-block !important;
  white-space: nowrap;
}
.projects-hero .title-ending .outline,
.testimonials-heading .title-ending .outline,
.projects-closing .title-ending .outline {
  display: inline !important;
}

/* El último tramo absorbe el aire antes del pie: el footer siempre cierra el viewport. */
@media (max-width: 1199px) {
  .projects-page .projects-closing {
    display: flex;
    flex-direction: column;
    min-height: 100svh;
    min-height: 100dvh;
  }
  .projects-closing > .section-inner {
    flex: 1 0 auto;
    align-content: start;
  }
  .projects-closing > .site-footer {
    margin-top: auto;
  }
}

/* Ajustes localizados de contraste verificados con Axe. */
.testimonials-heading .eyebrow {
  color: var(--ink);
}
.cases-showcase[data-theme='dark'] .case-index__button > span,
.cases-showcase[data-theme='dark'] .case-index__button.is-active > span,
.cases-showcase[data-theme='dark'] .case-index__button:focus-visible > span {
  color: #a9cef2;
}

.projects-hero .graph-node--5 strong {
  color: #f5f2e9;
}

.case-network.has-selection .graph-node:not(.is-active) {
  opacity: 0.55;
}
