/* Wasabil — Mercury-inspired DARK palette (v2)
   Mercury's public site uses a dark canvas with off-white text, muted chrome,
   and very restrained green accents. We emulate:
   - Deep near-black canvas (#0a0b0d), slightly lifted panels (#111214, #17181b)
   - Warm off-white text (#f3efe7) to stay compatible with our mascot's warmth
   - Cool slate-gray borders and muted copy
   - Wasabi green accent, pushed a touch brighter to sit on dark
   - Generous use of whitespace and thin 1px borders
*/
:root {
  --bg: #121219;
  --bg-2: #181820;
  --bg-3: #1e1e27;
  --paper: #1c1c24;
  --panel: #16161d;
  --ink: #f3efe7;
  --ink-2: #e4dfd4;
  --ink-3: #c8c2b5;
  --muted: #8a8880;
  --muted-2: #6b6960;
  --rule: #26262f;
  --rule-2: #33343e;
  --accent: oklch(0.78 0.18 130);
  --accent-2: oklch(0.88 0.17 125);
  --accent-wash: oklch(0.3 0.08 135);
  --accent-cool: oklch(0.72 0.12 265);
  --danger: oklch(0.72 0.18 30);
  --serif: "Instrument Serif", "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --sans: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 0 rgba(0,0,0,0.3);
  --shadow: 0 1px 0 rgba(0,0,0,0.4), 0 12px 32px -12px rgba(0,0,0,0.5);
  --shadow-lg: 0 1px 0 rgba(0,0,0,0.4), 0 40px 80px -24px rgba(0,0,0,0.6);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  font-feature-settings: "ss01", "cv11";
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

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

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}
.container-wide { max-width: 1440px; margin: 0 auto; padding: 0 32px; }

/* Type */
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
.mono  { font-family: var(--mono); font-feature-settings: "ss01"; }
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-weight: 500;
}
.eyebrow .dot { display:inline-block; width:6px; height:6px; border-radius:50%; background: var(--accent); margin-right:8px; vertical-align: 1px; }
h1, h2, h3 { margin: 0; font-weight: 400; }
.display-1 {
  font-family: var(--serif);
  font-size: clamp(42px, 4.6vw, 72px);
  line-height: 0.96;
  letter-spacing: -0.025em;
}
.display-2 {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.display-3 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.015em;
}
.lede {
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--ink-2);
  line-height: 1.5;
  max-width: 56ch;
}
.italic { font-style: italic; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg) 85%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.nav.scrolled { border-bottom-color: var(--rule); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 32px;
  max-width: 1440px; margin: 0 auto;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: -0.02em;
}
.logo-mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--bg-3);
  border: 1px solid var(--rule-2);
  display: grid; place-items: center;
  color: var(--ink);
  font-family: var(--serif); font-size: 18px;
  position: relative;
}
.logo-mark::after {
  content: ""; position: absolute; inset: 4px;
  background: radial-gradient(circle at 35% 35%, var(--accent-2), var(--accent));
  border-radius: 4px;
}
.logo-mark span { position: relative; z-index: 1; color: var(--bg); font-weight: 600; }
.nav-links {
  display: flex; gap: 4px; align-items: center;
}
.nav-link {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--ink-2);
  transition: background 0.15s, color 0.15s;
  position: relative;
}
.nav-link:hover { background: var(--bg-2); color: var(--ink); }
.nav-link.active { color: var(--ink); }
.nav-link.active::after {
  content:""; position:absolute; left:14px; right:14px; bottom: 2px;
  height: 1px; background: var(--ink);
}
.nav-cta { display: flex; gap: 8px; align-items: center; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: var(--sans);
  letter-spacing: -0.005em;
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover { background: #fff; transform: translateY(-1px); box-shadow: 0 6px 20px -6px rgba(255,255,255,0.25); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(255,255,255,0.18);
}
.btn-ghost:hover { background: var(--bg-2); border-color: rgba(255,255,255,0.32); }
.btn-link {
  background: transparent;
  color: var(--ink);
  padding: 11px 0;
}
.btn-link .arrow { transition: transform 0.2s; }
.btn-link:hover .arrow { transform: translateX(4px); }
.btn-sm { padding: 7px 14px; font-size: 13px; }

/* Pills / chips */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 8px;
  border-radius: 999px;
  background: var(--bg-2);
  border: 1px solid var(--rule);
  font-size: 12px;
  color: var(--ink-2);
  font-weight: 500;
}
.pill .pill-tag {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--accent);
  color: #0b140b;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

