/* ================================================================
   BongoFlow AI — estilos compartidos de todo el sitio.
   Cada página agrega su CSS específico en un <style> propio.
   ================================================================ */
:root{
  --ink:#1E2125;
  --ink-soft:#2A2E33;
  --amber:#FFB300;
  --amber-soft:#FFF4D9;
  --amber-text:#8A6100;
  --gray:#E5E7EB;
  --bg:#F5F6F8;
  --white:#FFFFFF;
  --text:#1E2125;
  --text-muted:#5A6068;
  --text-on-dark:#E9EBEE;
  --text-on-dark-muted:#A8AEB6;
  --radius:18px;
  --shadow:0 10px 30px rgba(30,33,37,.08);
  --shadow-lg:0 24px 60px rgba(30,33,37,.14);
  --font-head:'Poppins',system-ui,sans-serif;
  --font-body:'Inter',system-ui,sans-serif;
}
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation:none!important;transition:none!important}
}
body{
  font-family:var(--font-body);
  font-size:16px;line-height:1.6;
  color:var(--text);background:var(--bg);
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
h1,h2,h3{font-family:var(--font-head);line-height:1.2}
img,svg{max-width:100%;vertical-align:middle}
a{color:inherit}
.wrap{max-width:1120px;margin:0 auto;padding:0 24px}

/* ===== Botones ===== */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  font-family:var(--font-head);font-weight:600;font-size:16px;
  padding:14px 28px;border-radius:999px;border:2px solid transparent;
  cursor:pointer;text-decoration:none;min-height:48px;
  transition:transform .18s ease,box-shadow .18s ease,background .18s ease;
  touch-action:manipulation;
}
.btn:active{transform:scale(.97)}
.btn-amber{background:var(--amber);color:var(--ink)}
.btn-amber:hover{box-shadow:0 10px 24px rgba(255,179,0,.35);transform:translateY(-2px)}
.btn-ghost{border-color:var(--gray);color:var(--ink);background:var(--white)}
.btn-ghost:hover{border-color:var(--ink);transform:translateY(-2px)}
.btn-dark{background:var(--ink);color:var(--white)}
.btn-dark:hover{box-shadow:0 10px 24px rgba(30,33,37,.3);transform:translateY(-2px)}
.btn-line{background:transparent;border-color:var(--ink);color:var(--ink)}
.btn-line:hover{background:rgba(30,33,37,.08);transform:translateY(-2px)}
.btn:focus-visible{outline:3px solid var(--amber);outline-offset:3px}
a:focus-visible{outline:3px solid var(--amber);outline-offset:3px;border-radius:6px}

/* ===== Nav ===== */
header{
  position:sticky;top:0;z-index:100;
  background:rgba(255,255,255,.85);backdrop-filter:blur(12px);
  border-bottom:1px solid var(--gray);
}
.nav{display:flex;align-items:center;justify-content:space-between;height:72px}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none}
.brand-icon{height:38px;width:auto;flex-shrink:0}
.brand-word{height:36px;width:auto}
.brand-name{font-family:var(--font-head);font-weight:600;font-size:21px;color:var(--ink)}
.brand-name span{color:var(--amber)}
.chip{
  width:46px;height:46px;border-radius:50%;background:var(--white);
  display:flex;align-items:center;justify-content:center;flex-shrink:0;
}
.chip img{width:30px;height:auto}
.nav-links{display:flex;align-items:center;gap:26px;list-style:none}
.nav-links a{
  text-decoration:none;font-weight:500;font-size:15px;color:var(--text-muted);
  padding:8px 2px;transition:color .18s;
}
.nav-links a:hover{color:var(--ink)}
.nav-links a[aria-current="page"]{color:var(--ink);font-weight:600}
.nav-links .btn{padding:10px 22px;font-size:15px;min-height:44px}
.nav-toggle{
  display:none;background:none;border:none;cursor:pointer;padding:10px;
  width:44px;height:44px;
}
.nav-toggle svg{width:26px;height:26px;stroke:var(--ink)}
@media (max-width:900px){
  .nav-toggle{display:block}
  .nav-links{
    position:absolute;top:72px;left:0;right:0;
    flex-direction:column;align-items:stretch;gap:0;
    background:var(--white);border-bottom:1px solid var(--gray);
    padding:8px 24px 20px;display:none;box-shadow:var(--shadow);
  }
  .nav-links.open{display:flex}
  .nav-links a{padding:14px 4px;font-size:16px;border-bottom:1px solid var(--bg)}
  .nav-links .btn{margin-top:14px;justify-content:center}
}

