/* =========================================================================
   IARTIFICIALCOL — Light premium design system
   Sobrio: lienzo hueso, tarjetas blancas, hairlines negro/10, un solo acento
   verde esmeralda oscurecido hasta pasar contraste AA como texto.
   ========================================================================= */

/* ---- Tokens ---- */
:root {
  /* Superficies: lienzo hueso, tarjetas blancas que levantan sobre el */
  --bg:            #F7F8F7;
  --bg-2:          #EEF1EF;
  --surface:       #FFFFFF;
  --surface-2:     #F2F4F3;
  --hairline:      rgba(17,24,22,.10);
  --hairline-2:    rgba(17,24,22,.19);

  /* Tinta */
  --ink:           #10161A;
  --ink-soft:      #48545A;
  --ink-mute:      #667278;

  /* Acento (el verde del logo, oscurecido hasta pasar contraste AA sobre el
     lienzo: el #1fc79a original daba 3,8:1 y no era legible como texto) */
  --accent:        #087A59;
  --accent-2:      #0A7078;
  --accent-ink:    #FFFFFF;
  --accent-vivid:  #0D9B70;   /* solo texto grande: 3,3:1, AA-large */
  --accent-glow:   rgba(8,122,89,.22);
  --accent-soft:   rgba(8,122,89,.08);

  /* Sombras neutras y suaves: en claro, una sombra dura ensucia */
  --shadow-sm:  0 1px 2px rgba(16,22,26,.06);
  --shadow-md:  0 18px 40px -20px rgba(16,22,26,.20);
  --shadow-lg:  0 40px 90px -34px rgba(16,22,26,.24);
  --ring-in:    inset 0 1px 0 rgba(255,255,255,.9);

  /* Type */
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body:    "Manrope", ui-sans-serif, system-ui, sans-serif;

  /* Rhythm */
  --container: 1200px;
  --radius:    22px;
  --radius-lg: 30px;
  --radius-sm: 14px;

  /* Motion */
  --ease:      cubic-bezier(.32,.72,0,1);
  --ease-out:  cubic-bezier(.16,1,.3,1);
  --dur:       .6s;

  --nav-h: 74px;
}

/* ---- Reset ---- */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img,svg,video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
ul { list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* ---- Ambient background: mesh orbs + grain ---- */
.bg-orbs {
  position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden;
}
.bg-orbs::before,
.bg-orbs::after {
  content: ""; position: absolute; border-radius: 50%;
  filter: blur(130px); opacity: .30;
}
.bg-orbs::before {
  width: 60vw; height: 60vw; top: -22vw; left: -12vw;
  background: radial-gradient(circle, rgba(8,122,89,.28), transparent 65%);
}
.bg-orbs::after {
  width: 55vw; height: 55vw; bottom: -25vw; right: -15vw;
  background: radial-gradient(circle, rgba(10,112,120,.22), transparent 65%);
}
.grain {
  position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: .022;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- Layout ---- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
section { position: relative; }
.section { padding-block: clamp(72px, 11vw, 148px); }
.section-tight { padding-block: clamp(56px, 8vw, 104px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 13px; border-radius: 999px;
  background: var(--accent-soft); border: 1px solid rgba(8,122,89,.25);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent-glow); }

.section-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 68px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-top: 20px; }
.section-head p { margin-top: 18px; color: var(--ink-soft); font-size: clamp(16px,2.2vw,19px); max-width: 60ch; }
.section-head.center p { margin-inline: auto; }

/* ---- Typography ---- */
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.04; letter-spacing: -.03em; }
h1 { font-size: clamp(40px, 7vw, 76px); }
h2 { font-size: clamp(30px, 4.6vw, 52px); }
h3 { font-size: clamp(21px, 2.6vw, 27px); letter-spacing: -.02em; }
.lede { font-size: clamp(17px, 2.4vw, 21px); color: var(--ink-soft); line-height: 1.55; }
.text-accent { color: var(--accent); }
.balance { text-wrap: balance; }
p { text-wrap: pretty; }

/* ---- Buttons ---- */
.btn {
  --pad: 14px 22px;
  display: inline-flex; align-items: center; gap: 12px;
  padding: var(--pad); border-radius: 999px;
  font-family: var(--font-display); font-weight: 500; font-size: 15px;
  transition: transform .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: scale(.975); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--accent-ink); font-weight: 600;
  box-shadow: 0 10px 30px -8px var(--accent-glow), var(--ring-in);
}
.btn-primary:hover { box-shadow: 0 16px 44px -10px var(--accent-glow), var(--ring-in); transform: translateY(-2px); }
.btn-ghost { background: var(--surface); border: 1px solid var(--hairline); color: var(--ink); }
.btn-ghost:hover { border-color: var(--hairline-2); background: var(--surface-2); transform: translateY(-2px); }
.btn-link { padding: 0; color: var(--ink-soft); font-family: var(--font-display); font-weight: 500; }
.btn-link:hover { color: var(--accent); }

/* Button-in-button trailing icon */
.btn .ic {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; flex: none;
  background: rgba(255,255,255,.22);
  transition: transform .3s var(--ease), background .3s var(--ease);
}
.btn-ghost .ic { background: var(--surface-2); }
.btn:hover .ic { transform: translate(3px,-1px) scale(1.06); }
.btn .ic svg { width: 14px; height: 14px; }

/* ---- Double-bezel card ---- */
.bezel {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 6px;
  box-shadow: var(--shadow-md);
}
.bezel > .core {
  background: linear-gradient(180deg, #FFFFFF, #FBFCFB);
  border: 1px solid var(--hairline);
  border-radius: calc(var(--radius-lg) - 6px);
  box-shadow: var(--ring-in);
  height: 100%;
}
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: transform .5s var(--ease), border-color .5s var(--ease), background .5s var(--ease);
  height: 100%;
}
.card:hover { transform: translateY(-4px); border-color: var(--hairline-2); background: var(--surface-2); }
.card .ic-badge {
  width: 50px; height: 50px; border-radius: 15px;
  display: grid; place-items: center; margin-bottom: 22px;
  background: var(--accent-soft); border: 1px solid rgba(8,122,89,.22); color: var(--accent);
}
.card .ic-badge svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: 15.5px; }

/* =========================================================================
   NAV
   ========================================================================= */
.nav-wrap { position: fixed; inset: 14px 0 auto 0; z-index: 50; display: flex; justify-content: center; padding-inline: 16px; }
.nav {
  display: flex; align-items: center; gap: 28px;
  width: 100%; max-width: 1120px;
  padding: 10px 12px 10px 20px;
  border-radius: 999px;
  background: rgba(255,255,255,.76);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-md), var(--ring-in);
  transition: background .4s var(--ease), box-shadow .4s var(--ease);
}
.nav.scrolled {
  background: rgba(255,255,255,.93);
  border-color: var(--hairline-2);
  box-shadow: 0 10px 34px -14px rgba(16,22,26,.26), var(--ring-in);
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; letter-spacing: -.01em; }
.brand img { width: 34px; height: 34px; }
.brand b { font-weight: 600; }
.brand span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a {
  padding: 9px 14px; border-radius: 999px; font-size: 14.5px; color: var(--ink-soft);
  font-family: var(--font-display); font-weight: 500;
  transition: color .25s var(--ease), background .25s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); background: var(--surface); }
.nav-actions { display: flex; align-items: center; gap: 8px; }

/* Language toggle */
.lang {
  display: inline-flex; align-items: center; padding: 4px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--hairline); font-size: 12.5px;
  font-family: var(--font-display); font-weight: 600;
}
.lang button { padding: 5px 10px; border-radius: 999px; color: var(--ink-mute); transition: .25s var(--ease); }
.lang button.on { background: var(--accent); color: var(--accent-ink); }

