/* ============================================================
   CONVERZA — Landing Page · Main Styles
   "La ventana del software": CRM conversacional sobre WhatsApp.
   Identidad propia: verde WhatsApp / esmeralda · dark + light.
   ============================================================ */

/* ========== Design Tokens — Dark (default) ========== */
:root {
  /* Brand — WhatsApp green / emerald family */
  --brand: #25d366;
  --brand-strong: #1ebe57;
  --brand-deep: #128c7e;     /* WhatsApp teal */
  --brand-soft: #5be9a6;
  --brand-mint: #9af9c9;

  /* Canvas — deep green-tinted near black */
  --bg: #060f0b;
  --bg-2: #0a1812;
  --bg-3: #0d1f17;
  --surface: rgba(255, 255, 255, 0.024);
  --surface-2: rgba(255, 255, 255, 0.045);
  --surface-strong: rgba(255, 255, 255, 0.06);

  /* Hairline borders read beautifully over the dark green canvas */
  --border: rgba(190, 255, 222, 0.09);
  --border-strong: rgba(190, 255, 222, 0.16);
  --border-brand: rgba(37, 211, 102, 0.32);

  /* Text */
  --text: #ecfdf3;
  --text-2: #a7c4b6;
  --text-3: #6f8c7e;
  --on-brand: #04130b;

  /* Gradients */
  --grad-brand: linear-gradient(135deg, #25d366 0%, #1ebe57 45%, #0fb37e 100%);
  --grad-brand-soft: linear-gradient(135deg, #5be9a6 0%, #25d366 60%, #128c7e 100%);
  --grad-text: linear-gradient(120deg, #ecfdf3 0%, #9af9c9 50%, #5be9a6 100%);
  --grad-line: linear-gradient(90deg, transparent, var(--border-strong), transparent);

  /* Glow / spotlight */
  --glow-brand: 0 0 0 1px rgba(37, 211, 102, 0.25), 0 18px 60px -18px rgba(37, 211, 102, 0.55);
  --spot-1: radial-gradient(50% 50% at 50% 50%, rgba(37, 211, 102, 0.18) 0%, transparent 70%);
  --spot-2: radial-gradient(50% 50% at 50% 50%, rgba(18, 140, 126, 0.16) 0%, transparent 70%);

  /* Layered shadows — soft, deep, refined */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 6px 18px -6px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 18px 44px -12px rgba(0, 0, 0, 0.6);
  --shadow-xl: 0 40px 90px -24px rgba(0, 0, 0, 0.78);

  /* Surfaces */
  --card: rgba(255, 255, 255, 0.026);
  --card-hover: rgba(255, 255, 255, 0.05);
  --glass: rgba(8, 22, 16, 0.66);

  /* Navbar */
  --nav-bg: rgba(7, 17, 12, 0.62);
  --nav-border: rgba(190, 255, 222, 0.08);

  /* Typography */
  --font-display: 'Bricolage Grotesque', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;

  /* Spacing & layout */
  --container: 1200px;
  --container-wide: 1320px;
  --section-pad: clamp(72px, 10vw, 128px);

  /* Easing — Emil Kowalski-style spring & expo */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --t-fast: 150ms var(--ease-out-quart);
  --t-base: 280ms var(--ease-out-expo);
  --t-slow: 620ms var(--ease-out-expo);

  /* Radius */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-full: 999px;

  color-scheme: dark;
}

/* ========== Light theme ========== */
[data-theme="light"] {
  --brand: #12a150;
  --brand-strong: #0e8c45;
  --brand-deep: #0b7a6e;
  --brand-soft: #34c77b;
  --brand-mint: #1aa35a;

  --bg: #f3faf5;
  --bg-2: #eef8f1;
  --bg-3: #e7f3ea;
  --surface: rgba(7, 40, 26, 0.026);
  --surface-2: rgba(7, 40, 26, 0.05);
  --surface-strong: rgba(7, 40, 26, 0.07);

  --border: rgba(7, 60, 38, 0.1);
  --border-strong: rgba(7, 60, 38, 0.18);
  --border-brand: rgba(18, 161, 80, 0.3);

  --text: #07261a;
  --text-2: #355d4c;
  --text-3: #6a8a7b;
  --on-brand: #ffffff;

  --grad-text: linear-gradient(120deg, #07261a 0%, #0e8c45 55%, #12a150 100%);
  --grad-line: linear-gradient(90deg, transparent, rgba(7, 60, 38, 0.16), transparent);

  --glow-brand: 0 0 0 1px rgba(18, 161, 80, 0.18), 0 18px 50px -18px rgba(18, 161, 80, 0.4);
  --spot-1: radial-gradient(50% 50% at 50% 50%, rgba(37, 211, 102, 0.16) 0%, transparent 70%);
  --spot-2: radial-gradient(50% 50% at 50% 50%, rgba(18, 140, 126, 0.12) 0%, transparent 70%);

  --shadow-sm: 0 1px 2px rgba(7, 40, 26, 0.06);
  --shadow-md: 0 8px 24px -10px rgba(7, 40, 26, 0.16);
  --shadow-lg: 0 20px 48px -16px rgba(7, 40, 26, 0.2);
  --shadow-xl: 0 36px 80px -28px rgba(7, 40, 26, 0.26);

  --card: rgba(255, 255, 255, 0.7);
  --card-hover: #ffffff;
  --glass: rgba(243, 250, 245, 0.78);

  --nav-bg: rgba(243, 250, 245, 0.72);
  --nav-border: rgba(7, 60, 38, 0.08);

  color-scheme: light;
}

/* ========== Reset & Base ========== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.62;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  transition: background-color var(--t-base), color var(--t-base);
}

/* Ambient backdrop — distinct "mesh spotlight" (not aurora) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    var(--spot-1) -10% -20% / 60% 60% no-repeat,
    var(--spot-2) 110% 10% / 55% 60% no-repeat,
    var(--spot-1) 50% 120% / 70% 60% no-repeat;
  opacity: 0.9;
  pointer-events: none;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, transparent 75%);
  opacity: 0.5;
  pointer-events: none;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

ul {
  list-style: none;
}

::selection {
  background: rgba(37, 211, 102, 0.28);
  color: var(--text);
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ========== Typography ========== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
}

h1 { font-size: clamp(2.5rem, 6.4vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); letter-spacing: -0.015em; }
h4 { font-size: 1.1rem; letter-spacing: -0.01em; }

p { color: var(--text-2); }

.text-gradient {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.text-brand { color: var(--brand); }

/* ========== Layout primitives ========== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}
.container-wide { max-width: var(--container-wide); }

section {
  position: relative;
  padding-block: var(--section-pad);
}

.section-head {
  max-width: 720px;
  margin: 0 auto clamp(40px, 6vw, 72px);
  text-align: center;
}
.section-head p {
  margin-top: 18px;
  font-size: 1.075rem;
  color: var(--text-2);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-soft);
  background: rgba(37, 211, 102, 0.08);
  border: 1px solid var(--border-brand);
  border-radius: var(--r-full);
}
.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 12px var(--brand);
}

.divider {
  height: 1px;
  width: 100%;
  background: var(--grad-line);
  border: 0;
}

/* ========== Buttons ========== */
.btn {
  --btn-pad-y: 13px;
  --btn-pad-x: 22px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  font-family: var(--font-body);
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: var(--r-full);
  white-space: nowrap;
  transition: transform var(--t-fast), box-shadow var(--t-base),
    background-color var(--t-base), border-color var(--t-base), color var(--t-base);
  will-change: transform;
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 18px; height: 18px; }

.btn-primary {
  color: var(--on-brand);
  background: var(--grad-brand);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset,
    0 14px 34px -12px rgba(37, 211, 102, 0.7);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3) inset,
    0 22px 48px -14px rgba(37, 211, 102, 0.85);
}

.btn-ghost {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  transform: translateY(-2px);
  background: var(--surface-2);
  border-color: var(--border-brand);
}

.btn-lg {
  --btn-pad-y: 16px;
  --btn-pad-x: 30px;
  font-size: 1.02rem;
}
.btn-block { display: flex; width: 100%; }

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand);
  font-weight: 600;
  transition: gap var(--t-fast), color var(--t-fast);
}
.btn-link:hover { gap: 11px; color: var(--brand-soft); }

/* ========== Navbar ========== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px clamp(16px, 4vw, 28px);
  transition: padding var(--t-base);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: var(--container-wide);
  padding: 10px 12px 10px 18px;
  background: var(--nav-bg);
  border: 1px solid var(--nav-border);
  border-radius: var(--r-full);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--t-base), border-color var(--t-base), background-color var(--t-base);
}
.nav.scrolled .nav-inner {
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
  color: var(--text);
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--grad-brand);
  color: var(--on-brand);
  box-shadow: 0 6px 18px -6px rgba(37, 211, 102, 0.8);
  flex-shrink: 0;
}
.brand-mark svg { width: 19px; height: 19px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  padding: 9px 14px;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--text-2);
  border-radius: var(--r-full);
  transition: color var(--t-fast), background-color var(--t-fast);
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-links a.active { color: var(--text); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--text-2);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.theme-toggle:hover { color: var(--brand); border-color: var(--border-brand); transform: rotate(-12deg); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .sun { display: none; }
[data-theme="light"] .theme-toggle .sun { display: block; }
[data-theme="light"] .theme-toggle .moon { display: none; }

.nav-burger {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
}
.nav-burger span {
  position: relative;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--t-base), opacity var(--t-fast);
}
.nav-burger span::before,
.nav-burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--t-base);
}
.nav-burger span::before { top: -6px; }
.nav-burger span::after { top: 6px; }
.nav-burger.open span { background: transparent; }
.nav-burger.open span::before { transform: translateY(6px) rotate(45deg); }
.nav-burger.open span::after { transform: translateY(-6px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 76px 14px auto 14px;
  z-index: 99;
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 14px;
  background: var(--glass);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  backdrop-filter: blur(22px) saturate(150%);
  box-shadow: var(--shadow-xl);
  opacity: 0;
  transform: translateY(-10px) scale(0.98);
  transform-origin: top center;
  transition: opacity var(--t-base), transform var(--t-base);
}
.mobile-menu.open {
  display: flex;
  opacity: 1;
  transform: translateY(0) scale(1);
}
.mobile-menu a {
  padding: 13px 16px;
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--r-sm);
  transition: background-color var(--t-fast);
}
.mobile-menu a:hover { background: var(--surface-2); }
.mobile-menu .btn { margin-top: 8px; }

/* ========== Hero ========== */
.hero {
  position: relative;
  padding-top: clamp(130px, 18vw, 180px);
  padding-bottom: clamp(60px, 8vw, 96px);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: center;
  gap: clamp(36px, 5vw, 72px);
}
.hero-copy { max-width: 620px; }
.hero h1 {
  margin: 22px 0 0;
}
.hero .lead {
  margin-top: 22px;
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: var(--text-2);
  max-width: 540px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}
.hero-trust {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 34px;
  font-size: 0.88rem;
  color: var(--text-3);
}
.hero-trust .check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.hero-trust svg { width: 16px; height: 16px; color: var(--brand); }

/* ========== Product window — "la ventana del software" ========== */
.window {
  position: relative;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-xl), var(--glow-brand);
  overflow: hidden;
}
.window::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(160deg, rgba(37, 211, 102, 0.45), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  background: rgba(0, 0, 0, 0.22);
  border-bottom: 1px solid var(--border);
}
.window-dots { display: flex; gap: 7px; }
.window-dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--surface-strong);
}
.window-dots i:nth-child(1) { background: #ff5f57; }
.window-dots i:nth-child(2) { background: #febc2e; }
.window-dots i:nth-child(3) { background: #28c840; }
.window-url {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--text-3);
  background: var(--surface);
  border-radius: var(--r-full);
  border: 1px solid var(--border);
}
.window-url svg { width: 13px; height: 13px; color: var(--brand); }

.app {
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  min-height: 440px;
}

/* WhatsApp-style chat panel */
.chat {
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(18, 140, 126, 0.1), transparent 60%),
    var(--bg-2);
  border-right: 1px solid var(--border);
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.16);
}
.avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--on-brand);
  background: var(--grad-brand);
  flex-shrink: 0;
}
.chat-head .who { font-weight: 600; font-size: 0.92rem; color: var(--text); }
.chat-head .status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  color: var(--brand-soft);
}
.chat-head .status .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand); box-shadow: 0 0 8px var(--brand);
}
.chat-head .tag {
  margin-left: auto;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: var(--r-full);
  color: var(--brand-soft);
  background: rgba(37, 211, 102, 0.1);
  border: 1px solid var(--border-brand);
}

