/* Shared Totumo mobile navigation. No desktop header overrides. */
.totumo-mobile-only,.totumo-mobile-actions,.totumo-mobile-panel { display:none }
#contacto .contact-form-frame {
  --totumo-form-radius:clamp(20px,3vw,30px);
  border-radius:var(--totumo-form-radius);
  overflow:hidden;
  background:#fff;
  box-shadow:0 18px 34px -12px rgba(42,32,0,.26),0 3px 8px rgba(42,32,0,.12);
}
#contacto .contact-form-frame > iframe { border-radius:0 0 var(--totumo-form-radius) var(--totumo-form-radius)!important; }
@media(max-width:820px) {
  html {scroll-padding-top:72px}
  html:has(header[data-totumo-mobile]),body:has(header[data-totumo-mobile]) { overflow-x:clip; }

  header[data-totumo-mobile] {
    position:sticky; top:0; inset-inline:0; z-index:50; width:100%; min-height:64px; height:68px;
    background:#fff; color:#151515; display:flex; flex-direction:row; flex-wrap:nowrap; justify-content:space-between; align-items:center;
    box-sizing:border-box; gap:7px; padding:0 max(12px,env(safe-area-inset-right)) 0 max(12px,env(safe-area-inset-left));
    overflow:visible; border-bottom:1px solid #e7e7e5;
  }
  header[data-totumo-mobile] > a:first-child {min-width:0;flex:0 1 auto;display:flex;align-items:center;justify-content:flex-start;align-self:center}
  header[data-totumo-mobile] > a:first-child img { width:clamp(72px,23vw,112px);height:auto;display:block }
  header[data-totumo-mobile] > nav {display:none}
  header[data-totumo-mobile] .header-actions,header[data-totumo-mobile] .totumo-mobile-actions {
    display:flex; gap:5px; align-items:center; flex:0 0 auto; margin-left:auto;
  }
  header[data-totumo-mobile] :is(.language-toggle,.header-cta,.whatsapp-cta,.totumo-menu-toggle) {
    display:inline-flex; flex:none; box-sizing:border-box; align-items:center; justify-content:center;
    height:44px; min-height:44px; min-width:44px; padding:0; border:1px solid #171717; border-radius:6px;
    font:750 11px/1 system-ui,sans-serif; letter-spacing:.065em; white-space:nowrap; text-transform:uppercase; text-decoration:none;
  }
  header[data-totumo-mobile] .language-toggle {background:#fff;color:#171717}
  header[data-totumo-mobile] .header-cta {background:#171717;color:#fff;padding-inline:9px}
  header[data-totumo-mobile] .header-cta span {display:none}
  header[data-totumo-mobile] .whatsapp-cta {background:#171717;color:#fff;width:44px}
  header[data-totumo-mobile] .whatsapp-cta img {width:20px;height:20px;object-fit:contain;filter:invert(85%) sepia(97%) saturate(1441%) hue-rotate(359deg) brightness(102%) contrast(104%)}
  header[data-totumo-mobile] .totumo-menu-toggle {background:#ffda00;color:#161616;border-color:#ffda00;cursor:pointer}
  .totumo-menu-toggle svg {pointer-events:none;position:absolute}
  .totumo-menu-toggle[aria-expanded="false"] .totumo-close-icon,.totumo-menu-toggle[aria-expanded="true"] .totumo-open-icon {display:none}
  header[data-totumo-mobile] .totumo-mobile-panel:not([hidden]) {
    display:block; position:absolute; z-index:2; top:100%; inset-inline:0; padding:14px max(16px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));
    background:#fff; color:#171717; border-top:1px solid #eceae5; border-bottom:1px solid #e7e7e5;
    box-shadow:0 16px 30px #16161620; max-height:calc(100vh - 68px); max-height:calc(100dvh - 68px);
    overflow:auto; overscroll-behavior:contain;
  }
  .totumo-mobile-panel :is(a,summary) {display:flex;align-items:center;min-height:44px;padding:.55rem .4rem; border-bottom:1px solid #ececec;text-decoration:none;font:650 15px/1.25 system-ui,sans-serif}
  .totumo-mobile-panel summary {cursor:pointer;justify-content:space-between;list-style:none}
  .totumo-mobile-panel summary::-webkit-details-marker {display:none}
  .totumo-mobile-panel summary::after {content:"+";font-size:18px}
  .totumo-mobile-panel details[open] summary::after {content:"−"}
  .totumo-mobile-panel .totumo-menu-services {padding-left:12px}
  .totumo-mobile-panel .totumo-menu-services a {font-weight:500;font-size:14px}
  .totumo-mobile-panel a[aria-current="page"] {text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:4px}
  header[data-totumo-mobile] :is(a,button,summary):focus-visible {outline:2px solid #181818;outline-offset:2px}
}
@media(max-width:355px) {
  header[data-totumo-mobile] {padding-inline:9px;gap:4px}
  header[data-totumo-mobile] .header-actions,header[data-totumo-mobile] .totumo-mobile-actions {gap:4px}
  header[data-totumo-mobile] :is(.language-toggle,.whatsapp-cta,.totumo-menu-toggle) {min-width:39px;width:39px}
  header[data-totumo-mobile] .header-cta {padding-inline:6px;letter-spacing:.04em;font-size:10.5px}
}
