/* ============================================================
   Emite · Sistema de diseño (rebrand 2026)
   Identidad: claro institucional "infraestructura fiscal".
   Hueso cálido + esmeralda + ámbar. Tipografía editorial
   (Fraunces) + Inter Tight + JetBrains Mono. Sombras de luz
   real, cero glow neón. El dashboard vive en oscuro (isla).
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Inter+Tight:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Fondos (hueso cálido, nunca blanco puro) */
  --bg: #FBF8F3;
  --bg-sunken: #F4EFE7;
  --surface: #FFFFFF;
  --surface-2: #FCFAF6;
  /* Tinta */
  --ink: #1C1A17;
  --ink-2: #4A463F;
  --ink-3: #78736A;
  --ink-4: #A39C90;
  /* Marca — esmeralda fiscal */
  --brand: #0E6B52;
  --brand-700: #0A553F;
  --brand-800: #07412F;
  --brand-300: #6FB39D;
  --brand-tint: #E6F1EC;
  /* Acento — ámbar tostado */
  --accent: #C9762B;
  --accent-700: #A65E1E;
  --accent-tint: #F8ECDD;
  /* Líneas */
  --line: #E7E1D6;
  --line-strong: #D8D0C2;
  --line-soft: #F0EBE2;
  /* Estados */
  --success: #1E7A4F; --success-tint: #E4F1E9;
  --warning: #B8791A; --warning-tint: #FAEFD7;
  --error: #B23A2E;   --error-tint: #F8E5E2;
  --info: #2C5F8A;    --info-tint: #E4EDF4;

  /* Tipografía */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Inter Tight", -apple-system, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  /* Radios */
  --r-xs: 6px; --r-sm: 8px; --r-md: 10px; --r-lg: 14px; --r-xl: 20px; --r-pill: 999px;
  /* Sombras (luz real, tinte cálido, sin glow) */
  --sh-xs: 0 1px 2px rgba(28,26,23,.05);
  --sh-sm: 0 1px 2px rgba(28,26,23,.06), 0 2px 4px rgba(28,26,23,.04);
  --sh-md: 0 2px 4px rgba(28,26,23,.05), 0 8px 16px rgba(28,26,23,.07);
  --sh-lg: 0 4px 8px rgba(28,26,23,.06), 0 20px 40px rgba(28,26,23,.10);
  --sh-hero: 0 24px 60px rgba(28,26,23,.18), 0 8px 20px rgba(28,26,23,.10);
  --ring: 0 0 0 3px rgba(14,107,82,.22);
  /* Espaciado / contenedores */
  --w-content: 1080px; --w-wide: 1240px; --gutter: clamp(20px, 5vw, 64px);

  /* Compatibilidad con componentes/paneles que aún nombran tokens viejos */
  --radius: var(--r-lg); --radius-lg: var(--r-xl);
  --shadow: var(--sh-lg);
  --muted-c: var(--ink-3);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-optical-sizing: auto;
}
/* Textura de fondo muy sutil tipo papel contable (líneas, no grid neón) */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--line-soft) 1px, transparent 1px);
  background-size: 100% 32px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(180deg, transparent, #000 8%, #000 92%, transparent);
}
/* La textura de papel es solo para el sitio claro; nunca en los paneles oscuros. */
body.panel::before { display: none; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; font-optical-sizing: auto; color: var(--ink); margin: 0; text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--brand-tint); color: var(--brand-800); }

/* ---------- Utilidades ---------- */
.container { width: 100%; max-width: var(--w-content); margin: 0 auto; padding: 0 var(--gutter); }
.container.wide { max-width: var(--w-wide); }
.container.narrow { max-width: 780px; }
.muted { color: var(--ink-3); }
.center { text-align: center; }
.glow-text { color: var(--brand); }           /* antes degradado neón; ahora marca */
.eyebrow {
  font-family: var(--font-sans); font-weight: 600; font-size: .75rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--brand);
}
.chip-sm {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); font-size: .8rem; font-weight: 500;
}

