/* ============================================================
   CentroFam — Landing + Chat asesor virtual
   ============================================================ */
:root{
  --teal-950:#042f2e;
  --teal-900:#134e4a;
  --teal-800:#115e59;
  --teal-700:#0f766e;
  --teal-600:#0d9488;
  --teal-500:#14b8a6;
  --teal-400:#2dd4bf;
  --teal-200:#99f6e4;
  --teal-100:#ccfbf1;
  --teal-50:#f0fdfa;
  --mint:#a7f3d0;
  --ink-900:#0f172a;
  --ink-700:#334155;
  --ink-500:#64748b;
  --line:#e2e8f0;
  --bg:#f8fafc;
  --white:#fff;
  --amber:#f59e0b;
  --r-sm:14px;
  --r-md:20px;
  --r-lg:28px;
  --sh-sm:0 1px 3px rgba(0,0,0,.04),0 6px 16px rgba(0,0,0,.04);
  --sh-md:0 4px 6px -1px rgba(0,0,0,.05),0 12px 30px -5px rgba(0,0,0,.08);
  --sh-teal:0 20px 50px -12px rgba(13,148,136,.32);
  --font:'Plus Jakarta Sans',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
}

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;font-family:var(--font);color:var(--ink-900);
  background:var(--bg);line-height:1.65;-webkit-font-smoothing:antialiased;
}
h1,h2,h3,h4{margin:0;line-height:1.15;font-weight:800}
p{margin:0}
a{color:inherit;text-decoration:none}
button{font-family:inherit}
img,svg{display:block;max-width:100%}
[hidden]{display:none !important}

.container{max-width:1120px;margin:0 auto;padding:0 24px}
.container--narrow{max-width:760px}