/* ===== Secciones ===== */
section{padding:88px 0}
.kicker{
  display:inline-block;font-family:var(--font-head);font-weight:600;font-size:13px;
  letter-spacing:1.5px;text-transform:uppercase;color:var(--amber-text);
  margin-bottom:14px;
}
.dark-section .kicker{color:var(--amber)}
.sec-title{font-size:clamp(26px,3.6vw,38px);font-weight:700;letter-spacing:-.4px;max-width:22ch}
.sec-sub{margin-top:14px;font-size:17px;color:var(--text-muted);max-width:58ch}
@media (max-width:640px){section{padding:64px 0}}
.dark-section{background:var(--ink);color:var(--text-on-dark)}
.dark-section .sec-title{color:var(--white)}
.dark-section .sec-sub{color:var(--text-on-dark-muted)}

/* ===== Chips (fondo oscuro) ===== */
.chips{display:flex;flex-wrap:wrap;gap:10px}
.chip-btn{
  font-family:var(--font-head);font-weight:500;font-size:14px;color:var(--text-on-dark);
  background:var(--ink-soft);border:1.5px solid #3A3F45;border-radius:999px;
  padding:11px 18px;cursor:pointer;min-height:44px;touch-action:manipulation;
  transition:border-color .18s,background .18s,color .18s,transform .18s;
}
.chip-btn:hover{border-color:var(--amber)}
.chip-btn:active{transform:scale(.97)}
.chip-btn.is-on{background:var(--amber);color:var(--ink);border-color:var(--amber);font-weight:600}
.chip-btn:focus-visible{outline:3px solid var(--amber);outline-offset:2px}

/* ===== Campos de formulario (fondo claro) ===== */
.field{margin-bottom:20px}
.field label{display:block;font-weight:500;font-size:14.5px;margin-bottom:8px}
.field input,.field textarea{
  width:100%;font-family:var(--font-body);font-size:16px;color:var(--ink);
  border:1.5px solid var(--gray);border-radius:12px;padding:13px 16px;
  background:var(--bg);transition:border-color .18s;min-height:48px;
}
.field textarea{resize:vertical;min-height:110px}
.field input:focus,.field textarea:focus{outline:none;border-color:var(--amber);background:var(--white)}

/* ===== CTA final de página ===== */
.cta-band{background:var(--ink);color:var(--text-on-dark);text-align:center}
.cta-band h2{font-size:clamp(24px,3.2vw,34px);font-weight:700;color:var(--white);max-width:26ch;margin:0 auto}
.cta-band p{margin:14px auto 30px;color:var(--text-on-dark-muted);max-width:52ch}
.cta-band .btn{min-width:240px}

/* ===== Footer ===== */
footer{background:var(--ink);color:var(--text-on-dark-muted);padding:48px 0}
.foot{display:flex;justify-content:space-between;align-items:center;gap:24px;flex-wrap:wrap}
.foot .brand-name{color:var(--white)}
.foot p{font-size:13.5px;max-width:46ch}
.foot small{font-size:12.5px}
.foot-links{display:flex;gap:18px;flex-wrap:wrap;margin-top:10px}
.foot-links a{font-size:13px;color:var(--text-on-dark-muted);text-decoration:none}
.foot-links a:hover{color:var(--amber)}
@media (max-width:640px){.foot{flex-direction:column;align-items:flex-start}}

/* ===== Circuito de progreso (scroll) ===== */
.progress-wire{position:fixed;top:0;left:0;right:0;height:3px;z-index:200;pointer-events:none}
.progress-wire .wire{
  height:100%;width:100%;background:var(--amber);
  transform-origin:0 50%;transform:scaleX(0);
}
.progress-wire .node{
  position:absolute;top:-4px;left:0;width:11px;height:11px;margin-left:-6px;
  border-radius:50%;background:var(--white);border:3px solid var(--amber);
  box-shadow:0 0 8px rgba(255,179,0,.6);
}

/* ===== Spotlight en tarjetas ===== */
@media (hover:hover) and (pointer:fine){
  .spot{position:relative}
  .spot::before{
    content:'';position:absolute;inset:0;border-radius:inherit;opacity:0;
    transition:opacity .3s ease;pointer-events:none;
    background:radial-gradient(230px circle at var(--mx,50%) var(--my,50%),rgba(255,179,0,.16),transparent 65%);
  }
  .spot:hover::before{opacity:1}
}