/* Sections */
.section { padding: 120px 0; }
.section-sm { padding: 72px 0; }
.section-title {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 32px;
  margin-bottom: 56px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rule);
}
.section-title .label { font-family: var(--mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }

/* Rules */
.hr { height: 1px; background: var(--rule); border: 0; margin: 0; }

/* Product window (macOS chrome) */
.window {
  background: var(--panel);
  border: 1px solid var(--rule-2);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.window-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: linear-gradient(180deg, #22222b, #181820);
  border-bottom: 1px solid var(--rule);
}
.window-dots { display: flex; gap: 6px; }
.window-dots span { width: 11px; height: 11px; border-radius: 50%; background: #33343e; }
.window-dots span:nth-child(1) { background: #e06c5e; }
.window-dots span:nth-child(2) { background: #e5b046; }
.window-dots span:nth-child(3) { background: #6bbf59; }
.window-title {
  margin: 0 auto; font-size: 12px; color: var(--muted); font-family: var(--mono);
}

/* Little mascot blob — easter egg */
.mascot {
  position: absolute;
  pointer-events: none;
  width: 48px; height: 48px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
  opacity: 0.95;
}

/* Footnote / caption */
.caption {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Utility */
.flex { display: flex; }
.grid { display: grid; }
.gap-4 { gap: 16px; } .gap-6 { gap: 24px; } .gap-8 { gap: 32px; } .gap-12 { gap: 48px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.text-muted { color: var(--muted); }
.text-center { text-align: center; }
.mt-2 { margin-top: 8px; } .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; } .mt-8 { margin-top: 32px; } .mt-12 { margin-top: 48px; } .mt-16 { margin-top: 64px; }
.mb-2 { margin-bottom: 8px; } .mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; }

/* Logo cloud */
.logo-cloud-strip {
  display: flex;
  gap: 36px 44px;
  flex-wrap: wrap;
  align-items: center;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: -0.01em;
}
.logo-cloud-strip > span { opacity: 0.7; white-space: nowrap; }
@media (max-width: 860px) {
  .logo-cloud-strip { font-size: 17px; gap: 20px 28px; }
}

/* Hamburger menu */
.nav-burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--ink);
  border-radius: 8px;
  line-height: 0;
  transition: background 0.15s;
}
.nav-burger:hover { background: color-mix(in oklab, var(--ink) 8%, transparent); }

.nav-mobile-menu {
  position: fixed;
  top: 61px; left: 0; right: 0; bottom: 0;
  z-index: 48;
  background: var(--bg);
  padding: 24px 20px 40px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}
.nav-mobile-link {
  display: block;
  padding: 13px 16px;
  border-radius: 10px;
  font-size: 17px;
  color: var(--ink);
  transition: background 0.15s;
}
.nav-mobile-link:hover,
.nav-mobile-link.active { background: color-mix(in oklab, var(--ink) 8%, transparent); }
.nav-mobile-divider { height: 1px; background: var(--rule); margin: 8px 0; }

/* Responsive */
@media (max-width: 960px) {
  .container { padding: 0 20px; }
  .container-wide { padding: 0 20px; }
  .section { padding: 64px 0; }
  .nav-inner { padding: 14px 20px; }
  .nav-links { display: none; }
  .nav-desktop-only { display: none !important; }
  .nav-burger { display: flex; align-items: center; justify-content: center; }
  .section-title { flex-direction: column; align-items: flex-start; }
  .display-1 { font-size: clamp(42px, 9vw, 72px) !important; }
}

/* Footer */
.footer {
  background: #0d0d12;
  color: var(--ink);
  padding: 96px 0 48px;
  margin-top: 48px;
  border-top: 1px solid var(--rule);
}
.footer a { color: var(--muted); font-size: 14px; }
.footer a:hover { color: var(--ink); }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--rule);
}
.footer h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 500; color: var(--muted-2); margin-bottom: 20px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 32px;
  font-size: 12px;
  color: var(--muted-2);
}
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .footer { padding: 64px 0 40px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; padding-bottom: 40px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero-section {
  position: relative;
  padding: 52px 0 36px;
  overflow-x: clip;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 48px;
  align-items: center;
}
@media (max-width: 1120px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 860px) {
  .hero-section { padding: 64px 0 48px; }
  .hero-product-shot-wrap { display: none; }
  .hero-mascot { display: none; }
}

/* ── Pricing page ─────────────────────────────────────────────────────────── */
.pricing-plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pricing-card { padding: 36px; }
.pricing-faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.pricing-calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
@media (max-width: 860px) {
  .pricing-plans-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .pricing-card { padding: 28px; }
  .pricing-faq-grid { grid-template-columns: 1fr; gap: 32px; }
  .pricing-calc-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ── Home page ────────────────────────────────────────────────────────────── */
.feature-row { display: grid; grid-template-columns: 0.9fr 1.1fr; background: var(--paper); }
.feature-row-text { padding: 56px 48px; }
.feature-row-demo { padding: 56px 48px; }
.mcp-demo-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: center; }
.home-plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cta-band-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: center; }
.clients-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 72px; align-items: center; }
.clients-logos-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; }
.clients-logo-strip {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 1px; background: var(--rule);
  border: 1px solid var(--rule); border-radius: 12px; overflow: hidden;
}

