
/*
 * Urbansur / Camara only. Existing React Bits AnimatedContent and SpotlightCard
 * integrations are retained. GlareHover's light-band treatment is adapted to
 * the existing figure pseudo-element, preserving the project template markup.
 * React Bits by David Haz: https://reactbits.dev
 * Upstream: https://github.com/DavidHDev/react-bits
 * License: proyectos-reactbits-LICENSE.md (MIT + Commons Clause).
 */
:where(.clientCase:has(.weighingCoverLink[href="/contacto/?proyecto=urbansur"]),.clientCase:has(a[href="https://www.camara.es/innovacion-y-competitividad/pyme-cibersegura"])).clientCase.caseFeature {
  --rb-client-polish: 1;
  --rb-case-glow: .09;
  --rb-case-glare: .10;
}

.clientCase:has(a[href="https://www.camara.es/innovacion-y-competitividad/pyme-cibersegura"]) { --rb-case-glow: .15; --rb-case-glare: .16; }

/* SpotlightCard: reuse its existing pointer tracking; no new event handlers. */
:where(.clientCase:has(.weighingCoverLink[href="/contacto/?proyecto=urbansur"]),.clientCase:has(a[href="https://www.camara.es/innovacion-y-competitividad/pyme-cibersegura"])).clientCase.caseFeature .contact-spotlight.caseResultCard {
  isolation: isolate;
  border-color: rgba(59,182,193,.24);
  background: linear-gradient(145deg, rgba(59,182,193,.055), rgba(255,255,255,.012));
  transition: transform 240ms var(--ease-out,cubic-bezier(.23,1,.32,1)),
    border-color 180ms ease, box-shadow 240ms ease;
}

.clientCase:has(a[href="https://www.camara.es/innovacion-y-competitividad/pyme-cibersegura"]) .contact-spotlight.caseResultCard {
  background: linear-gradient(145deg, rgba(59,182,193,.09), rgba(255,255,255,.015));
}

:where(.clientCase:has(.weighingCoverLink[href="/contacto/?proyecto=urbansur"]),.clientCase:has(a[href="https://www.camara.es/innovacion-y-competitividad/pyme-cibersegura"])).clientCase.caseFeature .contact-spotlight.caseResultCard::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(340px circle at var(--mouse-x,50%) var(--mouse-y,50%),
    rgba(59,182,193,var(--rb-case-glow)), transparent 72%);
  opacity: 0;
  transition: opacity 180ms ease;
}

:where(.clientCase:has(.weighingCoverLink[href="/contacto/?proyecto=urbansur"]),.clientCase:has(a[href="https://www.camara.es/innovacion-y-competitividad/pyme-cibersegura"])).clientCase.caseFeature .caseResultPlatform {
  color: var(--brand-blue);
  letter-spacing: .025em;
}

:where(.clientCase:has(.weighingCoverLink[href="/contacto/?proyecto=urbansur"]),.clientCase:has(a[href="https://www.camara.es/innovacion-y-competitividad/pyme-cibersegura"])).clientCase.caseFeature .caseProjectPanel {
  border-color: rgba(59,182,193,.22);
  background-image: linear-gradient(145deg, rgba(59,182,193,.035), transparent 62%);
}

/* The photo stays sharp. Chapter changes use opacity, without the old zoom. */
:where(.clientCase:has(.weighingCoverLink[href="/contacto/?proyecto=urbansur"]),.clientCase:has(a[href="https://www.camara.es/innovacion-y-competitividad/pyme-cibersegura"])).clientCase.caseFeature .caseFeatureFrame img[data-visible] {
  animation: none;
  transform: none;
  transition: opacity 480ms var(--ease-in-out,cubic-bezier(.77,0,.175,1));
}

:where(.clientCase:has(.weighingCoverLink[href="/contacto/?proyecto=urbansur"]),.clientCase:has(a[href="https://www.camara.es/innovacion-y-competitividad/pyme-cibersegura"])).clientCase.caseFeature .caseFeatureChaptersNav button {
  transition: color 160ms ease, background-color 160ms ease;
}

:where(.clientCase:has(.weighingCoverLink[href="/contacto/?proyecto=urbansur"]),.clientCase:has(a[href="https://www.camara.es/innovacion-y-competitividad/pyme-cibersegura"])).clientCase.caseFeature .caseFeatureChaptersNav button[aria-pressed="true"] {
  background-color: rgba(59,182,193,.06);
}

