/* Services live in the footer. Home modules remain only as a directory anchor. */
#community-services{display:none!important}
.site-footer .footer-inner{display:flex;flex-direction:column;align-items:stretch;gap:18px}
.footer-services{display:flex;align-items:center;justify-content:center;gap:8px;padding-bottom:16px;border-bottom:1px solid #d4e1e5;width:100%}
.footer-services a{font:inherit;font-size:14px;font-weight:400;color:#164d64;background:#fff;border:1px solid #cadce2;border-radius:10px;padding:12px 20px;min-height:44px;cursor:pointer}
.footer-services a:hover{background:#e6f1f5}
.footer-services a:focus-visible{outline:2px solid #167ab5;outline-offset:3px}
dialog.footer-service-dialog{padding:0;border:1px solid #d5e1e5;border-radius:18px;width:min(980px,calc(100% - 32px));max-width:calc(100% - 32px);height:min(840px,calc(100dvh - 40px));max-height:calc(100dvh - 40px);overflow:hidden;background:#fff;color:#123345}
dialog.footer-service-dialog[open]{display:flex;flex-direction:column}
.footer-service-dialog::backdrop{background:#08263299;backdrop-filter:blur(3px)}
.footer-service-head{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:14px 20px;border-bottom:1px solid #dae5e8;flex-shrink:0}
.footer-service-head h2{font:400 23px/1.25 'Roboto',Arial,sans-serif;margin:0}
.footer-service-head button{display:grid;place-items:center;width:44px;height:44px;flex:none;border:0;border-radius:50%;background:#edf4f6;color:#16465b;cursor:pointer}
.footer-service-content{flex:1;min-height:0}.footer-service-content iframe{display:block;width:100%;height:100%;border:0;background:#fff}
.service-modal-document body.fixed-header-layout{padding-top:0!important}
.service-modal-document body>header,.service-modal-document #site-footer,.service-modal-document #site-preloader,.service-modal-document .assistant-toggle,.service-modal-document #homeRefreshStatus{display:none!important}
.service-modal-document #app{padding-top:0!important;margin-top:0!important;max-width:100%;width:100%;box-sizing:border-box}
.service-modal-document #app>section>a:first-child,.service-modal-document .page-intro>a,.service-modal-document .bus-back,.service-modal-document .page-back{display:none!important}
.service-modal-document .page-intro{margin-top:0!important}
@media(max-width:650px){.footer-services{gap:7px}.footer-services a{flex:1;padding:11px 7px;font-size:13px}dialog.footer-service-dialog{width:calc(100% - 16px);max-width:calc(100% - 16px);height:calc(var(--chivi-visible-height,100dvh) - 24px);max-height:calc(var(--chivi-visible-height,100dvh) - 24px);border-radius:14px}.footer-service-head{padding:10px 14px}.footer-service-head h2{font-size:21px}}
#nav>a[href="/farmacias"],#nav>a[href="/sepelios"],#nav>a[href="/colectivos"],#headerMenu a[href="/farmacias"],#headerMenu a[href="/sepelios"],#headerMenu a[href="/colectivos"]{display:none!important}
.service-modal-document #app a[href="/"]{display:none!important}

/* Persistent bottom navigation, independent of the page footer. */
body{padding-bottom:calc(54px + env(safe-area-inset-bottom,0px))!important}
.footer-services{position:fixed;left:0;right:0;bottom:0;z-index:80;box-sizing:border-box;display:flex;flex-wrap:nowrap;justify-content:center;gap:6px;margin:0;padding:4px max(12px,env(safe-area-inset-right,0px)) calc(4px + env(safe-area-inset-bottom,0px));border:0;border-top:1px solid #d7e2df;background:#fffdf7;box-shadow:0 -4px 22px #1233450d}
.footer-services a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;flex:1;max-width:170px;min-height:44px;padding:3px 10px;border:0;border-radius:12px;background:transparent;color:#285464;font-size:11px;line-height:1.2;font-weight:400;touch-action:manipulation}
.footer-services a:hover,.footer-services a:active{background:#eaf2ef;color:#17685a}
.footer-services svg{flex-shrink:0;width:20px;height:20px}
.service-modal-document body{padding-bottom:0!important}.service-modal-document .footer-services{display:none!important}
/* One uninterrupted horizontal strip of premium cards. */
.guide-featured-rail,.guide-featured--home .guide-featured-rail,.guide-featured--search .guide-featured-rail{display:flex;flex-wrap:nowrap;justify-content:safe center;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scroll-padding-inline:1px;gap:14px;padding-bottom:5px;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}
.guide-featured-card,.guide-featured--home .guide-featured-card,.guide-featured--search .guide-featured-card{flex:0 0 calc((100% - 28px)/3);max-width:none;min-width:0;scroll-snap-align:center}
@media(max-width:650px){.guide-featured-rail,.guide-featured--home .guide-featured-rail,.guide-featured--search .guide-featured-rail{justify-content:flex-start;gap:10px}.guide-featured-card,.guide-featured--home .guide-featured-card,.guide-featured--search .guide-featured-card{flex:0 0 46%}}
/* Keep directory contact actions in the reading flow above the persistent navigation. */
.premium-contactbar{position:static;bottom:auto;margin-top:8px;box-shadow:none}
.premium-profile{min-width:0;overflow-wrap:anywhere}
.premium-hero-copy{box-sizing:border-box;min-width:0;width:100%}
.premium-hero-copy h1{overflow-wrap:anywhere;text-wrap:balance}
.premium-primary-actions>a,.premium-contactbar>a{box-sizing:border-box;min-width:0}
@media(max-width:650px){
 .premium-profile{padding-top:6px;padding-bottom:16px}
 .premium-breadcrumb{gap:18px;padding:6px 0 10px!important}
 .premium-demo-notice{font-size:10px;line-height:1.45;padding:8px 11px;margin-bottom:10px}
 .premium-hero{min-height:230px;min-height:clamp(220px,32svh,280px);border-radius:12px}
 .premium-hero-copy{padding:20px 18px}
 .premium-hero-copy h1{font-size:clamp(26px,7.4vw,34px)!important;line-height:1.12;letter-spacing:-.6px}
 .premium-hero-copy .premium-eyebrow{font-size:9px;letter-spacing:.07em}
 .premium-hero-copy>p{font-size:12px;line-height:1.4;margin:9px 0}
 .premium-hero-copy .premium-tagline{font-size:15px;margin:11px 0 0;line-height:1.4}
 .premium-photo-note{font-size:9px;margin:6px 2px 12px}
 .premium-content{gap:18px;padding:6px 2px 18px}
 .premium-content h2{font-size:23px;margin:9px 0}
 .premium-content p{font-size:14px;line-height:1.6}
 .premium-primary-actions{margin-top:16px}
 .premium-contactbar{position:static;bottom:auto;padding:12px;gap:10px;margin-top:8px}
 .premium-bottom-note{padding:12px 2px 0;font-size:11px}
}
/* Shorter service dialogs keep the surrounding page visible. */
dialog.footer-service-dialog{height:70vh;height:min(640px,70svh);max-height:calc(100vh - 40px);max-height:calc(var(--chivi-visible-height,100dvh) - 40px)}
@media(max-width:650px){dialog.footer-service-dialog{height:68vh;height:calc(var(--chivi-visible-height,100svh) * .68);max-height:560px}.footer-service-head{padding:8px 14px}.footer-service-head h2{font-size:20px}}

.footer-services a{text-decoration:none;box-sizing:border-box}

/* Business details keep contact actions unobstructed. */
body.business-detail-page{padding-bottom:0!important}
.business-detail-page>.footer-services{display:none!important}
