html {
    min-height: 100%;
    background-color: #ffffff;
    color-scheme: light;
    --site-scrollbar-thumb: #cbd5e1;
    --site-scrollbar-thumb-hover: #94a3b8;
    --site-scrollbar-track: rgba(15, 23, 42, 0.08);
    --site-scrollbar-border: rgba(100, 116, 139, 0.45);
    scrollbar-color: var(--site-scrollbar-thumb) var(--site-scrollbar-track);
    scrollbar-width: thin;
}
html.dark {
    background-color: #000000;
    background-image: linear-gradient(to bottom, #000000, #000f23);
    color-scheme: dark;
    --site-scrollbar-thumb: #111827;
    --site-scrollbar-thumb-hover: #1f2937;
    --site-scrollbar-track: rgba(255, 255, 255, 0.18);
    --site-scrollbar-border: rgba(255, 255, 255, 0.32);
}
* {
    scrollbar-color: var(--site-scrollbar-thumb) var(--site-scrollbar-track);
    scrollbar-width: thin;
}
*::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}
*::-webkit-scrollbar-track {
    background: var(--site-scrollbar-track);
}
*::-webkit-scrollbar-thumb {
    background-color: var(--site-scrollbar-thumb);
    border: 1px solid var(--site-scrollbar-border);
    border-radius: 999px;
}
*::-webkit-scrollbar-thumb:hover {
    background-color: var(--site-scrollbar-thumb-hover);
}
*::-webkit-scrollbar-corner {
    background: transparent;
}
body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    min-height: 100dvh;
    background-color: #ffffff;
}
.dark body {
    background-color: transparent;
}
::selection {
    background-color: #000000;
    color: #ffffff;
}
::-moz-selection {
    background-color: #000000;
    color: #ffffff;
}
.glassmorphism {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(209, 213, 219, 0.3);
}

.site-header {
    background-color: rgba(255, 255, 255, 0.88);
    background-image: linear-gradient(
        180deg,
        #ffffff 0%,
        #ffffff calc(env(safe-area-inset-top, 0px) + 1px),
        rgba(255, 255, 255, 0.72) 100%
    );
}

.dark .glassmorphism {
    background: #2531412e;
    backdrop-filter: blur(2px) saturate(180%);
    -webkit-backdrop-filter: blur(2px) saturate(180%);
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(55, 65, 81, 0.3);
}

:root {
    --jusneural-green-rgb: 76, 181, 139;
    --card-bg-light-rgb: 249, 250, 251; 
    --card-bg-dark-rgb: 20, 28, 46;
}

.innovative-card {
    background-color: rgb(var(--card-bg-light-rgb));
    padding: 2rem;
    border-radius: 0.75rem;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.35s ease-in-out;
    border: 2px solid transparent;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12), 0 3px 10px rgba(0,0,0,0.06); 
}

.dark .innovative-card {
    background-color: rgb(var(--card-bg-dark-rgb)); 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 5px 15px rgba(0,0,0,0.2); 
}

.innovative-card:hover {
    transform: translateY(-10px) scale(1.03);
    border-color: rgba(var(--jusneural-green-rgb), 0.4);
    box-shadow: 0 20px 40px -10px rgba(var(--jusneural-green-rgb), 0.25),
                0 0 0 4px rgba(var(--jusneural-green-rgb), 0.1);
}

.dark .innovative-card:hover {
    border-color: rgba(var(--jusneural-green-rgb), 0.6);
    box-shadow: 0 20px 40px -10px rgba(var(--jusneural-green-rgb), 0.35),
                0 0 0 4px rgba(var(--jusneural-green-rgb), 0.15);
}

.innovative-card > * {
    position: relative;
    z-index: 1;
}

