.mobile-contact { display: none; }
@media (max-width: 768px) {
  html body.has-mobile-contact {
    padding-bottom: calc(65px + env(safe-area-inset-bottom, 0px)) !important;
  }
  html body .mobile-contact {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    position: fixed !important;
    top: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100%;
    height: auto;
    margin: 0 !important;
    transform: none !important;
    z-index: 2000;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    border: 0;
    border-top: 1px solid rgba(24, 59, 95, .1);
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 -4px 20px rgba(15, 37, 64, .1);
  }
  html body .mobile-contact.with-booking { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  html body .mobile-contact a {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 0;
    min-height: 44px;
    padding: 10px 6px;
    border-radius: 12px;
    background: #eaf3f7;
    color: #183b5f;
    font: 700 14px/20px 'Catamaran', Arial, sans-serif;
    text-decoration: none;
    white-space: nowrap;
  }
  html body .mobile-contact .mobile-contact-wa { background: #183b5f; color: #fff; }
  html body .mobile-contact .mobile-contact-booking { background: #f3b6a1; color: #183b5f; }
  html body .mobile-contact svg { width: 18px; height: 18px; flex: 0 0 18px; }
  html body .mobile-contact a:focus-visible { outline: 3px solid #94c0d4; outline-offset: 2px; }
  html body.has-mobile-contact #back_to_top {
    bottom: calc(83px + env(safe-area-inset-bottom, 0px)) !important;
  }
  html body.has-mobile-contact .wa-float { display: none !important; }
  /* Las landings con menú superior de contacto (Llámanos / WhatsApp) no repiten la barra inferior. */
  html body:has(.landing-contact-nav) .mobile-contact { display: none !important; }
  html body.has-mobile-contact:has(.landing-contact-nav) { padding-bottom: 0 !important; }
  html body.has-mobile-contact:has(.landing-contact-nav) #back_to_top { bottom: calc(20px + env(safe-area-inset-bottom, 0px)) !important; }
  /* Give consent and form input priority over the persistent contact actions. */
  body:has(.pbr-cc-banner, .pbr-cc-overlay) .mobile-contact,
  body:has(input:not([type='checkbox']):not([type='radio']):not([type='submit']):focus, textarea:focus, select:focus) .mobile-contact {
    visibility: hidden;
    pointer-events: none;
  }
}
@media (max-width: 360px) {
  html body .mobile-contact.with-booking a { font-size: 13px; gap: 5px; }
}
