/* ==========================================================================
   Zonda Recupero — Landing
   Paleta e identidad de la propuesta: navy, verde Zonda, naranja, crema.
   ========================================================================== */

:root {
  --ink: #15222a;
  --ink-2: #1e2e37;
  --text: #22313a;
  --muted: #5e6b70;
  --muted-2: #8a979b;
  --line: #e2e5e1;
  --line-2: #d3d8d3;
  --bg: #ffffff;
  --bg-alt: #f6f4ef;
  --teal: #0e7a66;
  --teal-2: #0b6656;
  --teal-soft: #e4f2ee;
  --orange: #c5531c;
  --orange-soft: #f6e4d8;
  --wa: #25d366;
  --wa-2: #1fb957;
  --wa-ink: #0b3b22;

  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --r: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { color: var(--ink); }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

h1 { font-size: clamp(36px, 4.8vw, 58px); line-height: 1.08; font-weight: 700; letter-spacing: -.025em; }
h2 { font-size: clamp(28px, 3.3vw, 40px); line-height: 1.15; font-weight: 700; letter-spacing: -.02em; max-width: 24ch; }
h3 { font-size: 18px; line-height: 1.35; font-weight: 600; }

.eyebrow { margin-bottom: 12px; font-size: 14px; font-weight: 600; color: var(--teal); }
.eyebrow--wa { color: #128c4a; }
.eyebrow--light { color: #7fd3bf; }

/* ---------- Botones ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 50px;
  padding: 0 22px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 16px;
  white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--sm { height: 40px; padding: 0 14px; font-size: 14.5px; }
.btn--sm svg { width: 18px; height: 18px; }
.btn--block { width: 100%; }
.btn--wa { background: var(--wa); color: var(--wa-ink); }
.btn--wa:hover { background: var(--wa-2); }
.btn--teal { background: var(--teal); color: #fff; }
.btn--teal:hover { background: var(--teal-2); }
.btn--line { border-color: var(--line-2); background: #fff; color: var(--ink); }
.btn--line:hover { border-color: var(--ink); }
.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { background: #eef2f0; }
.btn--white svg { color: #1fb957; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); }
.link-arrow svg { width: 18px; height: 18px; transition: transform .15s; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Nav ---------- */

.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; gap: 32px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.logo svg { width: 28px; height: 22px; }
.logo span { font-weight: 700; font-size: 20px; letter-spacing: -.02em; }
.logo em { font-style: normal; font-size: 15px; color: var(--muted); padding-left: 9px; margin-left: 2px; border-left: 1px solid var(--line-2); }
.logo--light { color: #fff; }
.logo--light em { color: #a9b6bb; border-color: rgba(255,255,255,.2); }
.nav__links { display: flex; gap: 26px; margin-left: auto; font-size: 15.5px; color: var(--muted); }
.nav__links a:hover { color: var(--ink); }
.nav__toggle { display: none; margin-left: auto; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 8px; background: #fff; position: relative; }
.nav__toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); border-radius: 2px; }
.nav__toggle span:nth-child(1) { top: 13px; }
.nav__toggle span:nth-child(2) { top: 20px; }
.nav__toggle span:nth-child(3) { top: 27px; }

/* ---------- Hero ---------- */

.hero { padding: clamp(48px, 7vw, 88px) 0 clamp(56px, 7vw, 96px); background: var(--bg-alt); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero__sub { margin-top: 20px; font-size: 19px; color: var(--muted); max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 32px; }
.hero__facts { list-style: none; margin: 32px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line-2); display: grid; gap: 8px; font-size: 15px; color: var(--muted); }
.hero__facts li { display: flex; align-items: center; gap: 10px; }
.hero__facts svg { width: 16px; height: 16px; color: var(--teal); flex: none; }

.hero__shot { position: relative; padding: 0 0 150px; }

/* Ventana de navegador + dashboard */
.browser, .app { background: #fff; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; box-shadow: 0 1px 2px rgba(21,34,42,.06), 0 12px 32px -12px rgba(21,34,42,.18); }
.browser__bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; background: #f1f2f0; border-bottom: 1px solid var(--line); }
.browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: #d5d8d4; }
.browser__bar span { margin-left: 12px; padding: 2px 10px; border-radius: 5px; background: #fff; font-family: var(--mono); font-size: 11px; color: var(--muted-2); }

.dash { display: grid; grid-template-columns: 112px 1fr; font-size: 12px; }
.dash__side { display: grid; align-content: start; gap: 2px; padding: 12px 8px; background: var(--ink); color: #a9b6bb; }
.dash__side span { padding: 7px 10px; border-radius: 6px; }
.dash__side .is-on { background: rgba(255,255,255,.1); color: #fff; font-weight: 600; }
.dash__logo { color: #fff; padding: 2px 10px 12px !important; }
.dash__logo svg { width: 22px; height: 18px; }
.dash__main { padding: 14px 16px 6px; min-width: 0; }
.dash__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.dash__top b { display: block; font-size: 14px; color: var(--ink); }
.dash__top small { color: var(--muted-2); font-size: 11px; }
.dash__search { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted-2); font-size: 11px; white-space: nowrap; }
.dash__search svg { width: 12px; height: 12px; }
.dash__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.dash__kpis div { padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; }
.dash__kpis small { display: block; color: var(--muted-2); font-size: 10.5px; line-height: 1.3; }
.dash__kpis b { font-size: 18px; color: var(--ink); }
.dash__table { width: 100%; border-collapse: collapse; }
.dash__table th { text-align: left; font-weight: 500; color: var(--muted-2); font-size: 10.5px; padding: 6px 6px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.dash__table td { padding: 8px 6px; border-bottom: 1px solid #f0f1ef; white-space: nowrap; color: var(--text); }
.dash__table td:first-child { font-weight: 600; color: var(--ink); }
.dash__table tr:last-child td { border-bottom: 0; }
.dash__table td:nth-child(3) { font-family: var(--mono); font-size: 11px; }

.pill { display: inline-block; padding: 1px 7px; border-radius: 4px; background: #eef0ee; color: var(--muted); font-size: 11px; font-weight: 600; }
.pill--mid { background: var(--orange-soft); color: #9a4416; }
.pill--hi { background: var(--orange); color: #fff; }
.ch { display: inline-block; margin-right: 4px; padding: 1px 6px; border-radius: 4px; background: #eef0ee; color: var(--ink); font-size: 10.5px; font-weight: 600; }
.ch--wa { background: #dcf8e6; color: #0f6e37; }
.ch--ok { background: var(--teal-soft); color: var(--teal); }

/* Teléfono con WhatsApp */
.phone { position: absolute; right: -16px; bottom: 0; width: 240px; padding: 7px; border-radius: 28px; background: #1b1f22; box-shadow: 0 18px 40px -14px rgba(21,34,42,.45); }
.phone--lg { position: relative; width: 100%; max-width: 360px; padding: 9px; border-radius: 40px; margin: 0 auto; }
.wa { border-radius: 22px; overflow: hidden; background: #efeae2; font-size: 12px; }
.phone--lg .wa { border-radius: 32px; font-size: 14px; }
.wa__head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: #075e54; color: #fff; }
.phone--lg .wa__head { padding: 16px 16px 12px; }
.wa__head b { display: block; font-size: 1em; font-weight: 600; }
.wa__head small { font-size: .85em; opacity: .8; }
.wa__ava { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #fff; color: var(--ink); flex: none; }
.phone--lg .wa__ava { width: 38px; height: 38px; }
.wa__ava svg { width: 60%; height: 60%; }
.wa__body { display: flex; flex-direction: column; gap: 6px; padding: 10px; }
.wa__body--lg { height: 500px; justify-content: flex-end; overflow: hidden; padding: 12px 12px 8px; gap: 7px; }
.wa__day { align-self: center; padding: 3px 10px; border-radius: 6px; background: #fff; color: var(--muted); font-size: 12px; box-shadow: 0 1px 1px rgba(0,0,0,.06); }
.wa__msg {
  position: relative;
  align-self: flex-start;
  max-width: 86%;
  padding: 6px 9px 16px;
  border-radius: 8px;
  border-top-left-radius: 2px;
  background: #fff;
  color: #111b21;
  line-height: 1.38;
  box-shadow: 0 1px 1px rgba(0,0,0,.08);
}
.wa__msg--out { align-self: flex-end; background: #d9fdd3; border-radius: 8px; border-top-right-radius: 2px; }
.wa__msg time { position: absolute; right: 8px; bottom: 3px; font-size: 10px; color: #667781; }
.wa__msg--out time::after { content: " ✓✓"; color: #53bdeb; letter-spacing: -2px; }
.wa__btns { display: grid; margin: 8px -9px -12px; border-top: 1px solid #e9edef; }
.wa__btns span { padding: 7px 9px 18px; text-align: center; color: #027eb5; font-weight: 500; }
.wa__btns span + span { border-top: 1px solid #e9edef; padding-top: 7px; }
.wa__link { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 8px; border-radius: 6px; background: #f0f2f5; }
.wa__link svg { width: 30px; height: 30px; padding: 6px; border-radius: 6px; background: var(--teal); color: #fff; flex: none; }
.wa__link b { display: block; color: #027eb5; }
.wa__link small { color: #667781; }
.wa__typing { align-self: flex-start; display: none; gap: 4px; padding: 10px 12px; border-radius: 8px; border-top-left-radius: 2px; background: #fff; }
.wa__typing.is-on { display: inline-flex; }
.wa__typing i { width: 6px; height: 6px; border-radius: 50%; background: #8696a0; animation: typing 1.2s infinite; }
.wa__typing i:nth-child(2) { animation-delay: .15s; }
.wa__typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { opacity: .4; } 30% { opacity: 1; } }
.wa.is-playing [data-step]:not(.is-shown) { display: none; }
.wa [data-step].is-shown { animation: msg-in .25s ease-out both; }
@keyframes msg-in { from { opacity: 0; transform: translateY(4px); } }
.wa__input { padding: 8px 10px 12px; }
.wa__input span { display: block; padding: 10px 14px; border-radius: 20px; background: #fff; color: #8696a0; }

/* ---------- Banda integraciones ---------- */

.band { border-bottom: 1px solid var(--line); }
.band__inner { display: flex; align-items: center; gap: 12px 28px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 22px; }
.band__inner > span { font-size: 14px; color: var(--muted-2); }
.band ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-weight: 600; color: var(--ink); font-size: 15px; }

/* ---------- Secciones ---------- */

.section { padding: clamp(64px, 8vw, 104px) 0; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section--dark { background: var(--ink); color: #c9d3d6; }
.section--dark h2 { color: #fff; }
.head { margin-bottom: clamp(36px, 5vw, 56px); }
.head__sub { margin-top: 16px; font-size: 18px; color: var(--muted); max-width: 60ch; }
.section--dark .head__sub { color: #a9b6bb; }
.head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 40px; flex-wrap: wrap; }
.head--row .head__sub { margin: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.split--top { align-items: start; }

/* Pasos */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 2px solid var(--ink); }
.steps li { padding: 22px 20px 0 0; }
.steps li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.steps__n { display: block; margin-bottom: 14px; font-family: var(--mono); font-size: 14px; color: var(--muted-2); }
.steps h3 { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.steps h3 em { font-style: normal; padding: 1px 7px; border-radius: 4px; background: var(--orange-soft); color: var(--orange); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.steps p { margin-top: 8px; font-size: 15.5px; color: var(--muted); line-height: 1.55; }
.steps .is-key .steps__n { color: var(--orange); }

.io { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center; margin-top: 56px; padding: 28px; border-radius: var(--r); background: var(--bg-alt); border: 1px solid var(--line); }
.io h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.io__col--out h3 { color: var(--teal); }
.io ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.io li { position: relative; padding-left: 18px; font-size: 15.5px; color: var(--ink); }
.io li::before { content: ""; position: absolute; left: 0; top: 10px; width: 7px; height: 7px; border-radius: 2px; background: var(--line-2); }
.io__col--out li::before { background: var(--teal); }
.io__arrow { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: #fff; }
.io__arrow svg { width: 22px; height: 22px; }

/* WhatsApp */
.checks { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 16.5px; color: var(--ink); }
.checks svg { flex: none; width: 22px; height: 22px; padding: 4px; margin-top: 1px; border-radius: 50%; background: #dcf8e6; color: #128c4a; }
.chat-col__note { margin-top: 12px; text-align: center; font-size: 13px; color: var(--muted-2); }

/* App de ejemplo */
.app-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: start; }
.app { font-size: 13.5px; }
.app__body { display: grid; grid-template-columns: 220px 1fr; min-height: 440px; }
.app__list { padding: 10px; border-right: 1px solid var(--line); background: #fafaf8; display: grid; align-content: start; gap: 2px; }
.app__list-title { padding: 4px 8px 8px; font-size: 12px; font-weight: 600; color: var(--muted-2); }
.case { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 9px 10px; border: 0; border-radius: 6px; background: transparent; text-align: left; }
.case:hover { background: #f0f1ee; }
.case.is-active { background: #fff; box-shadow: inset 3px 0 0 var(--teal), 0 0 0 1px var(--line); }
.case b { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.case small { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.app__detail { position: relative; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.debtor { display: flex; justify-content: space-between; gap: 12px; }
.debtor b { display: block; font-size: 18px; color: var(--ink); }
.debtor small { color: var(--muted); }
.debtor__amount { text-align: right; }
.debtor__amount b { font-family: var(--mono); font-size: 18px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.tag { padding: 2px 8px; border-radius: 4px; background: #eef0ee; color: var(--muted); font-size: 12px; font-weight: 600; }
.tag--mora { background: var(--orange-soft); color: #9a4416; }
.tag--ok { background: var(--teal-soft); color: var(--teal); }
.app__label { font-size: 12px; font-weight: 600; color: var(--muted-2); }
.channels { display: flex; flex-wrap: wrap; gap: 6px; }
.channel { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--line-2); border-radius: 6px; background: #fff; font-size: 13px; font-weight: 500; }
.channel svg { width: 16px; height: 16px; }
.channel:hover { border-color: var(--ink); }
.channel.is-active { border-color: var(--teal); background: var(--teal-soft); color: var(--teal); font-weight: 600; }
.results { display: flex; flex-wrap: wrap; gap: 6px; }
.result { padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px; background: #fff; font-size: 13px; font-weight: 500; }
.result:hover { border-color: var(--ink); }
.result.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.result-detail { font-size: 13.5px; }
.result-detail span { color: var(--muted); }
.app__actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.app__last { font-size: 12px; color: var(--muted-2); }
.toast { position: absolute; right: 16px; top: 16px; padding: 8px 12px; border-radius: 6px; background: var(--ink); color: #fff; font-size: 13px; opacity: 0; transform: translateY(-4px); transition: opacity .2s, transform .2s; pointer-events: none; }
.toast.is-on { opacity: 1; transform: none; }

.daylist { list-style: none; margin: 0; padding: 0; counter-reset: d; }
.daylist li { counter-increment: d; position: relative; padding: 16px 0 16px 44px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 15.5px; line-height: 1.5; }
.daylist li:first-child { padding-top: 0; }
.daylist li:first-child::before { top: 0; }
.daylist li::before { content: "0" counter(d); position: absolute; left: 0; top: 16px; font-family: var(--mono); font-size: 14px; color: var(--teal); }
.daylist b { display: block; color: var(--ink); font-weight: 600; font-size: 16.5px; }

/* Automatizaciones */
.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; }
.feats > div { padding: 28px 0; border-top: 1px solid var(--line-2); }
.feats svg { width: 26px; height: 26px; color: var(--teal); margin-bottom: 14px; }
.feats p { margin-top: 6px; font-size: 15.5px; color: var(--muted); line-height: 1.55; }

/* Contactabilidad */
.note-box { margin-top: 32px; padding: 20px 22px; border-left: 3px solid var(--orange); background: rgba(255,255,255,.05); border-radius: 0 8px 8px 0; }
.note-box b { color: #fff; }
.note-box p { margin-top: 4px; color: #c9d3d6; }
.numbered { list-style: none; margin: 0; padding: 0; counter-reset: n; }
.numbered li { counter-increment: n; display: grid; grid-template-columns: 52px 1fr; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.numbered li:first-child { padding-top: 0; }
.numbered li::before { content: "0" counter(n); grid-row: span 2; font-family: var(--mono); font-size: 15px; color: #e08a4f; padding-top: 2px; }
.numbered b { color: #fff; font-size: 17px; font-weight: 600; }
.numbered p { margin-top: 2px; color: #a9b6bb; font-size: 15.5px; }

/* Comparación */
.table-wrap { overflow-x: auto; }
.compare { width: 100%; border-collapse: collapse; font-size: 16px; }
.compare th { text-align: left; padding: 0 20px 14px; font-size: 14px; font-weight: 600; color: var(--muted); border-bottom: 2px solid var(--ink); }
.compare th:last-child { color: var(--teal); }
.compare td { padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: top; width: 50%; }
.compare td:first-child { color: var(--muted); }
.compare td:last-child { color: var(--ink); font-weight: 500; }
.compare tr.is-key td { background: var(--orange-soft); }
.compare tr.is-key td:first-child { color: #7a3a14; }

/* Operación */
.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.cols3 p { margin-top: 8px; color: var(--muted); font-size: 16px; }
.reports { margin-top: 48px; padding: 28px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); }
.reports dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin: 18px 0 0; }
.reports dt { font-weight: 600; color: var(--ink); }
.reports dd { margin: 4px 0 0; font-size: 15.5px; color: var(--muted); }
.reports dt::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 2px; background: var(--teal); vertical-align: middle; }

/* Para quién */
.who { list-style: none; margin: 28px 0 0; padding: 0; }
.who li { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 18px; font-weight: 500; color: var(--ink); }
.who li:first-child { border-top: 1px solid var(--line); }
.pilot { padding: clamp(24px, 4vw, 40px); border-radius: var(--r); background: var(--teal); color: #e4f2ee; }
.pilot__tag { display: inline-block; margin-bottom: 14px; padding: 3px 10px; border-radius: 4px; background: rgba(255,255,255,.15); color: #fff; font-size: 13px; font-weight: 600; }
.pilot h3 { color: #fff; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.2; font-weight: 700; letter-spacing: -.015em; }
.pilot > p { margin-top: 10px; }
.pilot ul { list-style: none; margin: 22px 0 28px; padding: 0; display: grid; gap: 10px; }
.pilot li { position: relative; padding-left: 22px; }
.pilot li::before { content: ""; position: absolute; left: 0; top: 9px; width: 10px; height: 6px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }

/* Contacto */
.wa-card { display: flex; align-items: center; gap: 14px; max-width: 400px; margin-top: 28px; padding: 14px 18px 14px 14px; border-radius: var(--r); background: #fff; border: 1px solid var(--line-2); transition: border-color .15s; }
.wa-card:hover { border-color: var(--wa-2); }
.wa-card__ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 10px; background: var(--wa); color: var(--wa-ink); flex: none; }
.wa-card__ico svg { width: 26px; height: 26px; }
.wa-card b { display: block; color: var(--ink); }
.wa-card small { color: var(--muted); font-size: 14px; }
.wa-card__arrow { width: 20px; height: 20px; margin-left: auto; color: var(--muted); }
.form { display: grid; gap: 14px; padding: clamp(20px, 3vw, 28px); border-radius: var(--r); background: #fff; border: 1px solid var(--line); }
.form__title { font-weight: 600; color: var(--ink); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 5px; }
.field span { font-size: 14px; font-weight: 500; color: var(--ink); }
.field em { font-style: normal; color: var(--muted-2); font-weight: 400; }
.field input, .field select, .field textarea { width: 100%; padding: 11px 12px; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; color: var(--ink); font: inherit; font-size: 16px; }
.field select { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235e6b70' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 16px; padding-right: 36px; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--teal); outline-offset: -1px; border-color: var(--teal); }
.field .is-invalid { border-color: var(--orange); background: #fffaf7; }
.form__ok { display: none; padding: 12px 14px; border-radius: 8px; background: #dcf8e6; color: var(--wa-ink); font-size: 14.5px; }
.form__ok a { text-decoration: underline; font-weight: 600; }
.form.is-sent .form__ok { display: block; }

/* Footer */
.footer { background: var(--ink); color: #a9b6bb; padding: 48px 0 28px; font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-bottom: 32px; }
.footer__grid p { margin-top: 10px; max-width: 34ch; }
.footer nav { display: grid; gap: 8px; align-content: start; }
.footer nav a:hover { color: #fff; }
.footer__wa { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; }
.footer__wa svg { width: 20px; height: 20px; color: var(--wa); }
.footer__legal { padding-top: 20px; box-shadow: inset 0 1px rgba(255,255,255,.1); background-clip: content-box; font-size: 13.5px; color: #7d8b90; }

/* Botón flotante */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 40; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.2); transition: transform .15s; }
.wa-float:hover { transform: scale(1.05); }
.wa-float svg { width: 30px; height: 30px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
  .steps li:nth-child(4) { padding-left: 0; border-left: 0; }
  .app-layout { grid-template-columns: 1fr; }
  .daylist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 32px; }
  .daylist li:first-child { padding-top: 16px; }
  .daylist li:first-child::before { top: 16px; }
}

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__cta { margin-left: auto; }
  .nav__toggle { display: block; margin-left: 0; }
  .nav.is-open .nav__links { display: grid; position: absolute; top: 68px; left: 0; right: 0; gap: 0; padding: 8px var(--gutter) 16px; background: #fff; border-bottom: 1px solid var(--line); }
  .nav.is-open .nav__links a { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 17px; }

  .hero__grid, .split { grid-template-columns: 1fr; }
  .hero__shot { max-width: 640px; }
  .io { grid-template-columns: 1fr; }
  .io__arrow { transform: rotate(90deg); }
  .feats { grid-template-columns: 1fr 1fr; }
  .cols3, .reports dl { grid-template-columns: 1fr; gap: 24px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero__sub { font-size: 17px; }
  .hero__shot { padding: 0 0 120px 0; }
  .dash { grid-template-columns: 1fr; }
  .dash__side { display: none; }
  .dash__table th:nth-child(4), .dash__table td:nth-child(4) { display: none; }
  .dash__kpis b { font-size: 16px; }
  .phone { right: 0; width: 210px; }
  .steps { grid-template-columns: 1fr; border-top-width: 2px; }
  .steps li, .steps li + li { padding: 18px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .feats { grid-template-columns: 1fr; }
  .app__body { grid-template-columns: 1fr; }
  .app__list { display: flex; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .app__list-title { display: none; }
  .case { flex: none; width: auto; }
  .case .pill { display: none; }
  .daylist { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .compare { font-size: 15px; }
  .compare th, .compare td { padding-left: 10px; padding-right: 10px; }
  .wa__body--lg { height: 470px; }
  .footer__grid { grid-template-columns: 1fr; }
  .nav__inner { gap: 10px; }
  .nav__cta { padding: 0 12px; }
}

/* Tecnología propia: Core Bancario */
.core-note { display: flex; align-items: flex-start; gap: 16px; margin-top: 40px; padding: 20px 24px; border-radius: var(--r); background: var(--teal-soft); border: 1px solid #bfe0d6; }
.core-note__tag { flex: none; padding: 3px 10px; border-radius: 4px; background: var(--teal); color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; }
.core-note p { font-size: 16px; color: var(--text); }
.core-note b { color: var(--ink); }
.io { margin-top: 16px; }

/* Footer y formulario */
.footer__cta { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; }
.footer__cta svg { width: 18px; height: 18px; }
.form__err { display: none; padding: 12px 14px; border-radius: 8px; background: var(--orange-soft); color: #7a3a14; font-size: 14.5px; }
.form.is-error .form__err { display: block; }

@media (max-width: 640px) {
  .core-note { flex-direction: column; gap: 10px; }
}

/* ---------- Dos pantallas: entidad y deudor ---------- */
.portals { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.portal { display: grid; gap: 28px; align-content: start; padding: clamp(22px, 3vw, 32px); border-radius: var(--r); background: var(--bg-alt); border: 1px solid var(--line); }
.portal--debtor { background: #f1f8f4; border-color: #cfe9da; }
.portal__tag { display: inline-block; margin-bottom: 10px; padding: 3px 10px; border-radius: 4px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; }
.portal__tag--wa { background: #128c4a; }
.portal h3 { font-size: 22px; letter-spacing: -.01em; }
.checks--sm { margin-top: 16px; gap: 8px; }
.checks--sm li { font-size: 15.5px; }

.portal__shot { font-size: 12px; }
.ent { padding: 16px; }
.ent__head b { display: block; font-size: 15px; color: var(--ink); }
.ent__head small { color: var(--muted-2); }
.ent__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0 14px; }
.ent__kpis div { padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; }
.ent__kpis small { display: block; color: var(--muted-2); font-size: 10.5px; line-height: 1.3; }
.ent__kpis b { font-size: 17px; color: var(--ink); }
.ent__label { font-size: 11px; font-weight: 600; color: var(--muted-2); }
.ent__bars { display: flex; align-items: flex-end; gap: 10px; height: 70px; margin: 8px 0 12px; padding-bottom: 1px; border-bottom: 1px solid var(--line); }
.ent__bars i { flex: 1; height: var(--h); border-radius: 3px 3px 0 0; background: var(--teal); opacity: .85; }
.ent__bars i:last-child { opacity: 1; }
.ent__rows { list-style: none; margin: 0; padding: 0; }
.ent__rows li { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid #f0f1ef; }
.ent__rows li:last-child { border-bottom: 0; }
.ent__rows span { color: var(--muted); }
.ent__rows b { color: var(--ink); font-family: var(--mono); }

.phone--portal { position: relative; right: auto; bottom: auto; width: 280px; margin: 0 auto; }
.me { border-radius: 22px; overflow: hidden; background: #fff; padding: 16px 14px 14px; font-size: 13px; }
.me__top { display: flex; align-items: center; justify-content: space-between; }
.me__brand { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink); }
.me__brand svg { width: 18px; height: 14px; }
.me__top small { color: var(--muted-2); font-size: 11px; }
.me__hello { margin: 14px 0 8px; font-size: 17px; font-weight: 600; color: var(--ink); }
.me__card { padding: 14px; border-radius: 12px; background: var(--ink); color: #c9d3d6; }
.me__card small { font-size: 11px; }
.me__card b { display: block; font-family: var(--mono); font-size: 24px; color: #fff; margin: 2px 0; }
.me__card span { font-size: 11.5px; }
.me__progress { height: 6px; margin: 10px 0 6px; border-radius: 3px; background: rgba(255,255,255,.15); overflow: hidden; }
.me__progress i { display: block; height: 100%; background: var(--wa); }
.me__card em { font-style: normal; font-size: 11px; color: #7fd3bf; }
.me__label { margin: 14px 0 6px; font-size: 11.5px; font-weight: 600; color: var(--muted-2); }
.me__list { list-style: none; margin: 0 0 12px; padding: 0; }
.me__list li { display: grid; grid-template-columns: 1fr auto; padding: 8px 0; border-bottom: 1px solid var(--line); }
.me__list span { font-weight: 600; color: var(--ink); }
.me__list small { grid-row: 2; color: var(--muted-2); font-size: 11px; }
.me__list b { grid-row: span 2; align-self: center; font-family: var(--mono); font-size: 12.5px; color: var(--ink); }
.me__list .is-paid small { color: #128c4a; }
.me__list .is-paid b { color: var(--muted-2); text-decoration: line-through; }
.me__list .is-next small { color: var(--orange); font-weight: 600; }
.me__btn { display: block; margin-top: 6px; padding: 10px; border-radius: 8px; background: var(--teal); color: #fff; text-align: center; font-weight: 600; }
.me__btn--line { background: #fff; color: var(--ink); border: 1px solid var(--line-2); }
.me__pay { margin-top: 8px; text-align: center; font-size: 11px; color: var(--muted-2); }

@media (max-width: 960px) {
  .portals { grid-template-columns: 1fr; }
}

/* ---------- Principios: IA, Data first, Privacy first ---------- */
.badges { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; }
.badges li { padding: 4px 12px; border-radius: 999px; border: 1px solid var(--ink); font-size: 13.5px; font-weight: 600; color: var(--ink); letter-spacing: .01em; }

.instances { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-top: 2px solid rgba(255,255,255,.18); }
.instances li { position: relative; padding: 22px 18px 0 0; }
.instances li + li { padding-left: 18px; border-left: 1px solid rgba(255,255,255,.1); }
.instances li::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: #7fd3bf; }
.instances li + li::before { left: 18px; }
.instances span { display: block; font-family: var(--mono); font-size: 13px; color: #7fd3bf; }
.instances b { display: block; margin-top: 6px; color: #fff; font-size: 17px; font-weight: 600; }
.instances small { display: block; margin-top: 4px; font-size: 14.5px; line-height: 1.5; color: #a9b6bb; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 56px; }
.pillars article { padding: 24px; border-radius: var(--r); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); }
.pillars__tag { display: inline-block; padding: 3px 10px; border-radius: 4px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.pillars h3 { margin-top: 14px; color: #fff; font-size: 19px; }
.pillars ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.pillars li { position: relative; padding-left: 18px; font-size: 15px; line-height: 1.5; color: #c9d3d6; }
.pillars li::before { content: ""; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; border-radius: 2px; background: #7fd3bf; }

@media (max-width: 1080px) {
  .instances { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
  .instances li:nth-child(4) { padding-left: 0; border-left: 0; }
  .instances li:nth-child(4)::before { left: 0; }
}
@media (max-width: 900px) {
  .pillars { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .instances { grid-template-columns: 1fr; border-top: 0; border-left: 2px solid rgba(255,255,255,.18); margin-left: 6px; }
  .instances li, .instances li + li { padding: 0 0 22px 22px; border-left: 0; }
  .instances li::before, .instances li + li::before, .instances li:nth-child(4)::before { top: 4px; left: -7px; }
  .instances li:nth-child(4) { padding-left: 22px; }
}

/* ---------- Tablero de la entidad ---------- */
.dashb { font-size: 13px; }
.dashb__body { position: relative; padding: 18px; background: #fafaf8; }
.dashb__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.dashb__top b { display: block; font-size: 16px; color: var(--ink); }
.dashb__top small { color: var(--muted-2); font-size: 12px; }
.seg { display: inline-flex; padding: 3px; border-radius: 8px; background: #eceeeb; }
.seg button { padding: 6px 12px; border: 0; border-radius: 6px; background: transparent; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.seg button.is-on { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(21,34,42,.12); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.kpi { padding: 12px 14px; border-radius: 8px; background: #fff; border: 1px solid var(--line); }
.kpi small { display: block; color: var(--muted); font-size: 12px; }
.kpi b { display: block; margin-top: 2px; font-family: var(--mono); font-size: 22px; color: var(--ink); letter-spacing: -.01em; }
.kpi span { font-size: 11.5px; color: var(--muted-2); }
.dashb__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 10px; }
.dashb__grid .panel { grid-column: span 2; }
.dashb__grid .panel--wide { grid-column: span 4; }
.panel { padding: 14px; border-radius: 8px; background: #fff; border: 1px solid var(--line); min-width: 0; }
.panel__head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.panel__head b { color: var(--ink); font-size: 13.5px; }
.panel__head small { color: var(--muted-2); font-size: 11.5px; }

/* Columnas: recuperado por mes */
.cols { position: relative; height: 190px; padding: 0 0 20px 26px; }
.cols__grid { position: absolute; inset: 0 0 20px 26px; }
.cols__grid span { position: absolute; left: 0; right: 0; border-top: 1px solid #eef0ee; }
.cols__grid span::before { content: attr(data-v); position: absolute; left: -26px; top: -7px; width: 20px; text-align: right; font-size: 10.5px; color: var(--muted-2); }
.cols__grid span[data-v="0"] { border-top-color: var(--line-2); }
.cols__row { position: relative; display: flex; gap: 2px; height: 100%; }
.col { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; outline: none; cursor: default; }
.col i { position: relative; display: block; width: min(70%, 26px); border-radius: 4px 4px 0 0; background: var(--teal); transition: opacity .15s; }
.col em { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); margin-bottom: 3px; font-style: normal; font-size: 11px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.col small { position: absolute; bottom: -18px; font-size: 10.5px; color: var(--muted-2); }
.cols__row:hover .col i, .cols__row:focus-within .col i { opacity: .45; }
.cols__row .col:hover i, .cols__row .col:focus i { opacity: 1; }

/* Barras horizontales: embudo y tramos */
.funnel, .hbars { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.funnel li, .hbars li { display: grid; grid-template-columns: 128px 1fr 54px; align-items: center; gap: 8px; outline: none; cursor: default; }
.hb__label { font-size: 12px; color: var(--muted); }
.hb__track { height: 12px; border-radius: 0 4px 4px 0; background: #f0f1ee; overflow: hidden; }
.hb__track i { display: block; height: 100%; border-radius: 0 4px 4px 0; background: var(--teal); }
.hb__val { font-family: var(--mono); font-size: 12px; color: var(--ink); text-align: right; }
.funnel li:hover .hb__track i, .hbars li:hover .hb__track i, .funnel li:focus .hb__track i, .hbars li:focus .hb__track i { background: var(--teal-2); }

/* Tabla de pagos */
.pays { width: 100%; border-collapse: collapse; }
.pays th { text-align: left; font-weight: 500; font-size: 11px; color: var(--muted-2); padding: 0 6px 6px; border-bottom: 1px solid var(--line); }
.pays td { padding: 8px 6px; border-bottom: 1px solid #f0f1ee; font-size: 12.5px; white-space: nowrap; }
.pays tr:last-child td { border-bottom: 0; }
.pays td:first-child { font-weight: 600; color: var(--ink); }
.pays .num { text-align: right; font-family: var(--mono); }
.st { display: inline-block; padding: 1px 7px; border-radius: 4px; font-size: 11.5px; font-weight: 600; }
.st--ok { background: #dcf3e6; color: #11663a; }
.st--wait { background: var(--orange-soft); color: #8a3d12; }

/* Tooltip */
.tip { position: absolute; z-index: 5; transform: translate(-50%, calc(-100% - 8px)); padding: 6px 10px; border-radius: 6px; background: var(--ink); color: #fff; font-size: 12px; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .1s; }
.tip b { margin-right: 6px; }
.tip.is-on { opacity: 1; }

.dashb__note { margin-top: 10px; font-size: 13px; color: var(--muted-2); }
.dashb__points { margin-top: 40px; }
.portal__more { margin-top: 16px; font-size: 15px; }

@media (max-width: 960px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .dashb__grid { grid-template-columns: 1fr; }
  .dashb__grid .panel, .dashb__grid .panel--wide { grid-column: auto; }
}
@media (max-width: 640px) {
  .dashb__body { padding: 12px; }
  .kpi b { font-size: 18px; }
  .funnel li, .hbars li { grid-template-columns: 100px 1fr 46px; }
  .pays th:nth-child(2), .pays td:nth-child(2), .pays th:nth-child(3), .pays td:nth-child(3) { display: none; }
  .panel--wide:last-child { overflow-x: auto; }
  .pays th, .pays td { padding-left: 3px; padding-right: 3px; }
  .st { padding: 1px 5px; font-size: 11px; }
}