@media (max-width: 860px) {
  .feature-row { grid-template-columns: 1fr; }
  .feature-row-text { padding: 36px 28px; border-right: none !important; border-bottom: 1px solid var(--rule); }
  .feature-row-demo { padding: 32px 28px; }
  .mcp-demo-grid { grid-template-columns: 1fr; gap: 40px; }
  .home-plans-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .cta-band-grid { grid-template-columns: 1fr; gap: 40px; }
  .cta-band-grid > div:last-child { display: none; }
  .clients-grid { grid-template-columns: 1fr; gap: 40px; }
  .clients-logos-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid {
    display: flex; overflow-x: auto;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    gap: 16px; padding-bottom: 16px; scrollbar-width: none;
  }
  .testimonials-grid::-webkit-scrollbar { display: none; }
  .testimonials-grid > * { scroll-snap-align: start; flex-shrink: 0; width: calc(85vw - 40px); max-width: 360px; }
  .clients-logo-strip {
    display: flex; overflow-x: auto;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    background: none; border: none; border-radius: 0;
    gap: 12px; padding-bottom: 8px; scrollbar-width: none;
  }
  .clients-logo-strip::-webkit-scrollbar { display: none; }
  .clients-logo-strip > * {
    scroll-snap-align: start; flex-shrink: 0;
    width: 140px; border: 1px solid var(--rule); border-radius: 12px;
    min-height: 100px !important; padding: 24px 20px !important;
  }
}

.hero-cta-row { flex-wrap: nowrap; }
.hero-stats-row { flex-wrap: nowrap; }

@media (max-width: 640px) {
  .hero-cta-row { flex-wrap: wrap !important; }
  .hero-stats-row { flex-wrap: wrap !important; }
  .hero-demo-link { width: 100%; justify-content: center; }
}

/* ============================================================
   Intent Picker — acordeón inline (home)
   "¿En qué puedo ayudarte?" con expansión in-place al click.
   ============================================================ */
.ip-shell {
  padding: 96px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
}
.ip-head { max-width: 1100px; }
.ip-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: start;
}
@media (max-width: 980px) { .ip-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .ip-grid { grid-template-columns: 1fr; } }