/* Hamburger */
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; background: var(--surface); border: 1px solid var(--hairline); position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .4s var(--ease), opacity .3s var(--ease); }
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 28px; }
body.menu-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile overlay menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 45;
  background: rgba(247,248,247,.94); backdrop-filter: blur(26px); -webkit-backdrop-filter: blur(26px);
  display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 40px 32px;
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity .4s var(--ease), transform .4s var(--ease), visibility .4s;
}
body.menu-open .mobile-menu { opacity: 1; visibility: visible; transform: none; }
.mobile-menu a {
  font-family: var(--font-display); font-size: 30px; font-weight: 600; letter-spacing: -.02em;
  padding: 10px 0; color: var(--ink); opacity: 0; transform: translateY(16px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
body.menu-open .mobile-menu a { opacity: 1; transform: none; }
body.menu-open .mobile-menu a:nth-child(1){ transition-delay:.08s } body.menu-open .mobile-menu a:nth-child(2){ transition-delay:.13s }
body.menu-open .mobile-menu a:nth-child(3){ transition-delay:.18s } body.menu-open .mobile-menu a:nth-child(4){ transition-delay:.23s }
body.menu-open .mobile-menu a:nth-child(5){ transition-delay:.28s } body.menu-open .mobile-menu a:nth-child(6){ transition-delay:.33s }
.mobile-menu .m-cta { margin-top: 26px; }

/* =========================================================================
   HERO
   ========================================================================= */
.hero { padding-top: calc(var(--nav-h) + 74px); padding-bottom: clamp(60px, 9vw, 110px); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(30px,4vw,56px); align-items: center; }
.hero h1 { margin: 22px 0 24px; }
.hero .lede { max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-trust { display: flex; align-items: center; gap: 18px; margin-top: 36px; flex-wrap: wrap; color: var(--ink-mute); font-size: 14px; }
.hero-trust .avatars { display: flex; }
.hero-trust .avatars img { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--bg); object-fit: cover; margin-left: -10px; background: var(--surface-2); }
.hero-trust .avatars img:first-child { margin-left: 0; }

/* Hero visual: live agent preview */
.hero-visual { position: relative; }
.chat-preview { padding: 8px; }
.chat-preview .core { padding: 20px; display: flex; flex-direction: column; gap: 12px; background: linear-gradient(180deg, rgba(8,122,89,.05), rgba(255,255,255,0)); }
.cp-head { display: flex; align-items: center; gap: 11px; padding-bottom: 14px; border-bottom: 1px solid var(--hairline); }
.cp-head .av { width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg,var(--accent),var(--accent-2)); display: grid; place-items: center; color: var(--accent-ink); }
.cp-head .av svg { width: 22px; height: 22px; }
.cp-head b { font-family: var(--font-display); font-size: 15px; }
.cp-head small { color: var(--accent); font-size: 12px; display: flex; align-items: center; gap: 6px; }
.cp-head small::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); }
.bubble { max-width: 82%; padding: 12px 15px; border-radius: 16px; font-size: 14.5px; line-height: 1.5; }
.bubble.bot { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--hairline); border-bottom-left-radius: 5px; }
.bubble.user { align-self: flex-end; background: linear-gradient(135deg,var(--accent),var(--accent-2)); color: var(--accent-ink); border-bottom-right-radius: 5px; }
.hero-badge { position: absolute; z-index: 2; padding: 12px 16px; border-radius: 16px; background: rgba(255,255,255,.90); backdrop-filter: blur(14px); border: 1px solid var(--hairline); box-shadow: var(--shadow-md); font-size: 13px; display: flex; align-items: center; gap: 10px; }
.hero-badge b { font-family: var(--font-display); font-size: 19px; color: var(--accent); }
.hero-badge.b1 { top: -16px; right: -8px; }
.hero-badge.b2 { bottom: -18px; left: -14px; }

/* =========================================================================
   MANIFIESTO · ¿QUÉ HACEMOS?
   Una sola frase, en grande. El énfasis lo hace el color, no etiquetas
   dentro del texto: cada mitad es su propio <span> traducible, porque el
   orden de las palabras cambia entre idiomas y un <em> incrustado
   rompería el i18n.
   ========================================================================= */
.manifesto { max-width: 1000px; margin-inline: auto; text-align: center; }
.manifesto .eyebrow { margin-bottom: 26px; }
.manifesto-line {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 4.4vw, 50px);
  line-height: 1.18;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.manifesto-line .ml-a { color: var(--ink); }
.manifesto-line .ml-b { color: var(--accent-vivid); }

@media (max-width: 560px) {
  .manifesto-line { line-height: 1.24; letter-spacing: -.02em; text-wrap: pretty; }
}

/* Titular en tres tiempos. Cada línea es un <span> propio para que el i18n
   (que reemplaza textContent) no se coma los saltos de línea. */
.h1-beats span { display: block; }
.h1-beats span:last-child { color: var(--accent-vivid); }

/* =========================================================================
   HERO · EL SISTEMA EN MOVIMIENTO
   Una solicitud entra, el agente decide, el sistema actúa en paralelo y
   todo queda medido. La secuencia la orquesta js/hero-flow.js añadiendo
   .on a cada paso; aquí solo vive la apariencia.
   ========================================================================= */
.sysflow { padding: 8px; }
.sysflow .core {
  padding: 22px 20px 20px;
  display: flex; flex-direction: column; align-items: center;
  background: linear-gradient(180deg, rgba(8,122,89,.05), rgba(255,255,255,0));
}

/* Estado base: todo espera su turno */
.sysflow [data-sf] { opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
.sysflow [data-sf].on { opacity: 1; transform: none; }

/* ---- 1 · la solicitud que entra ---- */
.sf-in { width: 100%; padding: 14px 16px; border-radius: 16px; border-bottom-left-radius: 5px; background: var(--surface-2); border: 1px solid var(--hairline); }
.sf-tag { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-display); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.sf-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); }
.sf-msg { margin-top: 7px; font-size: 14px; line-height: 1.48; color: var(--ink); }

/* ---- cables ---- */
.sf-wire, .sf-fan { width: 100%; overflow: visible; }
.sf-wire { height: 26px; max-width: 2px; }
.sf-fan { height: 30px; }
.sf-wire path, .sf-fan path {
  fill: none; stroke: var(--hairline-2); stroke-width: 1.5;
  stroke-dasharray: 320; stroke-dashoffset: 320;
  transition: stroke-dashoffset .55s var(--ease-out), stroke .55s var(--ease-out);
}
.sf-wire.on path, .sf-fan.on path { stroke-dashoffset: 0; stroke: rgba(8,122,89,.55); }

/* ---- 3 · la respuesta del agente ---- */
.sf-out-msg {
  width: 100%; align-self: flex-end;
  padding: 15px 17px 13px;
  border-radius: 16px; border-bottom-right-radius: 5px;
  background: linear-gradient(150deg, rgba(8,122,89,.14), rgba(10,112,120,.07));
  border: 1px solid rgba(8,122,89,.35);
}
.sf-out-msg .sf-msg { margin-top: 0; }
.sf-meta { display: block; margin-top: 9px; font-size: 11.5px; color: var(--accent); font-family: var(--font-display); font-weight: 600; }

/* ---- 2 · el agente ---- */
.sf-brain { display: flex; align-items: center; gap: 12px; padding: 11px 20px 11px 11px; border-radius: 999px; background: linear-gradient(120deg, var(--accent-soft), var(--surface)); border: 1px solid rgba(8,122,89,.35); }
.sf-brain b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 14px; line-height: 1.2; }
/* Lo que está haciendo por dentro: se ve el trabajo, no solo el resultado */
.sf-work em { display: block; margin-top: 2px; font-style: normal; font-size: 12px; color: var(--accent); animation: sfWorkIn .35s var(--ease-out); }
@keyframes sfWorkIn { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
.sf-orb { width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center; background: linear-gradient(135deg,var(--accent),var(--accent-2)); color: var(--accent-ink); }
.sf-orb svg { width: 18px; height: 18px; }
.sf-brain.on .sf-orb { animation: sfThink 1.5s var(--ease) 2; }
@keyframes sfThink {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); }
  50%      { box-shadow: 0 0 0 10px rgba(8,122,89,0); }
}

/* ---- 3 · las tres salidas ---- */
.sf-outs { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; width: 100%; }
.sf-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 12px 7px 11px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--hairline); }
.sf-card.on { border-color: rgba(8,122,89,.3); }
.sf-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.sf-ic svg { width: 16px; height: 16px; }
.sf-card b { font-family: var(--font-display); font-weight: 600; font-size: 12.5px; color: var(--ink); line-height: 1.25; }
.sf-card > span:last-child { font-size: 11px; color: var(--ink-mute); line-height: 1.3; }