.logo-slider {
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.logo-track {
    animation: scrollLogos 30s linear infinite;
}
.logo-slide img {
    filter: grayscale(100%);
    transition: filter 0.3s ease-in-out, transform 0.3s ease-in-out;
    background-color: transparent;
}
.logo-slide img:hover {
    filter: grayscale(0%);
    transform: scale(1.05);
}
.logo-slider:hover .logo-track {
    animation-play-state: paused;
}

@keyframes scrollLogos {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

html:not(.dark) .logo-slide img[src="disco2jusneural/img/logo-caasc.svg"] {
    filter: grayscale(100%) invert(1);
}
html:not(.dark) .logo-slide img[src="disco2jusneural/img/logo-caasc.svg"]:hover {
    filter: grayscale(0%) invert(1);
}

.image-effect {
    transition: transform 0.2s ease-out;
}

.new-footer-style {
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    background: rgba(255, 255, 255, 0.75) radial-gradient(circle, rgba(var(--jusneural-green-rgb), 0.25) 0%, rgba(var(--jusneural-green-rgb), 0) 70%);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 17px;
    color: #374151;
    position: relative;
    z-index: 10;
    width: calc(100% - 3rem);
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding: 2rem 1.5rem;
}

.footer-nav-links .footer-link {
    color: #3FA178;
    transition: color 0.3s ease;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    position: relative;
    text-decoration: none;
}

.footer-nav-links .footer-link:hover {
    color: #347E60;
}

.dark .footer-nav-links .footer-link {
    color: white;
}

.dark .footer-nav-links .footer-link:hover {
    color: #E5E7EB;
}

.footer-nav-links .footer-link::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1.5px;
    background-color: rgb(var(--jusneural-green-rgb));
    transition: width 0.3s ease-out;
}

.footer-nav-links .footer-link:hover::after {
    width: 100%;
}

.footer-social-icons .social-icon img {
    display: block;
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: grayscale(100%);
    transition: transform 0.3s ease, opacity 0.3s ease, filter 0.3s ease;
    opacity: 0.75;
}

.footer-social-icons .social-icon:hover img {
    filter: grayscale(0%);
    transform: scale(1.1);
    opacity: 1;
}

.footer-separator {
    border-color: rgba(0, 0, 0, 0.12);
    border-top-width: 1px;
}

.new-footer-style .footer-text {
    color: #4B5563;
    font-size: 0.75rem;
    line-height: 1rem;
}

#footer-logo {
    max-height: 1.5rem;
}

.dark .new-footer-style {
    background: radial-gradient(circle, rgb(10 255 108 / 50%) 0%, rgba(10, 255, 108, 0) 80%);
    border-color: rgba(255, 255, 255, 0.125);
    color: #ddd;
}

.dark .footer-social-icons .social-icon img {
    opacity: 0.7;
}

.dark .footer-social-icons .social-icon:hover img {
    opacity: 1;
}

.dark .footer-separator {
    border-color: rgba(255, 255, 255, 0.2);
}

.dark .new-footer-style .footer-text {
    color: #ddd;
}

.footer-bottom-texts {
    text-align: center;
}
.footer-bottom-texts > p {
    margin-bottom: 0.5rem;
}
.footer-bottom-texts > p:last-child {
    margin-bottom: 0;
}


.hero-animated-bg-container {
    position: absolute;
    inset: 0;             
    z-index: 0;
    overflow: hidden;     
    pointer-events: none;
}


.hero-orb {
    position: absolute;
    width: 520px;
    height: 520px;
    max-width: 90vw;
    max-height: 90vw;
    border-radius: 9999px;
    background: radial-gradient(circle at center,
        rgba(var(--jusneural-green-rgb), 0.95) 0%,
        rgba(var(--jusneural-green-rgb), 0.55) 30%,
        rgba(var(--jusneural-green-rgb), 0.22) 60%,
        rgba(var(--jusneural-green-rgb), 0) 82%
    );
    filter: blur(3px);
    transform-origin: center;
    opacity: 0.95;
    will-change: transform, opacity;
    pointer-events: none;
    box-shadow: 0 0 120px rgba(var(--jusneural-green-rgb), 0.5);
}


.hero-orb-right {
    top: -22%;
    right: -10%;
    transform: translate3d(0, 0, 0);
    animation: heroOrbPulseGlow 9s ease-in-out infinite,
               heroOrbFloatRight 18s ease-in-out infinite alternate;
}