.ip-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .18s ease, transform .18s ease;
}
.ip-card:hover { border-color: var(--rule-2); transform: translateY(-1px); }
.ip-card.is-open {
  grid-column: 1 / -1;
  border-color: var(--accent);
  background: var(--paper);
  transform: none;
}

.ip-card-trigger {
  display: flex; flex-direction: column;
  width: 100%;
  text-align: left;
  cursor: pointer;
  padding: 24px;
  background: transparent;
  border: none;
  color: var(--ink);
  font-family: var(--sans);
  min-height: 200px;
}
.ip-card.is-open .ip-card-trigger {
  border-bottom: 1px solid var(--rule);
  min-height: 0;
  padding: 22px 28px;
  flex-direction: row;
  align-items: center;
  gap: 18px;
}
.ip-card.is-open .ip-card-body { flex: 1; margin: 0; }
.ip-card.is-open .ip-card-foot { margin: 0; padding: 0; border: none; }

.ip-card-head {
  display: flex; align-items: center; justify-content: space-between;
  color: var(--accent);
}
.ip-card-icon {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--accent-wash);
  border: 1px solid var(--rule);
  color: var(--accent);
  flex-shrink: 0;
}
.ip-card-num { font-size: 11px; color: var(--muted); letter-spacing: .12em; }
.ip-card.is-open .ip-card-num { display: none; }
.ip-card-body { margin-top: 22px; flex: 1; }
.ip-card-title {
  font-size: 17px; font-weight: 500;
  letter-spacing: -0.01em; color: var(--ink);
}
.ip-card-label {
  font-size: 13.5px; color: var(--muted);
  margin-top: 6px; line-height: 1.5;
}
.ip-card.is-open .ip-card-label { display: none; }
.ip-card-foot {
  margin-top: 20px; padding-top: 14px;
  border-top: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: space-between;
}
.ip-card-hint {
  font-size: 11.5px; color: var(--muted);
  text-transform: uppercase; letter-spacing: .1em;
}
.ip-card.is-open .ip-card-hint { display: none; }
.ip-card-arrow {
  color: var(--ink-2);
  display: inline-flex;
  transition: transform .2s, color .2s;
}
.ip-card:hover .ip-card-arrow { color: var(--accent); transform: translate(2px, -2px); }
.ip-card.is-open .ip-card-arrow {
  color: var(--accent);
  transform: rotate(45deg);
}

