/* =========================================================
   Kiplan.io — Landing page styles (futuristic dark v2)
   Brand: navy #1e3a8a / #0f2557 · blue #2563eb · sky #38bdf8
   ========================================================= */
:root {
  --navy-900: #050a1c;
  --navy-800: #0a1228;
  --navy-700: #1e3a8a;
  --blue-600: #2563eb;
  --blue-400: #60a5fa;
  --sky-400: #38bdf8;
  --sky-100: #7dd3fc;
  --ink: #e2e8f0;
  --slate: #cbd5e1;
  --muted: #94a3b8;
  --faint: #64748b;
  --line: rgba(148, 197, 253, .14);
  --bg: #050a1c;
  --bg-soft-dark: #0a1228;
  --glow: #38bdf8;
  --radius: 16px;
  --shadow-card: 0 2px 8px rgba(0, 0, 0, .25);
  --shadow-lg: 0 24px 64px rgba(2, 8, 32, .55);
  --grad-brand: linear-gradient(135deg, #60a5fa 0%, #38bdf8 50%, #2563eb 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 92px; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--sky-400); color: var(--navy-900); }

.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ---------- Botones (glass + glow) ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 18px; border-radius: 10px; font-weight: 600; font-size: 14px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  cursor: pointer; border: none;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue-600), var(--sky-400));
  color: #fff;
  box-shadow: 0 10px 30px rgba(37, 99, 235, .45), 0 0 20px rgba(56, 189, 248, .25);
}
.btn--primary:hover { box-shadow: 0 14px 38px rgba(37, 99, 235, .55), 0 0 32px rgba(56, 189, 248, .4); }
/* brillo (shine) al hover */
.btn--primary::after {
  content: ""; position: absolute; top: 0; left: -70%; width: 40%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .35), transparent);
  transform: skewX(-20deg); transition: left .5s ease;
}
.btn--primary:hover::after { left: 130%; }

.btn--ghost { color: var(--slate); background: transparent; }
.btn--ghost:hover { background: rgba(255, 255, 255, .08); color: #fff; }

.btn--outline {
  background: rgba(255, 255, 255, .05);
  color: #e2e8f0;
  border: 1.5px solid rgba(125, 211, 252, .4);
  backdrop-filter: blur(8px);
}
.btn--outline:hover { background: rgba(125, 211, 252, .12); border-color: var(--sky-400); box-shadow: 0 0 24px rgba(56, 189, 248, .28); }

.btn--glass {
  background: rgba(255, 255, 255, .08); color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(8px);
}
.btn--glass:hover { background: rgba(255, 255, 255, .16); color: #fff; }

.btn--sky { background: var(--sky-400); color: var(--navy-800); font-weight: 700; }
.btn--sky:hover { background: #0ea5e9; }

.btn--lg { padding: 14px 26px; font-size: 16px; }

/* ---------- Navbar (glass + blur al scroll) ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(5, 10, 28, .55);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.nav--scrolled {
  background: rgba(5, 10, 28, .8);
  border-bottom-color: var(--line);
  box-shadow: 0 12px 40px rgba(2, 8, 32, .5), 0 0 24px rgba(56, 189, 248, .06);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; color: var(--ink); }
.brand__logo { background: #fff; padding: 5px 10px; border-radius: 8px; }
.nav__links { display: flex; gap: 32px; font-size: 15px; color: var(--slate); font-weight: 500; }
.nav__links a { transition: color .2s ease; }
.nav__links a:hover { color: var(--sky-100); }
.nav__actions { display: flex; gap: 8px; }

/* ---------- Hero (oscuro + aurora + mesh) ---------- */
.hero { position: relative; padding: 88px 0 40px; overflow: hidden; }

.hero__bg { position: absolute; inset: 0; z-index: 0; }
.aurora { position: absolute; border-radius: 50%; filter: blur(90px); will-change: transform; opacity: .55; }
.aurora--1 { width: 560px; height: 560px; top: -160px; left: -120px; background: radial-gradient(circle at 30% 30%, rgba(37, 99, 235, .55), transparent 70%); animation: drift1 22s ease-in-out infinite alternate; }
.aurora--2 { width: 480px; height: 480px; top: -80px; right: -80px; background: radial-gradient(circle at 60% 40%, rgba(56, 189, 248, .42), transparent 70%); animation: drift2 26s ease-in-out infinite alternate; }
.aurora--3 { width: 640px; height: 420px; bottom: -220px; left: 30%; background: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, .3), transparent 70%); animation: drift3 30s ease-in-out infinite alternate; }

.mesh { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; }

.hero__grid-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(147, 197, 253, .14) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(75% 60% at 50% 30%, #000 25%, transparent 80%);
  mask-image: radial-gradient(75% 60% at 50% 30%, #000 25%, transparent 80%);
  opacity: .7;
}

.hero__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center;
}
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(56, 189, 248, .12);
  border: 1px solid rgba(125, 211, 252, .35);
  color: #bae6fd; font-size: 13px; font-weight: 600;
  margin-bottom: 22px; backdrop-filter: blur(8px);
}
.badge__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sky-400); box-shadow: 0 0 10px rgba(56, 189, 248, .9); animation: blinkDot 1.8s ease-in-out infinite; }

