/* Masajes Ultra — UI V2 / Phase 3A */
:root {
  --mu-page-max: 1200px;
  --mu-page-gutter: clamp(24px, 3.2vw, 48px);
  --mu-mobile-gutter: 14px;
  --mu-bg: #f5f3ee;
  --mu-surface: #fff;
  --mu-ink: #071b2a;
  --mu-muted: #667184;
  --mu-blue: #0b6696;
  --mu-blue-deep: #074d75;
  --mu-gold: #c99749;
  --mu-border: rgba(7,27,42,.09);
  --mu-radius-lg: 22px;
  --mu-shadow-soft: 0 14px 36px rgba(7,27,42,.055);
  --mu-mobile-nav-height: 68px;
}
html { scroll-padding-top: 86px; }
body { background: var(--mu-bg); }
.layout--public, .layout--public .layout__main, .layout--public .content { width: 100%; min-width: 0; }

.container, .container--wide {
  width: min(calc(100% - (var(--mu-page-gutter) * 2)), var(--mu-page-max));
  max-width: var(--mu-page-max);
  margin-left: auto; margin-right: auto;
}
.container--narrow {
  width: min(calc(100% - (var(--mu-page-gutter) * 2)), 900px);
  max-width: 900px; margin-left: auto; margin-right: auto;
}
.servicesPage, .bookingPage, .customerAccountPage, .customerReschedulePage,
.contactPage, .aboutPage, .siteSection.benefitsPage {
  width: min(calc(100% - (var(--mu-page-gutter) * 2)), var(--mu-page-max));
  max-width: var(--mu-page-max); margin-left: auto; margin-right: auto;
}
.muSurface { background: var(--mu-surface); border: 1px solid var(--mu-border); border-radius: var(--mu-radius-lg); box-shadow: var(--mu-shadow-soft); }
.muMobileNav, .muMobileSheet { display: none; }

@media (min-width: 901px) {
  .site-header { min-height: 76px; }
  .site-header__inner, .site-header__inner--premium {
    width: min(calc(100% - (var(--mu-page-gutter) * 2)), var(--mu-page-max));
    max-width: var(--mu-page-max); min-height: 76px; margin: 0 auto;
    padding-left: 0; padding-right: 0; gap: 22px;
  }
  .site-header__logoImg { width: 42px; height: 42px; }
  .site-header__brand { gap: 11px; flex: 0 0 auto; }
  .site-header__title { font-size: 17px; line-height: 1.05; }
  .site-header__subtitle { margin-top: 3px; font-size: 10.5px; line-height: 1.2; }
  .site-header__nav { gap: 3px; margin-left: auto; }
  .site-header__navLink { min-height: 38px; padding: 0 12px; font-size: 13px; }
  .site-header__actions { gap: 9px; margin-left: 8px; }
  .site-header__link, .site-header__cta { min-height: 40px; padding: 0 16px; font-size: 13px; }
  .site-header__menu { display: none; }
  .siteFooter__inner, .siteFooter__bottom {
    width: min(calc(100% - (var(--mu-page-gutter) * 2)), var(--mu-page-max));
    max-width: var(--mu-page-max); margin-left: auto; margin-right: auto;
  }
}