.ip-card-panel {
  padding: 36px 32px 32px;
  animation: ipFade .2s ease;
}
@keyframes ipFade {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.ip-panel-head { max-width: 70ch; }
.ip-panel-head h3 { letter-spacing: -0.015em; }
.ip-panel-head p  { margin-top: 14px; }

.ip-details {
  list-style: none; padding: 0; margin: 28px 0 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0;
  border-top: 1px solid var(--rule);
}
@media (max-width: 760px) { .ip-details { grid-template-columns: 1fr; } }
.ip-details li {
  display: grid; grid-template-columns: auto 1fr; gap: 14px;
  padding: 16px 18px 16px 0;
  border-bottom: 1px solid var(--rule);
  align-items: flex-start;
}
.ip-details li:nth-child(odd) { border-right: 1px solid var(--rule); padding-right: 24px; }
@media (max-width: 760px) { .ip-details li:nth-child(odd) { border-right: none; padding-right: 0; } }
.ip-detail-icon {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: var(--accent-wash);
  border: 1px solid var(--rule);
  color: var(--accent); flex-shrink: 0;
}
.ip-detail-title { font-size: 14.5px; font-weight: 500; color: var(--ink); margin-bottom: 4px; }
.ip-detail-desc  { font-size: 13.5px; color: var(--muted); line-height: 1.5; }

.ip-hiw {
  margin-top: 32px;
  padding: 22px;
  background: var(--bg-2);
  border: 1px solid var(--rule);
  border-radius: 14px;
}
.ip-hiw-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.ip-hiw-head .caption {
  font-size: 11px; color: var(--accent);
  letter-spacing: .12em; text-transform: uppercase;
}
.ip-hiw-counter { font-size: 11.5px; color: var(--muted); letter-spacing: .08em; }
.ip-hiw-progress { display: flex; gap: 4px; margin-bottom: 22px; }
.ip-hiw-bar {
  flex: 1; height: 3px; border-radius: 2px;
  background: var(--rule);
  transition: background .25s;
}
.ip-hiw-bar.is-filled { background: var(--accent); }
.ip-hiw-body {
  display: grid; grid-template-columns: auto 1fr; gap: 18px;
  align-items: flex-start;
  padding: 8px 0 22px;
  animation: ipFade .2s ease;
}
.ip-hiw-icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--accent-wash);
  border: 1px solid var(--rule);
  color: var(--accent);
}
.ip-hiw-title { font-size: 18px; font-weight: 500; color: var(--ink); margin-bottom: 6px; letter-spacing: -0.01em; }
.ip-hiw-desc  { font-size: 14px; color: var(--muted); line-height: 1.55; max-width: 60ch; }
.ip-hiw-nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--rule);
  padding-top: 16px;
}
.ip-hiw-btn {
  background: transparent;
  border: 1px solid var(--rule);
  padding: 7px 14px; border-radius: 999px;
  color: var(--ink); cursor: pointer; font-family: var(--sans);
  font-size: 13px;
  transition: border-color .15s, background .15s, opacity .15s;
}
.ip-hiw-btn:hover:not(:disabled) { border-color: var(--accent); background: var(--accent-wash); }
.ip-hiw-btn:disabled { opacity: .4; cursor: not-allowed; }
.ip-hiw-dots { display: flex; gap: 8px; }
.ip-hiw-dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--rule-2);
  border: none; cursor: pointer;
  transition: background .15s, transform .15s;
  padding: 0;
}
.ip-hiw-dot:hover { transform: scale(1.2); }
.ip-hiw-dot.is-active { background: var(--accent); }

.ip-ctas {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: 28px;
}


/* ============================================================
   Reveal on scroll (estilo Mercury)
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition:
    opacity 900ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
[data-reveal="left"]  { transform: translate3d(-32px, 0, 0); }
[data-reveal="right"] { transform: translate3d( 32px, 0, 0); }
[data-reveal="zoom"]  { transform: scale(0.96); }
[data-reveal="fade"]  { transform: none; }

[data-reveal].is-inview {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}



/* ============================================================
   Marquee infinito — logos de clientes
   ============================================================ */
.clients-marquee {
  position: relative;
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent 0, black 8%, black 92%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, black 8%, black 92%, transparent 100%);
}
.clients-marquee-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: clientsScroll 32s linear infinite;
  will-change: transform;
}
.clients-marquee:hover .clients-marquee-track {
  animation-play-state: paused;
}
.clients-marquee-item {
  flex-shrink: 0;
  transition: transform .25s ease, border-color .25s ease;
}
.clients-marquee-item:hover {
  transform: translateY(-3px);
  border-color: var(--accent) !important;
}
@keyframes clientsScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .clients-marquee-track { animation: none; }
}

/* ============================================================
   Hover global — botones, pills, cards, iconos
   ============================================================ */
.btn:not(:disabled) {
  transition: transform .2s ease, box-shadow .2s ease, background .15s ease, border-color .2s ease, color .15s ease !important;
}
.btn:not(:disabled):hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.30);
}
.btn:not(:disabled):active {
  transform: translateY(0) scale(0.99);
  transition-duration: 80ms;
}

.pill {
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.pill:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
}

/* Cards genéricas con border + hover lift */
.window,
.pricing-card,
.feature-row,
.option-card,
.ip-card,
.ip-jump-item,
.hiw-trigger {
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease !important;
}
.window:hover,
.pricing-card:hover,
.option-card:hover,
.hiw-trigger:hover {
  transform: translateY(-3px);
}