/* ---------- Botones ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: var(--r-md); font-weight: 600; font-size: .9rem; font-family: inherit;
  cursor: pointer; border: 1px solid var(--line-strong); color: var(--ink); background: var(--surface);
  transition: transform .14s, box-shadow .2s, background .18s, border-color .18s; line-height: 1;
}
.btn:hover { background: var(--bg-sunken); border-color: var(--ink-3); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn-primary {
  background: var(--brand); color: #fff; border-color: transparent;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), var(--sh-xs);
}
.btn-primary:hover { background: var(--brand-700); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), var(--sh-sm); }
.btn-primary:active { background: var(--brand-800); }
.btn-ghost { background: transparent; }
.btn-lg { padding: 15px 26px; font-size: 1rem; }
.btn-block { display: flex; width: 100%; }
.btn.tiny { padding: 6px 11px; font-size: .8rem; }
/* Botón terciario: solo texto, subrayado animado */
.btn-text {
  display: inline-flex; align-items: center; gap: 6px; color: var(--brand); font-weight: 600; font-size: .92rem;
  background: none; border: none; cursor: pointer; padding: 6px 2px; position: relative;
}
.btn-text::after { content: ""; position: absolute; left: 2px; right: 2px; bottom: 0; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .18s; }
.btn-text:hover::after { transform: scaleX(1); }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 60; background: rgba(251,248,243,.82); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.nav.scrolled { border-bottom-color: var(--line); box-shadow: var(--sh-sm); }
.nav .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; color: var(--ink); letter-spacing: -.01em; }
.brand .mark { width: 26px; height: 26px; border-radius: 7px; position: relative; background: var(--brand); flex: none; }
.brand .mark::after { content: ""; position: absolute; inset: 6px 6px auto 6px; height: 3px; border-radius: 2px; background: var(--accent); box-shadow: 0 6px 0 rgba(255,255,255,.85); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a:not(.btn) { color: var(--ink-2); font-size: .9rem; font-weight: 500; transition: color .15s; position: relative; }
.nav-links a:not(.btn):hover { color: var(--ink); }
.nav-links a:not(.btn).active { color: var(--brand); }
.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-burger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }
.nav.open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .nav-burger span:nth-child(2) { opacity: 0; }
.nav.open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero (product-led, asimétrico) ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 8vw, 104px); }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy .pill, .pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px; border-radius: var(--r-pill);
  background: var(--brand-tint); border: 1px solid var(--brand-300); color: var(--brand-800); font-size: .78rem; font-weight: 500; margin-bottom: 22px;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); }
.hero h1 { font-size: clamp(2.75rem, 1.6rem + 5.2vw, 4.75rem); line-height: 1.02; letter-spacing: -.02em; margin: 0 0 22px; }
.hero p.lead { font-size: clamp(1.0625rem, 1rem + .4vw, 1.25rem); color: var(--ink-2); max-width: 46ch; margin: 0 0 28px; }
.lead { font-size: clamp(1.0625rem, 1rem + .4vw, 1.25rem); color: var(--ink-2); line-height: 1.55; }
.hero .cta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.hero-pills { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 28px; }
.trust-line { margin-top: 26px; display: inline-flex; align-items: center; gap: 9px; color: var(--ink-2); font-size: .9rem; }
.trust-line .tick { width: 20px; height: 20px; border-radius: 50%; background: var(--success-tint); color: var(--success); display: grid; place-items: center; font-size: .7rem; font-weight: 700; flex: none; }
.scroll-hint { display: none; }
/* Marco del producto en el hero */
.hero-visual { position: relative; }
.hero-visual .mockup { transform: rotate(-1.2deg); transform-origin: center left; }

/* Page header (páginas internas, claro) */
.page-head { position: relative; text-align: center; padding: clamp(56px, 8vw, 92px) 0 clamp(20px, 3vw, 30px); }
.page-head .eyebrow { display: inline-block; }
.page-head h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); margin: 14px 0 14px; letter-spacing: -.018em; }
.page-head p { color: var(--ink-2); max-width: 60ch; margin: 0 auto; font-size: 1.08rem; }

/* ---------- Tira de confianza (estática, sin marquee infinito) ---------- */
.trust-strip { border-block: 1px solid var(--line); background: var(--bg-sunken); }
.trust-strip .container { display: flex; flex-wrap: wrap; gap: 14px 32px; justify-content: center; padding: 18px var(--gutter); }
.trust-strip span { color: var(--ink-3); font-size: .85rem; display: inline-flex; gap: 8px; align-items: center; }
.trust-strip b { color: var(--ink); font-weight: 600; }

/* ---------- Secciones ---------- */
section.block { padding: clamp(56px, 9vw, 96px) 0; position: relative; }
section.block.tight { padding: clamp(44px, 6vw, 64px) 0; }
.section-head { text-align: center; max-width: 60ch; margin: 0 auto; }
.section-title { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); margin: 10px 0 12px; letter-spacing: -.01em; }
.section-sub { text-align: center; color: var(--ink-2); max-width: 58ch; margin: 0 auto 52px; font-size: 1.05rem; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Cards ---------- */
.card { position: relative; padding: 26px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-sm); transition: transform .2s, box-shadow .2s, border-color .2s; }
.card:hover { transform: translateY(-2px); box-shadow: var(--sh-md); border-color: var(--line-strong); }
.card .ico { width: 46px; height: 46px; border-radius: var(--r-md); display: grid; place-items: center; font-size: 1.35rem; background: var(--brand-tint); color: var(--brand); border: 1px solid var(--brand-300); margin-bottom: 16px; }
.card h3 { font-family: var(--font-sans); font-weight: 600; margin: 0 0 8px; font-size: 1.15rem; letter-spacing: -.006em; }
.card p { margin: 0; color: var(--ink-2); font-size: .95rem; line-height: 1.6; }
.card.lg { padding: 32px; }
.card ul.ticks { list-style: none; padding: 0; margin: 14px 0 0; }
.card ul.ticks li { padding: 6px 0 6px 26px; position: relative; color: var(--ink-2); font-size: .92rem; }
.card ul.ticks li::before { content: "✓"; position: absolute; left: 0; top: 6px; color: var(--success); font-weight: 700; }
.step-n { font-family: var(--font-display); font-size: 2.2rem; font-weight: 500; color: var(--brand); opacity: .9; margin-bottom: 4px; }