/* ---- 4 · el panel ---- */
.sf-panel { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; margin-top: 12px; padding: 12px 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--hairline); }
.sf-bars { display: flex; align-items: flex-end; gap: 4px; height: 30px; }
.sf-bars i { width: 7px; border-radius: 3px; background: linear-gradient(180deg,var(--accent),var(--accent-2)); height: 20%; transition: height .5s var(--ease-out); }
.sf-panel.on .sf-bars i:nth-child(1) { height: 35%; transition-delay: .05s }
.sf-panel.on .sf-bars i:nth-child(2) { height: 55%; transition-delay: .10s }
.sf-panel.on .sf-bars i:nth-child(3) { height: 40%; transition-delay: .15s }
.sf-panel.on .sf-bars i:nth-child(4) { height: 75%; transition-delay: .20s }
.sf-panel.on .sf-bars i:nth-child(5) { height: 60%; transition-delay: .25s }
.sf-panel.on .sf-bars i:nth-child(6) { height: 90%; transition-delay: .30s }
.sf-panel.on .sf-bars i:nth-child(7) { height: 100%; transition-delay: .35s }
.sf-kpi { text-align: right; line-height: 1.2; }
.sf-kpi b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 28px; color: var(--accent-vivid); letter-spacing: -.02em; }
.sf-kpi > span { font-size: 11.5px; color: var(--ink-mute); }

@media (max-width: 900px) {
  /* En móvil el abanico de tres no cabe: las salidas se apilan y el cable
     se vuelve una línea recta. */
  .sf-outs { grid-template-columns: 1fr; }
  .sf-fan { height: 20px; }
  .sf-fan path:first-child, .sf-fan path:last-child { display: none; }
  .sf-card { flex-direction: row; text-align: left; align-items: center; gap: 11px; padding: 11px 14px; }
  .sf-card b { font-size: 13.5px; }
  .sf-out-msg .sf-msg { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
}
@media (max-width: 560px) {
  .sysflow .core { padding: 20px 16px 18px; }
  .sf-panel { padding: 12px 14px; }
  .sf-kpi b { font-size: 24px; }
}

/* Quien pidió menos movimiento ve el sistema completo, quieto. */
@media (prefers-reduced-motion: reduce) {
  .sysflow [data-sf] { opacity: 1 !important; transform: none !important; }
  .biz-btn:hover .bi svg > * { animation: none !important; }
  .biz-btn:hover .bi { transform: none !important; }
  .sf-wire path, .sf-fan path { stroke-dashoffset: 0 !important; stroke: rgba(8,122,89,.55) !important; }
  .sf-brain .sf-orb { animation: none !important; }
}

/* =========================================================================
   MARQUEE / CLIENTS
   ========================================================================= */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 18px; width: max-content; animation: scroll 34s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }
.logo-card {
  flex: none; width: 220px; height: 116px; border-radius: 16px;
  background: #fff; display: grid; place-items: center; padding: 12px 18px;
  border: 1px solid var(--hairline); box-shadow: var(--shadow-sm);
}
/* Fill the card: large pixel cap on height, full available width */
.logo-card img { max-height: 90px; max-width: 100%; width: auto; object-fit: contain; }

/* =========================================================================
   BENTO (Qué hacemos)
   ========================================================================= */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.bento .card { grid-column: span 2; }
.bento .card.wide { grid-column: span 3; }
.bento .card.tall { grid-column: span 3; grid-row: span 2; display: flex; flex-direction: column; }
.bento .card.feature { grid-column: span 6; }
.card.tall .shot { margin-top: auto; border-radius: 16px; border: 1px solid var(--hairline); overflow: hidden; }
.card.tall .shot img { width: 100%; height: 100%; object-fit: cover; }

/* =========================================================================
   SECTORS
   ========================================================================= */
.sectors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sector {
  display: flex; align-items: center; gap: 16px; padding: 22px 24px;
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--hairline);
  transition: transform .4s var(--ease), border-color .4s var(--ease), background .4s var(--ease);
}
.sector:hover { transform: translateY(-3px); border-color: rgba(8,122,89,.3); background: var(--surface-2); }
.sector .emoji { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-size: 22px; background: var(--accent-soft); border: 1px solid rgba(8,122,89,.2); }
.sector b { font-family: var(--font-display); font-weight: 600; font-size: 16px; display: block; }
.sector span { color: var(--ink-mute); font-size: 13.5px; }

/* =========================================================================
   SOLUTIONS (zig-zag)
   ========================================================================= */
.zig { display: flex; flex-direction: column; gap: clamp(48px, 8vw, 96px); }
.zrow { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px,5vw,64px); align-items: center; }
.zrow:nth-child(even) .ztext { order: 2; }
.znum { font-family: var(--font-display); font-size: 14px; color: var(--accent); letter-spacing: .1em; margin-bottom: 14px; }
.ztext h3 { font-size: clamp(24px,3vw,34px); margin-bottom: 16px; }
.ztext p { color: var(--ink-soft); max-width: 48ch; }
.zlist { margin-top: 22px; display: flex; flex-direction: column; gap: 11px; }
.zlist li { display: flex; align-items: flex-start; gap: 11px; color: var(--ink-soft); font-size: 15.5px; }
.zlist .tick { flex: none; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-top: 1px; }
.zlist .tick svg { width: 13px; height: 13px; }
.zvisual .core { overflow: hidden; }
.zvisual img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: calc(var(--radius-lg) - 6px); }
.zvisual .fake-ui { padding: 26px; aspect-ratio: 4/3; display: flex; flex-direction: column; justify-content: center; gap: 12px; }

/* =========================================================================
   STEPS
   ========================================================================= */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; counter-reset: step; }
.step { position: relative; padding: 32px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--hairline); }
.step .n { font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--accent-ink); width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg,var(--accent),var(--accent-2)); margin-bottom: 20px; }
.step h3 { font-size: 20px; margin-bottom: 10px; }
.step p { color: var(--ink-soft); font-size: 15px; }

/* =========================================================================
   PRODUCTO ESTRELLA · VOLEO
   ========================================================================= */
.star-band .core { padding: clamp(30px,5vw,52px); background: radial-gradient(130% 130% at 100% 0%, rgba(8,122,89,.14), transparent 55%); }
.star-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px,4vw,52px); align-items: center; }
.star-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px; border-radius: 999px; background: linear-gradient(135deg,var(--accent),var(--accent-2)); color: var(--accent-ink); font-family: var(--font-display); font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.star-band h2 { margin: 18px 0 16px; }
.star-band .lede { color: var(--ink-soft); max-width: 52ch; }
.star-mods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 26px 0 30px; }
.star-mod { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border-radius: 13px; background: var(--surface); border: 1px solid var(--hairline); font-size: 13.5px; color: var(--ink); }
.star-mod .mi { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; background: var(--accent-soft); color: var(--accent); }
.star-mod .mi svg { width: 16px; height: 16px; }
.star-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.star-visual { position: relative; }
.star-visual .frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--hairline-2); box-shadow: var(--shadow-lg); position: relative; cursor: pointer; }
.star-visual .frame img { width: 100%; display: block; aspect-ratio: 4/3; object-fit: cover; }
.star-visual .play { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(180deg, rgba(3,10,8,.1), rgba(3,10,8,.55)); transition: background .3s var(--ease); }
.star-visual .frame:hover .play { background: linear-gradient(180deg, rgba(3,10,8,.05), rgba(3,10,8,.4)); }
.star-visual .play span { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px; background: rgba(255,255,255,.90); backdrop-filter: blur(8px); border: 1px solid var(--hairline-2); font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--ink); }
.star-visual .play svg { width: 18px; height: 18px; color: var(--accent); }
.star-visual .star-badge2 { position: absolute; top: -14px; left: -10px; z-index: 2; padding: 10px 14px; border-radius: 14px; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); border: 1px solid var(--hairline); box-shadow: var(--shadow-md); font-size: 12.5px; }
.star-visual .star-badge2 b { font-family: var(--font-display); color: var(--accent); }

/* Banner de planes (cuando el sector es Restaurantes) */
.plan-banner { margin: 0 0 26px; }
.plan-banner .inner { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-radius: var(--radius); background: linear-gradient(120deg, var(--accent-soft), var(--surface)); border: 1px solid rgba(8,122,89,.3); }
.plan-banner .star { font-size: 20px; flex: none; }
.plan-banner p { font-size: 14.5px; color: var(--ink); }
.plan-banner b { color: var(--accent); font-family: var(--font-display); }

/* =========================================================================
   CASOS DE ÉXITO
   ========================================================================= */
