/* Tipografía base */
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }
body { font-family: 'Inter', 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif; }

/* Gradiente "IA" reutilizable */
.ai-gradient {
  background: linear-gradient(135deg, #06b6d4 0%, #7c3aed 100%);
}
.ai-text {
  background: linear-gradient(135deg, #06b6d4 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Glow del hero */
.hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(50% 40% at 20% 20%, rgba(6,182,212,0.25), transparent 60%),
    radial-gradient(40% 35% at 80% 30%, rgba(124,58,237,0.22), transparent 60%),
    radial-gradient(60% 50% at 60% 90%, rgba(56,189,248,0.12), transparent 60%);
  filter: blur(40px);
  pointer-events: none;
}

/* Animaciones de entrada */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; }
.reveal.visible { animation: fadeUp .7s ease-out forwards; }

/* Tipeo del chat mock */
@keyframes blink { 50% { opacity: 0; } }
.cursor { display: inline-block; width: 2px; height: 1em; background: currentColor; vertical-align: -2px; animation: blink 1s steps(1) infinite; }

/* Pulso del botón flotante */
@keyframes pulseRing {
  0% { transform: scale(.9); opacity: .7; }
  80%, 100% { transform: scale(1.6); opacity: 0; }
}
.pulse-ring::before {
  content: ""; position: absolute; inset: 0; border-radius: 9999px;
  background: rgba(124,58,237,.5);
  animation: pulseRing 1.8s ease-out infinite;
  z-index: -1;
}

/* Cards con borde animado */
.card-grad-border {
  position: relative; background: white; border-radius: 1rem;
}
.card-grad-border::before {
  content: ""; position: absolute; inset: 0; border-radius: 1rem; padding: 1px;
  background: linear-gradient(135deg, rgba(6,182,212,.4), rgba(124,58,237,.4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}

/* Scroll snap del row de demos en mobile */
@media (max-width: 768px) {
  .snap-row { scroll-snap-type: x mandatory; }
  .snap-row > * { scroll-snap-align: start; }
}

/* Ocultar scrollbar */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { scrollbar-width: none; }