/* Fila alterna texto + visual */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 56px); align-items: center; }
.split + .split { margin-top: clamp(48px, 8vw, 88px); }
.split h2 { font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2rem); margin: 10px 0 14px; }
.split p { color: var(--ink-2); font-size: 1.02rem; }
.split .visual { border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--sh-md); min-height: 280px; display: grid; place-items: center; padding: 28px; }

/* ---------- Métricas ---------- */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.metric { text-align: center; padding: 28px 18px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-xs); }
.metric .n { font-family: var(--font-display); font-size: 2.4rem; font-weight: 500; color: var(--brand); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.metric .l { color: var(--ink-2); font-size: .9rem; margin-top: 6px; }

/* ---------- Planes ---------- */
.toggle { display: flex; justify-content: center; gap: 12px; align-items: center; margin-bottom: 40px; color: var(--ink-2); font-weight: 500; }
.switch { width: 52px; height: 28px; border-radius: var(--r-pill); background: var(--line-strong); border: 1px solid var(--line-strong); position: relative; cursor: pointer; transition: background .2s; }
.switch.year { background: var(--brand); border-color: var(--brand); }
.switch i { position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: left .22s; box-shadow: var(--sh-xs); }
.switch.year i { left: 26px; }
.tag-save { color: var(--accent-700); font-size: .8rem; border: 1px solid var(--accent); background: var(--accent-tint); padding: 2px 9px; border-radius: var(--r-pill); font-weight: 600; }

.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 26px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-sm); position: relative; transition: transform .2s, box-shadow .2s; }
.plan:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
.plan.featured { border-color: var(--brand); box-shadow: var(--sh-lg); }
.plan.featured::before { content: ""; position: absolute; inset: 0; border-radius: var(--r-lg); border: 1px solid var(--brand); pointer-events: none; }
.plan .badge { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: var(--brand); color: #fff; font-size: .72rem; font-weight: 600; padding: 4px 12px; border-radius: var(--r-pill); white-space: nowrap; }
.plan h3 { font-family: var(--font-sans); font-weight: 600; margin: 0 0 4px; font-size: 1.2rem; }
.plan .who { color: var(--ink-3); font-size: .82rem; min-height: 34px; }
.price-num { font-family: var(--font-display); font-size: 2.4rem; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.price-num small { font-size: .85rem; color: var(--ink-3); font-weight: 400; font-family: var(--font-sans); }
.plan ul { list-style: none; padding: 0; margin: 18px 0; flex: 1; }
.plan li { padding: 7px 0 7px 24px; position: relative; font-size: .9rem; color: var(--ink-2); }
.plan li::before { content: "✓"; position: absolute; left: 0; top: 7px; color: var(--success); font-weight: 700; }
.plan li b { color: var(--ink); }
.enterprise-band { margin-top: 22px; padding: 28px; border-radius: var(--r-lg); background: var(--brand); color: #fff; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.enterprise-band h3 { color: #fff; font-family: var(--font-sans); font-weight: 600; }
.enterprise-band .glow-text { color: var(--accent-tint); }
.enterprise-band .muted { color: rgba(255,255,255,.82); }
.enterprise-band .btn { background: #fff; color: var(--brand-800); border-color: #fff; }

/* Tabla comparativa */
.cmp-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--sh-sm); }
table.cmp { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 760px; }
table.cmp th, table.cmp td { padding: 13px 16px; border-bottom: 1px solid var(--line-soft); text-align: center; }
table.cmp thead th { background: var(--bg-sunken); font-family: var(--font-sans); font-weight: 600; font-size: .82rem; color: var(--ink-2); position: sticky; top: 0; }
table.cmp tbody th { text-align: left; color: var(--ink-2); font-weight: 500; font-family: var(--font-sans); }
table.cmp td.hi { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
table.cmp .col-feat { background: var(--brand-tint); }
table.cmp tr:last-child td, table.cmp tr:last-child th { border-bottom: none; }
.yes { color: var(--success); font-weight: 700; }
.no { color: var(--ink-4); }

/* ---------- Cumplimiento ---------- */
.compliance { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
.dte-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.dte-chip { padding: 14px 10px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); text-align: center; font-size: .8rem; color: var(--ink-2); transition: .18s; box-shadow: var(--sh-xs); }
.dte-chip:hover { border-color: var(--brand-300); transform: translateY(-2px); box-shadow: var(--sh-sm); }
.dte-chip b { display: block; font-family: var(--font-mono); color: var(--brand); font-size: 1.05rem; margin-bottom: 3px; font-weight: 500; }
.flow { display: grid; gap: 12px; }
.flow .node { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-xs); }
.flow .node .num { flex: none; width: 32px; height: 32px; border-radius: var(--r-sm); display: grid; place-items: center; font-weight: 600; color: #fff; background: var(--brand); font-family: var(--font-mono); }
.flow .node h4 { font-family: var(--font-sans); font-weight: 600; margin: 2px 0 4px; }
.flow .node p { margin: 0; color: var(--ink-2); font-size: .92rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin: 0 auto; }
.faq-item { border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 10px; background: var(--surface); overflow: hidden; box-shadow: var(--sh-xs); }
.faq-q { width: 100%; text-align: left; background: none; border: none; color: var(--ink); font-size: 1rem; font-weight: 600; font-family: var(--font-sans); padding: 18px 20px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-q .pl { color: var(--brand); transition: transform .22s; font-size: 1.3rem; flex: none; }
.faq-item.open .faq-q .pl { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .28s ease; color: var(--ink-2); font-size: .95rem; line-height: 1.7; padding: 0 20px; }
.faq-item.open .faq-a { max-height: 360px; padding-bottom: 18px; }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.contact .card { display: flex; gap: 16px; align-items: center; }
.contact .big { font-family: var(--font-display); font-size: 1.35rem; color: var(--ink); }
.form-field { margin-bottom: 14px; }
.form-field label { display: block; font-size: .85rem; color: var(--ink-2); margin-bottom: 6px; font-weight: 500; }
.form-field input, .form-field textarea, .form-field select { width: 100%; padding: 11px 14px; border-radius: var(--r-md); border: 1px solid var(--line-strong); background: var(--bg-sunken); color: var(--ink); font-family: inherit; font-size: .95rem; transition: border-color .12s, box-shadow .12s, background .12s; }
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--brand); background: var(--surface); box-shadow: var(--ring); }

/* ---------- CTA final ---------- */
.cta-band { position: relative; text-align: center; padding: clamp(40px, 6vw, 64px) 32px; border-radius: var(--r-xl); background: var(--brand); color: #fff; overflow: hidden; }
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 1.2rem + 2vw, 2.4rem); margin: 0 0 12px; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 52ch; margin: 0 auto 26px; }
.cta-band .btn-primary { background: #fff; color: var(--brand-800); }
.cta-band .btn-primary:hover { background: var(--bg-sunken); }
.cta-band .btn-ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,.1); }