:where(.clientCase:has(.weighingCoverLink[href="/contacto/?proyecto=urbansur"]),.clientCase:has(a[href="https://www.camara.es/innovacion-y-competitividad/pyme-cibersegura"])).clientCase.caseFeature :is(.caseFeatureChaptersNav button,.weighingCoverLink,.weighingCoverSecondary):focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: no-preference) {
  /* AnimatedContent's restrained translate/opacity vocabulary, in hero order. */
  :where(.clientCase:has(.weighingCoverLink[href="/contacto/?proyecto=urbansur"]),.clientCase:has(a[href="https://www.camara.es/innovacion-y-competitividad/pyme-cibersegura"])).clientCase.caseFeature :is(.weighingCoverPhoto,.weighingCoverNeutral) {
    animation: win-rb-case-photo 1100ms var(--ease-out,cubic-bezier(.23,1,.32,1)) backwards;
  }

  :where(.clientCase:has(.weighingCoverLink[href="/contacto/?proyecto=urbansur"]),.clientCase:has(a[href="https://www.camara.es/innovacion-y-competitividad/pyme-cibersegura"])).clientCase.caseFeature .weighingCoverLine > span {
    animation: win-rb-case-title 700ms var(--ease-out,cubic-bezier(.23,1,.32,1)) backwards;
  }
  :where(.clientCase:has(.weighingCoverLink[href="/contacto/?proyecto=urbansur"]),.clientCase:has(a[href="https://www.camara.es/innovacion-y-competitividad/pyme-cibersegura"])).clientCase.caseFeature .weighingCoverLine:nth-child(2) > span { animation-delay: 80ms; }
  :where(.clientCase:has(.weighingCoverLink[href="/contacto/?proyecto=urbansur"]),.clientCase:has(a[href="https://www.camara.es/innovacion-y-competitividad/pyme-cibersegura"])).clientCase.caseFeature .weighingCoverLine:nth-child(3) > span { animation-delay: 160ms; }

  :where(.clientCase:has(.weighingCoverLink[href="/contacto/?proyecto=urbansur"]),.clientCase:has(a[href="https://www.camara.es/innovacion-y-competitividad/pyme-cibersegura"])).clientCase.caseFeature :is(.weighingCoverBar,.weighingCoverClient) {
    animation: win-rb-case-arrive 500ms var(--ease-out,cubic-bezier(.23,1,.32,1)) backwards;
  }

  :where(.clientCase:has(.weighingCoverLink[href="/contacto/?proyecto=urbansur"]),.clientCase:has(a[href="https://www.camara.es/innovacion-y-competitividad/pyme-cibersegura"])).clientCase.caseFeature .weighingCoverFooter {
    animation: win-rb-case-arrive 520ms 200ms var(--ease-out,cubic-bezier(.23,1,.32,1)) backwards;
  }

  :where(.clientCase:has(.weighingCoverLink[href="/contacto/?proyecto=urbansur"]),.clientCase:has(a[href="https://www.camara.es/innovacion-y-competitividad/pyme-cibersegura"])).clientCase.caseFeature .caseFeatureSectionHead[data-feature-revealed="true"] { animation: none; }
  :where(.clientCase:has(.weighingCoverLink[href="/contacto/?proyecto=urbansur"]),.clientCase:has(a[href="https://www.camara.es/innovacion-y-competitividad/pyme-cibersegura"])).clientCase.caseFeature .caseFeatureSectionHead[data-feature-revealed="true"] h2 {
    animation: win-rb-case-arrive 620ms var(--ease-out,cubic-bezier(.23,1,.32,1)) backwards;
  }
  :where(.clientCase:has(.weighingCoverLink[href="/contacto/?proyecto=urbansur"]),.clientCase:has(a[href="https://www.camara.es/innovacion-y-competitividad/pyme-cibersegura"])).clientCase.caseFeature .caseFeatureSectionHead[data-feature-revealed="true"] > p {
    animation: win-rb-case-arrive 620ms 80ms var(--ease-out,cubic-bezier(.23,1,.32,1)) backwards;
  }
  :where(.clientCase:has(.weighingCoverLink[href="/contacto/?proyecto=urbansur"]),.clientCase:has(a[href="https://www.camara.es/innovacion-y-competitividad/pyme-cibersegura"])).clientCase.caseFeature .caseFeatureStage[data-feature-revealed="true"] .caseFeatureFrame {
    animation: win-rb-case-arrive 700ms var(--ease-out,cubic-bezier(.23,1,.32,1)) backwards;
  }

  :where(.clientCase:has(.weighingCoverLink[href="/contacto/?proyecto=urbansur"]),.clientCase:has(a[href="https://www.camara.es/innovacion-y-competitividad/pyme-cibersegura"])).clientCase.caseFeature .caseFeatureFrame figcaption {
    animation: win-rb-case-caption 280ms var(--ease-out,cubic-bezier(.23,1,.32,1)) backwards;
  }

  :where(.clientCase:has(.weighingCoverLink[href="/contacto/?proyecto=urbansur"]),.clientCase:has(a[href="https://www.camara.es/innovacion-y-competitividad/pyme-cibersegura"])).clientCase.caseFeature .caseFeatureChapters li[data-current="true"] .caseFeatureChapterLabel {
    animation: win-rb-case-arrive 400ms var(--ease-out,cubic-bezier(.23,1,.32,1)) backwards;
  }
}