.chat-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 16px;
  overflow: hidden;
}
.bubble {
  max-width: 78%;
  padding: 10px 13px;
  font-size: 0.86rem;
  line-height: 1.45;
  border-radius: 16px;
  position: relative;
}
.bubble .meta {
  display: block;
  margin-top: 4px;
  font-size: 0.64rem;
  color: var(--text-3);
  text-align: right;
}
.bubble.in {
  align-self: flex-start;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-bottom-left-radius: 5px;
  color: var(--text);
}
.bubble.out {
  align-self: flex-end;
  background: linear-gradient(180deg, rgba(37, 211, 102, 0.22), rgba(18, 140, 126, 0.18));
  border: 1px solid var(--border-brand);
  border-bottom-right-radius: 5px;
  color: var(--text);
}
.bubble.out .meta { color: var(--brand-soft); }
.bot-flag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--brand-soft);
  margin-bottom: 5px;
}
.bot-flag svg { width: 11px; height: 11px; }

.typing {
  align-self: flex-start;
  display: inline-flex;
  gap: 4px;
  padding: 12px 14px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: 16px;
  border-bottom-left-radius: 5px;
}
.typing i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--text-3);
  animation: typing-bounce 1.3s var(--ease-in-out) infinite;
}
.typing i:nth-child(2) { animation-delay: 0.16s; }
.typing i:nth-child(3) { animation-delay: 0.32s; }

