/* Movimiento compartido de Nexus: entrada de marca y respuesta a interacción. */
.nexus-loader[hidden] { display: none !important; }
html[data-nexus-loading] .nexus-loader[hidden] {
  display: grid !important;
  position: fixed;
  inset: 0;
  z-index: 1000;
  place-items: center;
  overflow: hidden;
  background: #f8fafc;
  color: #0f172a;
  opacity: 1;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: opacity 200ms cubic-bezier(.23,1,.32,1), transform 200ms cubic-bezier(.23,1,.32,1);
}
html.dark[data-nexus-loading] .nexus-loader { background: #0d0e15; color: #f1f5f9; }
html[data-nexus-loading] .nexus-loader.is-leaving { opacity: 0; transform: scale(1.025); pointer-events: none; }
.nexus-loader::before, .nexus-loader::after {
  content: '';
  position: absolute;
  width: min(78vw, 600px);
  aspect-ratio: 1;
  border: 1px solid #d977061c;
  border-radius: 50%;
  pointer-events: none;
}
.nexus-loader::after { width: min(58vw, 410px); border-color: #05966920; }
.nexus-loader-content { position: relative; z-index: 1; display: grid; justify-items: center; gap: 14px; text-align: center; padding: 30px; }
.nexus-loader-emblem { position: relative; display: grid; place-items: center; width: 118px; height: 118px; margin-bottom: 6px; }
.nexus-loader-emblem img { width: 64px; height: 64px; border-radius: 18px; box-shadow: 0 12px 40px #0f172a20; animation: nexus-logo-in 600ms cubic-bezier(.23,1,.32,1) both; }
.nexus-loader-orbit { position: absolute; inset: 0; border: 1px solid #d977063b; border-radius: 50%; animation: nexus-orbit 2.4s linear infinite; }
.nexus-loader-orbit::before, .nexus-loader-orbit::after { content: ''; position: absolute; width: 9px; height: 9px; border-radius: 50%; background: #d97706; top: 6px; left: 22px; }
.nexus-loader-orbit::after { top: auto; left: auto; right: 11px; bottom: 14px; width: 7px; height: 7px; background: #059669; }
.nexus-loader-name { font: 800 clamp(30px, 6vw, 42px)/1.1 'Bricolage Grotesque', sans-serif; letter-spacing: -.04em; margin: 0; }
.nexus-loader-caption { color: #64748b; font-size: 10px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; margin: 0; }
html.dark .nexus-loader-caption { color: #94a3b8; }
.nexus-loader-track { position: relative; overflow: hidden; width: 132px; height: 3px; border-radius: 5px; background: #d9770626; margin-top: 14px; }
.nexus-loader-track::after { content: ''; position: absolute; inset: 0; background: #d97706; transform-origin: left; animation: nexus-loading-track 950ms cubic-bezier(.77,0,.175,1) infinite; }
.nexus-loader-status { font-size: 12px; color: #64748b; margin: 0; }
html.dark .nexus-loader-status { color: #94a3b8; }
.nexus-loader-skip { position: absolute; bottom: max(28px, env(safe-area-inset-bottom)); background: transparent; color: inherit; border: 1px solid #94a3b84d; border-radius: 30px; font: 500 12px/1.3 'Plus Jakarta Sans', sans-serif; padding: 12px 20px; cursor: pointer; }
.nexus-loader-skip:focus-visible { outline: 3px solid #d97706; outline-offset: 5px; }

.nexus-site .site-btn, .nexus-site .theme-toggle, .nexus-site .site-menu-toggle,
.nexus-site .demo-rubro-btn, .nexus-site .choice-card, .nexus-site .btn {
  transition: transform 160ms cubic-bezier(.23,1,.32,1), background-color 180ms ease, border-color 180ms ease;
}
.nexus-site .site-btn:active, .nexus-site .theme-toggle:active,
.nexus-site .demo-rubro-btn:active, .nexus-site .choice-card:active, .nexus-site .btn:active {
  transform: scale(.98);
}
.nexus-site .service-tile { transition: transform 240ms cubic-bezier(.23,1,.32,1), border-color 180ms ease, box-shadow 240ms ease; }
.nexus-site .service-tile:hover { transform: none; }
.nexus-site .nav-dropdown { transform-origin: top left; }
.nexus-site .site-wa-float { transition: transform 180ms cubic-bezier(.23,1,.32,1); }
@media (hover: hover) and (pointer: fine) {
  .nexus-site .service-tile:hover { transform: translateY(-7px); box-shadow: 0 18px 34px -18px #d9770640; }
  .nexus-site .site-btn:hover { transform: translateY(-2px); }
  .nexus-site .site-wa-float:hover { transform: translateY(-3px) scale(1.06); }
}
@keyframes nexus-logo-in { from { opacity: 0; transform: translateY(10px) scale(.9) rotate(-8deg); } to { opacity: 1; transform: translateY(0) scale(1) rotate(0); } }
@keyframes nexus-orbit { to { transform: rotate(360deg); } }
@keyframes nexus-loading-track { 0% { transform: translateX(-110%) scaleX(.45); } 60% { transform: translateX(15%) scaleX(.7); } 100% { transform: translateX(110%) scaleX(.45); } }
@media (prefers-reduced-motion: reduce) {
  html[data-nexus-loading] .nexus-loader[hidden] { display: none !important; }
  .nexus-loader *, .nexus-loader *::before, .nexus-loader *::after { animation: none !important; }
  .nexus-site .site-btn, .nexus-site .theme-toggle, .nexus-site .site-menu-toggle,
  .nexus-site .demo-rubro-btn, .nexus-site .choice-card, .nexus-site .btn,
  .nexus-site .service-tile, .nexus-site .site-wa-float { transition: none !important; transform: none !important; }
}
