/* Codexa — efectos globales: cursor, palabras fantasma, bordes líquidos y auroras en movimiento */

/* ---------- Cursor ---------- */
html.has-cursor, html.has-cursor body, html.has-cursor a, html.has-cursor button, html.has-cursor summary, html.has-cursor label { cursor: none; }
html.has-cursor input, html.has-cursor textarea { cursor: text; }
.cur-ring, .cur-dot { position: fixed; left: 0; top: 0; z-index: 400; pointer-events: none; opacity: 0; transition: opacity .3s; }
.cur-ring.on, .cur-dot.on { opacity: 1; }
.cur-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: #fff; mix-blend-mode: difference; }
.cur-dot.hide { opacity: 0; }
.cur-ring { width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .85); mix-blend-mode: difference; display: grid; place-items: center;
  transition: width .45s cubic-bezier(.16, 1, .3, 1), height .45s cubic-bezier(.16, 1, .3, 1), margin .45s cubic-bezier(.16, 1, .3, 1), background .35s, border-color .35s, opacity .3s, scale .2s; }
.cur-ring span { font: 600 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #1d1405; opacity: 0; transform: scale(.6); transition: opacity .25s, transform .35s; }
.cur-ring.link { width: 56px; height: 56px; margin: -28px 0 0 -28px; background: rgba(255, 255, 255, .14); }
.cur-ring.text { width: 4px; height: 26px; margin: -13px 0 0 -2px; border-radius: 2px; background: #fff; }
.cur-ring.lbl { width: 78px; height: 78px; margin: -39px 0 0 -39px; background: var(--lamp); border-color: transparent; mix-blend-mode: normal; box-shadow: 0 0 30px rgba(255, 170, 60, .45); }
.cur-ring.lbl span { opacity: 1; transform: none; }
.cur-ring.down { scale: .82; }

/* ---------- Palabras fantasma ---------- */
[data-ghost] { position: relative; isolation: isolate; overflow-x: clip; }
.ghost { position: absolute; inset: 0 0 auto; top: clamp(30px, 6vw, 70px); z-index: -1; pointer-events: none; user-select: none; overflow: hidden; }
.ghost-row { white-space: nowrap; font: 800 clamp(90px, 17vw, 260px)/1 var(--display); font-variation-settings: "wght" 800, "wdth" 72; text-transform: uppercase; letter-spacing: -.01em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(236, 236, 244, .07); will-change: transform; }

/* ---------- Bordes líquidos ---------- */
.wave { position: absolute; left: 0; right: 0; z-index: 2; display: block; width: 100%; height: clamp(60px, 8vw, 110px); pointer-events: none; }
.wave path { fill: var(--night); }
.wave-bottom { bottom: -1px; }
.wave-top { top: -1px; }

/* ---------- Auroras: degradados vivos detrás de algunas secciones ---------- */
.process, .results, .quotes, .pricing, .faq, .cast { position: relative; isolation: isolate; overflow-x: clip; }
.process::before, .results::before, .quotes::before, .pricing::before, .faq::before, .cast::before {
  content: ""; position: absolute; z-index: -2; pointer-events: none; width: 70vmax; height: 50vmax; border-radius: 50%; filter: blur(60px); opacity: .55;
  background: radial-gradient(closest-side, rgba(99, 102, 241, .32), transparent), radial-gradient(closest-side at 70% 60%, rgba(255, 170, 60, .18), transparent);
  animation: aurora 22s ease-in-out infinite alternate; }
.process::before { left: -20vmax; top: 10%; }
.results::before { right: -25vmax; top: 0; animation-duration: 26s; animation-direction: alternate-reverse; }
.quotes::before { left: 10%; top: 20%; opacity: .4; animation-duration: 30s; }
.pricing::before { right: -15vmax; top: 15%; background: radial-gradient(closest-side, rgba(255, 170, 60, .24), transparent), radial-gradient(closest-side at 30% 60%, rgba(99, 102, 241, .3), transparent); }
.faq::before { left: -25vmax; bottom: -10%; opacity: .4; animation-duration: 28s; }
.cast::before { left: 20%; top: -10%; opacity: .45; animation-duration: 34s; }
@keyframes aurora {
  0% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  50% { transform: translate3d(8vmax, 4vmax, 0) rotate(20deg) scale(1.15); }
  100% { transform: translate3d(-6vmax, 8vmax, 0) rotate(-12deg) scale(.95); }
}
@media (prefers-reduced-motion: reduce) {
  .process::before, .results::before, .quotes::before, .pricing::before, .faq::before, .cast::before { animation: none; }
}