.chat-input {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.16);
}
.chat-input .field {
  flex: 1;
  padding: 9px 14px;
  font-size: 0.82rem;
  color: var(--text-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
}
.chat-input .send {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--grad-brand);
  color: var(--on-brand);
  flex-shrink: 0;
}
.chat-input .send svg { width: 16px; height: 16px; }

/* ISP customer card panel */
.crm {
  display: flex;
  flex-direction: column;
  background: var(--bg-3);
  padding: 16px;
  gap: 13px;
}
.crm-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}
.crm-title svg { width: 14px; height: 14px; color: var(--brand); }
.crm-customer {
  display: flex;
  align-items: center;
  gap: 11px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--border);
}
.crm-customer .name { font-weight: 600; font-size: 0.95rem; color: var(--text); }
.crm-customer .sub { font-size: 0.76rem; color: var(--text-3); }
.crm-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
}
.crm-row .k { color: var(--text-3); }
.crm-row .v { color: var(--text); font-weight: 500; }
.pill {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--r-full);
}
.pill.ok { color: var(--brand-soft); background: rgba(37, 211, 102, 0.12); border: 1px solid var(--border-brand); }
.pill.warn { color: #fbbf24; background: rgba(251, 191, 36, 0.12); border: 1px solid rgba(251, 191, 36, 0.3); }
.crm-invoice {
  margin-top: auto;
  padding: 13px;
  border-radius: var(--r-sm);
  background: var(--surface);
  border: 1px solid var(--border);
}
.crm-invoice .top {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 8px;
}
.crm-invoice .amount { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--text); }
.crm-invoice .due { font-size: 0.72rem; color: var(--text-3); }
.crm-invoice .btn { width: 100%; margin-top: 4px; }