/* Iconos con accent-wash brillan en hover de su card padre */
.ip-card:hover .ip-card-icon,
.ip-card:hover .ip-detail-icon,
.hiw-trigger:hover .hiw-trigger-icon,
.feature-row:hover [data-icon],
.option-card:hover .option-card-icon {
  background: var(--accent) !important;
  color: var(--paper) !important;
  box-shadow: 0 0 18px -2px var(--accent);
  transition: background .25s ease, color .25s ease, box-shadow .25s ease;
}

/* Links con flecha */
.btn-link:hover .arrow,
.btn:hover .arrow {
  transform: translateX(5px);
}

/* Nav links — subrayado animado al hover */
.nav-link {
  transition: color .15s ease, background .15s ease;
}
.nav-link:hover {
  background: color-mix(in oklab, var(--accent) 10%, transparent);
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .pill,
  .window,
  .pricing-card,
  .feature-row,
  .option-card,
  .ip-card,
  .hiw-trigger {
    transition: none !important;
  }
  .btn:hover, .pill:hover, .window:hover, .pricing-card:hover,
  .feature-row:hover, .option-card:hover, .ip-card:hover, .hiw-trigger:hover {
    transform: none !important;
  }
}


/* ============================================================
   "Ve cómo funciona" — botón inline + modal paso a paso (paleta oscura)
   ============================================================ */
.hiw-trigger {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  background: var(--bg-2);
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  font-family: var(--sans);
  font-size: 14px;
}
.hiw-trigger-icon {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: var(--accent-wash);
  color: var(--accent);
  border: 1px solid var(--rule);
  flex-shrink: 0;
}
.hiw-trigger-text { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.hiw-trigger-label { font-size: 14px; font-weight: 500; }
.hiw-trigger-sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.hiw-trigger-arrow { color: var(--ink-2); transition: transform .2s; display: inline-flex; }

.hiw-portal {
  position: fixed; inset: 0; z-index: 9000;
  pointer-events: none; opacity: 0;
  transition: opacity .22s ease;
}
.hiw-portal.is-open { pointer-events: auto; opacity: 1; }
.hiw-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px);
}
.hiw-sheet {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(.98);
  width: min(560px, 92vw);
  background: var(--paper);
  border: 1px solid var(--rule-2);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transition: transform .22s cubic-bezier(.2,.7,.2,1);
  display: flex; flex-direction: column;
  max-height: 88vh;
}
.hiw-portal.is-open .hiw-sheet { transform: translate(-50%, -50%) scale(1); }
.hiw-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 20px; padding: 22px 24px 16px;
  border-bottom: 1px solid var(--rule);
}
.hiw-title { font-size: 22px; margin-top: 6px; letter-spacing: -0.01em; color: var(--ink); }
.hiw-close {
  display: inline-grid; place-items: center;
  width: 32px; height: 32px; border-radius: 999px;
  background: var(--bg-2); border: 1px solid var(--rule);
  color: var(--ink); cursor: pointer; flex-shrink: 0;
}
.hiw-close:hover { background: var(--bg-3, var(--bg-2)); }
.hiw-progress {
  display: flex; gap: 4px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--rule);
}
.hiw-bar {
  flex: 1; height: 3px; border-radius: 2px;
  background: var(--rule);
  transition: background .25s;
}
.hiw-bar.is-filled { background: var(--accent); }
.hiw-bar.is-current { background: var(--accent-2, var(--accent)); }
.hiw-body {
  padding: 36px 32px 24px;
  text-align: center;
  animation: fadeIn .22s ease;
  overflow-y: auto;
}
.hiw-step-num {
  font-size: 11px; color: var(--muted);
  letter-spacing: .14em; text-transform: uppercase;
}
.hiw-icon-big {
  width: 76px; height: 76px;
  margin: 18px auto 22px;
  display: grid; place-items: center;
  border-radius: 16px;
  background: var(--accent-wash);
  border: 1px solid var(--rule);
  color: var(--accent);
}
.hiw-step-title { font-size: 24px; letter-spacing: -0.01em; margin-bottom: 12px; color: var(--ink); }
.hiw-step-desc  { font-size: 14.5px; color: var(--muted); line-height: 1.6; max-width: 44ch; margin: 0 auto; }
.hiw-nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 16px 24px 22px;
  border-top: 1px solid var(--rule);
}
.hiw-dots { display: flex; gap: 8px; }
.hiw-dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--rule-2);
  border: none; cursor: pointer;
  transition: background .15s, transform .15s;
}
.hiw-dot:hover { transform: scale(1.2); }
.hiw-dot.is-active { background: var(--accent); }

