/* Morteros Acota V68 — navegación editorial premium, uniforme en Inicio,
   interiores y documentos legales. La cascada sustituye V67 (no se carga). */
:root{
 --ac68-ink:#113647;--ac68-blue:#0878ad;--ac68-line:#dfebef;
 --ac68-soft:#f4f9fb;--ac68-ease:cubic-bezier(.2,.75,.24,1);
 --ac68-shadow:0 20px 55px rgba(5,37,54,.14);
}
.ac-service{background:#102f40!important;color:#edf7fb!important;border-bottom:1px solid rgba(255,255,255,.10)}
.ac-service-inner{min-height:37px}
/* Los interiores V65 traían una barra gris con reglas !important: igualamos la identidad. */
body:has(main.ac56-page) .ac-service{background:#102f40!important;min-height:37px!important}
body:has(main.ac56-page) .ac-service-inner{min-height:37px!important}
body:has(main.ac56-page) .ac-service-phone,body:has(main.ac56-page) .ac-service-message{font-size:12.5px!important}
.ac-service a{font-size:12.5px;font-weight:550;letter-spacing:.008em;text-decoration:none}
.ac-service-message{padding:3px 0;opacity:.94;transition:opacity .22s ease}
.ac-service-message:hover{opacity:1;text-decoration:underline;text-underline-offset:4px}
.ac-header,.ac-header.ac31-compact{
 background:rgba(255,255,255,.988)!important;border-bottom:1px solid #e1e9ed!important;
 box-shadow:0 9px 27px rgba(7,40,56,.065)!important;
}
.ac-header-inner{min-height:88px!important;gap:clamp(20px,2.7vw,45px)!important}
.ac-logo{width:165px!important;flex:none}
.ac-logo img{width:100%!important;max-height:70px!important;height:auto!important;object-fit:contain}
.ac-nav{margin-left:auto}
.ac-nav-root{display:flex;align-items:center;gap:clamp(18px,2.6vw,36px)}
.ac-nav-root>li{position:relative;display:flex;align-items:center;list-style:none}
.ac-header .ac-nav-root>li>a:not(.ac-nav-budget),.ac-header .ac-dropdown-toggle{
 display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:52px;padding:0 2px!important;
 border:0;background:transparent;text-decoration:none;cursor:pointer;
 color:var(--ac68-ink);font:700 14px/1.22 system-ui,-apple-system,"Segoe UI",Arial,sans-serif;
 letter-spacing:-.016em;text-transform:none;
 transition:color .22s ease!important;
}
.ac-header .ac-nav-root>li>a:not(.ac-nav-budget):hover,.ac-header .ac-dropdown-toggle:hover,
.ac-header .ac-nav-root>li>a.is-current,.ac-header .ac-dropdown-toggle.is-current{color:var(--ac68-blue)}
.ac-header .ac-nav-root>li>a:not(.ac-nav-budget)::after,.ac-header .ac-dropdown-toggle::after{
 content:"";position:absolute;left:2px!important;right:2px!important;bottom:0!important;height:2px!important;
 background:#0878ad!important;border-radius:1px!important;transform:scaleX(0);transform-origin:center;
 transition:transform .28s var(--ac68-ease)!important;
}
.ac-header .ac-nav-root>li>a:not(.ac-nav-budget):is(:hover,:focus-visible,.is-current)::after,
.ac-header .ac-dropdown-toggle:is(:hover,:focus-visible,.is-current)::after,
.ac-header .ac-nav-parent.is-open .ac-dropdown-toggle::after{transform:scaleX(1)}
.ac-chevron{width:7px;height:7px;margin:0 0 3px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);transition:transform .25s var(--ac68-ease)}
.ac-nav-parent.is-open .ac-chevron{transform:translateY(3px) rotate(225deg)}
/* Botón serio y nítido, sin apariencia de cápsula ni ornamentación de más. */
.ac-header .ac-nav-root .ac-nav-budget{
 min-height:46px;display:inline-flex;align-items:center;justify-content:center;margin:0;padding:0 20px!important;
 color:#fff!important;font-size:13px;font-weight:750;letter-spacing:-.005em;
 background:#086d9e!important;border:1px solid #086d9e!important;border-radius:6px!important;
 box-shadow:0 9px 21px rgba(4,82,121,.15)!important;
 transition:background .2s ease,box-shadow .2s ease,transform .2s var(--ac68-ease)!important;
}
.ac-header .ac-nav-budget::after{display:none!important}
.ac-header .ac-nav-root .ac-nav-budget:hover,.ac-header .ac-nav-root .ac-nav-budget.is-current{
 background:#064f75!important;border-color:#064f75!important;box-shadow:0 14px 27px rgba(4,76,110,.22)!important;
 transform:translateY(-1px);
}
/* El panel queda unido geométricamente al desencadenante. Sin distancia entre
   ambas zonas de clic ni animación que haga pasar el puntero por un hueco. */
.ac-header .ac-nav-parent .ac-submenu{
 position:absolute;z-index:190;top:100%;right:-68px;left:auto;transform:none;
 width:668px;min-width:0;margin:0;padding:15px 17px 18px;
 display:none;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;
 background:#fff;border:1px solid #dbe8ed!important;border-top:2px solid #0a84b9!important;
 border-radius:0 0 12px 12px;box-shadow:var(--ac68-shadow)!important;
}
.ac-header .ac-nav-parent .ac-submenu::before{
 content:"";position:absolute;top:0;left:0;right:0;height:18px;pointer-events:none;
 background:linear-gradient(to bottom,rgba(11,76,108,.025),transparent);
}
@keyframes ac68-panel-in{from{opacity:.35}to{opacity:1}}
/* Fallback sin JS; con JS solo el estado explícito gobierna la visibilidad. */
.ac-header .ac-nav-parent:is(:hover,:focus-within,.is-open) .ac-submenu{display:grid}
html.ac-nav-enhanced .ac-header .ac-nav-parent .ac-submenu{display:none}
html.ac-nav-enhanced .ac-header .ac-nav-parent.is-open .ac-submenu{display:grid;animation:ac68-panel-in .15s ease-out both}
.ac-header .ac-submenu-card{
 display:flex;position:relative;min-height:126px;min-width:0;padding:16px 19px!important;
 justify-content:center;align-items:center;border:0!important;border-radius:0!important;
 background:transparent!important;box-shadow:none!important;text-decoration:none!important;
 transform:none!important;overflow:hidden;transition:background .22s ease!important;
}
.ac-header .ac-submenu-card:not(:last-child)::before{
 content:"";position:absolute;top:22px;bottom:22px;right:0;width:1px;background:#e1ebef;
}
.ac-header .ac-submenu-card::after{
 content:"";position:absolute;bottom:0;left:18%;right:18%;height:2px;background:#0878ad;
 opacity:0;transform:scaleX(.6);transition:transform .25s var(--ac68-ease),opacity .25s ease;
}
.ac-header .ac-submenu-card:is(:hover,:focus-visible,.is-current){background:linear-gradient(180deg,#f8fbfd,#eef7fa)!important}
.ac-header .ac-submenu-card:is(:hover,:focus-visible,.is-current)::after{opacity:1;transform:scaleX(1)}
.ac-header .ac-submenu-mark{width:100%;min-height:76px;display:flex;align-items:center;justify-content:center}
.ac-header .ac-submenu-mark img{
 display:block;max-width:175px;max-height:75px;width:auto;height:auto;object-fit:contain;
 transition:transform .30s var(--ac68-ease),filter .30s ease!important;
}
.ac-header .ac-submenu-card:hover img{transform:scale(1.045);filter:contrast(1.05)}
.ac-header :is(a,button):focus-visible{outline:3px solid #0878ad!important;outline-offset:4px!important}
.ac-menu-button{
 width:49px;height:49px;display:none;align-items:center;justify-content:center;gap:5px;
 background:#fff;border:1px solid #d5e5eb;border-radius:7px;
 box-shadow:0 5px 14px rgba(6,55,76,.06);
}
.ac-menu-button span{height:2px;width:23px;margin:0;border-radius:2px;background:var(--ac68-ink)}
/* Punto de ruptura único: coincide con el JavaScript. */
@media(max-width:900px){
 .ac-header-inner{min-height:77px!important;gap:12px!important}
 .ac-logo{width:149px!important}
 .ac-menu-button{display:flex!important;flex-direction:column;flex:none;margin-left:auto}
 .ac-nav{
  display:none!important;position:absolute;left:12px;right:12px;top:calc(100% - 1px);
  max-height:calc(100dvh - 110px);overflow:auto;overscroll-behavior:contain;
  margin:0;padding:14px 19px 20px!important;background:#fff;border:1px solid var(--ac68-line);
  border-radius:0 0 10px 10px;box-shadow:var(--ac68-shadow)!important;z-index:200;
 }
 .ac-nav.is-open{display:block!important}
 .ac-nav-root{display:flex;flex-direction:column;align-items:stretch;gap:0}
 .ac-nav-root>li{display:block}
 .ac-header .ac-nav-root>li>a:not(.ac-nav-budget),.ac-header .ac-dropdown-toggle{
  width:100%;min-height:57px;justify-content:space-between;display:flex;
  padding:0 3px!important;font-size:16px;letter-spacing:-.015em;
  border-bottom:1px solid #e8eef1;
 }
 .ac-header .ac-nav-root>li>a::after,.ac-header .ac-dropdown-toggle::after{display:none!important}
 .ac-header .ac-nav-root .ac-nav-budget{min-height:52px;width:100%;margin-top:14px;border-radius:6px!important}
 .ac-header .ac-nav-parent .ac-submenu{
  position:static;width:100%;min-width:0;margin:9px 0 13px;padding:0!important;transform:none;
  display:none;grid-template-columns:1fr;gap:0;border:1px solid #dfe9ed!important;border-top:1px solid #dfe9ed!important;
  border-radius:7px;background:#fbfdfe;box-shadow:none!important;
 }
 .ac-header .ac-nav-parent:is(:hover,:focus-within) .ac-submenu{display:none}
 .ac-header .ac-nav-parent.is-open .ac-submenu{display:grid}
 html.ac-nav-enhanced .ac-header .ac-nav-parent .ac-submenu{display:none}
 html.ac-nav-enhanced .ac-header .ac-nav-parent.is-open .ac-submenu{display:grid;animation:ac68-panel-in .15s ease-out both}
 .ac-header .ac-submenu-card{
  min-height:75px;padding:10px 17px!important;justify-content:center;
 }
 .ac-header .ac-submenu-card:not(:last-child)::before{top:auto;bottom:0;left:15px;right:15px;width:auto;height:1px}
 .ac-header .ac-submenu-card::after{left:25%;right:25%}
 .ac-header .ac-submenu-mark{min-height:54px}
 .ac-header .ac-submenu-mark img{max-height:52px;max-width:174px}
 .ac-chevron{margin:0 4px 4px 0}
}
@media(max-width:540px){
 .ac-service-inner{min-height:32px;gap:10px}
 .ac-service-phone{font-size:11px!important;line-height:1.3;max-width:calc(100% - 70px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .ac-service .ac-hours-separator,.ac-service .ac-service-hours{display:none}
 body:has(main.ac56-page) .ac-service-phone,body:has(main.ac56-page) .ac-service-message{font-size:11px!important}
 .ac-service-message{font-size:11px!important}
 .ac-header-inner{min-height:72px!important}
 .ac-logo{width:137px!important}
 .ac-header .ac-submenu-card{min-height:70px}
 .ac-nav{left:9px;right:9px}
}
@media(prefers-reduced-motion:reduce){
 .ac-header :is(a,button,img),.ac-submenu,.ac-submenu-card::after,.ac-chevron{transition:none!important;animation:none!important}
}

/* V81 fix: on legal pages the interior/home-only SVG size rules were not enqueued.
   Keep the service bar compact on EVERY page, including WordPress native pages. */
.ac-service .ac-service-phone{display:inline-flex!important;align-items:center!important;gap:8px!important;line-height:1.35!important}
.ac-service .ac-service-icon{display:inline-block!important;flex:0 0 16px!important;width:16px!important;min-width:16px!important;max-width:16px!important;height:16px!important;min-height:16px!important;max-height:16px!important;vertical-align:middle!important;color:#d9eef9!important}
.ac-service .ac-service-inner{min-height:37px!important;align-items:center!important}
@media(max-width:700px){.ac-service .ac-service-icon{flex-basis:14px!important;width:14px!important;min-width:14px!important;max-width:14px!important;height:14px!important;min-height:14px!important;max-height:14px!important}}