.cases { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.case { display: flex; flex-direction: column; padding: 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--hairline); box-shadow: var(--shadow-sm); transition: transform .5s var(--ease), border-color .5s var(--ease); height: 100%; }
.case:hover { transform: translateY(-4px); border-color: var(--hairline-2); }
.case-top { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.case-logo { width: 74px; height: 52px; border-radius: 11px; background: #fff; display: grid; place-items: center; padding: 8px 10px; flex: none; border: 1px solid var(--hairline); }
.case-logo img { max-height: 36px; max-width: 100%; width: auto; object-fit: contain; }
.case-top .who b { font-family: var(--font-display); font-size: 15.5px; display: block; }
.case-tags { color: var(--accent); font-family: var(--font-display); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; margin-top: 3px; }
.case h3 { font-size: clamp(19px,2.2vw,22px); margin-bottom: 12px; }
.case > p { color: var(--ink-soft); font-size: 15px; line-height: 1.6; }
.case-metrics { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--hairline); }
.case-metrics li { display: flex; align-items: flex-start; gap: 10px; color: var(--ink); font-size: 14px; font-weight: 500; }
.case-metrics .tick { flex: none; width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-top: 1px; }
.case-metrics .tick svg { width: 12px; height: 12px; }

.case-explore { margin-top: 18px; align-self: flex-start; }

/* ---- Case study modal ---- */
.case-modal { position: fixed; inset: 0; z-index: 80; display: none; }
.case-modal.open { display: block; }
.case-backdrop { position: absolute; inset: 0; background: rgba(20,28,26,.42); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.case-panel {
  position: absolute; inset: 4vh 0 0 50%; transform: translateX(-50%);
  width: min(880px, calc(100vw - 32px)); max-height: 92vh; overflow-y: auto;
  background: var(--bg-2); border: 1px solid var(--hairline-2); border-radius: 24px 24px 0 0;
  box-shadow: var(--shadow-lg); scrollbar-width: thin;
  animation: caseIn .5s var(--ease-out);
}
@keyframes caseIn { from { opacity: 0; transform: translate(-50%, 24px); } to { opacity: 1; transform: translateX(-50%); } }
.case-close {
  position: sticky; top: 0; float: right; margin: 14px 16px 0 0; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.92); border: 1px solid var(--hairline);
  display: grid; place-items: center; color: var(--ink-soft); transition: .25s var(--ease);
}
.case-close:hover { color: var(--ink); background: var(--surface-2); }
.case-close svg { width: 18px; height: 18px; }
.case-content { padding: 30px clamp(22px,4vw,44px) 48px; }
.case-content .case-tags { color: var(--accent); font-family: var(--font-display); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
.case-content .case-title { font-size: clamp(24px,3.4vw,34px); margin-bottom: 16px; }
.case-content .case-intro { color: var(--ink-soft); font-size: clamp(16px,2.2vw,18px); line-height: 1.6; margin-bottom: 12px; }
.case-content .case-h { font-family: var(--font-display); font-size: 17px; margin: 34px 0 14px; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.case-content .case-shot { border-radius: 16px; overflow: hidden; border: 1px solid var(--hairline); background: var(--surface); }
.case-content .case-shot img { width: 100%; display: block; }
.case-content .case-shot a { display: block; }
.case-content .case-cap { color: var(--ink-mute); font-size: 13.5px; line-height: 1.5; margin-top: 10px; }
.case-content figure { margin: 0 0 16px; }
.case-content .case-gallery { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.case-content .case-gallery figure { margin: 0; }
.case-content .case-gallery img { width: 100%; border-radius: 12px; border: 1px solid var(--hairline); background: var(--surface); }
.case-content .case-gallery figcaption { color: var(--ink-mute); font-size: 12px; margin-top: 7px; line-height: 1.4; }
.case-content .case-video { border-radius: 16px; overflow: hidden; border: 1px solid var(--hairline); background: #000; }
.case-content .case-video video { width: 100%; display: block; }
.case-content .case-steps { display: flex; flex-direction: column; gap: 11px; margin: 6px 0 0; }
.case-content .case-steps li { position: relative; padding-left: 26px; color: var(--ink-soft); font-size: 15px; line-height: 1.55; }
.case-content .case-steps li::before { content: ""; position: absolute; left: 0; top: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); }
.case-content .case-quote { margin: 32px 0 8px; padding: 20px 22px; border-radius: 16px; background: var(--accent-soft); border: 1px solid rgba(8,122,89,.22); border-left: 3px solid var(--accent); font-size: 16px; line-height: 1.6; color: var(--ink); font-style: italic; }
.case-content .case-by { color: var(--ink-mute); font-family: var(--font-display); font-size: 13.5px; margin-top: 10px; }
body.case-open { overflow: hidden; }

/* =========================================================================
   TESTIMONIALS
   ========================================================================= */
.tstwall { columns: 3; column-gap: 18px; }
.tst { break-inside: avoid; margin-bottom: 18px; padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--hairline); box-shadow: var(--shadow-sm); }
.tst p { font-size: 16px; color: var(--ink); line-height: 1.6; }
.tst .who { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.tst .who .ph { width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, var(--accent-soft), var(--surface-2)); border: 1px solid var(--hairline); display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; color: var(--accent); }
.tst .who b { font-family: var(--font-display); font-size: 14.5px; display: block; }
.tst .who span { color: var(--ink-mute); font-size: 13px; }
.tst .stars { color: var(--accent); font-size: 14px; letter-spacing: 2px; margin-bottom: 14px; }
.pending { font-size: 11px; color: var(--ink-mute); border: 1px dashed var(--hairline-2); padding: 2px 7px; border-radius: 6px; margin-left: 8px; vertical-align: middle; }

/* =========================================================================
   AGENT CTA band
   ========================================================================= */
.agent-band .core { padding: clamp(36px,6vw,64px); text-align: center; background: radial-gradient(120% 140% at 50% 0%, rgba(8,122,89,.12), transparent 60%); }
.agent-band h2 { margin: 20px auto 16px; max-width: 16ch; }
.agent-band p { color: var(--ink-soft); max-width: 52ch; margin: 0 auto 30px; }
.agent-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 26px; }
.chip { padding: 9px 15px; border-radius: 999px; background: var(--surface); border: 1px solid var(--hairline); font-size: 13.5px; color: var(--ink-soft); font-family: var(--font-display); transition: .3s var(--ease); }
.chip:hover { border-color: rgba(8,122,89,.35); color: var(--ink); transform: translateY(-2px); }

/* =========================================================================
   TEAM
   ========================================================================= */
.team { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.member { display: flex; gap: 22px; padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--hairline); }
.member img, .member .ph {
  width: 96px; height: 96px; border-radius: 18px; object-fit: cover; flex: none;
  border: 1px solid var(--hairline); background: linear-gradient(135deg, var(--accent-soft), var(--surface-2));
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: 30px; color: var(--accent);
}
.member h3 { font-size: 20px; }
.member .role { color: var(--accent); font-family: var(--font-display); font-size: 13.5px; margin: 4px 0 10px; }
.member p { color: var(--ink-soft); font-size: 14.5px; }

/* =========================================================================
   FAQ
   ========================================================================= */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.faq-item { padding: 24px 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--hairline); transition: border-color .4s var(--ease), background .4s var(--ease); }
.faq-item:hover { border-color: var(--hairline-2); background: var(--surface-2); }
.faq-item h3 { display: flex; gap: 11px; align-items: flex-start; font-size: 16.5px; margin-bottom: 10px; letter-spacing: -.01em; }
.faq-item h3 .q { flex: none; color: var(--accent); font-family: var(--font-display); font-weight: 600; }
.faq-item p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.6; padding-left: 22px; }
.faq-item.faq-more { display: none; }
.faq-grid.faq-open .faq-item.faq-more { display: block; }
.faq-more-wrap { text-align: center; margin-top: 26px; }

/* =========================================================================
   CONTACT
   ========================================================================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px,4vw,52px); align-items: start; }
.contact-info .lede { margin: 18px 0 30px; }
.contact-list { display: flex; flex-direction: column; gap: 14px; }
.contact-list a { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--hairline); transition: .3s var(--ease); }
.contact-list a:hover { border-color: rgba(8,122,89,.35); background: var(--surface-2); transform: translateX(3px); }
.contact-list .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.contact-list .ic svg { width: 20px; height: 20px; }
.contact-list b { font-family: var(--font-display); font-size: 15px; display: block; }
.contact-list span { color: var(--ink-mute); font-size: 13px; }

form.card { padding: 30px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-family: var(--font-display); font-size: 13px; color: var(--ink-soft); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: 12px; font: inherit; font-size: 15px;
  background: var(--bg-2); border: 1px solid var(--hairline); color: var(--ink);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field textarea { resize: vertical; min-height: 96px; }
.field .err { color: #C0392B; font-size: 12.5px; margin-top: 6px; display: none; }
.field.invalid .err { display: block; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: #D9534F; }
.form-note { font-size: 12.5px; color: var(--ink-mute); margin-top: 14px; }
.form-ok { display: none; padding: 14px 16px; border-radius: 12px; background: var(--accent-soft); border: 1px solid rgba(8,122,89,.3); color: var(--ink); font-size: 14.5px; margin-top: 8px; }

/* =========================================================================
   FOOTER
   ========================================================================= */