@media (max-width: 900px) {
  :root { --mu-page-gutter: var(--mu-mobile-gutter); }
  html { scroll-padding-top: 62px; }
  body { padding-bottom: calc(var(--mu-mobile-nav-height) + env(safe-area-inset-bottom, 0px)); }
  body.mu-sheet-open { overflow: hidden; }

  .layout--public > .layout__sidebar, .layout--public > .sidebarBackdrop { display: none !important; }

  .container, .container--wide, .container--narrow,
  .servicesPage, .bookingPage, .customerAccountPage, .customerReschedulePage,
  .contactPage, .aboutPage, .siteSection.benefitsPage {
    width: calc(100% - (var(--mu-mobile-gutter) * 2)); max-width: none;
    margin-left: auto; margin-right: auto;
  }

  .site-header { min-height: 58px; height: 58px; }
  .site-header__inner, .site-header__inner--premium {
    min-height: 58px; height: 58px; width: 100%; max-width: none;
    padding: 0 var(--mu-mobile-gutter); gap: 8px;
  }
  .site-header__menu { display: none !important; }
  .site-header__brand { min-width: 0; gap: 7px; }
  .site-header__logoImg { width: 28px; height: 28px; flex: 0 0 28px; }
  .site-header__text { min-width: 0; }
  .site-header__title { display: block; max-width: 128px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; line-height: 1.1; }
  .site-header__subtitle, .site-header__nav, .site-header__link { display: none !important; }
  .site-header__actions { margin-left: auto; }
  .site-header__cta { min-height: 32px; padding: 0 11px; border-radius: 999px; font-size: 10px; white-space: nowrap; box-shadow: none; }

  .muMobileNav {
    position: fixed; z-index: 1200; left: 8px; right: 8px;
    bottom: calc(7px + env(safe-area-inset-bottom, 0px));
    display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); align-items: end;
    min-height: var(--mu-mobile-nav-height); padding: 7px 5px 6px;
    border: 1px solid var(--mu-border); border-radius: 20px;
    background: rgba(255,255,255,.96); box-shadow: 0 14px 36px rgba(7,27,42,.14);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  }
  .muMobileNav__item {
    appearance: none; border: 0; background: transparent; color: var(--mu-muted);
    text-decoration: none; cursor: pointer; min-width: 0; min-height: 52px;
    padding: 4px 2px 2px; display: flex; flex-direction: column; align-items: center;
    justify-content: flex-end; gap: 3px; border-radius: 13px;
    font: inherit; font-size: 9px; font-weight: 700; line-height: 1;
  }
  .muMobileNav__item.is-active, .muMobileNav__item--primary { color: var(--mu-blue-deep); }
  .muMobileNav__icon { width: 20px; height: 20px; display: grid; place-items: center; }
  .muMobileNav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .muMobileNav__primaryIcon {
    width: 38px; height: 38px; margin-top: -15px; display: grid; place-items: center;
    border-radius: 14px; background: linear-gradient(145deg,#0c6fa4,#07547e);
    color: #fff; box-shadow: 0 8px 18px rgba(7,84,126,.24);
  }
  .muMobileNav__primaryIcon svg { width: 19px; height: 19px; }

  .muMobileSheet { position: fixed; z-index: 1300; inset: 0; display: block; pointer-events: none; visibility: hidden; }
  .muMobileSheet.is-open { pointer-events: auto; visibility: visible; }
  .muMobileSheet__backdrop { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(4,17,28,.44); opacity: 0; transition: opacity .22s ease; }
  .muMobileSheet.is-open .muMobileSheet__backdrop { opacity: 1; }
  .muMobileSheet__panel {
    position: absolute; left: 8px; right: 8px; bottom: calc(7px + env(safe-area-inset-bottom,0px));
    max-height: min(76vh,620px); overflow-y: auto; padding: 9px 14px 18px;
    border: 1px solid var(--mu-border); border-radius: 24px; background: #fff;
    box-shadow: 0 24px 70px rgba(4,17,28,.24);
    transform: translateY(calc(100% + 20px)); transition: transform .24s cubic-bezier(.2,.8,.2,1);
  }
  .muMobileSheet.is-open .muMobileSheet__panel { transform: translateY(0); }
  .muMobileSheet__handle { width: 40px; height: 4px; margin: 0 auto 13px; border-radius: 999px; background: #d8dde2; }
  .muMobileSheet__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 2px 2px 12px; }
  .muMobileSheet__head span { display: block; margin-bottom: 3px; color: var(--mu-gold); font-size: 9px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
  .muMobileSheet__head h2 { margin: 0; color: var(--mu-ink); font-size: 24px; line-height: 1; }
  .muMobileSheet__close { width: 34px; height: 34px; border: 1px solid var(--mu-border); border-radius: 50%; background: #f7f8f8; color: var(--mu-ink); font-size: 22px; cursor: pointer; }
  .muMobileSheet__links { display: grid; }
  .muMobileSheet__links a { min-height: 50px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid #edf0f2; color: var(--mu-ink); text-decoration: none; font-size: 13px; font-weight: 750; }
  .muMobileSheet__links a > span:last-child { color: #83909d; }
  .muMobileSheet__divider { height: 10px; margin: 0 -14px; border-top: 1px solid #edf0f2; border-bottom: 1px solid #edf0f2; background: #f7f7f5; }
  .muMobileSheet__logout { min-height: 44px; margin-top: 12px; display: flex; align-items: center; justify-content: center; border-radius: 13px; background: #f7f8f8; color: #8b3540; text-decoration: none; font-size: 12px; font-weight: 800; }

  .siteFooter { margin-top: 34px; }
  .siteFooter__inner { width: calc(100% - (var(--mu-mobile-gutter) * 2)); display: block; padding: 26px 0 18px; }
  .siteFooter__brand { margin-bottom: 18px; }
  .siteFooter__brand p { max-width: 320px; }
  .siteFooter__col { display: none !important; }
  .siteFooter__bottom { width: calc(100% - (var(--mu-mobile-gutter) * 2)); min-height: 46px; padding: 10px 0 12px; display: flex; flex-wrap: wrap; gap: 4px 12px; }
  .siteFooter__bottom span:last-child { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .muMobileSheet__panel, .muMobileSheet__backdrop { transition: none; }
}


/* Phase 3B: mobile public header uses the bottom navigation as primary CTA. */
@media (max-width: 900px) {
    .site-header__cta {
        display: none !important;
    }
}

/* Phase 3C: stronger centered brand in the mobile app header. */
@media (max-width: 900px) {
  .site-header__logoImg {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .site-header__title {
    font-size: 15px;
  }
}

/* Phase 3C.1: global mobile header + footer shell fix. */

.muFooterMobile {
    display: none;
}

@media (max-width: 900px) {
    .site-header__inner,
    .site-header__inner--premium {
        position: relative;
        justify-content: center;
    }

    .site-header__brand {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: max-content;
        max-width: calc(100% - 28px);
        margin: 0;
        gap: 9px;
        justify-content: center;
    }

    .site-header__logoImg {
        width: 36px;
        height: 36px;
        flex: 0 0 36px;
    }

    .site-header__title {
        max-width: none;
        overflow: visible;
        text-overflow: clip;
        font-size: 15px;
        font-weight: 900;
        letter-spacing: -.025em;
    }

    .site-header__subtitle,
    .site-header__actions {
        display: none !important;
    }

    .siteFooter__desktop {
        display: none !important;
    }

    .siteFooter {
        width: calc(100% - (var(--mu-mobile-gutter) * 2));
        margin: 12px auto 14px;
        padding: 0;
        background: transparent;
        border: 0;
    }

    .muFooterMobile {
        display: block;
        padding: 17px 16px 15px;
        border: 1px solid var(--mu-border);
        border-radius: 18px;
        background: #fff;
        box-shadow: none;
    }

    .muFooterMobile__brand {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .muFooterMobile__brand img {
        width: 36px;
        height: 36px;
        object-fit: contain;
        flex: 0 0 36px;
    }

    .muFooterMobile__brand div {
        min-width: 0;
        display: grid;
        gap: 2px;
    }

    .muFooterMobile__brand strong {
        color: var(--mu-ink);
        font-size: 14px;
        font-weight: 900;
        line-height: 1.1;
    }

    .muFooterMobile__brand span {
        color: #7b8794;
        font-size: 8.5px;
        font-weight: 700;
    }

    .muFooterMobile__copy {
        margin: 11px 0 12px;
        max-width: 290px;
        color: #647184;
        font-size: 9.5px;
        line-height: 1.45;
    }

    .muFooterMobile__links {
        display: flex;
        flex-wrap: wrap;
        gap: 7px 14px;
        padding: 11px 0;
        border-top: 1px solid #edf0f2;
        border-bottom: 1px solid #edf0f2;
    }

    .muFooterMobile__links a {
        color: #0b5f8e;
        text-decoration: none;
        font-size: 9px;
        font-weight: 800;
    }

    .muFooterMobile__meta {
        padding-top: 10px;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 5px 12px;
        color: #89939f;
        font-size: 8px;
        line-height: 1.35;
    }
}

@media (max-width: 390px) {
    .site-header__logoImg {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }

    .site-header__title {
        font-size: 14px;
    }

    .muFooterMobile {
        padding-left: 14px;
        padding-right: 14px;
    }
}

/* =========================================================
   PHASE 3G.2 — shared public modal extracted from legacy CSS
   ========================================================= */

.bookingBlockedOverlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  padding: 24px;
  background: rgba(0, 16, 40, .48);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
}

.bookingBlockedOverlay.is-hidden {
  display: none;
}

.bookingBlockedModal {
  position: relative;
  width: min(100%, 520px);
  padding: 30px;
  border: 1px solid rgba(7, 27, 42, .08);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(0, 16, 40, .20);
  text-align: center;
}

.bookingBlockedModal__close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f2f5f6;
  color: #64748b;
  display: grid;
  place-items: center;
  font: inherit;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.bookingBlockedModal__icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 15px;
  border-radius: 16px;
  background: #fff3e9;
  color: #b95324;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 900;
}

.bookingBlockedModal__icon--success {
  background: #e9f7ef;
  color: #16784a;
}

.bookingBlockedModal__eyebrow {
  display: block;
  margin-bottom: 8px;
  color: #a87430;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.bookingBlockedModal h2 {
  margin: 0 0 9px;
  color: var(--mu-ink);
  font-size: 25px;
  line-height: 1.05;
  letter-spacing: -.035em;
}

.bookingBlockedModal p {
  max-width: 420px;
  margin: 0 auto;
  color: #687587;
  font-size: 10.5px;
  line-height: 1.5;
}

.bookingBlockedModal__button {
  min-height: 38px;
  margin-top: 19px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: #0a6596;
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-size: 9px;
  font-weight: 850;
  cursor: pointer;
}

@media (max-width: 900px) {
  .bookingBlockedOverlay {
    padding: 14px;
  }

  .bookingBlockedModal {
    padding: 25px 16px 18px;
    border-radius: 18px;
  }

  .bookingBlockedModal__close {
    top: 10px;
    right: 10px;
    width: 31px;
    height: 31px;
    font-size: 18px;
  }

  .bookingBlockedModal__icon {
    width: 46px;
    height: 46px;
    margin-bottom: 12px;
    border-radius: 14px;
    font-size: 17px;
  }

  .bookingBlockedModal h2 {
    font-size: 20px;
  }

  .bookingBlockedModal p {
    font-size: 9px;
  }

  .bookingBlockedModal__button {
    width: 100%;
    min-height: 35px;
    margin-top: 15px;
    font-size: 8.5px;
  }
}