/* ===== Puntos de "escribiendo" ===== */
.dots{display:inline-flex;gap:3px;align-items:center}
.dots i{width:5px;height:5px;border-radius:50%;background:var(--amber);animation:blink 1s infinite}
.dots i:nth-child(2){animation-delay:.2s}
.dots i:nth-child(3){animation-delay:.4s}
@keyframes blink{0%,80%,100%{opacity:.25}40%{opacity:1}}

/* ===== Bongo chat ===== */
.bongo-fab{
  position:fixed;right:20px;bottom:20px;z-index:300;width:62px;height:62px;
  border-radius:50%;background:var(--white);border:1px solid var(--gray);cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 10px 30px rgba(30,33,37,.28);transition:transform .18s ease;
  touch-action:manipulation;
}
.bongo-fab:hover{transform:scale(1.07)}
.bongo-fab:active{transform:scale(.96)}
.bongo-fab img{width:38px;height:auto}
.bongo-fab::after{
  content:'';position:absolute;inset:-3px;border-radius:50%;
  border:2px solid var(--amber);animation:fabring 2.4s infinite;
}
@keyframes fabring{0%{transform:scale(.92);opacity:.9}70%{transform:scale(1.28);opacity:0}100%{transform:scale(1.28);opacity:0}}
@media (prefers-reduced-motion: reduce){.bongo-fab::after{animation:none;opacity:.5;transform:scale(1.06)}}
.bongo-fab:focus-visible{outline:3px solid var(--amber);outline-offset:3px}
.bongo-chat[hidden]{display:none}
.bongo-chat{
  position:fixed;right:20px;bottom:94px;z-index:300;
  width:min(372px,calc(100vw - 24px));max-height:min(560px,72vh);
  background:var(--white);border:1px solid var(--gray);border-radius:20px;
  box-shadow:var(--shadow-lg);display:flex;flex-direction:column;overflow:hidden;
}
@media (max-width:480px){.bongo-chat{right:12px;left:12px;width:auto}}
.chat-head{display:flex;align-items:center;gap:12px;padding:13px 16px;background:var(--ink);color:var(--white)}
.chat-head .chip{width:38px;height:38px}
.chat-head .chip img{width:24px}
.chat-head b{font-family:var(--font-head);font-size:15px;font-weight:600;display:block;line-height:1.25}
.chat-head small{font-size:12px;color:var(--text-on-dark-muted)}
.chat-close{
  margin-left:auto;background:none;border:none;cursor:pointer;width:40px;height:40px;
  border-radius:10px;display:flex;align-items:center;justify-content:center;flex-shrink:0;
}
.chat-close svg{width:20px;height:20px;stroke:var(--white)}
.chat-close:hover{background:rgba(255,255,255,.12)}
.chat-close:focus-visible{outline:3px solid var(--amber);outline-offset:2px}
.chat-log{
  padding:16px;overflow-y:auto;display:flex;flex-direction:column;gap:10px;
  flex-grow:1;min-height:190px;background:var(--bg);
}
.msg{max-width:86%;padding:10px 14px;border-radius:14px;font-size:14px;line-height:1.5}
.msg.bot{
  background:var(--white);border:1px solid var(--gray);border-bottom-left-radius:4px;
  align-self:flex-start;color:var(--ink);
}
.msg.user{background:var(--ink);color:var(--white);border-bottom-right-radius:4px;align-self:flex-end}
.msg.note{font-size:11.5px;color:var(--text-muted);background:none;padding:0 6px;align-self:center;text-align:center;max-width:100%}
.chat-quick{
  padding:12px 16px 16px;display:flex;flex-wrap:wrap;gap:8px;
  background:var(--bg);border-top:1px solid var(--gray);
}
.qbtn{
  font-family:var(--font-head);font-weight:500;font-size:13.5px;color:var(--ink);
  background:var(--white);border:1.5px solid var(--amber);border-radius:999px;
  padding:10px 16px;cursor:pointer;min-height:44px;touch-action:manipulation;
  transition:background .15s ease;
}
.qbtn:hover{background:var(--amber)}
.qbtn:focus-visible{outline:3px solid var(--amber);outline-offset:2px}

.sr-only{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
  clip:rect(0 0 0 0);white-space:nowrap;border:0;
}

/* ===== Reveal ===== */
.reveal{opacity:0;transform:translateY(22px);transition:opacity .55s ease,transform .55s ease}
.reveal.in{opacity:1;transform:none}
@media (prefers-reduced-motion: reduce){.reveal{opacity:1;transform:none}}