/* ---------- Legales (artículo) ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 30px 0 20px; }
.legal h2 { font-size: 1.4rem; margin: 36px 0 12px; padding-top: 28px; border-top: 1px solid var(--line); }
.legal h2:first-of-type { border-top: none; padding-top: 0; }
.legal h3 { font-family: var(--font-sans); font-weight: 600; font-size: 1.05rem; margin: 22px 0 8px; }
.legal p, .legal li { color: var(--ink-2); font-size: 1rem; line-height: 1.75; }
.legal ul { padding-left: 22px; }
.legal .updated { color: var(--ink-3); font-size: .9rem; }
.legal .callout { background: var(--accent-tint); border: 1px solid var(--accent); border-left: 3px solid var(--accent); border-radius: var(--r-sm); padding: 14px 18px; margin: 18px 0; color: var(--accent-700); font-size: .92rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-sunken); padding: 56px 0 36px; color: var(--ink-2); font-size: .9rem; margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 36px; }
.foot-brand p { font-size: .9rem; max-width: 320px; margin: 12px 0 14px; color: var(--ink-3); }
.foot-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.foot-col { display: flex; flex-direction: column; }
.foot-col strong { color: var(--ink); margin-bottom: 12px; font-size: .92rem; font-family: var(--font-sans); }
.foot-col a { color: var(--ink-2); padding: 5px 0; transition: color .15s; }
.foot-col a:hover { color: var(--brand); }
.foot-bottom { border-top: 1px solid var(--line); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: var(--ink-3); }

/* ---------- Reveal (una sola vez, sutil) ---------- */
.reveal { opacity: 0; transform: translateY(8px); transition: opacity .42s cubic-bezier(.2,.6,.2,1), transform .42s cubic-bezier(.2,.6,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .06s; } .reveal.d2 { transition-delay: .12s; } .reveal.d3 { transition-delay: .18s; }

/* ---------- Accesibilidad ---------- */
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--r-sm); }
a:focus-visible { box-shadow: var(--ring); }

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

/* ============================================================
   DASHBOARD (isla oscura) — vive dentro del marketing claro.
   Misma familia (esmeralda + ámbar + hueso), solo sube luminancia.
   Colores explícitos para no depender de los tokens claros.
   ============================================================ */