/* ========== Logos / trust strip ========== */
.trust-strip { padding-block: clamp(40px, 6vw, 60px); }
.trust-strip .label {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-3);
  margin-bottom: 26px;
}
.marquee {
  position: relative;
  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: flex;
  gap: 56px;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--text-3);
  opacity: 0.75;
  white-space: nowrap;
}
.marquee-item svg { width: 22px; height: 22px; }

/* ========== Stats ========== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.stat {
  padding: 30px 24px;
  background: var(--bg-2);
  text-align: center;
}
.stat .num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}
.stat .lbl { margin-top: 10px; font-size: 0.88rem; color: var(--text-3); }

/* ========== Bento / feature grid ========== */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.card {
  position: relative;
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  overflow: hidden;
  transition: transform var(--t-base), border-color var(--t-base), background-color var(--t-base);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-brand);
  background: var(--card-hover);
}
.card.span-3 { grid-column: span 3; }
.card.span-2 { grid-column: span 2; }
.card.span-4 { grid-column: span 4; }
.card.span-6 { grid-column: span 6; }
.card-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  margin-bottom: 18px;
  color: var(--brand);
  background: rgba(37, 211, 102, 0.1);
  border: 1px solid var(--border-brand);
}
.card-icon svg { width: 23px; height: 23px; }
.card h3 { margin-bottom: 9px; }
.card p { font-size: 0.95rem; }
.card-glow {
  position: absolute;
  width: 200px; height: 200px;
  top: -60px; right: -60px;
  background: var(--spot-1);
  opacity: 0;
  transition: opacity var(--t-slow);
  pointer-events: none;
}
.card:hover .card-glow { opacity: 1; }

