:root{--bg:#f5f7fb;--card:#fff;--text:#142033;--muted:#5b677a;--brand:#0a2540;--accent:#25D366;--line:#dfe6ef;--soft:#eef3f9}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Arial,Helvetica,sans-serif;background:var(--bg);color:var(--text);line-height:1.5}
a{text-decoration:none}
.container{width:min(1120px,calc(100% - 32px));margin:0 auto}
header{background:linear-gradient(135deg,var(--brand),#163a61);color:#fff;padding:28px 0 52px}
.topbar{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}
.logo{font-size:30px;font-weight:700}
.logo small{display:block;font-size:13px;font-weight:400;color:#c9d6e6;margin-top:4px}
nav{display:flex;gap:18px;flex-wrap:wrap}
nav a{color:#eef5ff;font-size:15px}
.hero{display:grid;grid-template-columns:1.2fr .8fr;gap:28px;align-items:center;margin-top:34px}
.hero h1{font-size:44px;line-height:1.1;margin:0 0 14px}
.hero p{margin:0 0 24px;color:#d5e1ef;font-size:18px;max-width:720px}
.hero-actions{display:flex;gap:14px;flex-wrap:wrap}
.btn{display:inline-flex;align-items:center;justify-content:center;padding:14px 22px;border-radius:12px;font-weight:700;border:1px solid transparent;cursor:pointer}
.btn-primary{background:var(--accent);color:#fff}
.btn-secondary{background:transparent;border-color:#93a8c0;color:#fff}
.hero-card{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);border-radius:22px;padding:22px}
.hero-card h3{margin-top:0;margin-bottom:8px;font-size:22px}
.hero-points{margin:16px 0 0;padding:0;list-style:none}
.hero-points li{margin-bottom:10px;color:#ecf4ff}
section{padding:56px 0}
.section-title{text-align:center;margin-bottom:12px;font-size:34px;color:var(--brand)}
.section-subtitle{text-align:center;color:var(--muted);max-width:760px;margin:0 auto 28px}
.grid{display:grid;gap:18px}
.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.card{background:var(--card);border:1px solid var(--line);border-radius:18px;padding:22px;box-shadow:0 8px 24px rgba(14,26,44,.05)}
.card h3{margin:0 0 10px;color:var(--brand);font-size:21px}
.card p{margin:0;color:var(--muted)}
.trust-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.trust-box{background:#fff;border:1px solid var(--line);border-radius:18px;padding:20px}
.trust-box strong{display:block;font-size:15px;color:var(--brand);margin-bottom:8px}
.pill-row{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-top:18px}
.pill{background:var(--soft);color:var(--brand);border:1px solid var(--line);padding:10px 14px;border-radius:999px;font-size:14px;font-weight:700}
.steps{counter-reset:step}
.step{position:relative;padding-top:64px}
.step::before{counter-increment:step;content:counter(step);position:absolute;top:0;left:50%;transform:translateX(-50%);width:44px;height:44px;border-radius:50%;background:var(--brand);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;box-shadow:0 10px 20px rgba(10,37,64,.18)}
.cta{background:linear-gradient(135deg,#0a2540,#163a61);color:#fff;border-radius:24px;padding:34px;text-align:center}
.cta h2{margin-top:0;font-size:32px}
.cta p{color:#d9e5f3;max-width:760px;margin:0 auto 18px}
footer{background:#081a2d;color:#d5dfeb;padding:30px 0 38px;margin-top:14px}
.footer-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:18px;align-items:start}
footer h4{color:#fff;margin-top:0;margin-bottom:8px}

#chatButton{position:fixed;right:20px;bottom:20px;width:58px;height:58px;border:none;border-radius:50%;background:var(--accent);color:#fff;font-size:24px;box-shadow:0 10px 30px rgba(0,0,0,.2);cursor:pointer;z-index:999}
#chatNotification{position:fixed;right:20px;bottom:88px;background:#fff;color:var(--text);border:1px solid var(--line);border-radius:12px;padding:10px 12px;box-shadow:0 10px 30px rgba(0,0,0,.12);z-index:998;max-width:220px;display:none;font-size:14px}
#chatBox{position:fixed;right:20px;bottom:88px;width:360px;max-width:calc(100vw - 20px);background:#fff;border:1px solid var(--line);border-radius:20px;box-shadow:0 18px 40px rgba(0,0,0,.16);overflow:hidden;display:none;z-index:1000}
#chatHeader{background:var(--brand);color:#fff;padding:14px 16px;display:flex;justify-content:space-between;align-items:center;gap:12px}
#chatHeader small{display:block;color:#c7d5e6;font-size:12px;margin-top:2px}
#messages{height:390px;overflow-y:auto;padding:14px;background:#f9fbfd}
.msg{margin:8px 0;display:flex}
.msg.user{justify-content:flex-end}
.bubble{max-width:88%;padding:11px 13px;border-radius:16px;font-size:14px;white-space:pre-wrap;word-break:break-word;border:1px solid var(--line);background:#fff}
.msg.user .bubble{background:var(--brand);color:#fff;border-color:var(--brand);border-bottom-right-radius:6px}
.msg.bot .bubble{border-bottom-left-radius:6px}
.option{display:block;width:100%;margin:8px 0;padding:11px 12px;border-radius:14px;border:1px solid var(--line);background:#fff;text-align:left;cursor:pointer;font-size:14px;color:var(--text)}
.option:hover{background:var(--soft)}
.chat-image{display:block;max-width:100%;border-radius:14px;border:1px solid var(--line);margin:8px 0}
#chatInputWrap{border-top:1px solid var(--line);background:#fff;padding:10px}
#inputRow{display:flex;gap:8px}
#userInput{flex:1;border:1px solid var(--line);border-radius:14px;padding:12px 14px;font-size:14px;outline:none}
#sendBtn{min-width:52px;border:none;border-radius:14px;background:var(--brand);color:#fff;cursor:pointer;font-weight:700}
#photoInput{display:none}
.microcopy{font-size:12px;color:var(--muted);margin-top:8px;text-align:center}

.admin-body{font-family:Arial,sans-serif;background:#f5f7fb;margin:0;color:#142033}
.top{background:#0a2540;color:#fff;padding:18px 24px;display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}
.wrap{padding:24px;max-width:1200px;margin:0 auto}
.tabs{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:18px}
.tab{padding:10px 14px;border-radius:12px;border:1px solid #dfe6ef;background:#fff;color:#142033;text-decoration:none}
.tab.active{background:#0a2540;color:#fff;border-color:#0a2540}
.table{width:100%;border-collapse:collapse;background:#fff;border:1px solid #dfe6ef;border-radius:18px;overflow:hidden}
.table th,.table td{padding:12px 10px;border-bottom:1px solid #eef2f7;text-align:left;font-size:14px;vertical-align:top}
.table th{background:#f8fbff}
.badge{display:inline-block;padding:6px 10px;border-radius:999px;background:#eef3f9;border:1px solid #dfe6ef;font-size:12px}
.btn-soft{background:#eef3f9;color:#142033}
.btn-danger{background:#d43c3c;color:#fff}
.actions{display:flex;gap:8px;flex-wrap:wrap}
.empty{background:#fff;border:1px solid #dfe6ef;border-radius:18px;padding:22px;text-align:center;color:#5b677a}
.thumb{max-width:56px;max-height:56px;border-radius:8px;border:1px solid #dfe6ef;display:block}
.info{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.info-box{background:#f8fbff;border:1px solid #dfe6ef;border-radius:14px;padding:12px}
.timeline{display:flex;flex-direction:column;gap:12px}
.item{border:1px solid #dfe6ef;border-radius:14px;padding:12px;background:#fff}
.histimg{max-width:220px;border-radius:12px;border:1px solid #dfe6ef;margin-top:10px}

@media (max-width:900px){.hero,.grid-2,.grid-3,.footer-grid,.trust-grid,.info{grid-template-columns:1fr}.hero h1{font-size:36px}}
@media (max-width:520px){header{padding-top:22px}.section-title{font-size:28px}section{padding:42px 0}#chatBox{right:10px;bottom:78px;width:calc(100vw - 20px)}#chatButton{right:14px;bottom:14px}#chatNotification{right:14px;bottom:80px}}

/* ===== Ajuste seguro do logo e dos selos do topo ===== */
.site-brand{display:flex;align-items:center;gap:16px;min-width:0}
.site-brand a{display:flex;align-items:center;flex:0 0 auto}
.site-logo{display:block;width:auto;height:54px;max-width:245px;object-fit:contain}
.site-brand small{display:block;max-width:260px;font-size:14px;line-height:1.25;color:#dbe9ff}
.pill-row{justify-content:flex-start;align-items:center;max-width:760px}
.pill{white-space:nowrap}
.hero-card .site-logo,.hero-card img[src*="logo"]{display:none!important}
@media (max-width:900px){.topbar{align-items:flex-start}.site-brand{width:100%;justify-content:space-between;gap:12px}.site-logo{height:48px;max-width:220px}.pill-row{justify-content:center}}
@media (max-width:520px){.site-brand{flex-direction:column;align-items:flex-start}.site-logo{height:44px;max-width:205px}.site-brand small{max-width:none}.pill{white-space:normal;text-align:center}}


/* ===== Conversão: diagnóstico primeiro, WhatsApp como opção secundária ===== */
.hero-actions .btn-primary{box-shadow:0 10px 24px rgba(37,211,102,.22)}
.hero-actions .btn-secondary{background:rgba(255,255,255,.04)}
#chatNotification{max-width:260px;line-height:1.35}
#chatNotification strong{color:var(--brand)}
@media (max-width:520px){
  .hero-actions .btn{width:100%}
  #chatNotification{max-width:230px}
}




/* ===== REFINO VISUAL CONTROLADO - Help Notebook ===== */

/* Header: proporcional, en una sola línea desktop */
.topbar,
.site-header,
header .topbar{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:26px !important;
  padding-top:18px !important;
  padding-bottom:18px !important;
  flex-wrap:nowrap !important;
}

.site-brand{
  display:flex !important;
  align-items:center !important;
  gap:28px !important;
  flex:0 0 auto !important;
}

.site-logo{
  height:64px !important;
  width:auto !important;
  max-width:210px !important;
  object-fit:contain !important;
  display:block !important;
}

.brand-location{
  display:flex !important;
  align-items:center !important;
  gap:12px !important;
  color:#fff !important;
  line-height:1.14 !important;
  white-space:nowrap !important;
  min-width:300px !important;
}

.brand-pin{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:34px !important;
  height:34px !important;
  flex:0 0 34px !important;
}

.brand-location-text{
  display:flex !important;
  flex-direction:column !important;
  gap:2px !important;
}

.brand-location-text span{
  font-size:17px !important;
  font-weight:500 !important;
  color:#fff !important;
}

.brand-location-text strong{
  font-size:19px !important;
  font-weight:800 !important;
  color:#fff !important;
}

/* Menú sin bajar */
.main-nav,
nav{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
  gap:24px !important;
  flex:1 1 auto !important;
  margin:0 !important;
  padding:0 !important;
  white-space:nowrap !important;
}

.main-nav a,
nav a{
  font-size:17px !important;
}

/* Hero vuelve a escala normal */
.hero{
  padding-top:56px !important;
}

.hero h1{
  font-size:clamp(42px, 4.4vw, 66px) !important;
  line-height:1.08 !important;
  letter-spacing:-.8px !important;
  max-width:850px !important;
}

.hero p{
  font-size:clamp(18px, 1.5vw, 23px) !important;
  line-height:1.45 !important;
  max-width:820px !important;
}

/* Botones lado a lado */
.hero-actions,
.cta-row,
.actions{
  display:flex !important;
  flex-direction:row !important;
  align-items:center !important;
  gap:18px !important;
  flex-wrap:wrap !important;
  margin-top:28px !important;
}

.hero-actions a,
.cta-row a,
.actions a,
.btn-primary,
.btn-secondary,
.primary-btn,
.secondary-btn{
  display:inline-flex !important;
  flex-direction:row !important;
  align-items:center !important;
  justify-content:center !important;
  gap:14px !important;
  min-height:72px !important;
  padding:13px 26px !important;
  border-radius:14px !important;
  text-decoration:none !important;
  line-height:1.1 !important;
  max-width:none !important;
}

.hero-actions a span:not(.cta-icon),
.cta-row a span:not(.cta-icon),
.actions a span:not(.cta-icon),
.btn-primary span:not(.cta-icon),
.btn-secondary span:not(.cta-icon){
  display:flex !important;
  flex-direction:column !important;
  align-items:flex-start !important;
  gap:5px !important;
}

.hero-actions a strong,
.cta-row a strong,
.actions a strong,
.btn-primary strong,
.btn-secondary strong{
  font-size:20px !important;
  font-weight:800 !important;
  color:inherit !important;
}

.hero-actions a small,
.cta-row a small,
.actions a small,
.btn-primary small,
.btn-secondary small{
  font-size:15px !important;
  opacity:.95 !important;
  color:inherit !important;
}

.cta-icon{
  font-size:28px !important;
  line-height:1 !important;
}

.whatsapp-icon{
  font-size:26px !important;
}

/* Verde principal, WhatsApp secundario */
.btn-primary,
.primary-btn,
.hero-actions a:first-child,
.cta-row a:first-child,
.actions a:first-child{
  background:linear-gradient(135deg,#22c55e,#16a34a) !important;
  color:#fff !important;
  border:0 !important;
  box-shadow:0 16px 34px rgba(34,197,94,.18) !important;
}

.btn-secondary,
.secondary-btn,
.hero-actions a:nth-child(2),
.cta-row a:nth-child(2),
.actions a:nth-child(2){
  background:rgba(255,255,255,.03) !important;
  color:#fff !important;
  border:1px solid rgba(255,255,255,.34) !important;
}

/* Card de diagnóstico: icono y escala como referencia */
.diag-title{
  display:flex !important;
  align-items:center !important;
  gap:20px !important;
  margin-bottom:22px !important;
}

.diag-title h3{
  margin:0 !important;
}

.diag-icon{
  width:60px !important;
  height:60px !important;
  min-width:60px !important;
  border-radius:16px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  font-size:31px !important;
  color:#0d6efd !important;
  border:2px solid rgba(13,110,253,.85) !important;
  background:rgba(13,110,253,.08) !important;
}

/* Globitos ordenados */
.trust-pills,
.badges,
.pills{
  display:flex !important;
  flex-wrap:wrap !important;
  gap:12px 14px !important;
  align-items:center !important;
  justify-content:flex-start !important;
  max-width:820px !important;
}

/* Chat tipo maqueta, sin usar emoji gigante ni globo viejo */
.chat-hint,
.chat-teaser,
.bubble-text{
  display:flex !important;
  align-items:flex-start !important;
  gap:14px !important;
  max-width:380px !important;
  padding:18px 20px !important;
  border-radius:18px !important;
  background:#fff !important;
  color:#0f1f33 !important;
  box-shadow:0 18px 45px rgba(0,0,0,.20) !important;
}

.chat-avatar-mini{
  width:52px !important;
  height:52px !important;
  border-radius:50% !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  background:linear-gradient(135deg,#e8f1ff,#ffffff) !important;
  color:#0d6efd !important;
  font-size:27px !important;
  flex:0 0 52px !important;
  border:1px solid #d7e6ff !important;
}

.chat-hint strong,
.chat-teaser strong,
.bubble-text strong{
  display:block !important;
  margin-bottom:4px !important;
  color:#0f1f33 !important;
}

.chat-start-mini{
  display:block !important;
  width:100% !important;
  margin-top:12px !important;
  padding:10px 14px !important;
  border:0 !important;
  border-radius:10px !important;
  background:#0d6efd !important;
  color:#fff !important;
  font-weight:800 !important;
  cursor:pointer !important;
}

/* Mobile */
@media (max-width: 1180px){
  .site-logo{height:58px !important; max-width:190px !important;}
  .brand-location{min-width:260px !important;}
  .brand-location-text span{font-size:15px !important;}
  .brand-location-text strong{font-size:17px !important;}
  .main-nav, nav{gap:16px !important;}
  .main-nav a, nav a{font-size:15px !important;}
}

@media (max-width: 980px){
  .topbar,
  .site-header,
  header .topbar{
    flex-wrap:wrap !important;
  }
  .main-nav, nav{
    width:100% !important;
    justify-content:flex-start !important;
    overflow-x:auto !important;
  }
}

@media (max-width: 620px){
  .site-brand{
    gap:12px !important;
  }
  .site-logo{
    height:52px !important;
    max-width:170px !important;
  }
  .brand-location{
    min-width:auto !important;
    white-space:normal !important;
  }
  .brand-pin{
    display:none !important;
  }
  .hero-actions a,
  .cta-row a,
  .actions a,
  .btn-primary,
  .btn-secondary{
    width:100% !important;
  }
}


/* ===== FIX FINAL TAMANOS - 18/05 ===== */

/* Header más compacto */
.topbar,
.site-header,
header .topbar{
  padding-top:14px !important;
  padding-bottom:14px !important;
  min-height:auto !important;
}

.site-logo{
  height:58px !important;
  max-width:190px !important;
}

.brand-location-text span{
  font-size:15px !important;
}

.brand-location-text strong{
  font-size:17px !important;
}

.brand-pin{
  width:28px !important;
  height:28px !important;
  flex-basis:28px !important;
}

.brand-pin svg{
  width:28px !important;
  height:28px !important;
}

.main-nav,
nav{
  gap:22px !important;
}

.main-nav a,
nav a{
  font-size:16px !important;
}

/* Hero con escala real, no gigante */
.hero{
  padding-top:44px !important;
  padding-bottom:54px !important;
  align-items:center !important;
}

.hero h1{
  font-size:clamp(38px, 3.45vw, 56px) !important;
  line-height:1.08 !important;
  letter-spacing:-0.6px !important;
  max-width:760px !important;
  margin-bottom:22px !important;
}

.hero p{
  font-size:clamp(17px, 1.25vw, 21px) !important;
  line-height:1.42 !important;
  max-width:780px !important;
}

/* Card derecha más proporcionada */
.diagnostic-card,
.feature-card,
.hero-card,
.card-diagnostico,
.box-diagnostico{
  max-width:520px !important;
  padding:32px !important;
}

.diag-title{
  gap:18px !important;
  margin-bottom:18px !important;
}

.diag-title h3{
  font-size:26px !important;
}

.diag-icon{
  width:54px !important;
  height:54px !important;
  min-width:54px !important;
  font-size:28px !important;
}

.diagnostic-card p,
.feature-card p,
.hero-card p,
.card-diagnostico p,
.box-diagnostico p{
  font-size:20px !important;
  line-height:1.42 !important;
}

.diagnostic-card li,
.feature-card li,
.hero-card li,
.card-diagnostico li,
.box-diagnostico li{
  font-size:18px !important;
  line-height:1.6 !important;
}

/* Botones más compactos y lado a lado */
.hero-actions,
.cta-row,
.actions{
  margin-top:24px !important;
  gap:16px !important;
}

.hero-actions a,
.cta-row a,
.actions a,
.btn-primary,
.btn-secondary,
.primary-btn,
.secondary-btn{
  min-height:64px !important;
  padding:12px 22px !important;
}

.hero-actions a strong,
.cta-row a strong,
.actions a strong,
.btn-primary strong,
.btn-secondary strong{
  font-size:19px !important;
}

.hero-actions a small,
.cta-row a small,
.actions a small,
.btn-primary small,
.btn-secondary small{
  font-size:14px !important;
}

/* Chat menos invasivo */
.chat-hint,
.chat-teaser,
.bubble-text{
  max-width:320px !important;
  padding:14px 16px !important;
  font-size:14px !important;
}

.chat-avatar-mini{
  width:42px !important;
  height:42px !important;
  flex-basis:42px !important;
  font-size:22px !important;
}

.chat-start-mini{
  padding:9px 12px !important;
  font-size:14px !important;
}

/* Ajuste para evitar que el chat tape la tarjeta */
.chat-widget,
.chatbot,
.assistant-widget{
  right:26px !important;
  bottom:26px !important;
}

@media (max-width: 1180px){
  .hero h1{
    font-size:clamp(34px, 4.2vw, 48px) !important;
  }
  .diagnostic-card,
  .feature-card,
  .hero-card,
  .card-diagnostico,
  .box-diagnostico{
    max-width:480px !important;
    padding:28px !important;
  }
}

@media (max-width: 900px){
  .hero h1{
    font-size:40px !important;
  }
  .hero p{
    font-size:18px !important;
  }
}

@media (max-width: 620px){
  .hero h1{
    font-size:34px !important;
  }
  .hero{
    padding-top:30px !important;
  }
}


/* ===== AJUSTE FINAL HEADER + H1 ===== */

/* Logo un poco más grande, sin romper header */
.site-logo{
  height:72px !important;
  max-width:230px !important;
}

/* Menú más compacto para que "Contato" no baje */
.main-nav,
nav{
  gap:15px !important;
  flex-wrap:nowrap !important;
  white-space:nowrap !important;
}

.main-nav a,
nav a{
  font-size:15px !important;
  line-height:1 !important;
}

/* Ubicación compacta para liberar espacio */
.brand-location{
  min-width:245px !important;
  gap:10px !important;
}

.brand-location-text span{
  font-size:14px !important;
}

.brand-location-text strong{
  font-size:16px !important;
}

.brand-pin,
.brand-pin svg{
  width:26px !important;
  height:26px !important;
}

/* H1 menos gigante visualmente: más ancho y tamaño controlado */
.hero h1{
  font-size:clamp(36px, 3.2vw, 52px) !important;
  line-height:1.08 !important;
  max-width:920px !important;
  letter-spacing:-0.5px !important;
}

/* Texto del hero proporcionado */
.hero p{
  max-width:860px !important;
}

/* Mantener los botones lado a lado */
.hero-actions,
.cta-row,
.actions{
  flex-direction:row !important;
  align-items:center !important;
}

/* Chat un poco más abajo y compacto */
.chat-hint,
.chat-teaser,
.bubble-text{
  max-width:305px !important;
}

@media (max-width: 1180px){
  .site-logo{
    height:64px !important;
    max-width:205px !important;
  }
  .main-nav,
  nav{
    gap:12px !important;
  }
  .main-nav a,
  nav a{
    font-size:14px !important;
  }
  .brand-location{
    min-width:220px !important;
  }
}

@media (max-width: 980px){
  .topbar,
  .site-header,
  header .topbar{
    flex-wrap:wrap !important;
  }

  .main-nav,
  nav{
    width:100% !important;
    justify-content:flex-start !important;
    overflow-x:auto !important;
  }
}

@media (max-width: 620px){
  .site-logo{
    height:56px !important;
    max-width:175px !important;
  }

  .hero h1{
    font-size:34px !important;
    max-width:100% !important;
  }
}


/* ===== FIX BOT CHAT - estructura y diseño correcto ===== */

/* Preview del asistente */
#chatNotification{
  position:fixed !important;
  right:24px !important;
  bottom:94px !important;
  width:360px !important;
  max-width:calc(100vw - 32px) !important;
  display:none;
  align-items:flex-start !important;
  gap:14px !important;
  padding:18px 18px !important;
  background:#ffffff !important;
  color:#142033 !important;
  border:1px solid #dfe6ef !important;
  border-radius:18px !important;
  box-shadow:0 18px 45px rgba(0,0,0,.22) !important;
  z-index:998 !important;
  line-height:1.35 !important;
}

#chatNotification .chat-preview-avatar{
  width:52px !important;
  height:52px !important;
  min-width:52px !important;
  border-radius:50% !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  background:linear-gradient(135deg,#e8f1ff,#ffffff) !important;
  border:1px solid #d7e6ff !important;
  font-size:26px !important;
}

#chatNotification .chat-preview-content{
  flex:1 !important;
  min-width:0 !important;
}

#chatNotification strong{
  display:block !important;
  color:#142033 !important;
  margin-bottom:4px !important;
  font-size:16px !important;
}

#chatNotification span{
  display:block !important;
  color:#142033 !important;
  font-size:14px !important;
}

#chatNotification .chat-start-mini{
  display:block !important;
  width:100% !important;
  margin-top:12px !important;
  padding:10px 14px !important;
  border:0 !important;
  border-radius:10px !important;
  background:#0d6efd !important;
  color:#fff !important;
  font-weight:800 !important;
  cursor:pointer !important;
}

/* Caja real del bot: tamaño normal, sin romper layout */
#chatBox{
  position:fixed !important;
  right:24px !important;
  bottom:94px !important;
  width:380px !important;
  max-width:calc(100vw - 32px) !important;
  height:auto !important;
  max-height:calc(100vh - 130px) !important;
  display:none;
  background:#ffffff !important;
  border:1px solid #dfe6ef !important;
  border-radius:20px !important;
  overflow:hidden !important;
  box-shadow:0 18px 45px rgba(0,0,0,.24) !important;
  z-index:1000 !important;
}

/* Header interno del bot */
#chatHeader{
  background:#0a2540 !important;
  color:#fff !important;
  padding:14px 16px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:12px !important;
}

.chat-header-info{
  display:flex !important;
  align-items:center !important;
  gap:10px !important;
  min-width:0 !important;
}

.chat-header-avatar{
  width:38px !important;
  height:38px !important;
  min-width:38px !important;
  border-radius:50% !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  background:#0d6efd !important;
  font-size:20px !important;
}

#chatHeader strong{
  display:block !important;
  color:#fff !important;
  line-height:1.1 !important;
}

#chatHeader small{
  display:block !important;
  color:#c7d5e6 !important;
  font-size:12px !important;
  margin-top:2px !important;
}

#closeChat{
  background:none !important;
  border:none !important;
  color:#fff !important;
  font-size:20px !important;
  cursor:pointer !important;
  line-height:1 !important;
}

#messages{
  height:390px !important;
  max-height:calc(100vh - 270px) !important;
  overflow-y:auto !important;
  padding:14px !important;
  background:#f9fbfd !important;
}

#chatInputWrap{
  border-top:1px solid #dfe6ef !important;
  background:#fff !important;
  padding:10px !important;
}

#inputRow{
  display:flex !important;
  gap:8px !important;
}

#userInput{
  flex:1 !important;
  min-width:0 !important;
}

#chatButton{
  position:fixed !important;
  right:24px !important;
  bottom:24px !important;
  width:58px !important;
  height:58px !important;
  z-index:999 !important;
}

/* En mobile ocupa ancho correcto */
@media (max-width:520px){
  #chatBox{
    right:10px !important;
    bottom:78px !important;
    width:calc(100vw - 20px) !important;
    max-width:calc(100vw - 20px) !important;
  }

  #chatNotification{
    right:10px !important;
    bottom:78px !important;
    width:calc(100vw - 20px) !important;
    max-width:calc(100vw - 20px) !important;
  }

  #chatButton{
    right:14px !important;
    bottom:14px !important;
  }
}


/* ===== AJUSTE CARD DERECHA + GLOBITOS EN LINEA ===== */

/* Sube la tarjeta derecha para alinearla mejor con el H1 */
.hero{
  align-items:flex-start !important;
}

.hero > *:nth-child(2),
.hero-card,
.diagnostic-card,
.card-diagnostico,
.box-diagnostico{
  margin-top:18px !important;
}

/* En desktop, los 4 globitos en una sola línea si hay espacio */
.trust-pills,
.badges,
.pills{
  display:flex !important;
  flex-wrap:nowrap !important;
  gap:12px !important;
  align-items:center !important;
  justify-content:flex-start !important;
  max-width:none !important;
  width:100% !important;
}

.trust-pills span,
.badges span,
.pills span{
  white-space:nowrap !important;
  margin:0 !important;
  flex:0 0 auto !important;
  padding-left:18px !important;
  padding-right:18px !important;
}

/* Ajuste fino para que entren mejor */
.trust-pills span:last-child,
.badges span:last-child,
.pills span:last-child{
  padding-left:18px !important;
  padding-right:18px !important;
}

/* En pantallas medianas o mobile, permitir salto */
@media (max-width: 1180px){
  .trust-pills,
  .badges,
  .pills{
    flex-wrap:wrap !important;
  }
}

/* En mobile mantener todo normal */
@media (max-width: 900px){
  .hero > *:nth-child(2),
  .hero-card,
  .diagnostic-card,
  .card-diagnostico,
  .box-diagnostico{
    margin-top:24px !important;
  }
}





/* ===== FIX FINAL ESTABLE HERO + CARD + GLOBITOS ===== */

/* Hero vuelve a dos columnas estables */
.hero{
  display:grid !important;
  grid-template-columns:minmax(0, 1.55fr) minmax(420px, 0.9fr) !important;
  gap:64px !important;
  align-items:start !important;
}

/* Columna izquierda no debe empujar la derecha */
.hero > *:first-child{
  min-width:0 !important;
  max-width:900px !important;
}

/* H1 controlado y parecido a la maqueta, sin estirar todo */
.hero h1{
  font-size:clamp(38px, 3.25vw, 56px) !important;
  line-height:1.08 !important;
  letter-spacing:-0.6px !important;
  max-width:880px !important;
  margin-bottom:22px !important;
}

/* Párrafo controlado */
.hero p{
  max-width:820px !important;
  font-size:clamp(17px, 1.25vw, 21px) !important;
  line-height:1.45 !important;
}

/* Tarjeta derecha con ancho fijo, no comprimida */
.hero > *:nth-child(2),
.diagnostic-card,
.feature-card,
.hero-card,
.card-diagnostico,
.box-diagnostico{
  width:100% !important;
  max-width:540px !important;
  min-width:420px !important;
  box-sizing:border-box !important;
  margin-top:16px !important;
}

/* Evita que el título de la tarjeta se corte raro */
.diag-title{
  display:flex !important;
  align-items:center !important;
  gap:18px !important;
}

.diag-title h3{
  font-size:26px !important;
  line-height:1.15 !important;
  margin:0 !important;
  white-space:normal !important;
}

/* Globitos: una línea si entra, pero SIN agrandar la columna */
.hn-pills-row,
.trust-pills,
.badges,
.pills{
  display:flex !important;
  flex-direction:row !important;
  flex-wrap:wrap !important;
  gap:12px !important;
  align-items:center !important;
  justify-content:flex-start !important;
  width:100% !important;
  max-width:900px !important;
  margin-top:24px !important;
}

.hn-pills-row > *,
.trust-pills > *,
.badges > *,
.pills > *{
  white-space:nowrap !important;
  flex:0 0 auto !important;
  margin:0 !important;
  font-size:15px !important;
  padding:12px 16px !important;
}

/* En pantallas grandes intentar que entren los 4 */
@media (min-width: 1320px){
  .hn-pills-row,
  .trust-pills,
  .badges,
  .pills{
    flex-wrap:nowrap !important;
  }
}

/* Chat no tapa tanto la tarjeta */
#chatNotification{
  right:20px !important;
  bottom:92px !important;
  width:330px !important;
}

/* Responsive */
@media (max-width: 1180px){
  .hero{
    grid-template-columns:1fr !important;
    gap:32px !important;
  }

  .hero > *:nth-child(2),
  .diagnostic-card,
  .feature-card,
  .hero-card,
  .card-diagnostico,
  .box-diagnostico{
    max-width:620px !important;
    min-width:0 !important;
  }

  .hero h1{
    max-width:900px !important;
  }
}

@media (max-width: 620px){
  .hero{
    display:block !important;
  }

  .hero h1{
    font-size:34px !important;
    max-width:100% !important;
  }

  .hero > *:nth-child(2),
  .diagnostic-card,
  .feature-card,
  .hero-card,
  .card-diagnostico,
  .box-diagnostico{
    min-width:0 !important;
    max-width:100% !important;
  }

  .hn-pills-row,
  .trust-pills,
  .badges,
  .pills{
    flex-wrap:wrap !important;
  }
}


/* ===== AJUSTE FINAL LOGO HEADER DEFINITIVO ===== */
.site-logo,
img.site-logo,
.site-brand .site-logo,
.site-brand img.site-logo{
  height:82px !important;
  max-height:82px !important;
  max-width:260px !important;
  width:auto !important;
  object-fit:contain !important;
}

.site-brand{
  align-items:center !important;
}

@media (max-width: 1180px){
  .site-logo,
  img.site-logo,
  .site-brand .site-logo,
  .site-brand img.site-logo{
    height:70px !important;
    max-height:70px !important;
    max-width:230px !important;
  }
}

@media (max-width: 620px){
  .site-logo,
  img.site-logo,
  .site-brand .site-logo,
  .site-brand img.site-logo{
    height:58px !important;
    max-height:58px !important;
    max-width:190px !important;
  }
}


/* ===== MOBILE FINAL HELP NOTEBOOK ===== */

/* Desktop mantém logo com presença */
.site-logo,
img.site-logo,
.site-brand .site-logo,
.site-brand img.site-logo{
  height:82px !important;
  max-height:82px !important;
  max-width:260px !important;
  width:auto !important;
  object-fit:contain !important;
}

/* Ajuste específico para celular */
@media (max-width: 768px){

  html, body{
    max-width:100% !important;
    overflow-x:hidden !important;
  }

  .container,
  .wrap,
  .page,
  main,
  section{
    max-width:100% !important;
  }

  /* Header mobile: logo e localização centralizados */
  .topbar,
  .site-header,
  header .topbar{
    display:flex !important;
    flex-direction:column !important;
    align-items:center !important;
    justify-content:center !important;
    gap:14px !important;
    padding:24px 18px 12px !important;
  }

  .site-brand{
    display:flex !important;
    flex-direction:column !important;
    align-items:center !important;
    justify-content:center !important;
    gap:14px !important;
    width:100% !important;
    text-align:center !important;
  }

  .site-logo,
  img.site-logo,
  .site-brand .site-logo,
  .site-brand img.site-logo{
    height:82px !important;
    max-height:82px !important;
    max-width:260px !important;
    width:auto !important;
    object-fit:contain !important;
  }

  .brand-location{
    min-width:0 !important;
    width:100% !important;
    max-width:360px !important;
    justify-content:center !important;
    text-align:center !important;
    white-space:normal !important;
    gap:8px !important;
  }

  .brand-pin{
    display:none !important;
  }

  .brand-location-text span{
    font-size:18px !important;
  }

  .brand-location-text strong{
    font-size:22px !important;
  }

  /* Menu mobile sem corte: vira grade compacta */
  .main-nav,
  nav{
    width:100% !important;
    max-width:100% !important;
    display:grid !important;
    grid-template-columns:repeat(3, auto) !important;
    justify-content:center !important;
    align-items:center !important;
    gap:10px 16px !important;
    overflow:visible !important;
    white-space:normal !important;
    margin-top:8px !important;
    padding:0 !important;
  }

  .main-nav a,
  nav a{
    font-size:15px !important;
    line-height:1.1 !important;
    white-space:nowrap !important;
  }

  /* Hero mobile mais curto, CTA aparece antes */
  .hero{
    display:block !important;
    padding:34px 18px 42px !important;
  }

  .hero h1{
    font-size:38px !important;
    line-height:1.08 !important;
    letter-spacing:-0.5px !important;
    max-width:100% !important;
    margin-bottom:18px !important;
  }

  .hero p{
    font-size:18px !important;
    line-height:1.42 !important;
    max-width:100% !important;
    margin-bottom:22px !important;
  }

  .hero-actions,
  .cta-row,
  .actions{
    display:flex !important;
    flex-direction:column !important;
    gap:12px !important;
    width:100% !important;
    margin-top:20px !important;
  }

  .hero-actions a,
  .cta-row a,
  .actions a,
  .btn-primary,
  .btn-secondary,
  .primary-btn,
  .secondary-btn{
    width:100% !important;
    max-width:100% !important;
    min-height:64px !important;
    padding:12px 18px !important;
    box-sizing:border-box !important;
  }

  .hero-actions a strong,
  .cta-row a strong,
  .actions a strong,
  .btn-primary strong,
  .btn-secondary strong{
    font-size:20px !important;
  }

  .hero-actions a small,
  .cta-row a small,
  .actions a small,
  .btn-primary small,
  .btn-secondary small{
    font-size:14px !important;
  }

  /* Globitos mobile ordenados */
  .hn-pills-row,
  .trust-pills,
  .badges,
  .pills{
    display:flex !important;
    flex-wrap:wrap !important;
    justify-content:flex-start !important;
    gap:10px !important;
    max-width:100% !important;
    margin-top:18px !important;
  }

  .hn-pills-row > *,
  .trust-pills > *,
  .badges > *,
  .pills > *{
    font-size:14px !important;
    padding:10px 14px !important;
    white-space:nowrap !important;
  }

  /* Card de diagnóstico embaixo do hero sem deformar */
  .hero > *:nth-child(2),
  .diagnostic-card,
  .feature-card,
  .hero-card,
  .card-diagnostico,
  .box-diagnostico{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    margin-top:28px !important;
    padding:26px 22px !important;
    box-sizing:border-box !important;
  }

  .diag-title h3{
    font-size:24px !important;
  }

  .diagnostic-card p,
  .feature-card p,
  .hero-card p,
  .card-diagnostico p,
  .box-diagnostico p{
    font-size:17px !important;
  }

  .diagnostic-card li,
  .feature-card li,
  .hero-card li,
  .card-diagnostico li,
  .box-diagnostico li{
    font-size:16px !important;
  }

  /* En celular NO mostramos el popup automático porque tapa el H1/CTA */
  #chatNotification{
    display:none !important;
  }

  /* Bot flotante compacto */
  #chatButton{
    right:16px !important;
    bottom:16px !important;
    width:58px !important;
    height:58px !important;
    z-index:9999 !important;
  }

  /* Si el usuario abre el chat, que ocupe bien la pantalla sin romper */
  #chatBox{
    right:10px !important;
    left:10px !important;
    bottom:84px !important;
    width:auto !important;
    max-width:none !important;
    max-height:72vh !important;
    border-radius:18px !important;
    z-index:10000 !important;
  }

  #messages{
    height:42vh !important;
    max-height:42vh !important;
  }
}

/* Celulares muy angostos */
@media (max-width: 430px){
  .main-nav,
  nav{
    grid-template-columns:repeat(2, auto) !important;
    gap:10px 18px !important;
  }

  .hero h1{
    font-size:34px !important;
  }

  .site-logo,
  img.site-logo,
  .site-brand .site-logo,
  .site-brand img.site-logo{
    height:76px !important;
    max-height:76px !important;
    max-width:240px !important;
  }

  .brand-location-text span{
    font-size:17px !important;
  }

  .brand-location-text strong{
    font-size:21px !important;
  }
}


/* ===== MOBILE HAMBURGER MENU FINAL ===== */

.mobile-menu-toggle{
  display:none;
}

@media (max-width: 768px){

  .mobile-menu-toggle{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:48px !important;
    height:48px !important;
    margin:8px auto 0 !important;
    border:1px solid rgba(255,255,255,.35) !important;
    border-radius:12px !important;
    background:rgba(255,255,255,.06) !important;
    color:#fff !important;
    font-size:26px !important;
    font-weight:800 !important;
    cursor:pointer !important;
  }

  /* En mobile el nav queda cerrado por defecto */
  .main-nav,
  nav{
    display:none !important;
    width:100% !important;
    max-width:320px !important;
    margin:10px auto 0 !important;
    padding:12px !important;
    border:1px solid rgba(255,255,255,.16) !important;
    border-radius:16px !important;
    background:rgba(255,255,255,.05) !important;
    box-sizing:border-box !important;
  }

  .main-nav.mobile-open,
  nav.mobile-open{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:4px !important;
  }

  .main-nav a,
  nav a{
    display:block !important;
    width:100% !important;
    padding:12px 14px !important;
    border-radius:10px !important;
    text-align:center !important;
    font-size:17px !important;
    line-height:1.1 !important;
    color:#fff !important;
    text-decoration:none !important;
  }

  .main-nav a:hover,
  nav a:hover{
    background:rgba(255,255,255,.08) !important;
  }

  /* Header más corto en mobile */
  .topbar,
  .site-header,
  header .topbar{
    gap:10px !important;
    padding-bottom:18px !important;
  }

  /* Logo un poco más visible */
  .site-logo,
  img.site-logo,
  .site-brand .site-logo,
  .site-brand img.site-logo{
    height:86px !important;
    max-height:86px !important;
    max-width:270px !important;
  }

  /* H1 algo más compacto para que CTA suba */
  .hero{
    padding-top:26px !important;
  }

  .hero h1{
    font-size:33px !important;
    line-height:1.08 !important;
  }
}

@media (max-width:430px){
  .site-logo,
  img.site-logo,
  .site-brand .site-logo,
  .site-brand img.site-logo{
    height:80px !important;
    max-height:80px !important;
    max-width:250px !important;
  }

  .hero h1{
    font-size:31px !important;
  }
}