@media (max-width: 540px) {
  .hiw-header { padding: 18px 18px 12px; }
  .hiw-body   { padding: 28px 20px 18px; }
  .hiw-step-title { font-size: 20px; }
  .hiw-nav    { padding: 14px 18px 18px; flex-wrap: wrap; }
}

/* ============================================================
   Palette switch — modo claro
   Cuando <html data-palette="light"> activo, sobreescribimos los tokens.
   La transición ocurre porque cada elemento que usa var(--bg) etc tiene
   transition global definido abajo.
   ============================================================ */
:root[data-palette="light"] {
  --bg: #f6f3ec;
  --bg-2: #eeeae0;
  --bg-3: #e8e2d2;
  --paper: #fbf9f3;
  --panel: #f0ece0;
  --ink: #141311;
  --ink-2: #2a2824;
  --ink-3: #4a4742;
  --muted: #6b6760;
  --muted-2: #8a8780;
  --rule: #e3ddcf;
  --rule-2: #d4ccb8;
  --accent: oklch(0.64 0.21 135);
  --accent-2: oklch(0.85 0.20 128);
  --accent-wash: oklch(0.95 0.07 132);
  --shadow-sm: 0 1px 0 rgba(20,19,17,0.04), 0 1px 2px rgba(20,19,17,0.04);
  --shadow: 0 1px 0 rgba(20,19,17,0.06), 0 12px 28px -12px rgba(20,19,17,0.18);
  --shadow-lg: 0 1px 0 rgba(20,19,17,0.05), 0 40px 80px -24px rgba(20,19,17,0.25);
}

/* Transición global: todos los elementos que pintan con tokens */
body,
.nav,
.section,
.section-title,
.btn,
.btn-primary,
.btn-ghost,
.btn-link,
.pill,
.window,
.window-bar,
.feature-row,
.pricing-card,
.option-card,
.ip-card,
.ip-card-trigger,
.ip-card-icon,
.ip-detail-icon,
.ip-card-panel,
.ip-jump-item,
.ip-shell,
.ip-hiw,
.ip-hiw-icon,
.ip-hiw-btn,
.hiw-trigger,
.hiw-trigger-icon,
.hiw-sheet,
.hiw-icon-big,
.hiw-close,
.clients-marquee-item,
.eyebrow .dot {
  transition:
    background-color 600ms ease,
    color 600ms ease,
    border-color 600ms ease,
    box-shadow 600ms ease;
}

/* No queremos que la transición de paleta interfiera con los efectos hover
   (que usan transform/box-shadow más rápidos). Los hovers ya tienen su
   propio transition definido y como están más abajo en cascada ganan. */

/* ============================================================
   Mobile optimization — ≤640px
   Pase global de ajustes para que el sitio se sienta nativo en
   pantallas pequeñas (320–640px). Tipografías más contenidas,
   paddings reducidos, grids que apilan, marquee de clientes y
   "Respaldados por" reflujados.
   ============================================================ */