/* ========== Steps / how it works ========== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 30px 26px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand);
}
.step h3 { margin: 14px 0 9px; }
.step p { font-size: 0.95rem; }

/* ========== Split feature blocks ========== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(36px, 6vw, 80px);
}
.split.reverse .split-media { order: -1; }
.split-copy .eyebrow { margin-bottom: 18px; }
.split-copy h2 { margin-bottom: 18px; }
.feature-list { margin-top: 26px; display: grid; gap: 14px; }
.feature-list li {
  display: flex;
  gap: 13px;
  align-items: flex-start;
}
.feature-list .ic {
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  flex-shrink: 0;
  border-radius: 8px;
  margin-top: 2px;
  color: var(--brand);
  background: rgba(37, 211, 102, 0.12);
}
.feature-list .ic svg { width: 15px; height: 15px; }
.feature-list strong { color: var(--text); font-weight: 600; }
.feature-list span { color: var(--text-2); font-size: 0.95rem; }

.media-frame {
  position: relative;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
}

/* mini chat used in split media */
.mini-chat { display: flex; flex-direction: column; gap: 9px; }
.mini-chat .bubble { font-size: 0.84rem; }

/* automation flow visual */
.flow { display: grid; gap: 12px; }
.flow-node {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.flow-node .ic {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  color: var(--brand);
  background: rgba(37, 211, 102, 0.1);
  border: 1px solid var(--border-brand);
  flex-shrink: 0;
}
.flow-node .ic svg { width: 18px; height: 18px; }
.flow-node .t { font-weight: 600; font-size: 0.9rem; color: var(--text); }
.flow-node .d { font-size: 0.78rem; color: var(--text-3); }
.flow-arrow {
  display: grid; place-items: center;
  color: var(--text-3);
}
.flow-arrow svg { width: 18px; height: 18px; }

/* ========== Pricing ========== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
.plan {
  display: flex;
  flex-direction: column;
  padding: 30px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: transform var(--t-base), border-color var(--t-base);
}
.plan:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.plan.featured {
  border-color: var(--border-brand);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(37, 211, 102, 0.1), transparent 60%),
    var(--card);
  box-shadow: var(--glow-brand);
}
.plan-badge {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: var(--r-full);
  color: var(--on-brand);
  background: var(--grad-brand);
  margin-bottom: 16px;
}
.plan .plan-name { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; }
.plan .plan-desc { margin-top: 6px; font-size: 0.88rem; color: var(--text-3); min-height: 40px; }
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 20px 0 4px;
}
.plan-price .amt { font-family: var(--font-display); font-size: 2.7rem; font-weight: 700; letter-spacing: -0.03em; }
.plan-price .per { font-size: 0.9rem; color: var(--text-3); }
.plan-cta { margin: 22px 0; }
.plan-features { display: grid; gap: 12px; }
.plan-features li { display: flex; gap: 11px; font-size: 0.9rem; color: var(--text-2); }
.plan-features .ic { color: var(--brand); flex-shrink: 0; }
.plan-features .ic svg { width: 18px; height: 18px; }
.plan-features li.off { color: var(--text-3); opacity: 0.6; }
.plan-features li.off .ic { color: var(--text-3); }

.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px;
  margin: 0 auto 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
}
.billing-toggle button {
  padding: 8px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--r-full);
  color: var(--text-3);
  transition: color var(--t-fast), background-color var(--t-fast);
}
.billing-toggle button.active { color: var(--on-brand); background: var(--grad-brand); }
.billing-save { font-size: 0.78rem; color: var(--brand-soft); }

/* ========== FAQ ========== */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--t-base);
}
.faq-item:hover { border-color: var(--border-strong); }
.faq-item.open { border-color: var(--border-brand); }
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  padding: 20px 22px;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
}
.faq-q .chev {
  flex-shrink: 0;
  width: 22px; height: 22px;
  color: var(--brand);
  transition: transform var(--t-base);
}
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--t-base);
}
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a-inner { overflow: hidden; }
.faq-a p { padding: 0 22px 22px; font-size: 0.96rem; color: var(--text-2); }