footer { border-top: 1px solid var(--hairline); padding-block: 54px 34px; margin-top: 40px; }
.foot-top { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.foot-brand { max-width: 320px; }
.foot-brand p { color: var(--ink-mute); font-size: 14px; margin-top: 14px; }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a { width: 40px; height: 40px; border-radius: 11px; background: var(--surface); border: 1px solid var(--hairline); display: grid; place-items: center; color: var(--ink-soft); transition: .3s var(--ease); }
.socials a:hover { color: var(--accent); border-color: rgba(8,122,89,.35); transform: translateY(-2px); }
.socials svg { width: 18px; height: 18px; }
.foot-col h4 { font-family: var(--font-display); font-size: 13px; color: var(--ink-mute); text-transform: uppercase; letter-spacing: .12em; margin-bottom: 14px; font-weight: 500; }
.foot-col a { display: block; color: var(--ink-soft); font-size: 14.5px; padding: 5px 0; transition: color .25s var(--ease); }
.foot-col a:hover { color: var(--accent); }
.foot-cols { display: flex; gap: 60px; flex-wrap: wrap; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--hairline); color: var(--ink-mute); font-size: 13px; }
.foot-bottom a { color: var(--ink-mute); }
.foot-bottom a:hover { color: var(--ink-soft); }

/* =========================================================================
   CHAT WIDGET
   ========================================================================= */
.chat-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 55;
  display: flex; align-items: center; gap: 11px; padding: 12px 18px 12px 14px;
  border-radius: 999px; background: linear-gradient(135deg,var(--accent),var(--accent-2)); color: var(--accent-ink);
  font-family: var(--font-display); font-weight: 600; font-size: 14.5px;
  box-shadow: 0 16px 44px -10px var(--accent-glow); border: 1px solid rgba(255,255,255,.28);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.chat-fab:hover { transform: translateY(-3px) scale(1.02); }
.chat-fab .av { width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.22); display: grid; place-items: center; }
.chat-fab .av svg { width: 17px; height: 17px; }
body.chat-open .chat-fab { transform: scale(.85); opacity: 0; pointer-events: none; }

.chat-panel {
  position: fixed; right: 22px; bottom: 22px; z-index: 56;
  width: min(400px, calc(100vw - 32px)); height: min(620px, calc(100vh - 44px));
  display: flex; flex-direction: column;
  background: rgba(255,255,255,.96); backdrop-filter: blur(26px) saturate(140%); -webkit-backdrop-filter: blur(26px) saturate(140%);
  border: 1px solid var(--hairline-2); border-radius: 24px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(16px) scale(.98); transform-origin: bottom right;
  transition: opacity .4s var(--ease), transform .4s var(--ease), visibility .4s;
}
body.chat-open .chat-panel { opacity: 1; visibility: visible; transform: none; }
.chat-top { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--hairline); }
.chat-top .av { width: 42px; height: 42px; border-radius: 13px; background: linear-gradient(135deg,var(--accent),var(--accent-2)); display: grid; place-items: center; color: var(--accent-ink); flex: none; }
.chat-top .av svg { width: 22px; height: 22px; }
.chat-top b { font-family: var(--font-display); font-size: 15px; }
.chat-top small { color: var(--accent); font-size: 12px; display: flex; align-items: center; gap: 6px; }
.chat-top small::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); }
.chat-close { margin-left: auto; width: 34px; height: 34px; border-radius: 50%; background: var(--surface); border: 1px solid var(--hairline); display: grid; place-items: center; color: var(--ink-soft); transition: .25s var(--ease); }
.chat-close:hover { color: var(--ink); background: var(--surface-2); }
.chat-body { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; scrollbar-width: thin; }
.chat-body .bubble { max-width: 86%; padding: 11px 14px; border-radius: 15px; font-size: 14.5px; line-height: 1.5; }
.chat-body .bubble.bot { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--hairline); border-bottom-left-radius: 5px; }
.chat-body .bubble.user { align-self: flex-end; background: linear-gradient(135deg,var(--accent),var(--accent-2)); color: var(--accent-ink); border-bottom-right-radius: 5px; }
.typing { align-self: flex-start; display: flex; gap: 5px; padding: 13px 15px; background: var(--surface-2); border: 1px solid var(--hairline); border-radius: 15px; border-bottom-left-radius: 5px; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-mute); animation: blink 1.2s infinite; }
.typing span:nth-child(2){ animation-delay: .2s } .typing span:nth-child(3){ animation-delay: .4s }
@keyframes blink { 0%,60%,100%{ opacity:.25; transform: translateY(0) } 30%{ opacity:1; transform: translateY(-3px) } }
.chat-quick { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 18px 12px; }
.chat-quick button { padding: 8px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--hairline); font-size: 12.5px; color: var(--ink-soft); font-family: var(--font-display); transition: .25s var(--ease); }
.chat-quick button:hover { border-color: rgba(8,122,89,.35); color: var(--ink); }
.chat-input { display: flex; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--hairline); }
.chat-input input { flex: 1; padding: 12px 15px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--hairline); color: var(--ink); font: inherit; font-size: 14.5px; }
.chat-input input:focus { outline: none; border-color: var(--accent); }
.chat-input button { width: 46px; height: 46px; border-radius: 50%; flex: none; background: linear-gradient(135deg,var(--accent),var(--accent-2)); color: var(--accent-ink); display: grid; place-items: center; transition: transform .25s var(--ease); }
.chat-input button:hover { transform: scale(1.06); }
.chat-input button:disabled { opacity: .5; transform: none; }
.chat-input button svg { width: 19px; height: 19px; }

/* =========================================================================
   SISTEMA INTEGRADO (repositioning band)
   ========================================================================= */
.system-band .core { padding: clamp(30px,5vw,52px); }
.system-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-top: 34px; }
.system-item { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--hairline); }
.system-item .ic-badge { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 16px; background: var(--accent-soft); border: 1px solid rgba(8,122,89,.22); color: var(--accent); }
.system-item .ic-badge svg { width: 22px; height: 22px; }
.system-item b { font-family: var(--font-display); font-size: 16px; display: block; margin-bottom: 6px; }
.system-item p { color: var(--ink-soft); font-size: 14px; }
.pillars { margin-top: clamp(44px, 7vw, 72px); }
.pillars-lead { font-family: var(--font-display); font-weight: 600; font-size: clamp(18px, 2.4vw, 22px); letter-spacing: -.01em; margin-bottom: 22px; }
.pillars .system-grid { margin-top: 0; }

/* Requisito band */
.req-band { text-align: center; }
.req-band .core { padding: clamp(34px,6vw,60px); background: radial-gradient(120% 140% at 50% 0%, rgba(8,122,89,.10), transparent 60%); }
.req-band h2 { max-width: 20ch; margin: 18px auto 14px; }
.req-band p { color: var(--ink-soft); max-width: 54ch; margin: 0 auto; }

/* =========================================================================
   PLANES
   ========================================================================= */
.plan-month { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: var(--accent-soft); border: 1px solid rgba(8,122,89,.28); color: var(--accent); font-family: var(--font-display); font-size: 13.5px; font-weight: 600; }
.plan-month .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent-glow); animation: pulse 2s infinite; }
@keyframes pulse { 0%{ box-shadow: 0 0 0 0 rgba(8,122,89,.5) } 70%{ box-shadow: 0 0 0 10px rgba(8,122,89,0) } 100%{ box-shadow: 0 0 0 0 rgba(8,122,89,0) } }

.plan-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 34px 0 40px; }
.plan-tab { display: inline-flex; align-items: center; gap: 9px; padding: 11px 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--hairline); color: var(--ink-soft); font-family: var(--font-display); font-weight: 500; font-size: 14.5px; transition: .3s var(--ease); }
.plan-tab span { font-size: 17px; }
.plan-tab:hover { border-color: var(--hairline-2); color: var(--ink); }
.plan-tab.on { background: linear-gradient(135deg,var(--accent),var(--accent-2)); color: var(--accent-ink); border-color: transparent; box-shadow: 0 8px 24px -8px var(--accent-glow); }