.hero__title { font-size: clamp(38px, 5.2vw, 56px); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; color: #f8fafc; }
.grad-text {
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 8px 28px rgba(56, 189, 248, .35));
}
.hero__subtitle { margin: 22px 0 32px; font-size: 18px; color: var(--muted); max-width: 560px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__micro { margin-top: 14px; font-size: 13px; color: var(--faint); }

/* ---------- Trust / Marquee ---------- */
.trust { margin-top: 84px; }
.trust__label { display: block; text-align: center; font-size: 12px; font-weight: 700; letter-spacing: 1.5px; color: var(--faint); margin-bottom: 18px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: inline-flex; gap: 56px; white-space: nowrap; animation: marquee 30s linear infinite; will-change: transform; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span { font-weight: 700; font-size: 15px; color: rgba(148, 163, 184, .75); }

/* ---------- Mockup (glass + glow) ---------- */
.hero__visual { position: relative; z-index: 1; }
.window {
  background: linear-gradient(180deg, rgba(19, 31, 66, .82), rgba(10, 18, 45, .88));
  border: 1px solid rgba(148, 197, 253, .22);
  border-radius: 18px;
  box-shadow: 0 0 0 1px rgba(2, 8, 32, .4), var(--shadow-lg), 0 0 48px rgba(56, 189, 248, .12);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  overflow: hidden;
}
.window__bar { display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .03); }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot--r { background: #f87171; } .dot--y { background: #fbbf24; } .dot--g { background: #4ade80; }
.window__url { margin-left: 10px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); border-radius: 999px; padding: 5px 16px; font-size: 12px; color: #b6c2d9; }
.window__body { display: grid; grid-template-columns: 190px 1fr; min-height: 470px; }
.window__sidebar { background: rgba(6, 12, 32, .6); border-right: 1px solid var(--line); padding: 20px 18px; display: flex; flex-direction: column; gap: 14px; color: #8fb4e8; font-size: 13px; }
.window__sidebar strong { color: #fff; font-size: 14px; margin-bottom: 8px; }
.window__sidebar a { transition: color .2s ease; }
.window__sidebar a:hover { color: #fff; }
.window__sidebar a.active { color: var(--sky-100); font-weight: 600; text-shadow: 0 0 12px rgba(125, 211, 252, .6); }
.window__main { padding: 20px 22px; }
.window__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.window__head h3 { font-size: 20px; color: #f1f5f9; }
.window__head span { font-size: 12px; color: var(--faint); }

.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px; }
.kpi { background: rgba(255, 255, 255, .04); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.kpi span { font-size: 11px; color: var(--faint); }
.kpi strong { display: block; font-size: 18px; margin: 4px 0; color: #fff; }
.kpi em { font-style: normal; font-size: 11px; font-weight: 700; color: #4ade80; text-shadow: 0 0 10px rgba(74, 222, 128, .5); }

.chart { background: rgba(255, 255, 255, .03); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; }
.chart__title { font-size: 13px; font-weight: 600; color: var(--slate); margin-bottom: 12px; }
.chart__bars { display: flex; align-items: flex-end; gap: 14px; height: 104px; }
.chart__bars i {
  flex: 1; border-radius: 4px; transform-origin: bottom;
  background: linear-gradient(180deg, rgba(125, 211, 252, .9), rgba(37, 99, 235, .7));
  box-shadow: 0 0 12px rgba(56, 189, 248, .25);
  animation: grow .8s cubic-bezier(.22, 1, .36, 1) both;
}
.chart__bars i:nth-child(1) { animation-delay: .05s; } .chart__bars i:nth-child(2) { animation-delay: .1s; }
.chart__bars i:nth-child(3) { animation-delay: .15s; } .chart__bars i:nth-child(4) { animation-delay: .2s; }
.chart__bars i:nth-child(5) { animation-delay: .25s; } .chart__bars i:nth-child(6) { animation-delay: .3s; }
.chart__bars i:nth-child(7) { animation-delay: .35s; } .chart__bars i:nth-child(8) { animation-delay: .4s; }
.chart__bars i.accent {
  background: linear-gradient(180deg, var(--sky-400), var(--blue-600));
  box-shadow: 0 0 20px rgba(56, 189, 248, .7);
  animation: grow .8s cubic-bezier(.22, 1, .36, 1) .45s both, pulse 2.4s ease-in-out 1.6s infinite alternate;
}

/* Terminal AI Copilot */
.term { margin-top: 12px; border: 1px solid rgba(148, 197, 253, .18); border-radius: 12px; overflow: hidden; background: rgba(3, 8, 20, .72); }
.term__bar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; font-size: 11px; color: #8fb4e8; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .03); font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.term__dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 8px rgba(74, 222, 128, .9); animation: blinkDot 1.6s ease-in-out infinite; }
.term__live { margin-left: auto; font-size: 10px; color: #4ade80; }
.term__body { padding: 10px 12px; min-height: 42px; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 12px; }
.term__prompt { color: var(--sky-100); }
.term__cursor { display: inline-block; width: 7px; height: 13px; background: var(--sky-400); vertical-align: -2px; margin-left: 2px; animation: blink .9s steps(1) infinite; box-shadow: 0 0 8px rgba(56, 189, 248, .9); }

/* Tabla */
.table { background: rgba(255, 255, 255, .03); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.table__title { font-size: 13px; font-weight: 600; color: var(--slate); margin-bottom: 8px; }
.table__row { display: flex; justify-content: space-between; font-size: 12px; color: #b6c2d9; padding: 4px 0; }
.table__row b { color: #fff; }

/* Badges flotantes (shimmer) */
.float {
  position: absolute; z-index: 3; padding: 12px 16px; border-radius: 14px;
  background: rgba(13, 22, 48, .72);
  border: 1px solid rgba(125, 211, 252, .3);
  box-shadow: 0 16px 40px rgba(2, 8, 32, .5), 0 0 24px rgba(56, 189, 248, .15);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  display: flex; flex-direction: column; gap: 2px;
  animation: floatY 5s ease-in-out infinite;
  overflow: hidden;
}
.float::after {
  content: ""; position: absolute; top: 0; left: -80%; width: 60%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .12), transparent);
  transform: skewX(-20deg); animation: shimmer 3.2s ease-in-out infinite;
}
.float strong { font-size: 13px; color: #f1f5f9; }
.float span { font-size: 11px; color: var(--muted); }
.float--1 { top: 90px; left: -40px; animation-delay: .4s; }
.float--2 { bottom: 76px; left: -24px; animation-delay: 1.2s; }
.float--3 { top: -26px; right: -18px; animation-delay: .8s; }
.float__ping { position: absolute; top: 14px; right: 14px; width: 8px; height: 8px; border-radius: 50%; background: #4ade80; animation: ping 1.8s ease-out infinite; }

/* ---------- Secciones comunes ---------- */
.features { padding: 100px 0; background: linear-gradient(180deg, var(--bg) 0%, #071030 50%, var(--bg) 100%); }
.testimonials { padding: 100px 0; background: radial-gradient(50% 40% at 80% 0%, rgba(37, 99, 235, .1), transparent 60%), var(--bg); }
.eyebrow { text-align: center; font-size: 13px; font-weight: 700; letter-spacing: 1.5px; color: var(--sky-400); margin-bottom: 12px; }
.section__title { text-align: center; font-size: clamp(30px, 4vw, 38px); font-weight: 800; letter-spacing: -0.02em; color: #f1f5f9; }
.section__subtitle { text-align: center; font-size: 17px; color: var(--muted); max-width: 680px; margin: 16px auto 0; }

/* ---------- Features (glass cards + tilt 3D) ---------- */
.features__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.card {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .03));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(0);
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
  will-change: transform;
}
.card:hover {
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-6px);
  border-color: rgba(125, 211, 252, .5);
  box-shadow: 0 24px 60px rgba(2, 8, 32, .55), 0 0 32px rgba(56, 189, 248, .18);
}
/* borde luminoso que sigue al cursor */
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(125, 211, 252, .7), transparent 60%);
  -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 ease; pointer-events: none;
}
.card:hover::before { opacity: 1; }
.card__icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(56, 189, 248, .16), rgba(37, 99, 235, .12));
  border: 1px solid rgba(125, 211, 252, .3);
  box-shadow: inset 0 0 20px rgba(56, 189, 248, .12);
  display: grid; place-items: center; font-size: 26px; margin-bottom: 20px;
}
.card h3 { font-size: 20px; margin-bottom: 10px; color: #f1f5f9; }
.card p { font-size: 15px; color: var(--muted); min-height: 72px; }
.card a { display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--sky-100); }
.card a:hover { text-decoration: underline; }
.features__footer { text-align: center; margin-top: 40px; }

/* ---------- Stats (contadores con gradiente) ---------- */
.stats { padding: 84px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(37, 99, 235, .06), transparent 60%), var(--bg); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat strong {
  display: inline-block; font-size: clamp(34px, 4vw, 46px); font-weight: 800;
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 8px 24px rgba(56, 189, 248, .35));
}
.stat span { display: block; margin-top: 6px; color: var(--muted); font-size: 14px; }

/* ---------- Testimonials ---------- */
.testimonials__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.t-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.t-card:hover { transform: translateY(-6px); border-color: rgba(125, 211, 252, .45); box-shadow: 0 20px 50px rgba(2, 8, 32, .5), 0 0 30px rgba(56, 189, 248, .14); }
.t-card__stars { color: #fbbf24; letter-spacing: 2px; font-size: 14px; margin-bottom: 14px; text-shadow: 0 0 12px rgba(251, 191, 36, .4); }
.t-card p { color: var(--slate); font-size: 15px; min-height: 92px; }
.t-card__author { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.t-card__avatar {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  font-size: 14px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--blue-600), var(--sky-400));
  box-shadow: 0 0 14px rgba(56, 189, 248, .4);
}
.t-card__author strong { display: block; font-size: 14px; color: #f1f5f9; }
.t-card__author span { font-size: 12px; color: var(--muted); }

/* ---------- CTA ---------- */
.cta { padding: 100px 0 120px; }
.cta__panel {
  position: relative; text-align: center; padding: 72px 40px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(19, 31, 66, .7), rgba(8, 15, 38, .88));
  border: 1px solid rgba(125, 211, 252, .28);
  box-shadow: 0 0 0 1px rgba(2, 8, 32, .4), 0 30px 80px rgba(2, 8, 32, .6), 0 0 60px rgba(56, 189, 248, .14);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
}
.cta__glow {
  position: absolute; inset: -40%;
  background:
    radial-gradient(45% 45% at 50% 0%, rgba(56, 189, 248, .22), transparent 70%),
    radial-gradient(40% 40% at 85% 100%, rgba(37, 99, 235, .28), transparent 70%);
  animation: drift3 18s ease-in-out infinite alternate;
  pointer-events: none;
}
.cta__title { position: relative; font-size: clamp(30px, 4vw, 40px); font-weight: 800; color: #f8fafc; letter-spacing: -0.02em; }
.cta__sub { position: relative; color: var(--muted); margin: 14px 0 30px; font-size: 17px; }
.cta__actions { position: relative; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta__micro { position: relative; margin-top: 16px; font-size: 13px; color: var(--faint); }

/* ---------- Footer ---------- */
.footer { background: #030814; border-top: 1px solid var(--line); padding: 64px 24px 32px; }
.footer__grid { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer__brand img { background: #fff; padding: 6px 10px; border-radius: 8px; height: 32px; width: auto; }
.footer__brand p { color: var(--faint); font-size: 14px; max-width: 300px; margin-top: 14px; }
.footer h4 { color: #f1f5f9; font-size: 14px; margin-bottom: 14px; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer a { color: var(--muted); font-size: 14px; }
.footer a:hover { color: var(--sky-100); }
.footer__bottom { max-width: 1240px; margin: 44px auto 0; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--faint); }

/* ---------- Reveal on scroll ---------- */
[data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.22, 1, .36, 1), transform .7s cubic-bezier(.22, 1, .36, 1);
  will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Keyframes ---------- */
@keyframes drift1 { from { transform: translate(0, 0) scale(1); } to { transform: translate(60px, 30px) scale(1.15); } }
@keyframes drift2 { from { transform: translate(0, 0) scale(1); } to { transform: translate(-50px, 40px) scale(1.1); } }
@keyframes drift3 { from { transform: translate(0, 0) scale(1); } to { transform: translate(-30px, -40px) scale(1.2); } }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes shimmer { 0% { left: -80%; } 55%, 100% { left: 140%; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes blinkDot { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, .55); } 70% { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes pulse { from { box-shadow: 0 0 10px rgba(56, 189, 248, .5); } to { box-shadow: 0 0 24px rgba(56, 189, 248, .95); } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr; gap: 56px; }
  .hero__visual { max-width: 720px; margin: 0 auto; }
  .float--1 { left: -8px; } .float--2 { left: -4px; } .float--3 { right: -4px; }
  .features__grid, .testimonials__grid { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
}
@media (max-width: 900px) {
  .nav__links { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .hero { padding: 64px 0 32px; }
  .hero__title { font-size: 34px; }
  .hero__subtitle { font-size: 16px; }
  .hero__cta .btn { width: 100%; }
  .features, .testimonials, .cta { padding: 72px 0; }
  .features__grid, .testimonials__grid { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr; }
  .window__body { grid-template-columns: 1fr; }
  .window__sidebar { display: none; }
  .float--3 { display: none; }
  .float--1, .float--2 { left: -4px; }
  .cta__panel { padding: 48px 24px; }
  .cta__actions .btn { width: 100%; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .footer__bottom { justify-content: center; text-align: center; }
}
@media (max-width: 480px) {
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .chart__bars { gap: 8px; }
  .marquee__track { gap: 36px; }
}

/* ---------- Accesibilidad / rendimiento ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .aurora, .mesh { display: none; }
}
