/* ===== Punta Conecta FX: capa tecnológica ===== */
:root { --fx-cyan: #4fd4ff; --fx-blue: #2a6cff; --fx-orange: #ff4d00; }
/* Barra de progreso de scroll */
.fx-progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); z-index: 9999; background: linear-gradient(90deg, var(--fx-blue), var(--fx-cyan), var(--fx-orange)); box-shadow: 0 0 12px var(--fx-cyan); pointer-events: none; }
/* Resplandor que sigue al puntero */
.fx-glow { position: fixed; width: 420px; height: 420px; margin: -210px 0 0 -210px; border-radius: 50%; pointer-events: none; z-index: 0; background: radial-gradient(circle, rgb(79 212 255 / .14), transparent 65%); transition: opacity .4s; opacity: 0; }
body.fx-has-pointer .fx-glow { opacity: 1; }
/* Aparición al hacer scroll */
.fx-reveal { opacity: 0; transform: translateY(28px) scale(.98); filter: blur(6px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1), filter .8s; transition-delay: var(--fx-d, 0ms); }
.fx-reveal.fx-in { opacity: 1; transform: none; filter: none; }
/* Títulos con barrido de luz */
.section h2 { background: linear-gradient(100deg, currentColor 40%, var(--fx-cyan) 50%, currentColor 60%) 0 0 / 250% 100% no-repeat; -webkit-background-clip: text; background-clip: text; }
.section.fx-in-sec h2 { animation: fxShine 1.6s ease .2s 1 both; }
@keyframes fxShine { from { background-position: 100% 0; -webkit-text-fill-color: currentColor; } 50% { -webkit-text-fill-color: transparent; } to { background-position: 0 0; -webkit-text-fill-color: currentColor; } }
.head__eyebrow::before { content: "▍"; color: var(--fx-orange); margin-right: 6px; animation: fxCaret 1s steps(1) infinite; }
@keyframes fxCaret { 50% { opacity: 0; } }
/* Tarjetas: inclinación 3D y borde de neón */
.cards > * { position: relative; transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s; transform-style: preserve-3d; will-change: transform; }
.cards > *::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; padding: 1px; background: conic-gradient(from var(--fx-a, 0deg), transparent 0 70%, var(--fx-cyan) 80%, var(--fx-blue) 90%, transparent); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .3s; }
.cards > *:hover::after, .cards > *.fx-active::after { opacity: 1; animation: fxSpinBorder 2.5s linear infinite; }
@property --fx-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes fxSpinBorder { to { --fx-a: 360deg; } }
.cards > *:hover { box-shadow: 0 18px 40px -18px rgb(42 108 255 / .45), 0 0 0 1px rgb(79 212 255 / .25); }
/* Imágenes de servicio: escaneo, cambio con glitch */
.x-svc__img { position: relative; overflow: hidden; cursor: pointer; }
.x-svc__img img { transition: transform .9s cubic-bezier(.2,.7,.2,1), filter .5s; }
.x-svc__img:hover img { transform: scale(1.07); filter: saturate(1.2) contrast(1.05); }
.x-svc__img::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(to bottom, transparent 0, rgb(79 212 255 / .0) 40%, rgb(79 212 255 / .55) 50%, transparent 52%) 0 -120% / 100% 220% no-repeat, repeating-linear-gradient(0deg, rgb(255 255 255 / .05) 0 1px, transparent 1px 3px); opacity: 0; }
.x-svc__img.fx-in::before, .x-svc__img:hover::before { opacity: 1; animation: fxScan 1.4s ease-out 1; }
@keyframes fxScan { from { background-position: 0 -120%, 0 0; } to { background-position: 0 120%, 0 0; } }
.x-svc__img::after { content: attr(data-mode); position: absolute; right: 8px; top: 8px; z-index: 3; font: 500 11px/1 "Geist Mono", monospace; letter-spacing: .04em; color: #dff7ff; padding: 5px 8px; border-radius: 999px; background: rgb(22 31 57 / .55); border: 1px solid rgb(79 212 255 / .5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: .85; }
.x-svc__img.fx-glitch img { animation: fxGlitch .55s steps(2) 1; }
@keyframes fxGlitch { 0% { clip-path: inset(0); transform: none; filter: hue-rotate(0); } 20% { clip-path: inset(12% 0 58% 0); transform: translateX(-8px); filter: hue-rotate(90deg) saturate(2); } 40% { clip-path: inset(60% 0 8% 0); transform: translateX(8px); } 60% { clip-path: inset(30% 0 40% 0); transform: translateX(-4px); filter: hue-rotate(-60deg); } 80% { clip-path: inset(0); transform: scale(1.04); } 100% { clip-path: inset(0); transform: none; filter: none; } }
/* Hero: carrusel con fundido y zoom lento */
.hero .fx-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: 0; transition: opacity 1.4s ease; }
.hero .fx-slide.fx-on { opacity: 1; animation: fxKen 9s ease-out both; }
@keyframes fxKen { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(rgb(79 212 255 / .07) 1px, transparent 1px) 0 0 / 100% 34px, linear-gradient(90deg, rgb(79 212 255 / .07) 1px, transparent 1px) 0 0 / 34px 100%; mask-image: linear-gradient(to left, #000, transparent 70%); -webkit-mask-image: linear-gradient(to left, #000, transparent 70%); animation: fxGrid 12s linear infinite; }
@keyframes fxGrid { to { background-position: 0 340px, 340px 0; } }
.fx-dots { position: absolute; left: clamp(24px, 4vw, 48px); bottom: 12px; display: flex; gap: 6px; z-index: 2; }
.fx-dots button { width: 22px; height: 4px; border: 0; padding: 0; border-radius: 4px; background: rgb(245 245 247 / .35); cursor: pointer; transition: background .3s, width .3s; }
.fx-dots button.fx-on { width: 38px; background: var(--fx-cyan); box-shadow: 0 0 10px var(--fx-cyan); }
.hero h1 { animation: fxType 1.1s steps(28) .2s both; }
@keyframes fxType { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
/* Ondas al tocar */
.fx-ripple { position: fixed; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; pointer-events: none; z-index: 9998; border: 2px solid var(--fx-cyan); box-shadow: 0 0 14px var(--fx-cyan), inset 0 0 10px var(--fx-cyan); animation: fxRipple .7s ease-out forwards; }
@keyframes fxRipple { to { transform: scale(9); opacity: 0; } }
/* Botones con brillo */
.btn { position: relative; overflow: hidden; transition: transform .2s, box-shadow .3s; }
.btn::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgb(255 255 255 / .45), transparent); transform: skewX(-20deg); animation: fxBtn 3.2s ease-in-out infinite; pointer-events: none; }
@keyframes fxBtn { 0%, 60% { left: -60%; } 100% { left: 130%; } }
.btn:hover { box-shadow: 0 0 0 3px rgb(79 212 255 / .25), 0 10px 24px -8px rgb(255 77 0 / .6); transform: translateY(-2px); }
.btn:active { transform: scale(.96); }
/* Número/contador */
.fx-count { font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) {
  .fx-reveal { opacity: 1; transform: none; filter: none; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .fx-glow, .fx-ripple { display: none; }
}

/* Modos de imagen */
.x-svc__img img { transition: transform .9s cubic-bezier(.2,.7,.2,1), filter .6s; }
.x-svc__img.fx-m-night img { filter: grayscale(1) sepia(1) hue-rotate(60deg) saturate(3.2) brightness(1.05) contrast(1.2); }
.x-svc__img.fx-m-holo img { filter: grayscale(1) sepia(1) hue-rotate(160deg) saturate(4) brightness(1.1) contrast(1.15); }
.x-svc__img.fx-m-thermal img { filter: invert(1) hue-rotate(180deg) saturate(3) contrast(1.3); }
.x-svc__img.fx-m-night::before, .x-svc__img.fx-m-holo::before, .x-svc__img.fx-m-thermal::before { opacity: 1; animation: fxScan 2.2s linear infinite; }