.plan-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; align-items: start; }
.plan-card { position: relative; display: flex; flex-direction: column; height: 100%; padding: 30px 26px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--hairline); box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), border-color .4s var(--ease); }
.plan-card:hover { transform: translateY(-4px); border-color: var(--hairline-2); }
.plan-grid.numbered .plan-card { cursor: pointer; }
.plan-card.sel { border-color: rgba(8,122,89,.6); box-shadow: 0 0 0 1px rgba(8,122,89,.35), 0 30px 70px -30px var(--accent-glow); }
.plan-card.popular { border-color: rgba(8,122,89,.4); background: linear-gradient(180deg, rgba(8,122,89,.06), var(--surface)); box-shadow: 0 30px 70px -30px var(--accent-glow); }
.plan-flag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); padding: 6px 15px; border-radius: 999px; background: linear-gradient(135deg,var(--accent),var(--accent-2)); color: var(--accent-ink); font-family: var(--font-display); font-weight: 600; font-size: 11.5px; letter-spacing: .04em; white-space: nowrap; box-shadow: 0 8px 20px -6px var(--accent-glow); }
.plan-head h3 { font-size: 24px; }
.plan-tag { color: var(--ink-mute); font-size: 13.5px; margin-top: 4px; }
.plan-price { margin: 22px 0 4px; }
.plan-price .was { color: var(--ink-mute); text-decoration: line-through; font-size: 15px; font-family: var(--font-display); }
.plan-price .now { font-family: var(--font-display); font-weight: 700; font-size: 42px; line-height: 1; letter-spacing: -.03em; margin-top: 2px; }
.plan-price .now .cur { color: var(--accent-vivid); font-size: 24px; vertical-align: 6px; }
.plan-price .now .per { font-size: 14px; font-weight: 500; color: var(--ink-mute); letter-spacing: 0; }
.plan-price .cop { margin-top: 8px; color: var(--ink-mute); font-size: 13px; }
.plan-price .cop s { opacity: .7; }
.plan-offer { margin: 16px 0 20px; padding: 10px 14px; border-radius: 12px; background: var(--accent-soft); border: 1px dashed rgba(8,122,89,.3); color: var(--ink-soft); font-size: 13px; text-align: center; }
.plan-offer b { color: var(--accent); font-family: var(--font-display); }
.plan-spec { display: flex; flex-direction: column; gap: 9px; margin: 2px 0 18px; padding: 14px 16px; border-radius: 13px; background: var(--bg-2); border: 1px solid var(--hairline); }
.plan-spec .row { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-soft); }
.plan-spec .row svg { width: 16px; height: 16px; color: var(--accent); flex: none; }
.plan-spec .row b { color: var(--ink); font-family: var(--font-display); font-weight: 600; }
.plan-feats { display: flex; flex-direction: column; gap: 11px; margin-bottom: 26px; flex: 1; }
.plan-feats li { display: flex; align-items: flex-start; gap: 11px; color: var(--ink-soft); font-size: 14.5px; line-height: 1.45; transition: opacity .3s var(--ease); }
.plan-feats .tick { flex: none; width: 21px; height: 21px; border-radius: 7px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-top: 1px; }
.plan-feats .tick svg { width: 12px; height: 12px; }
.plan-feats li.off { opacity: .42; }
.plan-feats li.off .tick { background: var(--surface-2); color: var(--ink-mute); }
.plan-feats li.off span { color: var(--ink-mute); }
.plan-buy { margin-top: auto; }
.plans-note { text-align: center; color: var(--ink-mute); font-size: 13px; margin-top: 26px; }

/* Los precios en COP llegan a 7 dígitos: número más contenido y sin desbordes. */
.plan-price.cop-lead .now { font-size: clamp(30px, 2.9vw, 38px); }
.plan-price.cop-lead .now .per { display: block; margin-top: 5px; }
.plan-price.cop-lead .now .cur { font-size: 21px; vertical-align: 5px; }

/* ---- Extras activos dentro de la tarjeta ---- */
.plan-feats li.added .tick { background: linear-gradient(135deg,var(--accent),var(--accent-2)); color: var(--accent-ink); }
.plan-feats li.added span { color: var(--ink); }
.plan-feats li.added em { font-style: normal; font-size: 11.5px; font-family: var(--font-display); color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 2px 8px; margin-left: 6px; white-space: nowrap; }

/* ---- Desglose de precio con extras ---- */
.plan-extra { margin-top: 12px; display: flex; flex-direction: column; gap: 5px; padding: 11px 13px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--hairline); }
.plan-extra .pe { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 12.5px; color: var(--ink-mute); }
.plan-extra .pe b { font-family: var(--font-display); font-weight: 600; color: var(--ink-soft); }
.plan-setup { margin-top: 9px; font-size: 12.5px; color: var(--ink-soft); line-height: 1.45; }
.plan-setup b { font-family: var(--font-display); color: var(--accent); }
.plan-freebie { margin-top: 8px; font-size: 12.5px; color: var(--accent); line-height: 1.45; }

/* =========================================================================
   PLANES · LOS TRES SUB-PASOS
   Cada bloque dice qué hacer y por qué. Antes eran tres decisiones
   seguidas sin numerar, y el visitante no sabía por dónde empezar.
   ========================================================================= */
.plan-step-head { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 20px; text-align: left; }
.plan-step-head .ps-n {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg,var(--accent),var(--accent-2));
  color: var(--accent-ink); font-family: var(--font-display); font-weight: 700; font-size: 14px;
}
.plan-step-head b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 17.5px; letter-spacing: -.015em; color: var(--ink); }
.plan-step-head p { margin-top: 3px; font-size: 14px; color: var(--ink-mute); line-height: 1.45; max-width: 62ch; }
.plan-step-head .ps-opt { font-weight: 500; font-size: 14px; color: var(--accent); }
/* El encabezado del paso 2 vive dentro de la grilla: que ocupe toda la fila */
.plan-grid.numbered > .plan-step-head { grid-column: 1 / -1; }

/* ---- Paso 3 · extras colapsables ---- */
.plan-addons { padding: 0; }
.addons-toggle {
  width: 100%; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 22px 24px; text-align: left; background: none; border: 0; cursor: pointer;
}
.addons-toggle .plan-step-head { margin-bottom: 0; }
.addons-chev { flex: none; width: 32px; height: 32px; margin-top: 1px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--hairline); color: var(--ink-soft); transition: .35s var(--ease); }
.addons-chev svg { width: 15px; height: 15px; }
.addons-toggle:hover .addons-chev { border-color: var(--hairline-2); color: var(--accent); }
.plan-addons.open .addons-chev { transform: rotate(180deg); color: var(--accent); border-color: rgba(8,122,89,.35); }
/* Colapsado de verdad: sin altura y sin foco alcanzable */
.addons-body { display: none; padding: 0 24px 24px; }
.plan-addons.open .addons-body { display: block; }
.addons-head { justify-content: flex-end; margin-bottom: 18px; }

/* El total, dentro del panel de ajustes */
.addons-total { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 22px; padding: 16px 18px; border-radius: var(--radius-sm); background: linear-gradient(120deg, var(--accent-soft), var(--bg-2)); border: 1px solid rgba(8,122,89,.3); }
.as-lines { display: flex; flex-direction: column; gap: 5px; }
.as-row { display: flex; justify-content: space-between; gap: 18px; font-size: 13px; color: var(--ink-mute); }
.as-row b { font-family: var(--font-display); font-weight: 600; color: var(--ink-soft); }
.as-big { text-align: right; line-height: 1.1; }
.as-big b { font-family: var(--font-display); font-weight: 700; font-size: 30px; color: var(--accent-vivid); letter-spacing: -.02em; }
.as-big > span { margin-left: 5px; font-size: 12px; color: var(--ink-mute); }
.as-big em { display: block; margin-top: 5px; font-style: normal; font-size: 12px; color: var(--ink-soft); }
@media (max-width: 560px) {
  .addons-total { flex-direction: column; align-items: stretch; }
  .as-big { text-align: left; }
}

/* =========================================================================
   PLANES · BARRA DE RESUMEN
   Siempre visible mientras se elige: dónde va y qué sigue.
   ========================================================================= */