@media (max-width: 640px) {
  /* Containers: menos aire lateral */
  .container,
  .container-wide { padding: 0 20px; }

  /* Tipografía display más contenida */
  .display-1 { font-size: clamp(34px, 8.6vw, 48px) !important; line-height: 1.04; }
  .display-2 { font-size: clamp(30px, 8.2vw, 44px) !important; line-height: 1.06; }
  .display-3 { font-size: clamp(22px, 6.4vw, 30px) !important; }
  .lede { font-size: 15.5px; line-height: 1.5; }
  .eyebrow { font-size: 10.5px; }

  /* Section padding global más compacto */
  .section { padding: 56px 0 !important; }
  .section-title { gap: 16px; }

  /* Hero: tighten */
  .hero-section { padding: 40px 0 28px !important; }
  .hero-grid { gap: 32px; }

  /* Nav: alto y padding más finos */
  .nav { padding: 10px 0; }
  .nav-inner { padding: 0 20px; }
  .nav .btn { padding: 8px 14px; font-size: 13px; }

  /* Botones globales un poco más densos */
  .btn { padding: 10px 16px; font-size: 14px; }
  .btn-sm { padding: 7px 12px; font-size: 12.5px; }

  /* Stats strip: 2 col en mobile */
  .stats-strip,
  [data-stats-strip] { gap: 16px !important; padding: 22px 18px !important; }

  /* Cards genéricas */
  .window,
  .card,
  figure { padding: 22px !important; }

  /* Marquee de clientes: tarjetas más pequeñas */
  .clients-marquee-item {
    min-width: 150px !important;
    min-height: 96px !important;
    padding: 22px 16px !important;
    border-radius: 10px !important;
  }
  .clients-marquee-item img { max-height: 36px !important; }

  /* "Respaldados por" (LogoCloud) */
  .logo-cloud-strip,
  .logo-cloud { gap: 10px 12px !important; }

  /* Feature rows */
  .feature-row-text { padding: 28px 22px !important; }
  .feature-row-demo { padding: 24px 22px !important; }

  /* Pricing cards en mobile */
  .pricing-card { padding: 22px !important; }

  /* Footer */
  .footer { padding: 48px 0 32px !important; }

  /* Imágenes y media: no overflow horizontal */
  img, video, iframe { max-width: 100%; height: auto; }

  /* Evita scroll horizontal accidental */
  html, body { overflow-x: hidden; }

  /* Headings dentro de section-title se sienten más equilibrados */
  .section-title h2 { margin-top: 12px !important; }
}

/* ─ Extra tight para pantallas ultra-pequeñas (≤380px, iPhone SE) ─ */
@media (max-width: 380px) {
  .container,
  .container-wide { padding: 0 16px; }
  .display-1 { font-size: 32px !important; }
  .display-2 { font-size: 28px !important; }
  .btn { padding: 9px 14px; font-size: 13.5px; }
  .clients-marquee-item { min-width: 130px !important; }
}

/* Salvavidas: logos de clientes y "Respaldados por" SIEMPRE sin filtros.
   Los logos están guardados en sus colores corporativos (azules oscuros,
   negros) sobre transparencia. Cualquier filtro brightness/invert los
   destruye. El contenedor lleva fondo blanco fijo para garantizar contraste
   en cualquier paleta. */
.clients-marquee-item { background: #ffffff !important; }
.clients-marquee-item img { filter: none !important; opacity: 1 !important; }

/* ==== NUKE: garantizar logos visibles en clientes y "Respaldados por" ==== */
.clients-marquee,
.clients-marquee *,
.clients-marquee-item,
.clients-marquee-item * {
  filter: none !important;
}
.clients-marquee-item {
  background: #ffffff !important;
  border: 1px solid #e3ddcf !important;
}
.clients-marquee-item img {
  filter: none !important;
  -webkit-filter: none !important;
  opacity: 1 !important;
  mix-blend-mode: normal !important;
}
/* Logo cloud (Respaldados por) — chip blanco fijo */
[data-logo-cloud-chip] {
  background: #ffffff !important;
  border: 1px solid #e3ddcf !important;
}
[data-logo-cloud-chip] img {
  filter: none !important;
  -webkit-filter: none !important;
  opacity: 1 !important;
}
