/* Urbansur only. React Bits SplitText / ScrollFloat / TiltedCard effect adapters.
 * David Haz, MIT + Commons Clause. License: proyectos-reactbits-LICENSE.md. */
.clientCase:has(.weighingCoverLink[href="/contacto/?proyecto=urbansur"]) {
  --urbansur-bits-v2: 1;
}
.clientCase:has(.weighingCoverLink[href="/contacto/?proyecto=urbansur"]) .urb-rb-word {
  display: inline-block;
  transform-origin: 50% 100%;
}
.clientCase:has(.weighingCoverLink[href="/contacto/?proyecto=urbansur"]) :is(.weighingCoverLine > span,.weighingCoverPhoto,.weighingCoverNeutral,.weighingCoverBar,.weighingCoverClient,.weighingCoverFooter) {
  animation: none !important;
}
.clientCase:has(.weighingCoverLink[href="/contacto/?proyecto=urbansur"]) .weighingCoverLine:last-child > span {
  color: var(--brand-blue);
}
.clientCase:has(.weighingCoverLink[href="/contacto/?proyecto=urbansur"]) .caseFeatureFrame {
  outline: 1px solid rgba(59,182,193,.3);
  outline-offset: -1px;
  box-shadow: 0 24px 55px rgba(0,0,0,.21);
  transform-origin: 50% 50%;
}
.clientCase[data-urbansur-bits="ready"] .caseFeatureStage[data-feature-revealed="true"] .caseFeatureFrame {
  animation: none;
}
.clientCase[data-urbansur-bits] .caseProjectOverview h2 {
  perspective: 800px;
}
.clientCase:has(.weighingCoverLink[href="/contacto/?proyecto=urbansur"]) .contact-spotlight.caseResultCard {
  border-color: rgba(59,182,193,.32);
  background: linear-gradient(155deg,rgba(59,182,193,.105),rgba(255,255,255,.012) 72%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}
.clientCase:has(.weighingCoverLink[href="/contacto/?proyecto=urbansur"]) .caseProjectPanel {
  background: linear-gradient(145deg,rgba(59,182,193,.055),transparent 72%),#282629;
  border-color: rgba(59,182,193,.25);
}
.clientCase:has(.weighingCoverLink[href="/contacto/?proyecto=urbansur"]) .caseProjectPanel.caseProjectResponse {
  background: linear-gradient(145deg,rgba(59,182,193,.07),transparent 72%),#e9e9e7;
  color: #262226;
}
/* Stable reading layout: cards follow the document flow, without entrance jumps. */
.clientCase:has(.weighingCoverLink[href="/contacto/?proyecto=urbansur"]) .caseNarrativeKeyword {
  height: 1.25em;
  min-height: 1.25em;
  white-space: nowrap;
  overflow: hidden;
}
.clientCase:has(.weighingCoverLink[href="/contacto/?proyecto=urbansur"]) .caseNarrativeCard {
  transform: none !important;
  opacity: 1 !important;
}
.clientCase:has(.weighingCoverLink[href="/contacto/?proyecto=urbansur"]) .caseNarrativeSurface {
  transform: none !important;
  transition: border-color 220ms ease, box-shadow 280ms ease;
}
.clientCase:has(.weighingCoverLink[href="/contacto/?proyecto=urbansur"]) .caseNarrativeCard[data-active="true"] .caseNarrativeSurface {
  border-color: rgba(59,182,193,.6);
  box-shadow: 0 0 0 1px rgba(59,182,193,.10);
}
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
  .clientCase[data-urbansur-bits] .caseFeatureFrame::before,
  .clientCase[data-urbansur-bits] .caseFeatureFrame:hover::before {
    content: '';
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
    pointer-events: none;
    background: radial-gradient(farthest-corner circle at var(--urb-glare-x,50%) var(--urb-glare-y,50%),
      rgba(255,255,255,.17),rgba(255,255,255,.035) 32%,transparent 62%);
    transform: none;
    opacity: 0;
    transition: opacity 220ms ease;
  }
  .clientCase[data-urbansur-bits] .caseFeatureFrame[data-urb-tilted]::before {
    opacity: 1;
  }
  .clientCase:has(.weighingCoverLink[href="/contacto/?proyecto=urbansur"]) .contact-spotlight.caseResultCard:hover {
    border-color: rgba(59,182,193,.7);
    box-shadow: 0 16px 40px rgba(0,0,0,.22),inset 0 1px 0 rgba(59,182,193,.1);
  }
}
@media (pointer:coarse), (hover:none), (prefers-reduced-motion:reduce) {
  .clientCase[data-urbansur-bits] .caseFeatureFrame { transform: none !important; }
  .clientCase[data-urbansur-bits] .caseFeatureFrame::before { display: none !important; }
}