.plan-bar {
  position: sticky; bottom: 16px; z-index: 5; margin-top: 22px;
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.plan-bar.up { opacity: 1; transform: none; pointer-events: auto; }
.pb-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  padding: 14px 16px 14px 22px; border-radius: 999px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(16px);
  border: 1px solid rgba(8,122,89,.32);
  box-shadow: 0 24px 60px -22px rgba(3,26,20,.9);
}
.pb-sel { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; min-width: 0; }
.pb-path { font-size: 13.5px; color: var(--ink-soft); }
.pb-path i { font-style: normal; color: var(--ink-mute); margin: 0 2px; }
.pb-total { font-family: var(--font-display); font-weight: 700; font-size: 21px; color: var(--accent-vivid); letter-spacing: -.02em; white-space: nowrap; }
.pb-total em { font-style: normal; font-size: 12px; font-weight: 500; color: var(--ink-mute); }
.pb-cta { flex: none; }

@media (max-width: 700px) {
  .pb-inner { border-radius: var(--radius); padding: 14px 16px; }
  .pb-sel { width: 100%; justify-content: space-between; }
  .pb-cta { width: 100%; justify-content: center; }
  .plan-step-head b { font-size: 16px; }
  .addons-toggle { padding: 18px 16px; }
  .addons-body { padding: 0 16px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .plan-bar { transition: none; }
}

/* =========================================================================
   PLANES · MODALIDAD DE OPERACIÓN (solo restaurantes)
   ========================================================================= */
.plan-modes { margin: 0 0 38px; }

.modes-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.mode-card { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; text-align: left; padding: 20px 20px 21px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--hairline); color: var(--ink-soft); transition: .35s var(--ease); }
.mode-card:hover { border-color: var(--hairline-2); transform: translateY(-2px); }
.mode-card .mi { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.mode-card .mi svg { width: 20px; height: 20px; }
.mode-card b { font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--ink); line-height: 1.25; }
.mode-card span:last-child { font-size: 13.5px; line-height: 1.5; }
.mode-card.on { background: linear-gradient(180deg, rgba(8,122,89,.09), var(--surface)); border-color: rgba(8,122,89,.45); box-shadow: 0 24px 60px -32px var(--accent-glow); }
.mode-card.on .mi { background: linear-gradient(135deg,var(--accent),var(--accent-2)); color: var(--accent-ink); }
.mode-card.on b { color: var(--accent); }

/* =========================================================================
   PLANES · EXTRAS (toggles que suben o bajan el precio)
   ========================================================================= */
.plan-addons { margin: 26px 0 0; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--hairline); box-shadow: var(--ring-in); }
.addons-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.addons-head h3 { font-family: var(--font-display); font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.addons-head p { font-size: 14px; color: var(--ink-mute); margin-top: 4px; }
.addons-clear { padding: 8px 15px; border-radius: 999px; background: var(--accent-soft); border: 1px solid rgba(8,122,89,.28); color: var(--accent); font-family: var(--font-display); font-size: 13px; font-weight: 600; transition: .3s var(--ease); }
.addons-clear:hover { background: rgba(8,122,89,.16); }
.addons-clear.off { background: var(--surface-2); border-color: var(--hairline); color: var(--ink-mute); pointer-events: none; }

.addon-groups { display: flex; flex-direction: column; gap: 22px; }
.addon-group h4 { font-family: var(--font-display); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 11px; }
.addon-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }

/* Fila del extra: el interruptor ocupa el ancho y, si lleva cantidad, los
   −/+ van pegados a la derecha. */
.addon-row { display: flex; align-items: stretch; gap: 8px; }
.addon-row > .addon { flex: 1; min-width: 0; }
.addon-qty { display: flex; align-items: center; gap: 2px; padding: 0 6px; border-radius: var(--radius-sm); background: var(--bg-2); border: 1px solid rgba(8,122,89,.42); }
.addon-qty .aq { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: var(--accent); font-size: 17px; font-family: var(--font-display); line-height: 1; transition: .25s var(--ease); }
.addon-qty .aq:hover { background: var(--accent-soft); }
.addon-qty b { min-width: 20px; text-align: center; font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--ink); }

.addon { display: flex; align-items: flex-start; gap: 13px; text-align: left; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--bg-2); border: 1px solid var(--hairline); transition: .3s var(--ease); }
.addon:hover { border-color: var(--hairline-2); }
.addon.on { background: linear-gradient(180deg, rgba(8,122,89,.08), var(--bg-2)); border-color: rgba(8,122,89,.42); }
.addon-sw { flex: none; width: 40px; height: 23px; margin-top: 2px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--hairline-2); position: relative; transition: .3s var(--ease); }
.addon-sw i { position: absolute; top: 2px; left: 2px; width: 17px; height: 17px; border-radius: 50%; background: var(--ink-mute); transition: .3s var(--ease); }
.addon.on .addon-sw { background: linear-gradient(135deg,var(--accent),var(--accent-2)); border-color: transparent; box-shadow: 0 6px 16px -6px var(--accent-glow); }
.addon.on .addon-sw i { transform: translateX(17px); background: var(--accent-ink); }
.addon-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.addon-name { font-family: var(--font-display); font-weight: 600; font-size: 14.5px; color: var(--ink); line-height: 1.35; }
.addon-inc { display: inline-block; margin-left: 7px; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 10.5px; font-weight: 600; letter-spacing: .02em; white-space: nowrap; vertical-align: 1px; }
.addon-note { font-size: 12.5px; color: var(--ink-mute); line-height: 1.45; }
.addon-price { margin-top: 3px; font-size: 12.5px; color: var(--ink-soft); }
.addon-price b { font-family: var(--font-display); font-weight: 600; color: var(--accent); }

@media (max-width: 900px) {
  .modes-row { grid-template-columns: 1fr; }
  .addon-list { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .plan-addons { padding: 20px 18px 22px; }
  .addons-head { gap: 14px; }
}

/* =========================================================================
   EMBUDO DE LA HOME
   Selecciona tu tipo de negocio → problemas → chat → planes
   ========================================================================= */
.pick-title { text-align: center; font-family: var(--font-display); font-weight: 700; letter-spacing: -.02em; line-height: 1.05; font-size: clamp(30px, 6.2vw, 66px); }
.pick-sub { text-align: center; color: var(--ink-soft); font-size: clamp(15px,2vw,18px); margin: 18px auto 0; max-width: 54ch; }

.biz-pick { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-top: clamp(34px,5vw,54px); }
.biz-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 26px 16px; min-height: 132px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--hairline); color: var(--ink-soft); transition: .35s var(--ease); }
/* Ícono del sector: SVG de línea propio, en el mismo lenguaje visual del
   resto del sitio. Al pasar el mouse el trazo se vuelve a dibujar solo. */
.biz-btn .bi {
  position: relative;
  width: 54px; height: 54px; flex: none;
  display: grid; place-items: center;
  border-radius: 16px;
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  color: var(--ink-soft);
  transition: color .35s var(--ease), background .35s var(--ease),
              border-color .35s var(--ease), transform .45s var(--ease);
}
.biz-btn .bi::after {
  /* aura que respira al pasar el mouse */
  content: ""; position: absolute; inset: -6px; border-radius: 20px;
  background: radial-gradient(circle at 50% 50%, var(--accent-glow), transparent 68%);
  opacity: 0; transform: scale(.7);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
  pointer-events: none;
}
.biz-btn .bi svg { width: 27px; height: 27px; position: relative; z-index: 1; }

.biz-btn:hover .bi { color: var(--accent); background: var(--accent-soft); border-color: rgba(8,122,89,.35); transform: translateY(-2px) scale(1.04); }
.biz-btn:hover .bi::after { opacity: .55; transform: scale(1); }
/* La animación (no transición) deja el ícono completo en reposo y solo lo
   redibuja al entrar el mouse. */
.biz-btn:hover .bi svg > * { animation: biDraw .75s var(--ease-out) both; }
.biz-btn:hover .bi svg > *:nth-child(2) { animation-delay: .08s }
.biz-btn:hover .bi svg > *:nth-child(3) { animation-delay: .16s }
.biz-btn:hover .bi svg > *:nth-child(4) { animation-delay: .24s }
@keyframes biDraw {
  from { stroke-dasharray: 140; stroke-dashoffset: 140; }
  to   { stroke-dasharray: 140; stroke-dashoffset: 0; }
}

.biz-btn.on .bi {
  color: var(--accent-ink);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
  box-shadow: 0 12px 30px -10px var(--accent-glow);
}
.biz-btn.on .bi::after { opacity: .45; transform: scale(1); }
.biz-btn b { font-family: var(--font-display); font-weight: 600; font-size: 15.5px; color: var(--ink); line-height: 1.3; }
.biz-btn:hover { border-color: var(--hairline-2); background: var(--surface-2); transform: translateY(-3px); }
.biz-btn.on { background: linear-gradient(180deg, rgba(8,122,89,.12), var(--surface)); border-color: rgba(8,122,89,.5); box-shadow: 0 26px 60px -30px var(--accent-glow); }
.biz-btn.on b { color: var(--accent); }

