/* BAK Care V375 · Ayuda persistente, Lucide, una acción por viewport. */
.bak-help375-desktop,.bak-help375-mobile{
 box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:8px;
 min-height:44px;padding:10px 9px;background:transparent;border:0;
 font:600 13px/1.3 -apple-system,BlinkMacSystemFont,"SF Pro Display",Arial,sans-serif;
 color:#d5d7dd;white-space:nowrap;cursor:pointer;text-decoration:none;
}
.bak-help375-desktop svg,.bak-help375-mobile svg{
 width:18px;height:18px;display:block;flex:none;stroke-width:1.7;
}
.bak-help375-desktop:hover,.bak-help375-desktop:focus-visible{color:#fff;}
.bak-help375-desktop:focus-visible,.bak-help375-mobile:focus-visible{
 outline:2px solid #9cc7f9;outline-offset:2px;border-radius:8px;}
.bak-help375-mobile{display:none;}
/* Home mantiene la cabecera original; los otros dos portales quedan fijos.
   En Profesionales, el encabezado utiliza el mismo fondo que el portal:
   la antigua capa gris con blur formaba un rectángulo perceptible. */
.shell>header:has(>.bak-help375-desktop){
 position:sticky;top:0;z-index:70;
 background:rgba(12,12,13,.96);backdrop-filter:blur(14px);
}
.worker-header320:has(>.bak-help375-desktop){
 position:sticky;top:0;z-index:70;
 background:#09090a;backdrop-filter:none;
}
body.worker-auth-open334 .worker-header320:has(>.bak-help375-desktop){
 background:#050505;
}
.shell>header>.bak-help375-desktop{order:3;}
.worker-header320>.bak-help375-desktop{order:4;}
.bak-help375-dialog{
 box-sizing:border-box;position:fixed;inset:auto 20px auto auto;
 top:74px;max-width:min(445px,calc(100vw - 32px));width:445px;
 max-height:calc(100dvh - 94px);overflow:auto;overscroll-behavior:contain;
 margin:0;padding:26px 27px 24px;border:1px solid #3e3f44;
 border-radius:18px;background:#18191b;color:#f5f5f7;
 box-shadow:0 24px 80px rgba(0,0,0,.55);
 font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display",Arial,sans-serif;
}
.bak-help375-dialog::backdrop{background:rgba(0,0,0,.54);}
.bak-help375-head{display:flex;align-items:flex-start;justify-content:space-between;
 gap:16px;padding-bottom:17px;margin-bottom:19px;border-bottom:1px solid #383940;}
.bak-help375-head>div{min-width:0;}
.bak-help375-eyebrow{margin:0 0 12px;font-size:10px;line-height:1.3;
 letter-spacing:.08em;color:#a9afb8;font-weight:650;}
.bak-help375-head h2{margin:0 0 9px;font-size:clamp(22px,3vw,26px);line-height:1.15;
 font-weight:690;letter-spacing:-.045em;}
.bak-help375-description{margin:0;font-size:13px;line-height:1.6;color:#bfc3cb;}
.bak-help375-close{display:grid;place-items:center;flex:0 0 36px;
 width:36px;height:36px;border:0;border-radius:50%;background:transparent;
 color:#c0c3cb;cursor:pointer;}
.bak-help375-close svg{width:20px;height:20px;}
.bak-help375-close:hover{background:#2c2e32;}
.bak-help375-form{display:grid;gap:16px;margin:0;}
.bak-help375-form label{display:grid;gap:8px;color:#e1e2e6;
 font-size:13px;line-height:1.45;font-weight:610;}
.bak-help375-form label[hidden]{display:none!important;}
.bak-help375-form input:not([name="website"]),.bak-help375-form select,.bak-help375-form textarea{
 box-sizing:border-box;width:100%;max-width:100%;min-width:0;min-height:45px;
 padding:12px 13px;margin:0;border:1px solid #494a51;border-radius:10px;
 background:#232428;color:#f4f4f6;
 font:400 14px/1.5 -apple-system,BlinkMacSystemFont,"SF Pro Display",Arial,sans-serif;
 box-shadow:none;outline:none;}
.bak-help375-form textarea{min-height:112px;resize:vertical;}
.bak-help375-form input:focus-visible,.bak-help375-form select:focus-visible,
.bak-help375-form textarea:focus-visible{outline:2px solid #9bc5f7;outline-offset:2px;}
.bak-help375-context{margin:0;color:#a7c8df;font-size:12px;line-height:1.4;font-weight:560;}
.bak-help375-trap{position:absolute!important;left:-10000px!important;
 width:1px!important;height:1px!important;overflow:hidden!important;pointer-events:none;}
.bak-help375-hint{margin:0;font-size:12px;line-height:1.65;color:#a9abb4;}
.bak-help375-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:0;}
.bak-help375-send,.bak-help375-cancel{
 min-height:44px;padding:11px 18px;border-radius:999px!important;cursor:pointer;
 font:650 13px/1.3 -apple-system,BlinkMacSystemFont,"SF Pro Display",Arial,sans-serif;}
.bak-help375-send{display:flex;align-items:center;gap:9px;border:1px solid #f3f3f5;
 background:#f3f3f5;color:#19191d;}
.bak-help375-send svg{width:16px;height:16px;}
.bak-help375-cancel{border:1px solid #4b4c54;background:transparent;color:#d5d6dc;}
.bak-help375-send:disabled,.bak-help375-cancel:disabled{opacity:.55;cursor:not-allowed;}
.bak-help375-feedback{margin:0;color:#d4dbe1;font-size:13px;line-height:1.55;}
.bak-help375-feedback:empty{display:none;}
.bak-help375-dialog button:focus-visible{outline:2px solid #9bc5f7;outline-offset:2px;}
@media(max-width:760px){
 .bak-help375-desktop{display:none!important;}
 .bak-help375-mobile{
  position:fixed;right:clamp(14px,4vw,22px);bottom:calc(env(safe-area-inset-bottom,0px) + 18px);
  display:inline-flex;z-index:85;min-height:46px;padding:12px 16px;
  color:#18191b;background:#f4f4f6;border:1px solid #f4f4f6;border-radius:999px;
  font-size:13px;font-weight:680;box-shadow:0 5px 24px rgba(0,0,0,.32);
 }
 .bak-help375-mobile svg{width:19px;height:19px;}
 .bak-help375-dialog{
  inset:auto 0 0 0;top:auto;left:0;right:0;bottom:0;margin:0;
  width:100%;max-width:100%;max-height:min(90dvh,850px);
  padding:23px 22px calc(env(safe-area-inset-bottom,0px) + 22px);
  border:1px solid #414247;border-bottom:0;
  border-radius:22px 22px 0 0;
 }
 .bak-help375-form input:not([name="website"]),.bak-help375-form select,
 .bak-help375-form textarea{font-size:16px;}
 .bak-help375-head{margin-bottom:16px;padding-bottom:15px;}
 .bak-help375-form{gap:14px;}
 body.bak-menu-open188 .bak-help375-mobile{visibility:hidden;pointer-events:none;}
 body:has(.bak-help375-dialog[open]) .bak-help375-mobile{visibility:hidden;}
 /* Los controles fijos nunca deben tapar el botón de envío cuando se edita. */
}
@media(min-width:761px){.bak-help375-mobile{display:none!important;}}
@media(prefers-reduced-motion:reduce){.bak-help375-mobile{transition:none;}}

/* Pantallas medianas: no comprimir la cabecera pública aprobada. */
@media(min-width:761px) and (max-width:1050px){
 body:has(.topbar) .top-actions>.bak-help375-desktop{display:none!important;}
 body:has(.topbar) .bak-help375-mobile{
  position:fixed;right:18px;bottom:20px;display:inline-flex!important;z-index:85;
  min-height:46px;padding:11px 17px;border:1px solid #f4f4f6;
  border-radius:999px;background:#f4f4f6;color:#19191c;
  box-shadow:0 5px 24px rgba(0,0,0,.32);
 }
 body.bak-menu-open188 .bak-help375-mobile{visibility:hidden;pointer-events:none;}
}
@media(min-width:1051px){
 .topbar .top-actions>.bak-help375-desktop{margin-right:7px;}
}

/* Tablet profesional: conservar espacio para navegación y acciones, sin desbordes. */
@media(min-width:761px) and (max-width:980px){
 body:has(.worker-header320) .bak-help375-desktop{display:none!important;}
 body:has(.worker-header320) .bak-help375-mobile{
  position:fixed;right:18px;bottom:20px;display:inline-flex!important;
  z-index:85;min-height:46px;padding:11px 17px;
  color:#19191c;background:#f4f4f6;border:1px solid #f4f4f6;
  border-radius:999px;box-shadow:0 5px 24px rgba(0,0,0,.32);
 }
}

/* Historial compacto, visible solo con una cuenta autenticada. */
.bak-help375-history:empty{display:none!important;}
.bak-help375-prior{border:1px solid #414349;border-radius:10px;
 background:transparent;padding:0;margin:0;}
.bak-help375-prior>summary{list-style:none;cursor:pointer;
 padding:13px 14px;min-height:44px;display:flex;align-items:center;
 font-size:12px;font-weight:620;color:#c5d0da;}
.bak-help375-prior>summary::-webkit-details-marker{display:none;}
.bak-help375-prior-list{border-top:1px solid #414349;padding:0 14px;}
.bak-help375-prior-item{padding:12px 0;border-bottom:1px solid #383940;}
.bak-help375-prior-item:last-child{border:0;}
.bak-help375-prior-item strong{font-size:12px;font-weight:630;color:#d2dce6;}
.bak-help375-prior-item p{font-size:12px;line-height:1.55;white-space:pre-wrap;
 overflow-wrap:anywhere;color:#d4d6dc;margin:6px 0 0;}
.bak-help375-prior-item .bak-help375-prior-answer{padding-left:11px;
 border-left:2px solid #91b5cf;color:#c8d9e6;margin-top:10px;}
