/* Apariencia común de acciones del sitio. Última hoja de estilos. */
html#legasist-site body :is(.dash-btn,.tool-btn,.calendar-btn,.audio-btn,.button,.btn,.law-btn,.contact-action,.copy-btn,.formula-apply,.login-button,.submit,.btn-enviar,.record-circle,button,input[type="submit"],input[type="button"],input[type="reset"],[role="button"],a[class*="-btn"],a[class~="btn"],a[class*="button"],a.contact-action,a.sidebar-action,a.professional-access-link,a.back-link,a.cancel,a.secondary,a.action-card,a.ai-shortcut,a.mini-danger,a.tab,a.payment-tab,summary.fee-partial-summary){
 background:#1257a6!important;background-image:none!important;
 color:#fff!important;-webkit-text-fill-color:#fff!important;
 border-color:#1257a6!important;border-radius:12px!important;
 font-weight:700!important;text-decoration:none!important;
 text-shadow:none!important;box-shadow:none!important;opacity:1!important;filter:none!important;
}
html#legasist-site body :is(.dash-btn,.tool-btn,.calendar-btn,.audio-btn,.button,.btn,.law-btn,.contact-action,.copy-btn,.formula-apply,.login-button,.submit,.btn-enviar,.record-circle,button,input[type="submit"],input[type="button"],input[type="reset"],[role="button"],a[class*="-btn"],a[class~="btn"],a[class*="button"],a.contact-action,a.sidebar-action,a.professional-access-link,a.back-link,a.cancel,a.secondary,a.action-card,a.ai-shortcut,a.mini-danger,a.tab,a.payment-tab,summary.fee-partial-summary) :is(span,b,strong,small,i,svg,label,em,p,h2,h3){color:#fff!important;-webkit-text-fill-color:#fff!important;text-shadow:none!important}
html#legasist-site body :is(.dash-btn,.tool-btn,.calendar-btn,.audio-btn,.button,.btn,.law-btn,.contact-action,.copy-btn,.formula-apply,.login-button,.submit,.btn-enviar,.record-circle,button,input[type="submit"],input[type="button"],input[type="reset"],[role="button"],a[class*="-btn"],a[class~="btn"],a[class*="button"],a.contact-action,a.sidebar-action,a.professional-access-link,a.back-link,a.cancel,a.secondary,a.action-card,a.ai-shortcut,a.mini-danger,a.tab,a.payment-tab,summary.fee-partial-summary):hover{background:#0d478b!important;border-color:#0d478b!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
html#legasist-site body :is(.dash-btn,.tool-btn,.calendar-btn,.audio-btn,.button,.btn,.law-btn,.contact-action,.copy-btn,.formula-apply,.login-button,.submit,.btn-enviar,.record-circle,button,input[type="submit"],input[type="button"],input[type="reset"],[role="button"],a[class*="-btn"],a[class~="btn"],a[class*="button"],a.contact-action,a.sidebar-action,a.professional-access-link,a.back-link,a.cancel,a.secondary,a.action-card,a.ai-shortcut,a.mini-danger,a.tab,a.payment-tab,summary.fee-partial-summary):focus-visible{outline:3px solid #e0a829!important;outline-offset:3px!important}
html#legasist-site body :is(.dash-btn,.tool-btn,.calendar-btn,.audio-btn,.button,.btn,.law-btn,.contact-action,.copy-btn,.formula-apply,.login-button,.submit,.btn-enviar,.record-circle,button,input[type="submit"],input[type="button"],input[type="reset"],[role="button"],a[class*="-btn"],a[class~="btn"],a[class*="button"],a.contact-action,a.sidebar-action,a.professional-access-link,a.back-link,a.cancel,a.secondary,a.action-card,a.ai-shortcut,a.mini-danger,a.tab,a.payment-tab,summary.fee-partial-summary):is(:disabled,[aria-disabled="true"],.disabled,[style*="not-allowed"]){opacity:1!important;background:#1257a6!important;border-color:#1257a6!important;border-style:dashed!important;color:#fff!important;-webkit-text-fill-color:#fff!important;cursor:not-allowed!important}
/* Estado seleccionado distinguible en controles conmutables. */
html#legasist-site body :is(.dash-btn,.tool-btn,.calendar-btn,.audio-btn,.button,.btn,.law-btn,.contact-action,.copy-btn,.formula-apply,.login-button,.submit,.btn-enviar,.record-circle,button,input[type="submit"],input[type="button"],input[type="reset"],[role="button"],a[class*="-btn"],a[class~="btn"],a[class*="button"],a.contact-action,a.sidebar-action,a.professional-access-link,a.back-link,a.cancel,a.secondary,a.action-card,a.ai-shortcut,a.mini-danger,a.tab,a.payment-tab,summary.fee-partial-summary):is(.selected,.active,[aria-pressed="true"],[aria-selected="true"]){box-shadow:inset 0 0 0 2px #fff!important;outline:2px solid #1257a6;outline-offset:1px}
/* Contacto: se conservan las excepciones solicitadas en todos los temas. */
html#legasist-site body :is(a.contact-action.whatsapp,a.support-whatsapp),
html#legasist-site body #contactar a.contact-action.whatsapp{background:#127b5b!important;background-image:none!important;border-color:#127b5b!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
html#legasist-site body a.contact-action.email,
html#legasist-site body #contactar a.contact-action.email{background:#7039ab!important;background-image:none!important;border-color:#7039ab!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
html#legasist-site body :is(a.contact-action.whatsapp,a.support-whatsapp):hover,
html#legasist-site body #contactar a.contact-action.whatsapp:hover{background:#0e6349!important;border-color:#0e6349!important}
html#legasist-site body a.contact-action.email:hover,
html#legasist-site body #contactar a.contact-action.email:hover{background:#592c8b!important;border-color:#592c8b!important}
html#legasist-site body :is(a.contact-action.whatsapp,a.contact-action.email,a.support-whatsapp) :is(span,b,strong,small,i,svg){color:#fff!important;-webkit-text-fill-color:#fff!important}
/* Marca más visible sin recuadro, conservando su proporción. */
html#legasist-site body img[src$="legasist-logo-blue.png"]{
 width:260px!important;height:auto!important;max-width:100%!important;
 object-fit:contain!important;display:block!important;
 background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;
}
html#legasist-site body :is(.brand--logo,.law-brand,.dash-brand--logo,.tool-brand--logo,.footer-logo--image,.recover-brand){background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;flex-shrink:0}
html#legasist-site body :is(.dash-sidebar,.tool-sidebar) img[src$="legasist-logo-blue.png"]{width:230px!important;filter:brightness(0) invert(1)!important}
html#legasist-site body :is(.dash-brand--logo,.tool-brand--logo){min-height:86px!important;padding:8px 4px!important}
html#legasist-site body .recover-brand{width:260px!important;height:auto!important;position:static!important;padding:0!important;margin:0 auto 24px!important}
html#legasist-site body .topbar__inner,html#legasist-site body .law-topbar__inner{min-height:98px}
@media(max-width:760px){
 html#legasist-site body img[src$="legasist-logo-blue.png"]{width:210px!important}
 html#legasist-site body :is(.dash-sidebar,.tool-sidebar) img[src$="legasist-logo-blue.png"]{width:210px!important}
 html#legasist-site body :is(.dash-brand--logo,.tool-brand--logo){min-height:78px!important;padding:8px 18px!important}
 html#legasist-site body .recover-brand{width:210px!important}
 html#legasist-site body .topbar__inner,html#legasist-site body .law-topbar__inner{min-height:86px}
}
@media(max-width:380px){html#legasist-site body img[src$="legasist-logo-blue.png"]{width:185px!important}}

/* Logotipo con contraste según la superficie real de navegación. */
html#legasist-site body img[src$="legasist-logo-blue.png"]{filter:none!important}
html#legasist-site[data-theme="royal-dark"] body img[src$="legasist-logo-blue.png"]{filter:brightness(0) invert(1)!important}
html#legasist-site body :is(.topbar,.law-topbar,.dash-sidebar,.tool-sidebar,.tool-topbar) img[src$="legasist-logo-blue.png"]{filter:brightness(0) invert(1)!important}
html#legasist-site body a:is(.cancel,.back-link,.professional-access-link,.mini-button){display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 16px}
