/* ==========================================================================
   TECNOLOGÍA / SAAS — Oscuro, producto, gradiente violeta-cian
   ========================================================================== */

:root {
  --bg: #05060a;
  --bg2: #0b0e18;
  --surface: rgba(255, 255, 255, .045);
  --surface2: rgba(255, 255, 255, .08);
  --surface-solid: #10121c;
  --text: #eef0fa;
  --muted: rgba(238, 240, 250, .64);
  --border: rgba(255, 255, 255, .10);

  --accent: #7c5cff;
  --accent2: #22d3ee;
  --ink: #05060a;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px rgba(0, 0, 0, .5);
  --header-h: 76px;
  --container: min(1160px, 92%);

  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: "Segoe UI", ui-sans-serif, system-ui, -apple-system, Roboto, Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background:
    radial-gradient(900px 560px at 88% -8%, rgba(124, 92, 255, .20), transparent 60%),
    radial-gradient(760px 520px at 4% 6%, rgba(34, 211, 238, .14), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: var(--container); margin-inline: auto; }
.icon { display: block; width: 1em; height: 1em; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

:where(a, button, input, textarea, select):focus-visible { outline: 3px solid rgba(124, 92, 255, .5); outline-offset: 3px; }
.skip-link { position: absolute; left: -999px; top: 12px; z-index: 100; padding: 10px 14px; border-radius: 999px; color: var(--ink); background: var(--accent2); }
.skip-link:focus { left: 12px; }

h1, h2, h3 { font-weight: 800; letter-spacing: -.03em; margin: 0; }

/* TOPBAR */
.topbar { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--border); background: rgba(5, 6, 10, .78); backdrop-filter: blur(16px); }
.topbar__inner { min-height: var(--header-h); display: flex; align-items: center; gap: 16px; }
.brandline { display: flex; align-items: center; gap: 10px; font-weight: 800; margin-right: auto; }
.brandline__mark { width: 40px; height: 40px; border-radius: 10px; overflow: hidden; background: #fff; display: grid; place-items: center; }
.brandline__mark img { width: 100%; height: 100%; object-fit: contain; }
.topbar__actions { display: flex; align-items: center; gap: 10px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 46px; padding: 12px 20px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  font-weight: 700; transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .2s ease;
}
.btn .icon { width: 17px; height: 17px; }
.btn:hover { transform: translateY(-2px); background: var(--surface2); }
.btn--accent { color: #fff; background: linear-gradient(135deg, var(--accent), #5b3fe0); border-color: transparent; box-shadow: 0 14px 30px rgba(124, 92, 255, .3); }
.btn--accent:hover { box-shadow: 0 18px 36px rgba(124, 92, 255, .4); }
.btn--ghost { background: transparent; }
.btn--full { width: 100%; }

/* HERO */
.hero { padding: clamp(48px, 7vw, 90px) 0 44px; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); color: var(--accent2);
  font-weight: 700; font-size: .84rem; font-family: "SFMono-Regular", Consolas, monospace;
}
h1 { margin: 16px 0 12px; font-size: clamp(2.25rem, 3.5vw, 3.5rem); line-height: 1.02; max-width: 15ch; }
h1 span { background: linear-gradient(135deg, var(--accent), var(--accent2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin: 0; color: var(--muted); font-size: 1.05rem; max-width: 50ch; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

.stats { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stats li { padding: 16px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); }
.stats strong { display: block; font-size: 1.5rem; font-weight: 900; background: linear-gradient(135deg, var(--accent), var(--accent2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats span { display: block; margin-top: 2px; font-size: .8rem; color: var(--muted); font-weight: 600; }

/* HERO VISUAL: dashboard mockup */
.hero__visual { position: relative; }
.dash-card { border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(180deg, var(--surface2), var(--surface)); box-shadow: var(--shadow); padding: 20px; backdrop-filter: blur(10px); }
.dash-card__bar { display: flex; gap: 7px; margin-bottom: 16px; }
.dash-card__bar span { width: 10px; height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .18); }
.dash-card__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.dash-card__head strong { font-size: .98rem; }
.live-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: rgba(34, 211, 238, .12); border: 1px solid rgba(34, 211, 238, .3); color: var(--accent2); font-size: .74rem; font-weight: 800; }
.live-pill::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: var(--accent2); }

.chart-bars { display: flex; align-items: end; gap: 8px; height: 96px; margin-bottom: 16px; padding: 12px; border-radius: 12px; background: rgba(0, 0, 0, .25); border: 1px solid var(--border); }
.chart-bars span { flex: 1; border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, var(--accent2), var(--accent)); }

.code-line { font-family: "SFMono-Regular", Consolas, monospace; font-size: .78rem; padding: 12px 14px; border-radius: 12px; background: rgba(0, 0, 0, .3); border: 1px solid var(--border); color: var(--accent2); overflow-x: auto; white-space: pre; }
.code-line span { color: var(--accent); }

/* SECTIONS */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--alt { background: rgba(255, 255, 255, .015); border-block: 1px solid var(--border); }
.section__head { max-width: 620px; margin: 0 0 34px; }
.section__head h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); margin-bottom: 10px; }
.section__head p { margin: 0; color: var(--muted); }

.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.card { padding: 22px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface-solid); transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; }
.card:hover { transform: translateY(-6px); border-color: rgba(124, 92, 255, .4); box-shadow: 0 16px 34px rgba(0, 0, 0, .4); }
.card-icon { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; min-width: 44px; padding: 0; line-height: 0; border-radius: 12px; margin-bottom: 16px; background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; }
.card-icon svg { display: block; width: 21px; height: 21px; margin: 0 auto; stroke: #fff; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.card p { margin: 0; color: var(--muted); font-size: .92rem; }

/* PROCESS */
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.process li { padding: 26px 22px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.process__num { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 10px; background: var(--surface2); border: 1px solid var(--border); color: var(--accent2); font-weight: 900; font-size: .88rem; margin-bottom: 16px; font-family: "SFMono-Regular", Consolas, monospace; }
.process h3 { font-size: 1.05rem; margin-bottom: 6px; }
.process p { margin: 0; color: var(--muted); font-size: .9rem; }

/* PRICING */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.price { padding: 26px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface-solid); display: flex; flex-direction: column; }
.price--featured { border-color: rgba(124, 92, 255, .45); background: linear-gradient(180deg, rgba(124, 92, 255, .1), var(--surface-solid)); position: relative; }
.price--featured::before { content: "Más elegido"; position: absolute; top: -13px; left: 26px; padding: 5px 12px; border-radius: 999px; background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; font-size: .72rem; font-weight: 900; }
.price__name { font-weight: 900; font-size: 1.1rem; font-family: "SFMono-Regular", Consolas, monospace; }
.price__value { font-size: 2.1rem; font-weight: 900; margin: 10px 0 2px; }
.price__value span { font-size: .9rem; color: var(--muted); font-weight: 700; }
.price__note { color: var(--muted); font-size: .84rem; margin-bottom: 18px; }
.price ul { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; flex: 1; }
.price ul li { display: flex; align-items: center; gap: 9px; font-size: .92rem; }
.price ul li .icon { width: 16px; height: 16px; color: var(--accent2); flex-shrink: 0; }

/* CTA FINAL */
.cta { padding: clamp(50px, 7vw, 80px) 0; }
.cta__box { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: clamp(28px, 4vw, 48px); border-radius: 24px; border: 1px solid rgba(124, 92, 255, .3); background: linear-gradient(135deg, rgba(124, 92, 255, .14), rgba(34, 211, 238, .08)); }
.cta__box h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 8px; }
.cta__box p { margin: 0; color: var(--muted); max-width: 46ch; }

/* FOOTER */
.footer { padding: 26px 0 40px; border-top: 1px solid var(--border); color: var(--muted); font-size: .88rem; }
.footer .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer a { font-weight: 700; color: var(--text); }
.footer a:hover { color: var(--accent2); }

/* WHATSAPP FLOAT */
.whatsapp-float { position: fixed; right: 18px; bottom: 18px; z-index: 70; display: inline-flex; align-items: center; gap: 9px; min-height: 56px; padding: 8px 20px 8px 8px; border-radius: 999px; color: #fff; background: #1fb855; border: 1px solid rgba(255, 255, 255, .22); box-shadow: 0 16px 34px rgba(0, 0, 0, .4), 0 0 0 6px rgba(37, 211, 102, .14); font-weight: 900; transition: transform .2s ease, box-shadow .2s ease; }
.whatsapp-float:hover { transform: translateY(-2px); }
.whatsapp-float__mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 999px; background: #fff; overflow: hidden; flex-shrink: 0; }
.whatsapp-float__mark img { width: 32px; height: 32px; }
.whatsapp-float__label { white-space: nowrap; }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(16px); }
.reveal.is-in { opacity: 1; transform: translateY(0); transition: opacity .5s ease, transform .5s ease; }

/* RESPONSIVE */
@media (max-width: 1040px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 480px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
}

@media (max-width: 720px) {
  .container { width: min(100% - 24px, 1160px); }
  .topbar__actions .btn span:not(.icon) { display: none; }
  .topbar__actions .btn { padding: 12px; width: 46px; }
  .topbar__actions .btn--accent { width: auto; padding: 12px 16px; }
  .topbar__actions .btn--accent span { display: inline; }
  .stats { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .cta__box { flex-direction: column; align-items: flex-start; }
  .cta__box .btn { width: 100%; }
  .whatsapp-float { right: 12px; bottom: 12px; min-height: 52px; padding: 6px 16px 6px 6px; gap: 7px; font-size: .92rem; }
  .whatsapp-float__mark { width: 34px; height: 34px; }
  .whatsapp-float__mark img { width: 28px; height: 28px; }
}

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