/* Click Experience v2.6.0 — Immersive UX motion layer
   Progressive enhancement: the site remains fully usable without JS. */

:root{
  --cxs-motion-soft:cubic-bezier(.2,.8,.2,1);
  --cxs-motion-spring:cubic-bezier(.16,1,.3,1);
}

/* ---------- persistent orientation ---------- */
.cxs-header{
  position:sticky!important;
  top:0;
  z-index:120!important;
  transition:background .32s ease,box-shadow .32s ease,backdrop-filter .32s ease;
}
.cxs-site.cxs-has-scrolled .cxs-header{
  background:rgba(0,18,73,.86);
  -webkit-backdrop-filter:blur(18px) saturate(130%);
  backdrop-filter:blur(18px) saturate(130%);
  box-shadow:0 12px 34px rgba(0,15,66,.12);
}
.cxs-site.cxs-has-scrolled .cxs-header-inner{min-height:76px}
.cxs-scroll-progress{
  position:absolute;
  left:0;right:0;bottom:-1px;
  height:2px;
  overflow:hidden;
  pointer-events:none;
  background:rgba(255,255,255,.045);
}
.cxs-scroll-progress>i{
  display:block;width:100%;height:100%;
  transform:scaleX(var(--cxs-page-progress,0));
  transform-origin:left center;
  background:linear-gradient(90deg,#27adff 0%,#ffbd59 72%,#ff3131 100%);
  box-shadow:0 0 14px rgba(39,173,255,.38);
}

/* ---------- home continuity ---------- */
.cxs-home-immersive .cxs-hero,
.cxs-home-immersive .cxs-services,
.cxs-home-immersive .cxs-why,
.cxs-home-immersive .cxs-academy,
.cxs-home-immersive .cxs-insights,
.cxs-home-immersive .cxs-about-home,
.cxs-home-immersive .cxs-final-cta{
  --cxs-local-progress:.5;
  --cxs-local-shift:0px;
  overflow:hidden;
}

.cxs-immersive-bridge{
  position:absolute;
  left:0;right:0;bottom:-1px;
  height:122px;
  z-index:12;
  pointer-events:none;
  overflow:hidden;
  opacity:.72;
}
.cxs-immersive-bridge::before,
.cxs-immersive-bridge::after{content:"";position:absolute;pointer-events:none}
.cxs-immersive-bridge::before{
  left:10%;right:-10%;bottom:-92px;height:128px;
  border:1px solid rgba(39,173,255,.18);
  border-radius:50%;
  transform:translateX(calc((var(--cxs-local-progress,.5) - .5) * 22px));
}
.cxs-immersive-bridge::after{
  left:48%;bottom:13px;width:170px;height:1px;
  background:linear-gradient(90deg,transparent,rgba(255,189,89,.65),transparent);
  transform:translateX(calc((var(--cxs-local-progress,.5) - .5) * -34px));
}
.cxs-immersive-bridge.is-light::before{border-color:rgba(0,21,92,.10)}
.cxs-immersive-bridge.is-light::after{background:linear-gradient(90deg,transparent,rgba(39,173,255,.48),transparent)}

.cxs-immersive-index{
  position:absolute;
  right:clamp(18px,4vw,72px);
  top:clamp(18px,4vw,60px);
  z-index:0;
  color:rgba(0,21,92,.035);
  font-size:clamp(90px,12vw,190px);
  line-height:.75;
  letter-spacing:-.08em;
  font-weight:900;
  pointer-events:none;
  transform:translate3d(0,calc((var(--cxs-local-progress,.5) - .5) * 30px),0);
  user-select:none;
}
.cxs-why>.cxs-immersive-index,.cxs-insights>.cxs-immersive-index,.cxs-final-cta>.cxs-immersive-index{
  color:rgba(255,255,255,.025);
}

/* Hero changes atmosphere with the active discipline. */
.cxs-hero{
  --hero-x:82%;--hero-y:18%;
  background:
   radial-gradient(circle at var(--hero-x) var(--hero-y),rgba(39,173,255,.18),transparent 29%),
   radial-gradient(circle at 17% 87%,rgba(255,189,89,.065),transparent 25%),
   linear-gradient(135deg,#00134f 0%,#001a67 56%,#002976 100%)!important;
  transition:background 1s ease;
}
.cxs-hero[data-cxs-service="web"]{--hero-x:83%;--hero-y:18%}
.cxs-hero[data-cxs-service="redes"]{--hero-x:71%;--hero-y:30%}
.cxs-hero[data-cxs-service="branding"]{--hero-x:58%;--hero-y:14%}
.cxs-hero[data-cxs-service="impresion"]{--hero-x:88%;--hero-y:64%}
.cxs-hero[data-cxs-service="diseno"]{--hero-x:63%;--hero-y:71%}
.cxs-hero::before{
  transform:translate3d(0,calc((var(--cxs-local-progress,.5) - .5) * 32px),0) scale(1.04);
  transition:transform .25s linear;
}
.cxs-hero-orbit{
  transform:translate3d(calc((var(--cxs-local-progress,.5) - .5) * -26px),calc((var(--cxs-local-progress,.5) - .5) * 42px),0);
  transition:transform .18s linear;
}
.cxs-art{
  transform:translate3d(0,calc((var(--cxs-local-progress,.5) - .5) * -28px),0)!important;
  will-change:transform;
}
.cxs-art picture{transition:transform .7s var(--cxs-motion-soft),filter .7s ease}
.cxs-scene.is-active .cxs-art picture{filter:drop-shadow(0 26px 36px rgba(0,0,0,.26))}
.cxs-assistant{
  box-shadow:0 26px 90px rgba(0,5,24,.34),0 0 90px rgba(39,173,255,.08)!important;
  transition:transform .5s var(--cxs-motion-spring),box-shadow .5s ease;
}
.cxs-assistant-wrap:hover .cxs-assistant{transform:translateY(-3px);box-shadow:0 32px 100px rgba(0,5,24,.37),0 0 110px rgba(39,173,255,.11)!important}
.cxs-chat-body h3.cxs-chat-question-in{animation:cxsQuestionIn .46s var(--cxs-motion-spring) both}
.cxs-chat-input-in>*{animation:cxsChatChoiceIn .42s var(--cxs-motion-spring) both}
.cxs-chat-input-in>*:nth-child(2){animation-delay:.045s}.cxs-chat-input-in>*:nth-child(3){animation-delay:.09s}.cxs-chat-input-in>*:nth-child(4){animation-delay:.135s}.cxs-chat-input-in>*:nth-child(5){animation-delay:.18s}
@keyframes cxsQuestionIn{from{opacity:.2;transform:translateY(8px);clip-path:inset(0 0 55% 0)}to{opacity:1;transform:none;clip-path:inset(0)}}
@keyframes cxsChatChoiceIn{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:none}}

/* Services: depth and a subtle visual thread instead of static cards. */
.cxs-services::before{
  content:"";position:absolute;left:-10%;top:18%;width:72%;height:52%;z-index:-1;pointer-events:none;
  background:radial-gradient(ellipse,rgba(39,173,255,.12),transparent 66%);
  filter:blur(18px);
  transform:translate3d(calc((var(--cxs-local-progress,.5) - .5) * 42px),0,0);
}
.cxs-svc-card{isolation:isolate;overflow:hidden;transform-style:preserve-3d}
.cxs-svc-card::before,.cxs-course-card::before,.cxs-insight-card::before,.cxs-services-mosaic__card::before,.cxs-service-focus__card::before,.cxs-service-process__step::before{
  content:"";position:absolute;inset:0;z-index:5;pointer-events:none;border-radius:inherit;
  background:radial-gradient(circle at var(--cxs-pointer-x,50%) var(--cxs-pointer-y,50%),rgba(39,173,255,.17),transparent 34%);
  opacity:var(--cxs-pointer-opacity,0);
  transition:opacity .25s ease;
}
.cxs-svc-visual img{
  transform:translate3d(0,calc((var(--cxs-local-progress,.5) - .5) * -16px),0) scale(1.04);
  transition:transform .65s var(--cxs-motion-soft),filter .45s ease!important;
}
.cxs-svc-card:hover .cxs-svc-visual img{transform:translate3d(0,calc((var(--cxs-local-progress,.5) - .5) * -16px),0) scale(1.09)!important}

/* Why Click: more cinematic transitions + actual thumbnails in the interaction rail. */
.cxs-why-stage{box-shadow:0 36px 110px rgba(0,0,0,.28)!important}
.cxs-why-visual-shell{transform:translate3d(0,calc((var(--cxs-local-progress,.5) - .5) * -16px),0);will-change:transform}
.cxs-why-visual{
  clip-path:inset(7% 7% 7% 7% round 26px);
  transform:scale(.965) translate3d(26px,16px,0)!important;
  transition:opacity .5s ease,transform .8s var(--cxs-motion-spring),filter .48s ease,clip-path .72s var(--cxs-motion-spring)!important;
}
.cxs-why-visual.is-active{clip-path:inset(0 round 20px);transform:scale(1) translate3d(0,0,0)!important}
.cxs-why-visual img{transform:scale(1.035);transition:transform 5.5s ease}
.cxs-why-visual.is-active img{transform:scale(1)}
.cxs-why-rail button{min-height:62px!important;border-radius:14px 14px 0 0!important;padding:9px 10px 12px!important}
.cxs-why-thumb{width:34px;height:34px;border-radius:10px;overflow:hidden;flex:none;border:1px solid rgba(255,255,255,.11);opacity:.58;transition:opacity .25s,transform .25s,border-color .25s}
.cxs-why-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.cxs-why-rail button.is-active .cxs-why-thumb{opacity:1;transform:translateY(-2px);border-color:rgba(39,173,255,.50)}
.cxs-why-rail button:hover .cxs-why-thumb{opacity:1}

/* Academy / Insights: photographic mask reveal and gentle parallax. */
.cxs-academy::after,.cxs-insights .cxs-container::before,.cxs-about-home::after{
  content:"";position:absolute;pointer-events:none;border-radius:50%;filter:blur(42px);opacity:.22;z-index:0;
}
.cxs-academy::after{left:-170px;bottom:-220px;width:480px;height:480px;background:rgba(39,173,255,.26);transform:translateX(calc((var(--cxs-local-progress,.5) - .5) * 46px))}
.cxs-course-card figure,.cxs-insight-card figure{clip-path:inset(0 round 0);overflow:hidden}
.cxs-course-card figure::after,.cxs-insight-card figure::before{
  content:"";position:absolute;inset:-20%;z-index:3;pointer-events:none;
  background:linear-gradient(112deg,transparent 34%,rgba(255,255,255,.20) 49%,transparent 64%);
  transform:translateX(-72%) rotate(2deg);
  transition:transform .95s var(--cxs-motion-soft);
}
.cxs-course-card:hover figure::after,.cxs-insight-card:hover figure::before{transform:translateX(72%) rotate(2deg)}
.cxs-course-card figure img,.cxs-insight-card figure img{
  transform:translate3d(0,calc((var(--cxs-local-progress,.5) - .5) * -12px),0) scale(1.045)!important;
}
.cxs-course-card:hover figure img,.cxs-insight-card:hover figure img{transform:translate3d(0,calc((var(--cxs-local-progress,.5) - .5) * -12px),0) scale(1.085)!important}
.cxs-insights .cxs-container{position:relative;z-index:1}
.cxs-insights .cxs-container::before{right:-210px;top:12%;width:520px;height:520px;background:rgba(39,173,255,.20);transform:translateY(calc((var(--cxs-local-progress,.5) - .5) * 42px))}

/* About: image and mark move at different speeds to create actual depth. */
.cxs-about-visual{perspective:1000px}
.cxs-about-scene{transform:translate3d(0,calc((var(--cxs-local-progress,.5) - .5) * -24px),0) rotate(-2deg)!important;transition:transform .16s linear}
.cxs-about-mark{transform:translate3d(0,calc((var(--cxs-local-progress,.5) - .5) * 34px),40px) rotate(7deg)!important;transition:transform .16s linear}
.cxs-about-orbit{transform:translateY(calc(-50% + ((var(--cxs-local-progress,.5) - .5) * 24px)))!important}
.cxs-about-home::after{right:-170px;top:12%;width:430px;height:430px;background:rgba(255,189,89,.18);transform:translateY(calc((var(--cxs-local-progress,.5) - .5) * -38px))}

/* Closing CTA feels like the visual destination of the journey. */
.cxs-final-ambient{transform:translate3d(calc((var(--cxs-local-progress,.5) - .5) * -40px),calc((var(--cxs-local-progress,.5) - .5) * 30px),0) rotate(calc((var(--cxs-local-progress,.5) - .5) * 5deg));transition:transform .18s linear}
.cxs-final-visual figure{transform:translate3d(0,calc((var(--cxs-local-progress,.5) - .5) * -24px),0)!important}
.cxs-final-chat{transform:translate3d(0,calc((var(--cxs-local-progress,.5) - .5) * 18px),0)!important}

/* ---------- Home journey dock ---------- */
.cxs-journey-dock{
  position:fixed;right:18px;top:50%;z-index:105;
  display:grid;gap:9px;
  transform:translateY(-50%) translateX(18px);
  opacity:0;pointer-events:none;
  transition:opacity .3s ease,transform .3s var(--cxs-motion-spring);
}
.cxs-journey-dock.is-visible{opacity:1;transform:translateY(-50%) translateX(0);pointer-events:auto}
.cxs-journey-dock button{position:relative;width:34px;height:34px;border:0;background:transparent;padding:0;color:#fff}
.cxs-journey-dock button::before{content:"";position:absolute;inset:12px;border-radius:50%;background:rgba(39,173,255,.35);box-shadow:0 0 0 1px rgba(255,255,255,.10);transition:inset .24s,background .24s,box-shadow .24s}
.cxs-journey-dock button.is-active::before{inset:9px;background:#ffbd59;box-shadow:0 0 0 5px rgba(255,189,89,.10),0 0 18px rgba(255,189,89,.35)}
.cxs-journey-dock button span{position:absolute;right:38px;top:50%;transform:translateY(-50%) translateX(6px);white-space:nowrap;padding:7px 9px;border-radius:8px;background:rgba(0,21,92,.88);backdrop-filter:blur(12px);color:#fff;font-size:9px;font-weight:700;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s}
.cxs-journey-dock button:hover span,.cxs-journey-dock button:focus-visible span{opacity:1;transform:translateY(-50%) translateX(0)}

/* ---------- Services directory ---------- */
.cxs-services-directory .cxs-services-mosaic__card{transform-style:preserve-3d}
.cxs-services-directory .cxs-services-mosaic__media img{transform:translate3d(0,calc((var(--cxs-local-progress,.5) - .5) * -16px),0) scale(1.045)}
.cxs-services-directory .cxs-services-mosaic__card:hover .cxs-services-mosaic__media img{transform:translate3d(0,calc((var(--cxs-local-progress,.5) - .5) * -16px),0) scale(1.085)!important}

/* ---------- Service landing contextual navigation + motion ---------- */
.cxs-service-journey{
  position:fixed;left:50%;top:84px;z-index:110;
  width:min(760px,calc(100% - 42px));
  display:flex;align-items:center;justify-content:center;gap:4px;
  padding:5px;border:1px solid rgba(255,255,255,.13);border-radius:999px;
  background:rgba(0,18,73,.82);backdrop-filter:blur(18px) saturate(125%);
  box-shadow:0 16px 42px rgba(0,15,66,.18);
  transform:translate(-50%,-18px);opacity:0;pointer-events:none;
  transition:opacity .28s,transform .36s var(--cxs-motion-spring);
}
.cxs-service-journey.is-visible{opacity:1;transform:translate(-50%,0);pointer-events:auto}
.cxs-service-journey button{border:0;border-radius:999px;background:transparent;color:rgba(255,255,255,.66);padding:9px 12px;font-size:9px;font-weight:700;white-space:nowrap;transition:background .22s,color .22s}
.cxs-service-journey button.is-active{background:#27adff;color:#00155c}
.cxs-service-journey button:hover{color:#fff}
.cxs-service-page .cxs-service-hero__bg img{transform:translate3d(0,calc((var(--cxs-local-progress,.5) - .5) * -28px),0) scale(1.06);transition:transform .18s linear}
.cxs-service-page .cxs-service-hero__panel{transform:translate3d(0,calc((var(--cxs-local-progress,.5) - .5) * 18px),0);transition:transform .18s linear,box-shadow .35s ease}
.cxs-service-page .cxs-service-focus,
.cxs-service-page .cxs-service-deliverables,
.cxs-service-page .cxs-service-process,
.cxs-service-page .cxs-service-related,
.cxs-service-page .cxs-service-cta{--cxs-local-progress:.5}
.cxs-service-page .cxs-service-process__step{overflow:hidden}
.cxs-service-page .cxs-service-process__step::after{transform:translate3d(calc((var(--cxs-local-progress,.5) - .5) * 28px),calc((var(--cxs-local-progress,.5) - .5) * -22px),0)}

/* Mobile stays immersive, but never traps the scroll. */
@media(max-width:1180px){.cxs-journey-dock{display:none}}
@media(max-width:900px){
 .cxs-header{top:0}.cxs-site.cxs-has-scrolled .cxs-header-inner{min-height:70px}
 .cxs-immersive-index{font-size:100px;right:14px;top:22px}
 .cxs-immersive-bridge{height:82px}.cxs-immersive-bridge::before{bottom:-68px;height:90px}.cxs-immersive-bridge::after{display:none}
 .cxs-why-thumb{width:28px;height:28px;border-radius:8px}
 .cxs-why-rail button{min-height:54px!important}
 .cxs-service-journey{top:74px;width:calc(100% - 24px);justify-content:flex-start;overflow-x:auto;scrollbar-width:none;padding:4px}
 .cxs-service-journey::-webkit-scrollbar{display:none}.cxs-service-journey button{flex:0 0 auto;padding:9px 11px;font-size:8px}
}
@media(max-width:600px){
 .cxs-home-immersive .cxs-hero::before{transform:none}
 .cxs-art{transform:translate3d(0,calc((var(--cxs-local-progress,.5) - .5) * -14px),0)!important}
 .cxs-about-scene{transform:translate3d(0,calc((var(--cxs-local-progress,.5) - .5) * -12px),0) rotate(-2deg)!important}
 .cxs-about-mark{transform:translate3d(0,calc((var(--cxs-local-progress,.5) - .5) * 16px),24px) rotate(7deg)!important}
 .cxs-service-journey{top:71px}
}
@media(prefers-reduced-motion:reduce){
 .cxs-scroll-progress>i,.cxs-immersive-bridge::before,.cxs-immersive-bridge::after,.cxs-immersive-index,.cxs-art,.cxs-why-visual-shell,.cxs-course-card figure img,.cxs-insight-card figure img,.cxs-about-scene,.cxs-about-mark,.cxs-about-orbit,.cxs-final-ambient,.cxs-final-visual figure,.cxs-final-chat,.cxs-service-page .cxs-service-hero__bg img,.cxs-service-page .cxs-service-hero__panel{transform:none!important;transition:none!important}
 .cxs-chat-body h3.cxs-chat-question-in,.cxs-chat-input-in>*{animation:none!important}
 .cxs-journey-dock,.cxs-service-journey{transition:none}
}

/* WhatsApp remains a universally recognizable action across the service landings. */
.cxs-service-page a.cxs-service-btn[href*="wa.me"]{background:#25d366!important;color:#fff!important;box-shadow:0 18px 38px rgba(37,211,102,.20)!important}
.cxs-service-page a.cxs-service-btn[href*="wa.me"]:hover{background:#20c75d!important;box-shadow:0 23px 48px rgba(37,211,102,.28)!important}
.cxs-service-page a.cxs-service-btn[href*="wa.me"] svg{fill:#168d45!important}
