/* =========================================================
   Condómino — landing
   ========================================================= */
:root {
  --bg: #fbfaf7;
  --paper: #f3f1ec;
  --tint: #eef5f2;
  --card: #ffffff;
  --ink: #10201d;
  --ink-2: #0b1715;
  --text: #24302d;
  --text-soft: #5b6662;
  --text-faint: #8d9692;
  --line: #e6e3dc;
  --line-strong: #d3cfc6;

  --brand: #0f7a68;
  --brand-600: #0b6355;
  --brand-soft: #e1f1ec;
  --brand-rgb: 15, 122, 104;
  --accent: #ffb547;
  --accent-soft: #fff1d9;

  --green: #1f8a5b;
  --red: #c2463a;
  --amber: #9a6a0c;

  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(16, 32, 29, .05), 0 4px 14px rgba(16, 32, 29, .05);
  --shadow: 0 2px 4px rgba(16, 32, 29, .04), 0 30px 60px -20px rgba(16, 32, 29, .22);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 16.5px; line-height: 1.65;
  color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; line-height: 1.1; font-family: var(--display); color: var(--ink); letter-spacing: -.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.tiny { font-size: 12px; }
.muted { color: var(--text-soft); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; transition: background .2s, color .2s, border-color .2s;
}
.btn svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px -10px rgba(var(--brand-rgb), .7); }
.btn--primary:hover { background: var(--brand-600); }
.btn--ghost { background: var(--card); color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn--sm { padding: 9px 18px; font-size: 14px; box-shadow: none; }
.btn--block { width: 100%; }

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo__mark { width: 34px; height: 34px; flex: none; }
.logo__word { font-family: var(--display); font-weight: 800; font-size: 21px; letter-spacing: -.025em; color: var(--ink); }
.logo--sm .logo__mark { width: 28px; height: 28px; }
.logo--sm .logo__word { font-size: 19px; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(251, 250, 247, .72);
  backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid transparent; transition: border-color .3s, background .3s;
}
.nav.is-scrolled { background: rgba(251, 250, 247, .94); border-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.nav__links { display: flex; align-items: center; gap: 28px; font-size: 14.5px; }
.nav__links a:not(.btn) { color: var(--text-soft); transition: color .2s; }
.nav__links a:not(.btn):hover { color: var(--brand); }
.nav__burger { display: none; background: none; border: 0; width: 44px; height: 44px; position: relative; color: var(--ink); }
.nav__burger span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor; transition: transform .25s var(--ease); }
.nav__burger span:first-child { top: 18px; }
.nav__burger span:last-child { top: 25px; }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 140px 0 90px; }
.hero__bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(700px 420px at 85% 20%, rgba(var(--brand-rgb), .14), transparent 70%),
    radial-gradient(520px 360px at 70% 85%, rgba(255, 181, 71, .16), transparent 70%);
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-size: 13px; font-weight: 600; color: var(--brand);
}
.eyebrow svg { width: 16px; height: 16px; color: var(--accent); }
.hero__title { margin-top: 22px; font-size: clamp(40px, 5.4vw, 66px); font-weight: 800; line-height: 1.06; letter-spacing: -.022em; }
.hl {
  background: linear-gradient(100deg, var(--brand) 10%, #18a184 60%, #c98a1d 105%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead { margin-top: 22px; font-size: 18.5px; color: var(--text-soft); max-width: 560px; }
.hero__ctas { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__checks { margin-top: 30px; display: grid; grid-template-columns: repeat(2, auto); gap: 8px 22px; justify-content: start; font-size: 14.5px; color: var(--text); }
.hero__checks li { display: flex; align-items: center; gap: 9px; }
.hero__checks li::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%; flex: none;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='%230f7a68' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}
.hero__copy, .hero__demo { min-width: 0; }
.hero__demo { position: relative; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; justify-content: center; }
.badge { font-size: 13px; padding: 6px 12px; border-radius: 999px; background: var(--ink); color: #dfe9e6; }
.badge b { color: #fff; font-variant-numeric: tabular-nums; }
.badge--soft { background: var(--card); color: var(--text-soft); border: 1px solid var(--line); }
.badge--soft b { color: var(--brand); }
.hero__hint { text-align: center; font-size: 12.5px; color: var(--text-faint); margin-top: 8px; }

/* ---------- chat ---------- */
.chat {
  background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; overflow: hidden;
}
.chat__head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.chat__avatar {
  width: 38px; height: 38px; border-radius: 12px; flex: none; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), #18a184); color: #fff;
}
.chat__avatar svg { width: 20px; height: 20px; }
.chat__who { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; flex: 1; }
.chat__who b { font-size: 14.5px; color: var(--ink); }
.chat__who > span { font-size: 12px; color: var(--text-soft); display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dot-live { width: 7px; height: 7px; border-radius: 50%; background: #22b07d; flex: none; box-shadow: 0 0 0 3px rgba(34, 176, 125, .18); }
.seg { display: inline-flex; background: var(--paper); border-radius: 999px; padding: 3px; }
.seg__btn { border: 0; background: transparent; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--text-soft); transition: background .2s, color .2s; }
.seg__btn.is-on { background: var(--card); color: var(--ink); box-shadow: var(--shadow-sm); }

.chat__body {
  height: 390px; padding: 16px; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px;
  overflow: hidden; background: linear-gradient(#fdfcfa, #f8f7f3);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 60px); mask-image: linear-gradient(to bottom, transparent 0, #000 60px);
}
.msg { max-width: 86%; font-size: 14px; line-height: 1.5; animation: msgIn .35s var(--ease) both; }
.msg--user { align-self: flex-end; background: var(--brand); color: #fff; padding: 9px 14px; border-radius: 16px 16px 4px 16px; }
.msg--bot { align-self: flex-start; background: var(--card); border: 1px solid var(--line); padding: 10px 14px; border-radius: 16px 16px 16px 4px; box-shadow: var(--shadow-sm); }
.msg__card { margin-top: 8px; border-radius: 10px; background: var(--paper); padding: 8px 10px; display: grid; gap: 4px; font-size: 12.5px; }
.msg__card div { display: flex; justify-content: space-between; gap: 12px; }
.msg__card b { font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }
.msg__action {
  margin-top: 8px; display: flex; width: fit-content; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600;
  padding: 6px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-600); border: 0;
}
.msg__meta { display: flex; align-items: center; gap: 5px; margin-top: 6px; font-size: 11px; color: var(--text-faint); }
.msg__meta svg { width: 11px; height: 11px; color: var(--accent); }
.msg-sep {
  align-self: center; font-size: 11.5px; font-weight: 600; color: var(--text-faint);
  padding: 3px 12px; border-radius: 999px; background: var(--paper); animation: msgIn .35s var(--ease) both;
}
.msg--typing { display: inline-flex; gap: 4px; padding: 13px 14px; }
.msg--typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--text-faint); animation: blink 1s infinite; }
.msg--typing i:nth-child(2) { animation-delay: .15s; }
.msg--typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-2px); } }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }

.chat__chips { display: flex; gap: 6px; padding: 10px 12px 2px; overflow-x: auto; scrollbar-width: none; }
.chat__chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; border: 1px solid var(--line-strong); background: var(--card); color: var(--text);
  padding: 6px 12px; border-radius: 999px; font-size: 12.5px; white-space: nowrap; transition: border-color .2s, color .2s, background .2s;
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.is-on { background: var(--brand-soft); border-color: transparent; color: var(--brand-600); }
.chat__input {
  margin: 10px 12px 12px; display: flex; align-items: center; min-height: 44px;
  padding: 0 6px 0 14px; border-radius: 999px; background: var(--paper); font-size: 14px; color: var(--ink);
}
.chat__typed:empty::before { content: "Escribí tu consulta…"; color: var(--text-faint); }
.chat__caret { width: 1.5px; height: 18px; background: var(--brand); margin-left: 1px; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.chat__send { margin-left: auto; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; }
.chat__send svg { width: 16px; height: 16px; }

/* ---------- pillars ---------- */
.pillars { border-block: 1px solid var(--line); background: var(--card); }
.pillars__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.pillar { display: flex; gap: 14px; padding: 28px 22px; align-items: flex-start; }
.pillar + .pillar { border-left: 1px solid var(--line); }
.pillar__icon { width: 40px; height: 40px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: none; }
.pillar__icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pillar__icon svg use, .pillar:first-child .pillar__icon svg { fill: currentColor; stroke: none; }
.pillar b { display: block; color: var(--ink); font-size: 15.5px; }
.pillar p { font-size: 14px; color: var(--text-soft); line-height: 1.5; margin-top: 2px; }

/* ---------- sections ---------- */
.section { position: relative; padding: 110px 0; }
.section--paper { background: var(--paper); }
.section--tint { background: var(--tint); }
.kicker { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
.kicker svg { width: 15px; height: 15px; color: var(--accent); }
.kicker--light { color: #7fd8c3; }
.h2 { margin-top: 14px; font-size: clamp(32px, 4vw, 48px); font-weight: 720; line-height: 1.06; }
.lead { font-size: 17.5px; color: var(--text-soft); }
.split-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: end; margin-bottom: 52px; }
.center-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.center-head .lead { margin-top: 16px; }

/* ---------- vs ---------- */
.vs { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.vs__head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 14px 26px; background: var(--bg); border-bottom: 1px solid var(--line); font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); }
.vs__brand { color: var(--brand); padding-left: 0; }
.vs li { display: grid; grid-template-columns: 1fr 24px 1fr; gap: 12px; align-items: center; padding: 16px 26px; }
.vs li + li { border-top: 1px solid var(--line); }
.vs__old { color: var(--text-soft); text-decoration: line-through; text-decoration-color: rgba(194, 70, 58, .45); }
.vs li > i { font-style: normal; color: var(--text-faint); text-align: center; }
.vs__new { color: var(--ink); font-weight: 600; }

/* ---------- IA (oscura) ---------- */
.section--ink { background: var(--ink-2); color: #c9d6d2; overflow: hidden; }
.section--ink .h2 { color: #fff; }
.section--ink .lead { color: #a9b8b4; }
.ink-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 380px at 15% 0%, rgba(24, 161, 132, .28), transparent 70%),
    radial-gradient(500px 340px at 95% 100%, rgba(255, 181, 71, .14), transparent 70%);
}
.section--ink .wrap { position: relative; }
.ai-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ai-card {
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .09); border-radius: var(--radius);
  padding: 26px; display: flex; flex-direction: column; gap: 10px;
}
.ai-card--wide { grid-column: span 2; }
.ai-card__tag { align-self: flex-start; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.ai-card h3 { color: #fff; font-size: 22px; font-weight: 680; }
.ai-card p { font-size: 15px; color: #a9b8b4; }
.q-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.q-cloud li {
  font-size: 13.5px; padding: 7px 13px; border-radius: 999px; color: #e5efec;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1);
  animation: floaty 6s ease-in-out infinite; animation-delay: calc(var(--d, 0) * -1s);
}
.q-cloud li:nth-child(3n) { --d: 2; }
.q-cloud li:nth-child(3n+1) { --d: 4; }
@keyframes floaty { 50% { transform: translateY(-3px); border-color: rgba(127, 216, 195, .45); } }
.mini-q { display: grid; gap: 8px; margin-top: auto; padding-top: 8px; font-size: 13.5px; line-height: 1.45; }
.mini-q__u { justify-self: end; background: var(--brand); color: #fff; padding: 8px 12px; border-radius: 14px 14px 4px 14px; }
.mini-q__b { justify-self: start; background: rgba(255, 255, 255, .08); color: #e5efec; padding: 8px 12px; border-radius: 14px 14px 14px 4px; }

.ocr { display: grid; grid-template-columns: 74px 1fr; gap: 14px; margin-top: auto; padding-top: 8px; align-items: center; }
.ocr__doc { position: relative; height: 96px; border-radius: 8px; background: #f4f1ea; padding: 12px 10px; display: grid; gap: 7px; align-content: start; overflow: hidden; }
.ocr__doc i { height: 5px; border-radius: 3px; background: #d6d0c3; }
.ocr__doc i:nth-child(1) { width: 60%; background: #9fb9b2; }
.ocr__doc i:nth-child(3) { width: 80%; }
.ocr__doc i:nth-child(5) { width: 45%; }
.ocr__scan { position: absolute; left: 0; right: 0; height: 22px; top: -22px; background: linear-gradient(transparent, rgba(24, 161, 132, .45)); border-bottom: 2px solid #18a184; }
.ocr.is-run .ocr__scan { animation: scan 1.6s var(--ease) both; }
@keyframes scan { to { top: 100%; } }
.ocr__fields { margin: 0; display: grid; gap: 4px; font-size: 12.5px; }
.ocr__fields div { display: flex; justify-content: space-between; gap: 8px; padding-bottom: 4px; border-bottom: 1px dashed rgba(255, 255, 255, .1); }
.ocr__fields dt { color: #8fa29d; }
.ocr__fields dd { margin: 0; color: #fff; font-weight: 600; text-align: right; transition: color .3s; }
.ocr__fields dd.is-new { color: #7fd8c3; }

/* ---------- bento ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 8px; }
.card--xl { grid-column: span 2; grid-row: span 2; }
.card--wide { grid-column: span 2; }
.card--brand { background: var(--brand); border-color: var(--brand); color: #d8efe9; }
.card--brand h3 { color: #fff; }
.card--brand .card__icon { background: rgba(255, 255, 255, .14); color: #fff; }
.card h3 { font-size: 20px; font-weight: 680; }
.card p { font-size: 15px; color: var(--text-soft); }
.card--brand p { color: #d8efe9; }
.card__icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-bottom: 6px; }
.card__icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.link-arrow { margin-top: auto; font-weight: 600; color: #fff; }
.liq { margin-top: auto; border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: var(--bg); display: grid; gap: 10px; font-size: 13.5px; }
.liq__head { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-faint); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.liq__row { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 12px; align-items: center; }
.liq__row i { height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--brand), #18a184); width: var(--w); transform-origin: left; transform: scaleX(0); transition: transform 1s var(--ease); }
.is-in .liq__row i, .no-anim .liq__row i { transform: scaleX(1); }
.liq__row b, .liq__total b { font-variant-numeric: tabular-nums; color: var(--ink); }
.liq__total { display: flex; justify-content: space-between; padding-top: 10px; border-top: 1px solid var(--line); font-weight: 600; }

/* ---------- system mock ---------- */
.tabs { display: flex; justify-content: center; gap: 6px; margin-bottom: 22px; flex-wrap: wrap; }
.tab { border: 1px solid var(--line-strong); background: var(--card); padding: 8px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--text-soft); }
.tab.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.browser { background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.browser__bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--bg); }
.browser__dots { display: flex; gap: 6px; }
.browser__dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-strong); }
.browser__url { flex: 1; max-width: 420px; margin-inline: auto; text-align: center; font-size: 12.5px; color: var(--text-soft); background: var(--paper); border-radius: 8px; padding: 4px 12px; }
.app { display: grid; grid-template-columns: 210px 1fr; min-height: 470px; }
.app__side { border-right: 1px solid var(--line); padding: 18px 14px; background: var(--bg); }
.app__brand { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 750; color: var(--ink); }
.app__brand svg { width: 24px; height: 24px; }
.app__menu { margin: 22px 0 8px 8px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); }
.app__bld li { padding: 8px 10px; border-radius: 8px; font-size: 14px; color: var(--text-soft); }
.app__bld li.is-on { background: var(--brand-soft); color: var(--brand-600); font-weight: 600; }
.app__main { padding: 22px; min-width: 0; }
.screen { animation: msgIn .35s var(--ease) both; }
.app__title { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.app__title h3 { font-size: 19px; }
.pill { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: var(--paper); color: var(--text-soft); white-space: nowrap; }
.pill--ok { background: #dff3e9; color: var(--green); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.kpi { border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 2px; }
.kpi span { font-size: 12.5px; color: var(--text-soft); }
.kpi strong { font-size: 20px; color: var(--ink); font-variant-numeric: tabular-nums; font-family: var(--display); }
.kpi em { font-style: normal; font-size: 12px; color: var(--text-faint); }
.kpi em.up { color: var(--green); }
.kpi em.warn { color: var(--amber); }
.box { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; overflow-x: auto; }
.box__head { margin-bottom: 8px; font-size: 14px; color: var(--ink); }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl td, .tbl th { padding: 9px 8px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl th { font-size: 11.5px; font-weight: 600; color: var(--text-faint); text-transform: uppercase; letter-spacing: .05em; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl .pos { color: var(--green); }
.tbl .neg { color: var(--red); }
.st { display: inline-block; font-style: normal; font-size: 12px; padding: 2px 9px; border-radius: 999px; background: var(--paper); color: var(--text-soft); }
.st--ok { background: #dff3e9; color: var(--green); }
.st--warn { background: var(--accent-soft); color: var(--amber); }
.progress { height: 6px; border-radius: 3px; background: var(--paper); margin: 14px 0 8px; overflow: hidden; }
.progress span { display: block; height: 100%; width: var(--p); background: var(--brand); }
.kanban { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.kanban__col { background: var(--bg); border-radius: 12px; padding: 12px; display: grid; gap: 8px; align-content: start; }
.kanban__title { font-size: 13px; font-weight: 600; color: var(--text-soft); display: flex; justify-content: space-between; }
.kcard { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: grid; gap: 3px; font-size: 13.5px; }
.kcard b { color: var(--ink); }
.kcard span { font-size: 12px; color: var(--text-faint); }
.kcard em { justify-self: start; }
.kcard--done { opacity: .7; }

/* ---------- portal ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split .lead { margin-top: 16px; }
.steps { margin-top: 28px; display: grid; gap: 12px; counter-reset: s; }
.steps li { counter-increment: s; display: flex; gap: 14px; align-items: baseline; font-size: 15.5px; color: var(--text-soft); }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--display); font-weight: 700; font-size: 13px; color: var(--brand); }
.steps b { color: var(--ink); }
.phone-stage { position: relative; display: flex; justify-content: center; padding: 20px 0; }
.phone { width: 300px; border-radius: 44px; background: var(--ink); padding: 11px; box-shadow: var(--shadow); position: relative; }
.phone__notch { position: absolute; top: 11px; left: 50%; width: 110px; height: 26px; transform: translateX(-50%); background: var(--ink); border-radius: 0 0 16px 16px; z-index: 2; }
.phone__screen { background: var(--bg); border-radius: 34px; overflow: hidden; padding: 12px 14px 0; display: flex; flex-direction: column; gap: 12px; min-height: 590px; }
.p-status { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; color: var(--ink); padding: 0 8px; }
.p-status__icons { display: flex; gap: 3px; align-items: end; }
.p-status__icons i { width: 4px; background: var(--ink); border-radius: 1px; }
.p-status__icons i:nth-child(1) { height: 5px; } .p-status__icons i:nth-child(2) { height: 8px; } .p-status__icons i:nth-child(3) { height: 11px; }
.p-top { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.p-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.p-hello { display: flex; flex-direction: column; line-height: 1.25; }
.p-hello span { font-size: 12px; color: var(--text-faint); }
.p-hello b { font-size: 14px; color: var(--ink); }
.p-balance { background: var(--brand); color: #d8efe9; border-radius: 18px; padding: 14px 16px; display: grid; gap: 4px; }
.p-balance strong { color: #fff; font-family: var(--display); font-size: 27px; font-variant-numeric: tabular-nums; }
.p-balance__row { display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.p-balance__row em { font-style: normal; background: rgba(255, 255, 255, .15); padding: 2px 8px; border-radius: 999px; }
.p-btn { border: 0; background: #fff; color: var(--brand-600); font-weight: 700; font-size: 12.5px; padding: 6px 16px; border-radius: 999px; }
.p-bank { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 12px; }
.p-bank div { display: flex; align-items: center; gap: 8px; }
.p-bank span { color: var(--text-faint); }
.p-bank b { color: var(--ink); flex: 1; }
.copy { border: 0; background: var(--brand-soft); color: var(--brand-600); font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.p-ask { display: flex; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; font-size: 12px; line-height: 1.4; }
.p-ask svg { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 1px; }
.p-ask b { display: block; color: var(--ink); font-size: 12.5px; }
.p-ask span { color: var(--text-soft); }
.p-sub { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); }
.p-feed { display: grid; gap: 8px; }
.p-feed li { display: flex; align-items: center; gap: 10px; font-size: 12.5px; }
.p-feed div { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.p-feed b { color: var(--ink); }
.p-feed span { color: var(--text-faint); font-size: 11.5px; }
.p-feed em { font-style: normal; font-weight: 600; color: var(--text-soft); }
.p-feed em.ok { color: var(--green); }
.p-ico { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-style: normal; font-weight: 700; background: var(--accent-soft); color: var(--amber); }
.p-ico--ok { background: #dff3e9; color: var(--green); }
.p-ico--doc { background: var(--brand-soft); color: var(--brand); }
.p-tabs { margin-top: auto; margin-inline: -14px; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); background: var(--card); padding: 10px 0 18px; text-align: center; font-size: 11px; color: var(--text-faint); }
.p-tabs .on { color: var(--brand); font-weight: 700; }
.float-badge {
  position: absolute; display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 10px 14px; box-shadow: var(--shadow); font-size: 12.5px; line-height: 1.3;
  animation: bob 5s ease-in-out infinite;
}
.float-badge b { display: block; color: var(--ink); }
.float-badge span { color: var(--text-faint); font-size: 12px; }
.float-badge > i { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-style: normal; font-weight: 700; background: #dff3e9; color: var(--green); flex: none; }
.float-badge .fb-ai { background: linear-gradient(135deg, var(--brand), #18a184); color: #fff; }
.fb-ai svg { width: 16px; height: 16px; }
.float-badge--a { top: 90px; left: -10px; }
.float-badge--b { bottom: 110px; right: -10px; animation-delay: -2.5s; }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* ---------- para quién ---------- */
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.role { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: relative; overflow: hidden; }
.role__n { font-family: var(--display); font-weight: 800; font-size: 54px; line-height: 1; color: var(--brand-soft); display: block; margin-bottom: 18px; }
.role h3 { font-size: 21px; margin-bottom: 8px; }
.role p { color: var(--text-soft); font-size: 15px; }

/* ---------- flow ---------- */
.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; position: relative; }
.flow li { position: relative; padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); }
.flow__n { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-family: var(--display); font-weight: 700; font-size: 18px; margin-bottom: 18px; }
.flow li:last-child .flow__n { background: var(--brand); }
.flow h3 { font-size: 20px; margin-bottom: 6px; }
.flow p { color: var(--text-soft); font-size: 15px; }

/* ---------- faq ---------- */
.faq-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.faq-side { position: sticky; top: 110px; }
.faq-side .btn { margin-top: 26px; }
.faq { display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 28px 18px 0; font-weight: 600; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 400; color: var(--brand); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding-bottom: 18px; color: var(--text-soft); font-size: 15.5px; }

/* ---------- cta ---------- */
.section--cta { background: var(--ink-2); color: #c9d6d2; overflow: hidden; }
.section--cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 400px at 10% 100%, rgba(24, 161, 132, .3), transparent 70%); pointer-events: none; }
.cta { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.cta .h2 { color: #fff; }
.cta .lead { color: #a9b8b4; margin-top: 16px; }
.cta__list { margin-top: 24px; display: grid; gap: 10px; }
.cta__list li { display: flex; gap: 10px; align-items: center; }
.cta__list li::before { content: "✓"; color: var(--accent); font-weight: 700; }
.form { background: var(--card); border-radius: 20px; padding: 28px; display: grid; gap: 14px; color: var(--text); box-shadow: var(--shadow); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.form input, .form select, .form textarea {
  font: inherit; font-weight: 400; font-size: 15px; padding: 11px 13px; border-radius: 10px;
  border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink); width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(var(--brand-rgb), .15); }
.form .is-invalid { border-color: var(--red); }
.form__hp { position: absolute !important; left: -9999px; }
.form__msg { font-size: 14px; min-height: 1.4em; }
.form__msg.ok { color: var(--green); }
.form__msg.err { color: var(--red); }

/* ---------- footer ---------- */
.footer { padding: 36px 0; border-top: 1px solid var(--line); }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 22px; font-size: 14px; color: var(--text-soft); }
.footer__links a:hover { color: var(--brand); }
.footer__note { width: 100%; font-size: 12.5px; color: var(--text-faint); }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1040px) {
  .hero__inner, .split, .cta, .faq-layout { grid-template-columns: 1fr; }
  .hero { padding-top: 120px; }
  .hero__demo { max-width: 560px; width: 100%; margin-inline: auto; }
  .split-head { grid-template-columns: 1fr; gap: 16px; }
  .pillars__grid { grid-template-columns: 1fr 1fr; }
  .pillar:nth-child(3) { border-left: 0; }
  .pillar:nth-child(n+3) { border-top: 1px solid var(--line); }
  .ai-grid, .bento { grid-template-columns: 1fr 1fr; }
  .card--xl { grid-row: auto; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .faq-side { position: static; }
}
@media (max-width: 860px) {
  .nav__burger { display: block; }
  .nav__links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 18px;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav__links.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__links a:not(.btn) { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav__cta { margin-top: 14px; }
  .app { grid-template-columns: 1fr; }
  .app__side { display: none; }
  .roles, .flow { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 80px 0; }
  .hero__checks { grid-template-columns: 1fr; }
  .chat__body { height: 360px; }
  .chat__head .seg { width: 100%; }
  .seg__btn { flex: 1; }
  .pillars__grid, .ai-grid, .bento { grid-template-columns: 1fr; }
  .pillar { border-left: 0 !important; }
  .pillar + .pillar { border-top: 1px solid var(--line); }
  .ai-card--wide, .card--xl, .card--wide { grid-column: auto; }
  .vs__head { display: none; }
  .vs li { grid-template-columns: 1fr; gap: 4px; padding: 16px 18px; }
  .vs li > i { display: none; }
  .liq__row { grid-template-columns: 1fr auto; }
  .liq__row i { display: none; }
  .kanban { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .float-badge--a { left: 0; top: 40px; }
  .float-badge--b { right: 0; }
  .app__main { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* =========================================================
   Asistente (carita) e ilustraciones
   ========================================================= */
.chat__avatar { position: relative; width: 42px; height: 42px; border-radius: 50%; background: none; }
.chat__avatar > svg { width: 100%; height: 100%; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px rgba(var(--brand-rgb), .25); }
.chat__ai {
  position: absolute; right: -4px; bottom: -4px; width: 19px; height: 19px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent); color: #fff; border: 2px solid #fff; font-style: normal;
}
.chat__ai svg { width: 10px; height: 10px; }
.msg-row { display: flex; align-items: flex-end; gap: 8px; align-self: flex-start; max-width: 90%; animation: msgIn .35s var(--ease) both; }
.msg-row .msg { max-width: none; animation: none; }
.msg-row__face { flex: none; }
.msg-row__face svg { width: 28px; height: 28px; border-radius: 50%; overflow: hidden; }

.hero { padding-bottom: 170px; }
.hero__inner { z-index: 1; }
.chat { position: relative; z-index: 1; }

/* siluetas de edificios (las dibuja app.js) */
.skyline { position: absolute; left: 0; bottom: 0; width: 100%; pointer-events: none; display: block; }
.skyline--hero { height: 150px; }
.skyline--edge { height: 130px; }
.skyline--cta { height: 120px; opacity: .9; }
.section--skyline { padding-bottom: 230px; }
.section--cta { padding-bottom: 200px; }
.skyline .win { transition: fill .6s; }

/* presentación del asistente */
.meet { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 26px; }
.meet__face { position: relative; width: 104px; height: 104px; flex: none; }
.meet__face > svg { width: 100%; height: 100%; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 4px rgba(127, 216, 195, .25); }
.meet__face::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid rgba(127, 216, 195, .5); animation: ring 2.4s ease-out infinite; }
@keyframes ring { from { transform: scale(1); opacity: .9; } to { transform: scale(1.35); opacity: 0; } }
.meet .chat__ai { width: 26px; height: 26px; border-color: var(--ink-2); right: -2px; bottom: -2px; }
.meet .chat__ai svg { width: 13px; height: 13px; }
.meet__bubble { background: #fff; color: var(--ink); padding: 11px 16px; border-radius: 18px 18px 18px 4px; font-size: 15px; font-weight: 500; line-height: 1.4; text-align: left; max-width: 300px; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .5); }
.mini-q__b svg { display: inline-block; width: 22px; height: 22px; border-radius: 50%; overflow: hidden; vertical-align: -6px; margin-right: 7px; }
.p-ask svg { width: 28px; height: 28px; border-radius: 50%; overflow: hidden; margin-top: 0; }
.float-badge .fb-ai { background: none; overflow: hidden; border-radius: 50%; }
.float-badge .fb-ai svg { width: 30px; height: 30px; }

/* ilustraciones de "Para quién es" */
.role__ill { position: relative; margin: -12px -12px 20px; padding: 18px 12px 0; border-radius: 12px; background: linear-gradient(#eef5f2, #fff 92%); }
.role__ill svg { width: 100%; height: auto; display: block; }
.role__ill .role__n { position: absolute; top: 10px; left: 12px; margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--brand); background: #fff; padding: 1px 9px; border-radius: 999px; box-shadow: var(--shadow-sm); }
.role { transition: transform .3s var(--ease), box-shadow .3s; }
.role:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

/* íconos de "Cómo empezar" */
.flow__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.flow__top .flow__n { margin: 0; }
.flow__ico { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); transform: rotate(-6deg); transition: transform .3s var(--ease); }
.flow li:hover .flow__ico { transform: rotate(0) scale(1.06); }
.flow li:nth-child(2) .flow__ico { background: var(--accent-soft); color: var(--amber); transform: rotate(5deg); }
.flow__ico svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* escena detrás del celular */
.phone { z-index: 1; }
.float-badge { z-index: 2; }
.portal-scene { position: absolute; inset: 0; pointer-events: none; }
.portal-scene__sun { position: absolute; left: 50%; top: 46%; width: 420px; height: 420px; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, var(--brand-soft) 0 64%, transparent 65%); }
.ps { position: absolute; bottom: 24px; --win: #fff; --lit: #ffe2b0; --door: #fff; }
.ps--1 { left: 4%; width: 112px; height: 186px; color: #cfe7df; }
.ps--2 { right: 4%; width: 92px; height: 154px; color: #bfe0d5; }
.ps--3 { left: 0; width: 46px; height: 76px; }
.ps--4 { right: 0; width: 40px; height: 66px; }

@media (max-width: 640px) {
  .skyline--hero { height: 100px; }
  .hero { padding-bottom: 120px; }
  .section--skyline { padding-bottom: 170px; }
  .skyline--edge { height: 96px; }
  .meet { flex-direction: column; }
  .meet__bubble { text-align: center; border-radius: 18px; }
  .portal-scene__sun { width: 320px; height: 320px; }
  .ps--1, .ps--2 { opacity: .7; }
}

/* tarjeta de documentos a lo ancho */
.card--full { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 20px; }
.card--full .card__icon { margin: 0; flex: none; }
.card--full > div:nth-child(2) { flex: 1; }
.docs { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.docs li { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); font-size: 13.5px; color: var(--ink); white-space: nowrap; }
.docs i { font-style: normal; font-size: 10px; font-weight: 700; color: #fff; background: var(--red); padding: 2px 5px; border-radius: 4px; }
@media (max-width: 1040px) { .card--full { flex-direction: column; align-items: flex-start; } .docs { justify-content: flex-start; } }

/* ajustes del portal */
.steps li { display: block; position: relative; padding-left: 34px; }
.steps li::before { position: absolute; left: 0; top: 2px; }
.float-badge--a { top: 300px; left: -14px; }
@media (max-width: 640px) { .float-badge--a { top: 250px; left: 0; } }

/* maqueta del sistema: un consorcio por vez */
.app__cur { margin-top: 18px; padding: 10px 12px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); display: grid; line-height: 1.35; }
.app__cur span { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); }
.app__cur b { color: var(--ink); font-size: 14.5px; }
.app__cur em { font-style: normal; font-size: 12px; color: var(--text-soft); }
#appMenu li[data-for] { cursor: pointer; }
#appMenu li[data-for]:not(.is-on):hover { background: var(--paper); color: var(--ink); }