/* ---------- Botones ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:9px;
  border:none;border-radius:999px;cursor:pointer;font-weight:700;
  transition:transform .15s ease,box-shadow .2s ease,background .2s ease;
}
.btn--sm{padding:10px 18px;font-size:14px}
.btn--lg{padding:14px 26px;font-size:15.5px}
.btn--xl{padding:17px 32px;font-size:16.5px}
.btn--primary{background:linear-gradient(135deg,#2563eb,#3b82f6);color:#fff;box-shadow:0 8px 24px rgba(37,99,235,.32)}
.btn--primary:hover{background:linear-gradient(135deg,#1d4ed8,#2563eb);transform:translateY(-2px);box-shadow:0 12px 28px rgba(37,99,235,.42)}
.btn--outline{background:transparent;color:var(--ink-700);border:1.5px solid var(--ink-200);text-decoration:none}
.btn--outline:hover{background:var(--ink-50);border-color:var(--ink-300);transform:translateY(-1px)}
.btn--light{background:#fff;color:var(--teal-800)}
.btn--light:hover{background:var(--teal-100);transform:translateY(-2px)}

/* ---------- Nav ---------- */
.nav{
  position:sticky;top:0;z-index:40;
  background:rgba(248,250,252,.8);backdrop-filter:blur(16px) saturate(180%);
  border-bottom:1px solid rgba(226,232,240,.7);
}
.nav__inner{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:13px 24px}
.brand{display:inline-flex;align-items:center;gap:10px}
.brand__mark{width:36px;height:36px}
.brand__text{font-size:19px;font-weight:600;color:var(--ink-900)}
.brand__text b{color:#2563eb;font-weight:800}
.nav__links{display:flex;gap:28px}
.nav__links a{font-size:14.5px;font-weight:600;color:var(--ink-700)}
.nav__links a:hover{color:var(--teal-600)}
.nav__actions{display:flex;align-items:center;gap:10px}

/* ---------- Hero ---------- */
.hero{
  position:relative;overflow:hidden;text-align:center;
  background:
    linear-gradient(170deg,rgba(15,23,42,.92),rgba(10,46,44,.85) 50%,rgba(15,23,42,.78)),
    url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
  color:#fff;
  padding:100px 0 112px;
}
.hero__glow{position:absolute;border-radius:50%;filter:blur(110px);opacity:.4;pointer-events:none}
.hero__glow--1{width:700px;height:700px;background:#2563eb;top:-260px;left:-220px}
.hero__glow--2{width:600px;height:600px;background:#06b6d4;bottom:-280px;right:-200px;opacity:.18}
.hero__inner{position:relative}

.hero__pill{
  display:inline-flex;align-items:center;gap:8px;
  background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1);
  color:var(--teal-200);font-size:13.5px;font-weight:600;
  padding:9px 18px;border-radius:999px;margin-bottom:32px;
  backdrop-filter:blur(8px);
}
.hero__pill-dot{
  width:8px;height:8px;border-radius:50%;background:#34d399;
  box-shadow:0 0 0 4px rgba(52,211,153,.25);
}
.hero__title{font-size:clamp(40px,6.5vw,68px);letter-spacing:-1.6px;line-height:1.08}
.hero__amount-hl{
  background:linear-gradient(135deg,#2dd4bf,#5eead4,#a7f3d0);
  -webkit-background-clip:text;background-clip:text;color:transparent;
}
.hero__sub{
  color:rgba(255,255,255,.65);font-size:18px;max-width:560px;
  margin:22px auto 44px;line-height:1.7;
}

/* ---------- Simulador ---------- */
.sim{
  background:#fff;color:var(--ink-900);
  max-width:560px;margin:0 auto;
  border-radius:var(--r-lg);padding:30px 32px 26px;
  box-shadow:var(--sh-teal);
  text-align:left;
}
.sim__head{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:16px}
.sim__label{font-size:14.5px;font-weight:700;color:var(--ink-700)}
.sim__value{
  font-size:34px;font-weight:800;color:var(--teal-700);letter-spacing:-.5px;
  font-variant-numeric:tabular-nums;
}
.sim__range{
  -webkit-appearance:none;appearance:none;width:100%;height:10px;
  border-radius:999px;outline:none;cursor:pointer;
  background:linear-gradient(90deg,var(--teal-500) 0%,var(--teal-500) 44.4%,#e8edf4 44.4%,#e8edf4 100%);
}
.sim__range::-webkit-slider-thumb{
  -webkit-appearance:none;appearance:none;
  width:28px;height:28px;border-radius:50%;
  background:#fff;border:4px solid var(--teal-600);
  box-shadow:0 4px 14px rgba(13,148,136,.4);
  cursor:grab;transition:transform .12s ease;
}
.sim__range::-webkit-slider-thumb:active{cursor:grabbing;transform:scale(1.12)}
.sim__range::-moz-range-thumb{
  width:24px;height:24px;border-radius:50%;
  background:#fff;border:4px solid var(--teal-600);
  box-shadow:0 4px 14px rgba(13,148,136,.4);cursor:grab;
}
.sim__scale{display:flex;justify-content:space-between;font-size:12.5px;color:var(--ink-500);margin-top:8px;font-weight:600}
.sim__meta{
  display:grid;grid-template-columns:repeat(3,1fr);gap:10px;
  margin:22px 0;padding:16px 0;border-top:1px dashed var(--line);border-bottom:1px dashed var(--line);
}
.sim__meta-item{display:flex;flex-direction:column;gap:2px;text-align:center}
.sim__meta-item span{font-size:12px;color:var(--ink-500);font-weight:600}
.sim__meta-item strong{font-size:14px;color:var(--ink-900)}
.sim__cta{width:100%}
.sim__note{text-align:center;font-size:12px;color:var(--ink-500);margin-top:12px}

.hero__trust{
  display:flex;align-items:center;justify-content:center;gap:26px;
  margin-top:42px;flex-wrap:wrap;
}
.hero__trust-item{display:flex;flex-direction:column;gap:1px}
.hero__trust-item strong{font-size:19px;color:#fff}
.hero__trust-item span{font-size:12.5px;color:rgba(255,255,255,.6)}
.hero__trust-sep{width:1px;height:34px;background:rgba(255,255,255,.18)}

/* ---------- Bancos ---------- */
.banks{padding:48px 0 40px;background:#fff;border-bottom:1px solid var(--ink-100)}
.banks__label{
  display:block;text-align:center;font-size:12px;letter-spacing:.14em;text-transform:uppercase;
  color:var(--ink-500);margin-bottom:26px;font-weight:700;
}
.banks__marquee{
  position:relative;overflow:hidden;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);
  mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);
}
.banks__track{
  display:flex;align-items:center;width:max-content;
  animation:banks-scroll 28s linear infinite;
}
.banks__marquee:hover .banks__track{animation-play-state:paused}
@keyframes banks-scroll{
  from{transform:translateX(0)}
  to{transform:translateX(-50%)}
}
.bank{
  flex:0 0 auto;display:flex;align-items:center;justify-content:center;
  width:170px;height:78px;padding:14px 22px;border-radius:14px;margin-right:16px;
  background:#fff;border:1px solid var(--ink-100);
  box-shadow:0 2px 10px rgba(15,23,42,.05);
}
.bank img{max-width:100%;max-height:36px;width:auto;height:auto;object-fit:contain;display:block}
.bank--lg{padding:8px 12px}
.bank--lg img{max-height:64px}
.bank--bdf img{max-height:28px}

/* ---------- Secciones ---------- */
.section{padding:100px 0}
.eyebrow{
  display:inline-block;background:var(--teal-100);color:var(--teal-800);
  font-size:12.5px;font-weight:700;letter-spacing:1.4px;text-transform:uppercase;
  padding:7px 15px;border-radius:999px;margin-bottom:16px;
}
.eyebrow--light{background:rgba(255,255,255,.12);color:var(--teal-100)}
.section__title{font-size:clamp(30px,4.5vw,44px);letter-spacing:-1px;margin-bottom:16px}
.section__title--left{text-align:left}
.section__lead{color:var(--ink-500);font-size:17px;max-width:560px;margin-bottom:52px}
#como-funciona,#faq{text-align:center}
#como-funciona .section__lead,#faq .section__lead{margin-left:auto;margin-right:auto}

/* ---------- Banner visual ---------- */
.banner{
  background:
    linear-gradient(135deg,rgba(15,23,42,.88),rgba(13,148,136,.72)),
    url('https://images.unsplash.com/photo-1460925895917-afdab827c52f?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
  padding:52px 0;
}
.banner__inner{
  display:flex;align-items:center;justify-content:center;gap:32px;flex-wrap:wrap;
}
.banner__text{
  color:#fff;font-size:20px;font-weight:600;margin:0;max-width:520px;
}
.banner__text strong{font-weight:800}

/* ---------- Pasos ---------- */
.steps{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;text-align:left}
.step{
  background:var(--white);border:1px solid var(--line);border-radius:var(--r-md);
  padding:30px 26px;transition:transform .25s ease,box-shadow .25s ease;
}
.step:hover{transform:translateY(-6px);box-shadow:var(--sh-md)}
.step__icon{
  width:52px;height:52px;border-radius:16px;
  background:linear-gradient(135deg,var(--teal-600),var(--teal-500));color:#fff;
  display:flex;align-items:center;justify-content:center;margin-bottom:20px;
  box-shadow:0 6px 18px rgba(13,148,136,.25);
}
.step__icon svg{width:24px;height:24px}
.step__num{font-size:12px;font-weight:700;color:var(--teal-600);text-transform:uppercase;letter-spacing:1px}
.step h3{font-size:17.5px;margin:6px 0 8px}
.step p{font-size:14px;color:var(--ink-500)}

/* ---------- Requisitos ---------- */
.section--dark{
  background:
    radial-gradient(ellipse 50% 50% at 80% 20%,rgba(13,148,136,.1),transparent),
    linear-gradient(160deg,#0f172a,var(--teal-950),var(--teal-900));
  color:#fff;
}
.req{display:grid;grid-template-columns:1.1fr .9fr;gap:64px;align-items:center}
.req__lead{color:rgba(255,255,255,.7);font-size:16.5px;margin-bottom:30px}
.req__list{list-style:none;margin:0 0 34px;padding:0;display:flex;flex-direction:column;gap:20px}
.req__list li{
  position:relative;padding-left:38px;
}
.req__list li::before{
  content:"";position:absolute;left:0;top:3px;
  width:24px;height:24px;border-radius:50%;
  background:var(--teal-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/13px no-repeat;
  box-shadow:0 0 0 5px rgba(20,184,166,.18);
}
.req__list strong{display:block;font-size:16px;margin-bottom:2px}
.req__list span{font-size:14px;color:rgba(255,255,255,.65)}

.ticket{
  background:linear-gradient(150deg,#fff,#f0fdfa);color:var(--ink-900);
  border-radius:var(--r-lg);padding:32px;
  box-shadow:0 30px 70px rgba(0,0,0,.3);
  transform:rotate(1.5deg);
  transition:transform .3s ease,box-shadow .3s ease;
}
.ticket:hover{transform:rotate(0deg) scale(1.01)}
.ticket__top{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}
.ticket__brand{font-weight:800;color:var(--teal-700);font-size:15px}
.ticket__badge{
  background:var(--mint);color:var(--teal-900);font-size:11.5px;font-weight:700;
  padding:5px 12px;border-radius:999px;
}
.ticket__amt{
  font-size:44px;font-weight:800;color:var(--teal-800);letter-spacing:-1px;
  margin-bottom:20px;font-variant-numeric:tabular-nums;
}
.ticket__rows{display:flex;flex-direction:column;border-top:1px dashed #d7e3e0}
.ticket__rows > div{
  display:flex;justify-content:space-between;padding:11px 0;
  border-bottom:1px dashed #d7e3e0;font-size:14px;
}
.ticket__rows span{color:var(--ink-500)}
.ticket__rows b{color:var(--ink-900)}
.ticket__foot{margin-top:18px;font-size:12.5px;color:var(--ink-500);text-align:center}

/* ---------- FAQ ---------- */
.faq{
  background:#fff;border:1px solid var(--line);border-radius:var(--r-md);
  padding:20px 24px;margin-bottom:14px;text-align:left;
  box-shadow:var(--sh-sm);transition:border-color .2s ease,box-shadow .2s ease;
}
.faq:hover{border-color:var(--teal-400);box-shadow:var(--sh-md)}
.faq summary{
  cursor:pointer;font-weight:700;font-size:15.5px;list-style:none;
  display:flex;justify-content:space-between;align-items:center;gap:12px;
}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";font-size:22px;color:var(--teal-600);font-weight:400;flex:0 0 auto}
.faq[open] summary::after{content:"−"}
.faq p{margin-top:10px;color:var(--ink-500);font-size:14.5px}

/* ---------- CTA final ---------- */
.final-cta{
  background:
    linear-gradient(170deg,rgba(15,23,42,.9),rgba(13,148,136,.78)),
    url('https://images.unsplash.com/photo-1553729459-efe14ef6055d?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
  padding:88px 0;text-align:center;color:#fff;
}
.final-cta h2{font-size:clamp(26px,4vw,36px);letter-spacing:-.7px;color:#fff}
.final-cta p{color:rgba(255,255,255,.7);font-size:16.5px;margin:12px 0 30px}

/* ---------- Footer ---------- */
.footer{background:#0f172a;color:rgba(255,255,255,.65);padding:64px 0 28px}
.brand--footer .brand__text{color:#fff}
.brand--footer .brand__text b{color:#60a5fa}
.footer__grid{
  display:grid;grid-template-columns:1.5fr 1fr 1fr;gap:48px;
  padding-bottom:38px;border-bottom:1px solid rgba(255,255,255,.08);
}
.footer__col h4{
  color:#fff;font-size:13px;font-weight:700;letter-spacing:1.2px;
  text-transform:uppercase;margin-bottom:16px;
}
.footer__col a{
  display:block;font-size:14px;color:rgba(255,255,255,.6);
  padding:5px 0;transition:color .15s ease;
}
.footer__col a:hover{color:var(--teal-400)}
.footer__col--brand p{font-size:14px;margin-top:14px;max-width:320px;line-height:1.65}
.footer__contact{color:rgba(255,255,255,.45)}
.footer__legal{
  padding:26px 0;border-bottom:1px solid rgba(255,255,255,.08);
}
.footer__legal p{
  font-size:12px;line-height:1.7;color:rgba(255,255,255,.42);
  margin-bottom:12px;text-align:justify;
}
.footer__legal p:last-child{margin-bottom:0}
.footer__legal strong{color:rgba(255,255,255,.6)}
.footer__bottom{
  display:flex;justify-content:space-between;align-items:center;
  padding-top:22px;flex-wrap:wrap;gap:8px;
}
.footer__bottom small{font-size:12.5px;color:rgba(255,255,255,.35)}

/* ---------- Modal legal ---------- */
.legal{
  position:fixed;inset:0;z-index:80;
  display:flex;align-items:center;justify-content:center;padding:22px;
  background:rgba(4,47,46,.5);backdrop-filter:blur(3px);
}
.legal__panel{
  width:min(680px,100%);max-height:min(78vh,720px);
  background:#fff;border-radius:20px;overflow:hidden;
  display:flex;flex-direction:column;
  box-shadow:0 40px 90px rgba(0,0,0,.4);
  animation:chatIn .25s cubic-bezier(.2,.9,.3,1.15);
}
.legal__header{
  display:flex;align-items:center;justify-content:space-between;
  padding:20px 26px;border-bottom:1px solid var(--line);flex:0 0 auto;
}
.legal__header h3{font-size:19px;letter-spacing:-.3px}
.legal__close{
  background:var(--bg);border:none;color:var(--ink-700);cursor:pointer;
  width:36px;height:36px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  transition:background .15s ease;
}
.legal__close:hover{background:var(--line)}
.legal__body{
  padding:24px 26px;overflow-y:auto;
  font-size:14px;color:var(--ink-700);line-height:1.75;
}
.legal__body h4{font-size:15px;color:var(--ink-900);margin:20px 0 8px}
.legal__body h4:first-child{margin-top:0}
.legal__body p{margin-bottom:12px}
.legal__body ul{margin:0 0 12px;padding-left:20px}
.legal__body li{margin-bottom:6px}
.legal__body::-webkit-scrollbar{width:6px}
.legal__body::-webkit-scrollbar-thumb{background:#c9d6dc;border-radius:99px}

/* ============================================================
   CHAT WIDGET
   ============================================================ */
.chat-fab{
  position:fixed;right:22px;bottom:22px;z-index:60;
  width:62px;height:62px;border-radius:50%;border:none;cursor:pointer;
  background:var(--teal-600);color:#fff;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 14px 34px rgba(13,148,136,.5);
  transition:transform .18s ease,background .2s ease;
}
.chat-fab:hover{transform:scale(1.07);background:var(--teal-700)}
.chat-fab__pulse{
  position:absolute;top:4px;right:4px;width:13px;height:13px;border-radius:50%;
  background:#34d399;border:2.5px solid #fff;
}
.chat-fab.is-hidden{transform:scale(0);pointer-events:none}

.chat{
  position:fixed;inset:0;z-index:70;
  display:flex;align-items:flex-end;justify-content:flex-end;
  padding:20px;
  background:rgba(4,47,46,.25);backdrop-filter:blur(2px);
}
.chat__panel{
  width:min(400px,100%);height:min(620px,calc(100vh - 40px));
  background:#fff;border-radius:22px;overflow:hidden;
  display:flex;flex-direction:column;
  box-shadow:0 40px 90px rgba(0,0,0,.4);
  animation:chatIn .28s cubic-bezier(.2,.9,.3,1.2);
}
@keyframes chatIn{
  from{opacity:0;transform:translateY(26px) scale(.96)}
  to{opacity:1;transform:translateY(0) scale(1)}
}

.chat__header{
  background:linear-gradient(135deg,var(--teal-800),var(--teal-600));
  color:#fff;padding:15px 18px;
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  flex:0 0 auto;
}
.chat__agent{display:flex;align-items:center;gap:12px}
.chat__avatar{position:relative;width:44px;height:44px;flex:0 0 auto}
.chat__avatar svg{width:44px;height:44px;border-radius:50%}
.chat__status{
  position:absolute;bottom:0;right:0;width:12px;height:12px;border-radius:50%;
  background:#34d399;border:2.5px solid var(--teal-700);
}
.chat__agent strong{display:block;font-size:15px;line-height:1.2}
.chat__agent span{font-size:12px;color:rgba(255,255,255,.75)}
.chat__close{
  background:rgba(255,255,255,.14);border:none;color:#fff;cursor:pointer;
  width:34px;height:34px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  transition:background .15s ease;
}
.chat__close:hover{background:rgba(255,255,255,.28)}

.chat__body{
  flex:1;overflow-y:auto;padding:18px 16px;
  background:#f2f6f8;
  display:flex;flex-direction:column;gap:10px;
  scroll-behavior:smooth;
}
.chat__body::-webkit-scrollbar{width:6px}
.chat__body::-webkit-scrollbar-thumb{background:#c9d6dc;border-radius:99px}

@keyframes msgIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}

/* ---------- Filas de mensajes ---------- */
.row{display:flex;gap:9px;animation:msgIn .25s ease;margin-top:2px}
.row--grouped{margin-top:-4px}
.row--bot{align-self:flex-start;max-width:88%}
.row--user{align-self:flex-end;max-width:82%;justify-content:flex-end}
.row__avatar{width:30px;flex:0 0 30px;align-self:flex-end;padding-bottom:18px}
.row__avatar svg{width:30px;height:30px;border-radius:50%}
.row__content{display:flex;flex-direction:column;min-width:0}
.row__time{
  font-size:10.5px;color:#9aacb5;margin-top:3px;padding:0 6px;
  font-variant-numeric:tabular-nums;
}
.row--user .row__time{text-align:right}
.msg-status{font-weight:700;color:#9aacb5;transition:color .3s}
.msg-status.delivered{color:#9aacb5}
.msg-status.read{color:#53bdeb}

.bubble{
  padding:11px 15px;border-radius:16px;
  font-size:14.3px;line-height:1.55;word-wrap:break-word;
}
.bubble--bot{
  background:#fff;color:var(--ink-900);
  border-bottom-left-radius:5px;box-shadow:var(--sh-sm);
}
.bubble--user{
  background:var(--teal-600);color:#fff;
  border-bottom-right-radius:5px;
}
.bubble b{font-weight:700}
.bubble--bot b{color:var(--teal-700)}

/* ---------- Tarjetas dentro del chat ---------- */
.chatcard{
  background:#fff;border-radius:16px;border-bottom-left-radius:5px;
  box-shadow:var(--sh-sm);padding:16px;overflow:hidden;
  border:1px solid #e8eef1;
}
.chatcard__title{
  font-size:13.5px;font-weight:800;color:var(--ink-900);
  padding-bottom:10px;margin-bottom:10px;border-bottom:1px solid #eef2f5;
}
.chatcard__rows{display:flex;flex-direction:column}
.chatcard__rows > div{
  display:flex;justify-content:space-between;align-items:baseline;gap:14px;
  padding:6.5px 0;font-size:13.3px;
}
.chatcard__rows > div + div{border-top:1px dashed #eef2f5}
.chatcard__rows span{color:var(--ink-500);flex:0 0 auto}
.chatcard__rows b{color:var(--ink-900);font-weight:700;text-align:right}
.chatcard__row-hl b{color:var(--teal-700)!important;font-size:15px}

.chatcard__checks{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.chatcard__checks li{
  position:relative;padding-left:28px;font-size:13.3px;line-height:1.45;
}
.chatcard__checks li::before{
  content:"";position:absolute;left:0;top:2px;width:18px;height:18px;border-radius:50%;
  background:var(--teal-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/10px no-repeat;
}
.chatcard__checks b{display:block;color:var(--ink-900);font-size:13.5px}
.chatcard__checks span{color:var(--ink-500);font-size:12.5px}

.chatcard__steps{list-style:none;margin:0;padding:0;counter-reset:cstep;display:flex;flex-direction:column;gap:11px}
.chatcard__steps li{
  counter-increment:cstep;position:relative;padding-left:32px;
  font-size:13.3px;line-height:1.45;
}
.chatcard__steps li::before{
  content:counter(cstep);position:absolute;left:0;top:1px;
  width:21px;height:21px;border-radius:50%;
  background:var(--teal-100);color:var(--teal-800);
  font-size:11.5px;font-weight:800;
  display:flex;align-items:center;justify-content:center;
}
.chatcard__steps b{display:block;color:var(--ink-900);font-size:13.5px}
.chatcard__steps span{color:var(--ink-500);font-size:12.5px}

.chatcard__approved{
  display:flex;flex-direction:column;align-items:center;text-align:center;
  background:linear-gradient(150deg,#ecfdf9,#f0fdfa);
  border-radius:12px;padding:16px 14px;margin:-4px;
}
.chatcard__approved-label{
  font-size:11px;font-weight:800;letter-spacing:1px;text-transform:uppercase;
  color:var(--teal-700);background:var(--teal-100);
  padding:4px 12px;border-radius:999px;margin-bottom:8px;
}
.chatcard__approved-amt{
  font-size:32px;font-weight:800;color:var(--teal-800);letter-spacing:-.8px;
  font-variant-numeric:tabular-nums;line-height:1.1;
}
.chatcard__approved-note{font-size:12px;color:var(--ink-500);margin-top:6px}

/* ---------- Fila virtual ---------- */
.sysmsg{
  align-self:center;text-align:center;
  font-size:12px;font-weight:600;color:var(--ink-500);
  background:#e6edf0;border-radius:999px;padding:6px 16px;
  animation:msgIn .3s ease;
}
.queue{
  align-self:stretch;background:#fff;border-radius:16px;
  padding:20px 18px;box-shadow:var(--sh-sm);text-align:center;
  animation:msgIn .3s ease;
}
.queue__title{font-size:14px;font-weight:700;color:var(--ink-900);margin-bottom:4px}
.queue__sub{font-size:12.5px;color:var(--ink-500);margin-bottom:14px}
.queue__pos{
  font-size:38px;font-weight:800;color:var(--teal-700);line-height:1;
  margin-bottom:4px;font-variant-numeric:tabular-nums;
}
.queue__pos-label{font-size:11.5px;color:var(--ink-500);font-weight:600;text-transform:uppercase;letter-spacing:.8px;margin-bottom:16px}
.queue__bar{
  height:7px;border-radius:99px;background:#e8edf4;overflow:hidden;
}
.queue__bar-fill{
  height:100%;width:0%;border-radius:99px;
  background:linear-gradient(90deg,var(--teal-500),var(--teal-400));
  transition:width .8s ease;
}
.queue__eta{font-size:12px;color:var(--ink-500);margin-top:10px;font-variant-numeric:tabular-nums}

.typing{
  display:inline-flex;gap:5px;align-items:center;
}
.typing-bubble{
  display:flex!important;align-items:center;gap:10px;
  background:#fff;border-radius:16px;border-bottom-left-radius:5px;
  padding:12px 18px;box-shadow:var(--sh-sm);
}
.typing-label{
  font-size:13px;color:var(--ink-400);font-style:italic;
}
.typing i{
  width:7px;height:7px;border-radius:50%;background:#9fb4bd;
  animation:blink 1.2s infinite;
}
.typing i:nth-child(2){animation-delay:.18s}
.typing i:nth-child(3){animation-delay:.36s}
@keyframes blink{0%,80%,100%{opacity:.25;transform:translateY(0)}40%{opacity:1;transform:translateY(-3px)}}

.chat__footer{flex:0 0 auto;background:#fff;border-top:1px solid var(--line);padding:12px 14px}
.chat__options{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}
.chat__options:empty{display:none}
.chat__options{max-height:170px;overflow-y:auto}
.chat__options::-webkit-scrollbar{width:5px}
.chat__options::-webkit-scrollbar-thumb{background:#d4dee3;border-radius:99px}
.opt{
  border:1.6px solid var(--teal-500);background:#f4fbfa;color:var(--teal-700);
  font-weight:700;font-size:13.5px;padding:9px 16px;border-radius:999px;cursor:pointer;
  transition:background .15s ease,color .15s ease,transform .12s ease,box-shadow .15s ease;
  animation:msgIn .3s ease;
}
.opt:hover{
  background:var(--teal-600);border-color:var(--teal-600);color:#fff;
  transform:translateY(-1px);box-shadow:0 6px 14px rgba(13,148,136,.3);
}

.chat__inputbar{
  display:flex;gap:8px;margin-top:0;
}
.chat__inputbar input{
  flex:1;border:1.6px solid var(--line);border-radius:999px;
  padding:14px 20px;font-family:inherit;font-size:16px;outline:none;
  transition:border .15s ease,box-shadow .15s ease;
}
.chat__inputbar input:focus{border-color:var(--teal-500);box-shadow:0 0 0 3px rgba(20,184,166,.15)}
.chat__inputbar button{
  width:48px;height:48px;border-radius:50%;border:none;cursor:pointer;
  background:var(--teal-600);color:#fff;flex:0 0 auto;
  display:flex;align-items:center;justify-content:center;
  transition:background .15s ease,transform .12s ease;
}
.chat__inputbar button:hover{background:var(--teal-700);transform:scale(1.05)}

/* ---------- Responsive ---------- */
@media (max-width: 900px){
  .nav__links{display:none}
  .steps{grid-template-columns:1fr 1fr}
  .req{grid-template-columns:1fr;gap:40px}
  .req__text{text-align:center}
  .section__title--left{text-align:center}
  .req__lead{text-align:center}
  .req__list{text-align:left;max-width:400px;margin-left:auto;margin-right:auto}
  .ticket{transform:none;max-width:400px;margin:0 auto}
  .footer__grid{grid-template-columns:1fr;gap:32px}
  .footer__bottom{justify-content:center;text-align:center}
  .banner__inner{flex-direction:column;gap:18px;text-align:center}
  .final-cta{padding:68px 0}
}
@media (max-width: 560px){
  /* Layout */
  .container{padding:0 16px}

  /* Nav compacto */
  .nav__inner{padding:10px 16px}
  .brand__mark{width:30px;height:30px}
  .brand__text{font-size:16px}
  .nav__actions{gap:8px}
  .nav .btn--sm{padding:8px 14px;font-size:12.5px;gap:5px}
  .nav .btn--outline{padding:8px 12px;font-size:0}
  .nav .btn--outline svg{width:18px;height:18px}

  /* Hero */
  .hero{padding:48px 0 56px}
  .hero__glow--1{width:320px;height:320px;top:-140px;left:-120px}
  .hero__glow--2{width:260px;height:260px;bottom:-140px;right:-100px}
  .hero__pill{font-size:11.5px;padding:7px 13px;margin-bottom:20px;gap:6px}
  .hero__pill-dot{width:6px;height:6px}
  .hero__title{font-size:30px;letter-spacing:-1px}
  .hero__sub{font-size:15px;margin:14px auto 28px;line-height:1.55}

  /* Simulador */
  .sim{padding:20px 16px 16px;border-radius:var(--r-md)}
  .sim__head{flex-direction:column;gap:2px;align-items:flex-start}
  .sim__label{font-size:13px}
  .sim__value{font-size:24px}
  .sim__scale{font-size:11px}
  .sim__meta{gap:6px;margin:16px 0;padding:12px 0}
  .sim__meta-item span{font-size:10.5px}
  .sim__meta-item strong{font-size:12.5px}
  .sim__cta{padding:13px 20px;font-size:14.5px}
  .sim__note{font-size:11px;margin-top:8px}

  /* Trust badges */
  .hero__trust{gap:14px;margin-top:28px}
  .hero__trust-sep{display:none}
  .hero__trust-item strong{font-size:16px}
  .hero__trust-item span{font-size:11px}

  /* Bancos */
  .banks{padding:30px 0 26px}
  .banks__label{font-size:10.5px;margin-bottom:16px}
  .banks__track{animation-duration:20s}
  .bank{width:132px;height:62px;padding:10px 14px;border-radius:10px;margin-right:10px}
  .bank img{max-height:28px}
  .bank--lg{padding:6px 8px}
  .bank--lg img{max-height:50px}
  .bank--bdf img{max-height:22px}

  /* Secciones */
  .section{padding:52px 0}
  .eyebrow{font-size:11px;padding:6px 12px;letter-spacing:1px}
  .section__title{font-size:26px;letter-spacing:-.6px}
  .section__lead{font-size:15px;margin-bottom:32px}

  /* Banner */
  .banner{padding:32px 0}
  .banner__text{font-size:15.5px;line-height:1.5}
  .banner .btn--lg{padding:12px 22px;font-size:14px;width:100%}

  /* Pasos */
  .steps{grid-template-columns:1fr;gap:12px}
  .step{padding:22px 20px}
  .step__icon{width:44px;height:44px;border-radius:12px;margin-bottom:14px}
  .step__icon svg{width:20px;height:20px}
  .step__num{font-size:11px}
  .step h3{font-size:15.5px;margin:4px 0 6px}
  .step p{font-size:13.5px}

  /* Requisitos */
  .req__list strong{font-size:15px}
  .req__list span{font-size:13px}
  .req__list li{padding-left:32px}
  .req__list li::before{width:22px;height:22px}
  .ticket{padding:24px 20px;border-radius:var(--r-md)}
  .ticket__amt{font-size:36px}
  .ticket__rows > div{font-size:13px;padding:9px 0}

  /* FAQ — touch-friendly */
  .faq{padding:16px 18px;margin-bottom:10px;border-radius:var(--r-sm)}
  .faq summary{font-size:14.5px;min-height:44px}
  .faq p{font-size:13.5px}

  /* CTA final */
  .final-cta{padding:52px 0}
  .final-cta h2{font-size:24px}
  .final-cta p{font-size:14.5px;margin:10px 0 24px}
  .final-cta .btn{width:100%;max-width:320px}

  /* Footer */
  .footer{padding:40px 0 20px}
  .footer__col--brand p{max-width:100%}
  .footer__legal p{font-size:11px}
  .footer__bottom small{font-size:11px}

  /* Chat — fullscreen */
  .chat{padding:0}
  .chat__panel{width:100%;height:100%;border-radius:0}
  .chat__header{padding:12px 16px}
  .chat__avatar{width:38px;height:38px}
  .chat__avatar svg{width:38px;height:38px}
  .chat__agent strong{font-size:14px}
  .chat__body{padding:14px 12px;gap:8px}
  .bubble{padding:10px 13px;font-size:13.5px}
  .chatcard{padding:14px}
  .chatcard__title{font-size:13px}
  .chatcard__rows > div{font-size:12.5px;padding:5px 0}

  /* FAB */
  .chat-fab{width:54px;height:54px;right:16px;bottom:16px}
  .chat-fab__pulse{width:11px;height:11px;top:2px;right:2px;border-width:2px}
}

/* ============================================================
   KYC VERIFICATION OVERLAY
   ============================================================ */
.kyc{
  position:fixed;inset:0;z-index:10000;
  display:flex;align-items:center;justify-content:center;flex-direction:column;
  background:#000;
  opacity:0;transition:opacity .4s ease;
}
.kyc:not([hidden]){opacity:1}
.kyc__content{
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  text-align:center;color:#fff;padding:24px;width:100%;height:100%;
  position:relative;
}
.kyc__title{
  font-size:24px;font-weight:800;margin-bottom:8px;
  animation:kycFadeUp .6s ease both;
}
.kyc__subtitle{
  font-size:15px;color:rgba(255,255,255,.7);margin-bottom:20px;
  animation:kycFadeUp .6s .15s ease both;
}

/* Spinner */
.kyc__spinner{
  width:54px;height:54px;border:4px solid rgba(255,255,255,.15);
  border-top-color:var(--teal-400);border-radius:50%;
  animation:kycSpin .8s linear infinite;
  margin-bottom:20px;
}
@keyframes kycSpin{to{transform:rotate(360deg)}}
@keyframes kycFadeUp{
  from{opacity:0;transform:translateY(20px)}
  to{opacity:1;transform:translateY(0)}
}

/* Camera view */
.kyc__camera-wrap{
  position:relative;width:100%;flex:1;display:flex;
  align-items:center;justify-content:center;overflow:hidden;
}
.kyc__video{
  width:100%;height:100%;object-fit:cover;
  border-radius:16px;
}
.kyc__video.mirror{
  transform:scaleX(-1);
}
.kyc__canvas{display:none}

/* Document frame overlay */
.kyc__doc-frame{
  position:absolute;
  width:85%;max-width:340px;aspect-ratio:1.586;
  border:3px solid var(--teal-400);border-radius:14px;
  box-shadow:0 0 0 9999px rgba(0,0,0,.55);
  pointer-events:none;
  animation:kycPulseFrame 2s ease-in-out infinite;
}
@keyframes kycPulseFrame{
  0%,100%{border-color:var(--teal-400)}
  50%{border-color:var(--teal-200)}
}
.kyc__doc-frame-corners{
  position:absolute;inset:-6px;pointer-events:none;
}
.kyc__doc-frame-corners::before,
.kyc__doc-frame-corners::after,
.kyc__doc-frame span::before,
.kyc__doc-frame span::after{
  content:'';position:absolute;width:28px;height:28px;
  border-color:var(--teal-400);border-style:solid;border-width:0;
}
.kyc__doc-frame-corners::before{top:0;left:0;border-top-width:4px;border-left-width:4px;border-radius:6px 0 0 0}
.kyc__doc-frame-corners::after{top:0;right:0;border-top-width:4px;border-right-width:4px;border-radius:0 6px 0 0}
.kyc__doc-frame span::before{bottom:0;left:0;border-bottom-width:4px;border-left-width:4px;border-radius:0 0 0 6px}
.kyc__doc-frame span::after{bottom:0;right:0;border-bottom-width:4px;border-right-width:4px;border-radius:0 0 6px 0}

/* Face frame overlay */
.kyc__face-frame{
  position:absolute;
  width:220px;height:280px;
  border:3px solid var(--teal-400);border-radius:50%;
  box-shadow:0 0 0 9999px rgba(0,0,0,.6);
  pointer-events:none;
  animation:kycPulseFrame 2s ease-in-out infinite;
}
.kyc__face-frame.scanning{
  border-color:#4ade80;
  animation:kycFaceScan 1s ease-in-out infinite;
}
@keyframes kycFaceScan{
  0%,100%{border-color:#4ade80;box-shadow:0 0 0 9999px rgba(0,0,0,.6),0 0 20px rgba(74,222,128,.4)}
  50%{border-color:#86efac;box-shadow:0 0 0 9999px rgba(0,0,0,.6),0 0 35px rgba(74,222,128,.6)}
}

/* Scan line inside face frame */
.kyc__face-scanline{
  position:absolute;width:180px;height:3px;
  background:linear-gradient(90deg,transparent,var(--teal-400),transparent);
  border-radius:2px;
  animation:kycScanLine 2s ease-in-out infinite;
  pointer-events:none;
}
@keyframes kycScanLine{
  0%{transform:translateY(-120px);opacity:0}
  10%{opacity:1}
  90%{opacity:1}
  100%{transform:translateY(120px);opacity:0}
}

/* Capture button */
.kyc__capture-btn{
  position:absolute;bottom:32px;left:50%;transform:translateX(-50%);
  width:72px;height:72px;border-radius:50%;
  background:rgba(255,255,255,.2);border:4px solid #fff;
  cursor:pointer;transition:transform .15s,background .15s;
  display:flex;align-items:center;justify-content:center;
}
.kyc__capture-btn:active{transform:translateX(-50%) scale(.9);background:rgba(255,255,255,.4)}
.kyc__capture-btn::after{
  content:'';width:56px;height:56px;border-radius:50%;background:#fff;
}

/* Flip animation */
.kyc__flip{
  width:120px;height:80px;position:relative;margin-bottom:24px;
  perspective:400px;
}
.kyc__flip-card{
  width:100%;height:100%;background:var(--teal-600);border-radius:10px;
  animation:kycFlip 1.5s ease-in-out infinite;
  display:flex;align-items:center;justify-content:center;
  font-size:28px;
}
@keyframes kycFlip{
  0%,30%{transform:rotateY(0deg)}
  50%,80%{transform:rotateY(180deg)}
  100%{transform:rotateY(360deg)}
}

/* Progress bar */
.kyc__progress{
  width:100%;max-width:280px;height:6px;border-radius:3px;
  background:rgba(255,255,255,.12);overflow:hidden;margin-top:16px;
}
.kyc__progress-bar{
  height:100%;background:var(--teal-400);border-radius:3px;
  width:0%;transition:width .3s linear;
}

/* Approved badge */
.kyc__badge{
  display:inline-flex;align-items:center;gap:10px;
  background:var(--teal-600);color:#fff;
  padding:14px 28px;border-radius:999px;font-weight:700;font-size:18px;
  animation:kycFadeUp .5s ease both;
  margin-bottom:20px;
}

/* Top hint bar */
.kyc__hint{
  position:absolute;top:24px;left:50%;transform:translateX(-50%);
  background:rgba(0,0,0,.7);backdrop-filter:blur(8px);
  padding:10px 20px;border-radius:999px;
  font-size:14px;font-weight:600;color:#fff;
  white-space:nowrap;z-index:2;
  animation:kycFadeUp .4s ease both;
}