/* ---- Pasos del embudo ---- */
.biz-flow { margin-top: clamp(48px,7vw,84px); display: flex; flex-direction: column; gap: clamp(44px,6vw,76px); }
.flow-head { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.flow-n { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg,var(--accent),var(--accent-2)); color: var(--accent-ink); font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.flow-head h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(19px,2.9vw,28px); letter-spacing: -.02em; line-height: 1.25; }
.flow-note { color: var(--ink-soft); font-size: 15.5px; max-width: 62ch; }

/* ---- Tarjetas de dolor ---- */
.pain-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.pain { display: flex; flex-direction: column; gap: 10px; text-align: left; padding: 24px 24px 22px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--hairline); cursor: pointer; transition: .35s var(--ease); }
.pain:hover { border-color: rgba(8,122,89,.4); background: var(--surface-2); transform: translateY(-3px); }
.pain-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.pain-ic svg { width: 19px; height: 19px; }
.pain b { font-family: var(--font-display); font-weight: 600; font-size: 17px; color: var(--ink); line-height: 1.3; }
.pain p { color: var(--ink-mute); font-size: 14.5px; line-height: 1.55; }
.pain-cta { display: inline-flex; align-items: center; gap: 7px; margin-top: 4px; color: var(--accent); font-family: var(--font-display); font-weight: 600; font-size: 13.5px; opacity: 0; transform: translateY(-3px); transition: .3s var(--ease); }
.pain-cta svg { width: 14px; height: 14px; }
.pain:hover .pain-cta { opacity: 1; transform: none; }

/* ---- Chat del embudo ---- */
.fchat { max-width: 760px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--hairline); overflow: hidden; box-shadow: var(--shadow-md); }
.fchat-top { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--hairline); background: var(--bg-2); }
.fchat-top .av { width: 38px; height: 38px; border-radius: 50%; flex: none; display: grid; place-items: center; background: linear-gradient(135deg,var(--accent),var(--accent-2)); color: var(--accent-ink); }
.fchat-top .av svg { width: 19px; height: 19px; }
.fchat-top b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 15px; }
.fchat-top small { color: var(--accent); font-size: 12.5px; }
.fchat-body { min-height: 190px; max-height: 380px; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 12px; scrollbar-width: thin; }
.fchat-input { display: flex; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--hairline); }
.fchat-input input { flex: 1; min-width: 0; padding: 13px 17px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--hairline); color: var(--ink); font: inherit; font-size: 15px; }
.fchat-input input:focus { outline: none; border-color: var(--accent); }
.fchat-input button { width: 48px; height: 48px; border-radius: 50%; flex: none; background: linear-gradient(135deg,var(--accent),var(--accent-2)); color: var(--accent-ink); display: grid; place-items: center; transition: transform .25s var(--ease); }
.fchat-input button:hover { transform: scale(1.06); }
.fchat-input button svg { width: 19px; height: 19px; }

/* ---- Cierre: solución a la medida ---- */
.flow-custom { display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap; padding: 30px 32px; border-radius: var(--radius); background: linear-gradient(120deg, var(--accent-soft), var(--surface)); border: 1px solid rgba(8,122,89,.3); }
.flow-custom b { display: block; font-family: var(--font-display); font-weight: 600; font-size: clamp(18px,2.4vw,23px); letter-spacing: -.02em; }
.flow-custom p { margin-top: 7px; color: var(--ink-soft); font-size: 15px; max-width: 52ch; }
.plan-mount { margin-top: 4px; }

/* ---- Cinta de exploración (abrebocas a las otras páginas) ---- */
.explore { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.explore-card { display: flex; flex-direction: column; gap: 9px; padding: 26px 24px 24px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--hairline); transition: .35s var(--ease); }
.explore-card:hover { border-color: var(--hairline-2); background: var(--surface-2); transform: translateY(-4px); }
.explore-card .ei { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 4px; }
.explore-card .ei svg { width: 20px; height: 20px; }
.explore-card b { font-family: var(--font-display); font-weight: 600; font-size: 17px; color: var(--ink); }
.explore-card span { color: var(--ink-mute); font-size: 14px; line-height: 1.5; }
.explore-card .go { margin-top: auto; padding-top: 12px; color: var(--accent); font-family: var(--font-display); font-weight: 600; font-size: 13.5px; }

@media (max-width: 900px) {
  .biz-pick { grid-template-columns: repeat(2,1fr); }
  .pain-grid { grid-template-columns: 1fr; }
  .explore { grid-template-columns: repeat(2,1fr); }
  .flow-custom { flex-direction: column; align-items: flex-start; }
  .flow-custom .btn { width: 100%; justify-content: center; }
}
@media (max-width: 560px) {
  .biz-pick { gap: 10px; }
  .biz-btn { min-height: 112px; padding: 20px 12px; }
  .biz-btn .bi { width: 46px; height: 46px; border-radius: 14px; }
  .biz-btn .bi svg { width: 23px; height: 23px; }
  .biz-btn b { font-size: 14px; }
  .explore { grid-template-columns: 1fr; }
  .fchat-body { padding: 16px; }
  .flow-custom { padding: 24px 20px; }
}

/* =========================================================================
   REVEAL
   ========================================================================= */
.reveal { opacity: 0; transform: translateY(26px); filter: blur(6px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out), filter .8s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; filter: none; }
.reveal.d1 { transition-delay: .08s } .reveal.d2 { transition-delay: .16s } .reveal.d3 { transition-delay: .24s } .reveal.d4 { transition-delay: .32s }

/* i18n visibility */
[data-lang="es"] .en-only { display: none; }
[data-lang="en"] .es-only { display: none; }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 940px) {
  .nav-links { display: none; }
  .burger { display: block; }
  .nav-actions .lang { display: none; }
  /* En móvil el nav solo lleva logo + hamburguesa (el CTA vive en el menú) */
  .nav-actions > .btn-primary { display: none; }
  .nav { padding: 8px 8px 8px 16px; }
  /* Hero en bloque simple: evita que el grid estire el texto más que la pantalla */
  .hero-grid { display: block; }
  .hero-copy { max-width: 100%; }
  .hero-visual { max-width: 440px; margin-top: 34px; }
  .contact-grid { grid-template-columns: 1fr; }
  .team { grid-template-columns: 1fr; }
  .tstwall { columns: 2; }
  .bento .card, .bento .card.wide, .bento .card.tall { grid-column: span 6; grid-row: auto; }
  .sectors { grid-template-columns: repeat(2,1fr); }
  .steps { grid-template-columns: 1fr; }
  .zrow { grid-template-columns: 1fr; }
  .zrow:nth-child(even) .ztext { order: 0; }
  .system-grid { grid-template-columns: 1fr 1fr; }
  .plan-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .plan-card.popular { order: -1; }
  .cases { grid-template-columns: 1fr; }
  .case-content .case-gallery { grid-template-columns: 1fr 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .star-grid { grid-template-columns: 1fr; }
  .star-visual { max-width: 520px; }
}
@media (max-width: 560px) {
  .star-mods { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .container { padding-inline: 20px; }
  .tstwall { columns: 1; }
  .sectors { grid-template-columns: 1fr; }
  .member { flex-direction: column; }
  .foot-cols { gap: 32px; }
  .hero-badge { display: none; }
  .chat-fab span.lbl { display: none; }
  .system-grid { grid-template-columns: 1fr; }

  /* Hero: titular y botones que respiran */
  h1 { font-size: clamp(27px, 7.4vw, 42px); }
  /* En móvil, dejar que las palabras largas bajen de línea (balance las apretaba) */
  .balance { text-wrap: pretty; }
  .hero { padding-top: calc(var(--nav-h) + 44px); }
  .hero h1 { margin: 18px 0 18px; }
  .hero-cta { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .hero-trust { gap: 12px; margin-top: 28px; }
  .hero-trust span { flex: 1 1 100%; font-size: 13px; }

  /* Secciones un poco menos altas para que no se sienta tan larga */
  .section { padding-block: clamp(52px, 12vw, 80px); }
  .section-head { margin-bottom: 34px; }

  /* Planes y estrella: aire interno */
  .plan-card { padding: 26px 22px; }
  .star-cta { flex-direction: column; align-items: stretch; }
  .star-cta .btn { width: 100%; justify-content: center; }
  .agent-chips { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
}
