/* Five service shortcuts, with room for the device's bottom safe area. */
.mpf-mobile-nav { display:none; }
@media (max-width:800px) {
 .mpf-has-mobile-nav { --mpf-mobile-nav-height:calc(76px + env(safe-area-inset-bottom,0px)); padding-bottom:var(--mpf-mobile-nav-height); }
 .mpf-mobile-nav { position:fixed; inset:auto 0 0; z-index:9999; display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); height:var(--mpf-mobile-nav-height); box-sizing:border-box; padding:6px 8px calc(6px + env(safe-area-inset-bottom,0px)); border-top:1px solid var(--wp--preset--color--border,#ded9d3); background:var(--wp--preset--color--surface,#fffdfa); box-shadow:0 -5px 20px rgb(40 40 40 / .06); }
 .mpf-mobile-nav-item { position:relative; min-width:0; min-height:48px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; margin:0; padding:4px; border:0; border-radius:8px; background:transparent; color:var(--wp--preset--color--muted,#626970); font:500 .75rem/1.2 var(--wp--preset--font-family--body); text-align:center; text-decoration:none; cursor:pointer; -webkit-tap-highlight-color:transparent; }
 .mpf-mobile-nav-icon { width:24px; height:24px; flex:none; stroke-width:1.75; }
 .mpf-mobile-nav-item span { max-width:100%; min-width:0; min-height:2.4em; display:flex; align-items:center; overflow-wrap:anywhere; hyphens:auto; font-size:clamp(.625rem,2.75vw,.75rem); }
 .mpf-mobile-nav-item span.mpf-mobile-nav-assistant-label { display:block; white-space:nowrap; overflow-wrap:normal; hyphens:none; }
 .mpf-mobile-nav-item span.mpf-mobile-nav-assistant-logo { display:block; width:24px; height:24px; min-height:0; flex:none; background:currentColor; mask:url('images/assistant-brand.svg') center/contain no-repeat; }
 .mpf-mobile-nav-item:hover, .mpf-mobile-nav-item:active { background:#edf3f7; color:var(--wp--preset--color--link,#245d8f); }
 .mpf-mobile-nav-item[aria-current], .mpf-mobile-nav-item[aria-expanded="true"] { color:var(--wp--preset--color--link,#245d8f); background:#edf3f7; font-weight:700; }
 .mpf-mobile-nav-item:focus-visible { outline:3px solid var(--wp--preset--color--link,#245d8f); outline-offset:-3px; }
 .mpf-mobile-nav [hidden] { display:none; }
 .mpf-has-mobile-nav .mpf-sde-assistant-launcher { display:none; }
 /* The chat fills the available screen while shortcuts remain reachable. */
 .mpf-has-mobile-nav .mpf-sde-assistant-popover { inset:var(--mpf-chat-top,0px) 0 auto; z-index:100000; width:100%; height:calc(var(--mpf-chat-height,100dvh) - var(--mpf-mobile-nav-height)); }
 .mpf-has-mobile-nav .mpf-sde-assistant-popover > .mpf-sde-assistant { height:100%; }
 .mpf-has-mobile-nav .mpf-sde-assistant-popover .mpf-sde-assistant__panel { height:100%; box-sizing:border-box; border:0; border-radius:0; background:var(--wp--preset--color--surface,#fffdfa); box-shadow:none; }
 .mpf-has-mobile-nav .mpf-sde-assistant-popover .mpf-sde-assistant__panel > header { padding-top:calc(.75rem + env(safe-area-inset-top,0px)); padding-bottom:.75rem; }
 .mpf-has-mobile-nav .mpf-sde-assistant-popover .mpf-sde-assistant__close { width:44px; height:44px; flex:none; }
 .mpf-has-mobile-nav .mpf-sde-assistant-popover textarea { font-size:16px; }
 html.mpf-mobile-chat-open { overflow:hidden; }
 body.mpf-mobile-chat-open { position:fixed; top:var(--mpf-chat-scroll-top); left:0; width:100%; overflow:hidden; }
 .mpf-mobile-chat-open .mpf-mobile-nav { top:calc(var(--mpf-chat-top,0px) + var(--mpf-chat-height,100dvh) - var(--mpf-mobile-nav-height)); bottom:auto; }
 .mpf-has-mobile-nav :is(#noticias,#fiscales-de-turno,#circunscripciones) { scroll-margin-bottom:var(--mpf-mobile-nav-height); }
}
@media (max-width:800px) {
 .mpf-mobile-header { position:sticky; top:var(--mpf-mobile-header-offset,0px); z-index:9998; background:var(--wp--preset--color--canvas,#f7f4ef); transition:transform .2s ease,visibility 0s; }
 .mpf-mobile-header.is-scroll-hidden { transform:translateY(calc(-100% - var(--mpf-mobile-header-offset,0px) - 1px)); visibility:hidden; transition:transform .2s ease,visibility 0s .2s; }
 .mpf-mobile-header .mpf-sde-site-header { background:var(--wp--preset--color--canvas,#f7f4ef); }
 .mpf-has-mobile-nav main [id] { scroll-margin-top:calc(var(--mpf-mobile-header-height,74px) + 16px); }
}
@media (prefers-reduced-motion:reduce) { .mpf-mobile-header, .mpf-mobile-header.is-scroll-hidden { transition:none; } }
@media print { .mpf-mobile-header { position:static; transform:none!important; visibility:visible!important; } }
@media print { .mpf-mobile-nav { display:none; } .mpf-has-mobile-nav { padding-bottom:0; } }

@media(max-width:800px) {
 .mpf-mobile-header.is-over-hero { position:relative; top:auto; transform:none; visibility:visible; transition:none; }
}