@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
  :where(.clientCase:has(.weighingCoverLink[href="/contacto/?proyecto=urbansur"]),.clientCase:has(a[href="https://www.camara.es/innovacion-y-competitividad/pyme-cibersegura"])).clientCase.caseFeature .contact-spotlight.caseResultCard:hover {
    transform: translateY(-3px);
    border-color: rgba(59,182,193,.55);
    box-shadow: 0 12px 30px rgba(0,0,0,.14);
  }
  :where(.clientCase:has(.weighingCoverLink[href="/contacto/?proyecto=urbansur"]),.clientCase:has(a[href="https://www.camara.es/innovacion-y-competitividad/pyme-cibersegura"])).clientCase.caseFeature .contact-spotlight.caseResultCard:hover::before { opacity: 1; }

  /* GlareHover light band: a CSS-only hover adaptation, no extra layout box. */
  :where(.clientCase:has(.weighingCoverLink[href="/contacto/?proyecto=urbansur"]),.clientCase:has(a[href="https://www.camara.es/innovacion-y-competitividad/pyme-cibersegura"])).clientCase.caseFeature .caseFeatureFrame::before {
    content: '';
    position: absolute;
    top: -35%;
    left: 0;
    width: 35%;
    height: 170%;
    z-index: 4;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.08) 30%,
      rgba(255,255,255,var(--rb-case-glare)) 50%, rgba(255,255,255,.08) 70%, transparent);
    opacity: 0;
    transform: translateX(-180%) rotate(-25deg);
    transition: transform 780ms var(--ease-in-out,cubic-bezier(.77,0,.175,1)), opacity 180ms ease;
  }
  :where(.clientCase:has(.weighingCoverLink[href="/contacto/?proyecto=urbansur"]),.clientCase:has(a[href="https://www.camara.es/innovacion-y-competitividad/pyme-cibersegura"])).clientCase.caseFeature .caseFeatureFrame:hover::before {
    opacity: 1;
    transform: translateX(460%) rotate(-25deg);
  }
}

@media (prefers-reduced-motion:reduce) {
  :where(.clientCase:has(.weighingCoverLink[href="/contacto/?proyecto=urbansur"]),.clientCase:has(a[href="https://www.camara.es/innovacion-y-competitividad/pyme-cibersegura"])).clientCase.caseFeature :is(.weighingCoverPhoto,.weighingCoverNeutral,.weighingCoverLine > span,.weighingCoverBar,
    .weighingCoverClient,.weighingCoverFooter,.caseFeatureSectionHead,
    .caseFeatureSectionHead h2,.caseFeatureSectionHead > p,.caseFeatureFrame,
    .caseFeatureFrame img,.caseFeatureFrame figcaption,.caseFeatureChapterLabel) {
    animation: none !important;
    transform: none !important;
  }
  :where(.clientCase:has(.weighingCoverLink[href="/contacto/?proyecto=urbansur"]),.clientCase:has(a[href="https://www.camara.es/innovacion-y-competitividad/pyme-cibersegura"])).clientCase.caseFeature .caseFeatureFrame img { transition: opacity 120ms ease; }
  :where(.clientCase:has(.weighingCoverLink[href="/contacto/?proyecto=urbansur"]),.clientCase:has(a[href="https://www.camara.es/innovacion-y-competitividad/pyme-cibersegura"])).clientCase.caseFeature .contact-spotlight.caseResultCard { transition: border-color 120ms ease; }
  :where(.clientCase:has(.weighingCoverLink[href="/contacto/?proyecto=urbansur"]),.clientCase:has(a[href="https://www.camara.es/innovacion-y-competitividad/pyme-cibersegura"])).clientCase.caseFeature .contact-spotlight.caseResultCard::before { opacity: 0; transition: none; }
}

@keyframes win-rb-case-title {
  from { opacity: 0; transform: translateY(70%); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes win-rb-case-arrive {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes win-rb-case-caption {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes win-rb-case-photo {
  from { transform: scale(1.035); }
  to { transform: scale(1); }
}
