/* CleanForce Pro · capa dinámica (botones con brillo, bordes animados, aparición al desplazar). */
@property --cf-giro { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

/* Barra de progreso de lectura */
.cf-progreso { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 1000; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, #075cff, #00c9a7, #79f3dc); box-shadow: 0 0 12px rgba(0,201,167,.6); pointer-events: none; }

/* Cabecera de cristal fija */
body > header { position: sticky; top: 0; z-index: 900; width: 100% !important; max-width: none !important; padding-inline: max(20px, calc((100% - var(--cf-ancho, 1140px)) / 2)); transition: background .3s, box-shadow .3s, backdrop-filter .3s; }
body > header.cf-fija { background: rgba(8,18,36,.72); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 10px 30px rgba(0,0,0,.25); border-bottom: 1px solid rgba(121,243,220,.12); }
nav a:not(.button) { position: relative; }
.nav-menu a::after, nav .nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, #075cff, #00c9a7); transform: scaleX(0); transition: transform .25s ease; }
.nav-menu a:hover::after, nav .nav-links a:hover::after { transform: scaleX(1); }

/* Botones con brillo que recorre y resplandor */
.button { position: relative; overflow: hidden; isolation: isolate; transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .25s, background .25s, filter .25s !important; }
.button::before { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.38), transparent); transform: skewX(-18deg); animation: cf-brillo 4.2s ease-in-out infinite; }
.button.secondary::before { animation-delay: 2.1s; opacity: .6; }
.button:hover { transform: translateY(-3px) scale(1.02); filter: brightness(1.08); }
.button:active { transform: translateY(0) scale(.98); }
.button.primary, .button:not(.secondary) { background-image: linear-gradient(135deg, #0a63ff, #075cff 45%, #0aa8c9); }
.button.primary:hover, .button:not(.secondary):hover { box-shadow: 0 14px 34px rgba(7,92,255,.45), 0 0 0 1px rgba(121,243,220,.35), 0 0 26px rgba(0,201,167,.28); }
.button.secondary { background-image: none; }
.button.secondary:hover { box-shadow: 0 0 0 1px rgba(121,243,220,.55), 0 10px 26px rgba(0,201,167,.18); }
@keyframes cf-brillo { 0%, 55% { left: -60%; } 100% { left: 135%; } }

/* Tarjeta de precio destacada: borde que gira */
.price-card, .order { position: relative; }
.price-card.featured, .cf-borde { border-color: transparent !important; }
.price-card.featured::before, .cf-borde::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--cf-giro), #075cff, #00c9a7, #79f3dc, #ffcf00, #075cff);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: cf-giro 5s linear infinite; }
@keyframes cf-giro { to { --cf-giro: 360deg; } }

/* Tarjetas: luz que sigue al ratón y elevación */
.card, .feature, .price-card, .flow-card, .version-card, .step, .shot, .box, .order { transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s, border-color .3s; }
.cf-foco { background-image: radial-gradient(420px circle at var(--mx, -500px) var(--my, -500px), rgba(0,201,167,.13), transparent 45%) !important; background-blend-mode: normal; }
.card:hover, .feature:hover, .price-card:hover, .flow-card:hover, .version-card:hover, .shot:hover { transform: translateY(-6px); border-color: rgba(121,243,220,.55);
  box-shadow: 0 22px 44px rgba(0,0,0,.32), 0 0 0 1px rgba(0,201,167,.12); }
.shot img { transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.shot:hover img { transform: scale(1.04); }

/* Punto vivo que late */
.dot, .eyebrow i { animation: cf-latido 2s ease-in-out infinite; }
@keyframes cf-latido { 50% { box-shadow: 0 0 0 7px rgba(0,201,167,.12); } }

/* Elementos del héroe flotando */
.app-card { animation: cf-flotar 7s ease-in-out infinite; }
.hero::after { content: ""; position: absolute; width: 380px; height: 380px; right: -120px; bottom: -160px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(7,92,255,.28), transparent 65%); animation: cf-flotar 9s ease-in-out infinite reverse; z-index: 0; }
.hero > .wrap { position: relative; z-index: 1; }
@keyframes cf-flotar { 50% { transform: translateY(-12px); } }
.scan .bar i { transition: width 1.6s cubic-bezier(.2,.8,.2,1); }

/* Aparición al desplazar */
.cf-aparece { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); transition-delay: var(--cf-retraso, 0s); }
.cf-aparece.cf-visible { opacity: 1; transform: none; }

/* Título con degradado animado */
h1 em, h1 .accent { background: linear-gradient(90deg, #00c9a7, #79f3dc, #4f9bff, #00c9a7); background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: cf-degradado 6s ease-in-out infinite; }
@keyframes cf-degradado { 50% { background-position: 100% 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .cf-aparece { opacity: 1; transform: none; }
}