/* ========== CTA band ========== */
.cta-band {
  position: relative;
  text-align: center;
  padding: clamp(48px, 7vw, 80px);
  border-radius: var(--r-xl);
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(37, 211, 102, 0.16), transparent 60%),
    var(--bg-2);
  border: 1px solid var(--border-brand);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}
.cta-band h2 { max-width: 640px; margin: 0 auto 18px; }
.cta-band p { max-width: 520px; margin: 0 auto 30px; font-size: 1.05rem; }
.cta-band .hero-cta { justify-content: center; }

/* ========== Footer ========== */
.footer {
  margin-top: clamp(60px, 8vw, 96px);
  border-top: 1px solid var(--border);
  padding-top: clamp(48px, 6vw, 72px);
  padding-bottom: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 40px;
}
.footer-brand p {
  margin-top: 16px;
  max-width: 320px;
  font-size: 0.92rem;
  color: var(--text-3);
}
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  color: var(--text-2);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.footer-social a:hover { color: var(--brand); border-color: var(--border-brand); transform: translateY(-2px); }
.footer-social svg { width: 18px; height: 18px; }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  padding: 6px 0;
  font-size: 0.92rem;
  color: var(--text-2);
  transition: color var(--t-fast), padding-left var(--t-fast);
}
.footer-col a:hover { color: var(--brand); padding-left: 4px; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 48px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-3);
}
.footer-bottom .links { display: flex; gap: 20px; }
.footer-bottom a:hover { color: var(--brand); }

/* ========== Generic page header (interior pages) ========== */
.page-hero {
  padding-top: clamp(150px, 16vw, 190px);
  padding-bottom: clamp(40px, 6vw, 64px);
  text-align: center;
}
.page-hero h1 { font-size: clamp(2.4rem, 5.4vw, 3.8rem); }
.page-hero p {
  max-width: 620px;
  margin: 22px auto 0;
  font-size: 1.1rem;
  color: var(--text-2);
}
.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 22px;
  font-size: 0.85rem;
  color: var(--text-3);
}
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb span { color: var(--border-strong); }

/* Prose (legal page) */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 1.6rem; margin: 40px 0 14px; }
.prose h3 { font-size: 1.2rem; margin: 28px 0 10px; }
.prose p { margin-bottom: 14px; line-height: 1.75; }
.prose ul { margin: 0 0 16px 0; display: grid; gap: 8px; }
.prose ul li {
  position: relative;
  padding-left: 22px;
  color: var(--text-2);
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 4px; top: 10px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand);
}
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--text); }

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy { max-width: 640px; margin: 0 auto; text-align: center; }
  .hero .lead { margin-inline: auto; }
  .hero-cta, .hero-trust { justify-content: center; }
  .card.span-3 { grid-column: span 6; }
  .card.span-2 { grid-column: span 3; }
  .card.span-4 { grid-column: span 6; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse .split-media { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-burger { display: grid; }
  .nav-actions .btn-ghost { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .plan.featured { order: -1; }
}

@media (max-width: 600px) {
  .app { grid-template-columns: 1fr; }
  .crm { display: none; }
  .chat { border-right: none; }
  .bento { gap: 14px; }
  .card.span-2 { grid-column: span 6; }
  .card { padding: 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero-cta .btn { width: 100%; }
}

@media (max-width: 480px) {
  /* La navbar deja solo marca + tema + menú; el CTA vive en el menú móvil */
  .nav-actions .btn-primary { display: none; }
  .nav-inner { padding: 8px 10px 8px 14px; gap: 12px; }
  .nav { padding: 10px 12px; }
  .stat { padding: 24px 16px; }
  h1 { font-size: clamp(1.75rem, 8vw, 3rem); }
  .hero h1 { hyphens: auto; }
}

/* ========== Utilities ========== */
.mt-sm { margin-top: 12px; }
.mt-md { margin-top: 24px; }
.mt-lg { margin-top: 48px; }
.center { text-align: center; }
.muted { color: var(--text-3); }
.nowrap { white-space: nowrap; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