.hero-orb-left {
    bottom: -18%;
    left: -18%;
    transform: translate3d(0, 0, 0);
    animation: heroOrbPulseGlow 11s ease-in-out infinite,
               heroOrbFloatLeft 22s ease-in-out infinite alternate;
}


.hero-animated-bg-gradient {
    position: absolute;
    inset: 0;
    display: none;
}
.dark .hero-animated-bg-gradient {
    display: none;
}


section.relative.text-center.py-20.px-6::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 6; 
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.4) 55%,
        rgba(255, 255, 255, 0.9) 85%,
        rgba(255, 255, 255, 1) 100%
    );
}

.dark section.relative.text-center.py-20.px-6::before {
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.65) 55%,
        rgba(0, 0, 0, 0.9) 85%,
        rgba(0, 0, 0, 1) 100%
    );
}


@keyframes heroOrbPulseGlow {
    0% {
        box-shadow: 0 0 80px rgba(var(--jusneural-green-rgb), 0.35);
        opacity: 0.85;
    }
    50% {
        box-shadow: 0 0 150px rgba(var(--jusneural-green-rgb), 0.9);
        opacity: 1;
    }
    100% {
        box-shadow: 0 0 80px rgba(var(--jusneural-green-rgb), 0.35);
        opacity: 0.85;
    }
}


@keyframes heroOrbFloatRight {
    0% {
        transform: translate3d(18%, -18%, 0) scale(0.9);
    }
    20% {
        transform: translate3d(5%, 8%, 0) scale(1.05);
    }
    40% {
        transform: translate3d(-20%, 3%, 0) scale(1.15);
    }
    60% {
        transform: translate3d(-8%, 20%, 0) scale(1.02);
    }
    80% {
        transform: translate3d(10%, 5%, 0) scale(1.1);
    }
    100% {
        transform: translate3d(22%, -10%, 0) scale(0.95);
    }
}


@keyframes heroOrbFloatLeft {
    0% {
        transform: translate3d(-22%, 18%, 0) scale(0.95);
    }
    20% {
        transform: translate3d(-6%, 0%, 0) scale(1.08);
    }
    40% {
        transform: translate3d(15%, 10%, 0) scale(1.18);
    }
    60% {
        transform: translate3d(-4%, 24%, 0) scale(1.02);
    }
    80% {
        transform: translate3d(-18%, 4%, 0) scale(1.12);
    }
    100% {
        transform: translate3d(-24%, 16%, 0) scale(0.98);
    }
}

details > summary {
    list-style: none; 
}
details > summary::-webkit-details-marker {
    display: none; 
}
html:not(.dark) .service-icon {
    filter: brightness(0.6);
}

.image-ux-fade {
    display: block;
    -webkit-mask-image: radial-gradient(ellipse at center, black 60%, transparent 85%);
    mask-image: radial-gradient(ellipse at center, black 60%, transparent 85%);
}
.convenios-link {
    text-decoration: none !important;
    position: relative;
    display: inline-block;
    padding-bottom: 5px; 
}

.convenios-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: currentColor; 
    transition: width 0.3s ease-out;
}

.convenios-link:hover::after,
.convenios-link:focus::after {
    width: 100%;
}

#whatsapp-float-button {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 30px;
  right: 30px;
  background-color: #efefef;
  border-radius: 50px;
  text-align: center;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.25);
  z-index: 1000;
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dark #whatsapp-float-button {
  background-color: #0f172a;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.55);
}

#whatsapp-float-button:hover {
  transform: scale(1.1);
  box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.3);
}

.dark #whatsapp-float-button:hover {
  background-color: #1f2937;
  box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.65);
}

#whatsapp-float-button img {
  width: 49px;
  height: 49px;
}


#whatsapp-float-button .whatsapp-tooltip {
  position: absolute;
  right: 72px;
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  background-color: rgba(255, 255, 255, 0.98);
  color: #111827;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