.mk-section { position: relative; }
.mockup {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid #322F27; background: #14130F; color: #F2EEE5;
  box-shadow: var(--sh-hero); max-width: 1080px; margin: 0 auto;
  font-family: var(--font-sans);
}
.mk-bar { display: flex; align-items: center; gap: 8px; padding: 11px 16px; border-bottom: 1px solid #2A2820; background: #1C1B16; }
.mk-bar > i { width: 11px; height: 11px; border-radius: 50%; background: #3a372d; }
.mk-bar > i:nth-child(1){ background:#E0695A;} .mk-bar > i:nth-child(2){ background:#E0A23A;} .mk-bar > i:nth-child(3){ background:#3FB985;}
.mk-url { margin-left: 12px; font-family: var(--font-mono); font-size: .74rem; color: #837D6E; background: #14130F; padding: 4px 12px; border-radius: var(--r-sm); border: 1px solid #2A2820; }
.mk-secure { margin-left: auto; font-size: .74rem; color: #837D6E; display: inline-flex; align-items: center; gap: 6px; }
.mk-body { display: grid; grid-template-columns: 248px 1fr; height: 640px; }

.mk-side { border-right: 1px solid #2A2820; padding: 16px 10px 12px; display: flex; flex-direction: column; gap: 6px; background: #16150F; height: 100%; overflow: hidden; }
.mk-brand { display: flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 600; margin: 0 0 10px; padding-left: 6px; color: #F2EEE5; }
.mk-brand .mark { width: 22px; height: 22px; border-radius: 6px; background: #2FA37E; position: relative; flex: none; }
.mk-brand .mark::after { content:""; position:absolute; inset:5px 5px auto 5px; height:2.5px; border-radius:2px; background:#E0944A; }
.mk-navwrap { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; padding-right: 4px; scrollbar-width: thin; scrollbar-color: #322F27 transparent; }
.mk-navwrap::-webkit-scrollbar { width: 6px; } .mk-navwrap::-webkit-scrollbar-thumb { background: #322F27; border-radius: 6px; }
.mk-grp { display: flex; flex-direction: column; gap: 2px; }
.mk-grp + .mk-grp { border-top: 1px solid #2A2820; padding-top: 12px; }
.mk-grp-t { font-family: var(--font-sans); font-size: .62rem; text-transform: uppercase; letter-spacing: .14em; color: #6f6857; padding: 0 10px 6px; font-weight: 600; }
.mk-nav { display: flex; align-items: center; gap: 9px; font-size: .8rem; color: #B5AF9F; padding: 8px 10px; border-radius: var(--r-sm); border: 1px solid transparent; transition: .16s; cursor: pointer; }
.mk-nav .ico { width: 17px; text-align: center; font-size: .85rem; flex: none; opacity: .9; }
.mk-nav .lbl { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-nav:hover { color: #F2EEE5; background: #201E17; }
.mk-nav.act { color: #F2EEE5; background: rgba(47,163,126,.14); border-color: rgba(47,163,126,.4); box-shadow: inset 2px 0 0 #2FA37E; }
.mk-b { font-family: var(--font-mono); font-size: .62rem; padding: 1px 7px; border-radius: var(--r-pill); background: rgba(47,163,126,.18); color: #7fd6b6; flex: none; }
.mk-b.warn { background: rgba(224,162,58,.16); color: #E0A23A; }
.mk-b.ok { background: rgba(63,185,133,.16); color: #3FB985; padding: 1px 5px; }
.mk-side-foot { margin-top: 6px; padding-top: 12px; border-top: 1px solid #2A2820; flex: none; }
.mk-user { display: flex; align-items: center; gap: 10px; padding: 0 6px; }
.mk-user .av { width: 30px; height: 30px; border-radius: var(--r-sm); display: grid; place-items: center; font-size: .72rem; font-weight: 700; color: #07140f; background: #2FA37E; flex: none; }
.mk-user b { font-size: .82rem; display: block; color: #F2EEE5; } .mk-user small { color: #837D6E; font-size: .72rem; }

.mk-main { padding: 18px; display: flex; flex-direction: column; gap: 14px; min-width: 0; height: 100%; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #322F27 transparent; }
.mk-main::-webkit-scrollbar { width: 8px; } .mk-main::-webkit-scrollbar-thumb { background: #322F27; border-radius: 8px; }

.mk-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.mk-company { display: flex; align-items: center; gap: 11px; padding: 8px 12px; border: 1px solid #2A2820; border-radius: var(--r-md); background: #1C1B16; cursor: pointer; }
.mk-co-av { width: 34px; height: 34px; border-radius: var(--r-sm); display: grid; place-items: center; font-weight: 700; font-size: .8rem; color: #07140f; background: #3FB985; }
.mk-company b { font-size: .86rem; display: block; color: #F2EEE5; } .mk-company small { color: #837D6E; font-size: .72rem; font-family: var(--font-mono); }
.mk-chev { color: #837D6E; }
.mk-top-right { display: flex; align-items: center; gap: 10px; }
.mk-env { display: inline-flex; padding: 3px; border: 1px solid #2A2820; border-radius: var(--r-md); background: #1C1B16; }
.seg-b { border: none; background: none; color: #B5AF9F; font-family: inherit; font-size: .8rem; padding: 6px 12px; border-radius: var(--r-sm); cursor: pointer; transition: .2s; }
.seg-b.act { color: #07140f; font-weight: 600; background: #2FA37E; }
.seg-b[data-env="00"].act { background: #E0A23A; }
.mk-api-chip { display: inline-flex; align-items: center; gap: 7px; font-size: .74rem; color: #B5AF9F; border: 1px solid #2A2820; border-radius: var(--r-pill); padding: 5px 11px; background: #1C1B16; }
.mk-api-chip em { font-style: normal; color: #3FB985; font-family: var(--font-mono); font-size: .72rem; }
.mk-cert { font-size: .76rem; color: #3FB985; border: 1px solid rgba(63,185,133,.3); border-radius: var(--r-pill); padding: 5px 11px; background: rgba(63,185,133,.08); }

.mk-fiscal { display: grid; grid-template-columns: repeat(6, 1fr); gap: 11px; }
.mk-fc { position: relative; border: 1px solid #2A2820; border-radius: var(--r-md); padding: 13px; background: #1C1B16; overflow: hidden; transition: transform .2s, border-color .2s; }
.mk-fc::after { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: #2FA37E; opacity: .7; }
.mk-fc:hover { transform: translateY(-3px); border-color: #3a372d; }
.mk-fc.warn::after { background: #E0A23A; }
.mk-fc.danger::after { background: #E0695A; }
.mk-fc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; min-height: 22px; }
.mk-fc-ico { font-size: 1.05rem; }
.mk-trend { font-size: .68rem; padding: 2px 7px; border-radius: var(--r-pill); }
.mk-trend.up { color: #3FB985; background: rgba(63,185,133,.12); }
.mk-fc .n { font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; line-height: 1; color: #F2EEE5; font-variant-numeric: tabular-nums; }
.mk-fc .l { color: #B5AF9F; font-size: .73rem; margin-top: 5px; }
.mk-fc .l small { color: #837D6E; }
.mk-prog { height: 5px; border-radius: 4px; background: rgba(255,255,255,.06); margin-top: 8px; overflow: hidden; }
.mk-prog i { display: block; height: 100%; width: 6%; border-radius: 4px; background: #2FA37E; transition: width 1s cubic-bezier(.2,.8,.2,1); }
.mockup.in .mk-prog i { width: var(--w); }

.mk-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.mk-dot.ok { background: #3FB985; } .mk-dot.warn { background: #E0A23A; }

.mk-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mk-panel { border: 1px solid #2A2820; border-radius: var(--r-md); padding: 16px; background: #1A1913; }
.mk-ph { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.mk-ph h4 { font-family: var(--font-sans); margin: 0; font-size: .92rem; display: flex; align-items: center; gap: 8px; color: #F2EEE5; font-weight: 600; }
.mk-chip { font-size: .7rem; color: #B5AF9F; border: 1px solid #2A2820; border-radius: var(--r-pill); padding: 3px 10px; }
.mk-chip.ok { color: #3FB985; border-color: rgba(63,185,133,.35); }
.mk-chip.act { color: #07140f; background: #2FA37E; border: none; font-weight: 600; }
.mk-filters .mk-chip { cursor: pointer; transition: .15s; }
.mk-filters .mk-chip:hover { color: #F2EEE5; border-color: #3a372d; }

.mk-kv { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; }
.mk-kv > div { display: flex; flex-direction: column; gap: 2px; padding: 7px 0; border-bottom: 1px dashed #2A2820; }
.mk-kv span { color: #6f6857; font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; }
.mk-kv b { font-size: .84rem; color: #F2EEE5; } .mk-kv b.ok { color: #3FB985; }

.mk-timeline { display: flex; justify-content: space-between; margin: 16px 2px 4px; position: relative; }
.mk-timeline::before { content: ""; position: absolute; top: 8px; left: 8px; right: 8px; height: 2px; background: #2A2820; }
.mk-timeline .prog { position: absolute; top: 8px; left: 8px; height: 2px; background: #2FA37E; width: 0; transition: width .5s ease; }
.tl-step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; z-index: 1; flex: 1; }
.tl-step i { width: 16px; height: 16px; border-radius: 50%; background: #14130F; border: 2px solid #322F27; transition: .25s; }
.tl-step span { font-size: .68rem; color: #6f6857; }
.tl-step.done i { background: #3FB985; border-color: #3FB985; }
.tl-step.active i { border-color: #2FA37E; }
.tl-step.done span, .tl-step.active span { color: #F2EEE5; }

.mk-log { margin-top: 12px; font-family: var(--font-mono); font-size: .72rem; color: #6f6857; border-top: 1px solid #2A2820; padding-top: 10px; min-height: 56px; display: flex; flex-direction: column; gap: 4px; }
.mk-log b { color: #5cc6a3; } .mk-log .g { color: #3FB985; } .mk-log .y { color: #E0A23A; }

.mk-bars { display: flex; align-items: flex-end; gap: 6px; height: 108px; padding: 4px; }
.mk-bars i { flex: 1; height: 6px; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, #3FB985, #1f7d5c); transition: height .8s cubic-bezier(.2,.8,.2,1); }
.mockup.in .mk-bars i { height: var(--h); }
.mk-bars i:hover { filter: brightness(1.2); }

.mk-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.mk-qa { font-size: .76rem; color: #B5AF9F; border: 1px solid #2A2820; border-radius: var(--r-sm); padding: 7px 11px; cursor: pointer; transition: .18s; background: #1C1B16; }
.mk-qa:hover { color: #F2EEE5; border-color: #2FA37E; }
.mk-qa.pressed { transform: scale(.96); border-color: #3FB985; }

.mk-filters { display: flex; align-items: center; gap: 7px; }
.mk-transmit { display: inline-flex; align-items: center; gap: 8px; border: none; cursor: pointer; font-family: inherit; font-weight: 600; font-size: .78rem; color: #07140f; padding: 7px 14px; border-radius: var(--r-sm); background: #2FA37E; transition: .2s; }
.mk-transmit .d { width: 8px; height: 8px; border-radius: 50%; background: #07140f; }
.mk-transmit.sending { background: #837D6E; }
.mk-transmit.sending .d { border: 2px solid rgba(7,20,15,.4); border-top-color: #07140f; background: none; border-radius: 50%; animation: mkspin .7s linear infinite; }
.mk-transmit.done { background: #3FB985; }
@keyframes mkspin { to { transform: rotate(360deg); } }

.mk-tbody { position: relative; }
.mk-trow { display: grid; grid-template-columns: 1.3fr 1.2fr .85fr .8fr .7fr 1fr; gap: 10px; padding: 11px 8px; font-size: .8rem; border-bottom: 1px solid #2A2820; align-items: center; }
.mk-trow > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-trow:not(.mk-thead):hover { background: #201E17; }
.mk-thead { color: #6f6857; font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; }
.mk-trow .mono { font-family: var(--font-mono); color: #B5AF9F; }
.mk-trow span:nth-child(4), .mk-trow span:nth-child(5) { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.mk-badge { position: relative; font-style: normal; font-size: .7rem; padding: 3px 9px; border-radius: var(--r-pill); border: 1px solid #2A2820; white-space: nowrap; cursor: default; }
.mk-badge.ok { color: #3FB985; border-color: rgba(63,185,133,.4); background: rgba(63,185,133,.08); }
.mk-badge.wait { color: #E0A23A; border-color: rgba(224,162,58,.4); background: rgba(224,162,58,.08); }
.mk-badge.rev { color: #5B9BD1; border-color: rgba(91,155,209,.4); background: rgba(91,155,209,.08); }
.mk-badge.err { color: #E0695A; border-color: rgba(224,105,90,.4); background: rgba(224,105,90,.08); }
[data-tip] { position: relative; }
[data-tip]:hover::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); right: 0; white-space: nowrap; background: #07140f; border: 1px solid #322F27; color: #F2EEE5; font-size: .72rem; font-family: var(--font-mono); padding: 6px 10px; border-radius: var(--r-sm); box-shadow: var(--sh-md); z-index: 5; }
.mk-skel-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-around; padding: 8px; gap: 8px; background: #14130F; transition: opacity .5s ease; }
.mk-skel-overlay span { height: 16px; border-radius: 5px; background: linear-gradient(90deg, #1C1B16, #24221C, #1C1B16); background-size: 200% 100%; animation: mkshim 1.3s infinite; }
.mockup.ready .mk-skel-overlay { opacity: 0; pointer-events: none; }
@keyframes mkshim { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.mk-alert { display: flex; gap: 11px; align-items: flex-start; padding: 11px 13px; border-radius: var(--r-md); margin-bottom: 9px; border: 1px solid #2A2820; }
.mk-alert:last-child { margin-bottom: 0; }
.mk-alert b { font-size: .82rem; display: block; color: #F2EEE5; } .mk-alert small { color: #B5AF9F; font-size: .74rem; }
.mk-alert.warn { background: rgba(224,162,58,.08); border-color: rgba(224,162,58,.3); }
.mk-alert.info { background: rgba(91,155,209,.08); border-color: rgba(91,155,209,.3); }
.mk-alert.ok { background: rgba(63,185,133,.08); border-color: rgba(63,185,133,.3); }
.mk-auto { display: flex; gap: 11px; align-items: center; padding: 10px 0; border-bottom: 1px dashed #2A2820; }
.mk-auto:last-child { border-bottom: none; }
.mk-auto > div:nth-child(2) { flex: 1; } .mk-auto b { font-size: .82rem; display: block; color: #F2EEE5; } .mk-auto small { color: #B5AF9F; font-size: .73rem; }
.mk-switch { width: 38px; height: 21px; border-radius: var(--r-pill); background: #322F27; position: relative; flex: none; }
.mk-switch i { position: absolute; top: 2px; left: 2px; width: 17px; height: 17px; border-radius: 50%; background: #B5AF9F; transition: left .25s; }
.mk-switch.on { background: #2FA37E; } .mk-switch.on i { left: 19px; background: #07140f; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-2, .grid-3, .grid-4, .plans, .compliance, .contact, .split, .hero-grid { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .dte-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-visual { order: 2; } .hero-visual .mockup { transform: none; }
  .mk-fiscal { grid-template-columns: repeat(3, 1fr); } .mk-grid2 { grid-template-columns: 1fr; }
}
@media (max-width: 880px) {
  .nav-burger { display: flex; }
  .nav-links { position: fixed; inset: 64px 0 auto 0; flex-direction: column; gap: 4px; align-items: stretch;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 16px var(--gutter) 24px; box-shadow: var(--sh-md);
    transform: translateY(-130%); transition: transform .3s; max-height: calc(100vh - 64px); overflow: auto; }
  .nav.open .nav-links { transform: translateY(0); }
  .nav-links a:not(.btn) { padding: 12px 4px; border-bottom: 1px solid var(--line-soft); }
  .cta-nav { margin-top: 8px; }
  .foot-grid { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .mk-body { grid-template-columns: 62px 1fr; height: 560px; }
  .mk-brand-tx, .mk-grp-t, .mk-nav .lbl, .mk-b, .mk-user-tx { display: none; }
  .mk-brand { justify-content: center; padding-left: 0; } .mk-nav { justify-content: center; padding: 9px 0; gap: 0; } .mk-nav.act { box-shadow: none; }
  .mk-user { justify-content: center; padding: 0; }
  .mk-fiscal { grid-template-columns: 1fr 1fr; } .mk-kv { grid-template-columns: 1fr; }
  .mk-trow { grid-template-columns: 1.3fr .8fr 1.1fr; } .mk-trow span:nth-child(2), .mk-trow span:nth-child(3), .mk-trow span:nth-child(5) { display: none; }
  .mk-top-right { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
}
@media (max-width: 400px) {
  .dte-grid { grid-template-columns: repeat(2, 1fr); }
  .metrics { grid-template-columns: 1fr; }
}

/* ============================================================
   Asistente IA flotante (sitio público)
   ============================================================ */
.chat-fab-root { position: fixed; right: 22px; bottom: 22px; z-index: 200; }
.chat-fab {
  width: 58px; height: 58px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--brand); color: #fff; box-shadow: var(--sh-lg);
  display: grid; place-items: center; position: relative;
  transition: transform .18s, background .2s;
}
.chat-fab:hover { transform: translateY(-2px) scale(1.04); background: var(--brand-700); }
.chat-fab .cf-ic, .chat-fab .cf-cl { position: absolute; font-size: 1.5rem; transition: opacity .18s, transform .18s; }
.chat-fab .cf-cl { opacity: 0; transform: rotate(-90deg); font-size: 1.2rem; }
.chat-fab.on .cf-ic { opacity: 0; transform: rotate(90deg); }
.chat-fab.on .cf-cl { opacity: 1; transform: rotate(0); }

.chat-win {
  position: absolute; right: 0; bottom: 74px; width: 360px; max-width: calc(100vw - 32px);
  height: 520px; max-height: calc(100vh - 120px); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--sh-lg);
  display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; transform: translateY(12px) scale(.98); pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.chat-win.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.chat-hd { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px;
  background: var(--brand); color: #fff; }
.chat-id { font-weight: 600; font-size: .95rem; display: flex; align-items: center; gap: 8px; }
.chat-id small { font-weight: 400; opacity: .8; font-size: .76rem; }
.chat-dot { width: 8px; height: 8px; border-radius: 50%; background: #5BE3A7; box-shadow: 0 0 0 0 rgba(91,227,167,.7); animation: chatPulse 2s infinite; }
@keyframes chatPulse { 0% { box-shadow: 0 0 0 0 rgba(91,227,167,.6); } 70% { box-shadow: 0 0 0 7px rgba(91,227,167,0); } 100% { box-shadow: 0 0 0 0 rgba(91,227,167,0); } }
.chat-x { background: rgba(255,255,255,.16); border: none; color: #fff; width: 28px; height: 28px; border-radius: 8px; cursor: pointer; font-size: .85rem; }
.chat-x:hover { background: rgba(255,255,255,.28); }

.chat-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--bg-sunken); }
.chat-msg { max-width: 84%; padding: 10px 13px; border-radius: 14px; font-size: .9rem; line-height: 1.45; }
.chat-msg.ai { background: var(--surface); border: 1px solid var(--line); color: var(--ink); border-bottom-left-radius: 4px; align-self: flex-start; }
.chat-msg.me { background: var(--brand); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.chat-msg.ai a { color: var(--brand); font-weight: 600; }
.chat-msg.typing { display: inline-flex; gap: 4px; align-items: center; }
.chat-msg.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-4); animation: chatBlink 1.2s infinite; }
.chat-msg.typing span:nth-child(2) { animation-delay: .2s; }
.chat-msg.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes chatBlink { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }

.chat-sug { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px 6px; background: var(--bg-sunken); }
.chat-sug button { font-size: .78rem; padding: 6px 11px; border-radius: var(--r-pill); border: 1px solid var(--brand-300);
  background: var(--surface); color: var(--brand); cursor: pointer; transition: background .15s; }
.chat-sug button:hover { background: var(--brand-tint); }

.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: var(--surface); }
.chat-form input { flex: 1; border: 1px solid var(--line-strong); border-radius: var(--r-pill); padding: 10px 15px; font: inherit; font-size: .9rem; outline: none; background: var(--surface-2); }
.chat-form input:focus { border-color: var(--brand-300); }
.chat-form button { width: 42px; border: none; border-radius: 50%; background: var(--brand); color: #fff; cursor: pointer; font-size: 1rem; flex: none; }
.chat-form button:hover { background: var(--brand-700); }

@media (max-width: 480px) {
  .chat-fab-root { right: 14px; bottom: 14px; }
  .chat-win { bottom: 70px; height: calc(100vh - 100px); }
}