#whatsapp-float-button .whatsapp-tooltip::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -6px;
  transform: translateY(-50%);
  border-width: 6px 0 6px 6px;
  border-style: solid;
  border-color: transparent transparent transparent rgba(255, 255, 255, 0.98);
}

#whatsapp-float-button:hover .whatsapp-tooltip,
#whatsapp-float-button:focus-visible .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

.dark #whatsapp-float-button .whatsapp-tooltip {
  background-color: rgba(15, 23, 42, 0.98);
  color: #e5e7eb;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.6);
}

.dark #whatsapp-float-button .whatsapp-tooltip::after {
  border-color: transparent transparent transparent rgba(15, 23, 42, 0.98);
}
@media (max-width: 768px) {
  #whatsapp-float-button {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
  }
  #whatsapp-float-button img {
    width: 42px;
    height: 42px;
  }
}

.image-slider-container {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 1rem;
  margin-top: 3rem;
}
.image-slider-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: slide-fade 12s infinite;
  transition: opacity 0.5s ease-in-out;
}
.image-slider-container img:nth-child(2) {
  animation-delay: 6s;
}
@keyframes slide-fade {
  0% { opacity: 0; }
  8.33% { opacity: 1; }
  41.67% { opacity: 1; }
  50% { opacity: 0; }
  100% { opacity: 0; }
}
 
      #services-slider-wrapper {
          position: relative;
      }

     
      .services-scroll-container {
          scroll-snap-type: x mandatory;
          -webkit-overflow-scrolling: touch;
      }

      #services-grid {
          scroll-behavior: smooth;
      }

    
      .service-card-slide {
          scroll-snap-align: start;
          flex: 0 0 80%;
          max-width: 80%;
      }

      @media (min-width: 640px) {
          .service-card-slide {
              flex-basis: 65%;
              max-width: 65%;
          }
      }

      @media (min-width: 768px) {
          .service-card-slide {
              flex-basis: 50%;
              max-width: 50%;
          }
      }

      @media (min-width: 1024px) {
          .service-card-slide {
              flex-basis: 33.333%;
              max-width: 33.333%;
          }
      }

      
      .services-gradient-edge {
          position: relative;
      }

      .services-gradient-edge::before,
      .services-gradient-edge::after {
          content: "";
          position: absolute;
          top: 0;
          bottom: 0;
          width: 48px;
          pointer-events: none;
          z-index: 5;
      }

      .services-gradient-edge::before {
          left: 0;
          background: linear-gradient(to right, rgba(255,255,255,1), rgba(255,255,255,0));
      }

      .services-gradient-edge::after {
          right: 0;
          background: linear-gradient(to left, rgba(255,255,255,1), rgba(255,255,255,0));
      }

      .dark .services-gradient-edge::before {
          background: linear-gradient(to right, rgba(0,0,0,1), rgba(0,0,0,0));
      }

      .dark .services-gradient-edge::after {
          background: linear-gradient(to left, rgba(0,0,0,1), rgba(0,0,0,0));
      }

      
      .services-slider-btn {
          position: absolute;
          top: 50%;
          z-index: 10;
      }


@keyframes nodePulse {
    0%, 100% { fill: transparent; transform: scale(1); }
    50% { fill: currentColor; transform: scale(1.2); }
}
.anim-pulse-nodes .node {
    transform-origin: center;
    animation: nodePulse 2s ease-in-out infinite;
}
.anim-pulse-nodes .node:nth-child(1) { animation-delay: 0s; }
.anim-pulse-nodes .node:nth-child(2) { animation-delay: 0.6s; }
.anim-pulse-nodes .node:nth-child(3) { animation-delay: 1.2s; }


@keyframes spinSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.anim-spin-slow {
    animation: spinSlow 8s linear infinite;
}

.group:hover .anim-spin-slow {
    animation-duration: 3s;
}


@keyframes floatFlash {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-3px) scale(1.05); }
}
.anim-float {
    animation: floatFlash 2.5s ease-in-out infinite;
}
