/**
 * Bimedi system fixes.
 *
 * Loaded after the landing, legal and global header styles. This file keeps
 * the Theme Builder shell consistent on every page and neutralizes Divi
 * module-level values that were overriding the design system.
 */

/* ==========================================================
   1. Shared shell tokens
   ========================================================== */
body:not(.et-fb) .et-l--header,
body:not(.et-fb) .et-l--footer {
  --bimedi-bone: #fbf7f1;
  --bimedi-peach: #db7f67;
  --bimedi-peach-hover: #cd6f58;
  --bimedi-violet: #210124;
  --bimedi-violet-deep: #170119;
  --bimedi-charcoal: #2b2528;
  --bimedi-aqua: #7bcfe0;
  --bimedi-container: 1180px;
  --bimedi-radius-small: 4px;
}

/* ==========================================================
   2. Theme Builder header: one layout on every page
   ========================================================== */
body:not(.et-fb) .et-l--header .bimedi-navbar__row.et_pb_row {
  display: grid !important;
  width: min(var(--bimedi-container), calc(100% - 44px)) !important;
  max-width: var(--bimedi-container) !important;
  min-height: 76px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(24px, 4vw, 58px);
  margin: 0 auto !important;
  padding: 0 !important;
  transform: none !important;
  transform-origin: center !important;
}

html.bimedi-header-scrolled body:not(.et-fb) .et-l--header .bimedi-navbar__row.et_pb_row {
  transform: none !important;
}

body:not(.et-fb) .et-l--header .bimedi-navbar__row > .et_pb_column {
  width: auto !important;
  min-width: 0;
  float: none !important;
  margin: 0 !important;
}

body:not(.et-fb) .et-l--header .bimedi-header-brand-col {
  grid-column: 1;
  justify-self: start;
}

body:not(.et-fb) .et-l--header .bimedi-header-nav-col {
  grid-column: 2;
  justify-self: stretch;
}

body:not(.et-fb) .et-l--header .bimedi-header-actions-col {
  display: flex !important;
  width: auto !important;
  grid-column: 3;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin: 0 !important;
}

body:not(.et-fb) .et-l--header .bimedi-header-logo,
body:not(.et-fb) .et-l--header .bimedi-header-logo a {
  display: inline-flex !important;
  align-items: center;
  margin: 0 !important;
}

body:not(.et-fb) .et-l--header .bimedi-header-logo img {
  width: auto !important;
  max-width: 174px !important;
  max-height: 44px !important;
}

body:not(.et-fb) .et-l--header .bimedi-header-nav,
body:not(.et-fb) .et-l--header .bimedi-header-nav .et_pb_menu_inner_container,
body:not(.et-fb) .et-l--header .bimedi-header-nav .et_pb_menu__wrap {
  width: 100%;
  margin: 0 !important;
}

body:not(.et-fb) .et-l--header .bimedi-header-nav .et_pb_menu__wrap {
  justify-content: center !important;
}

body:not(.et-fb) .et-l--header .bimedi-header-nav .et_pb_menu__menu,
body:not(.et-fb) .et-l--header .bimedi-header-nav nav,
body:not(.et-fb) .et-l--header .bimedi-header-nav ul {
  align-items: center;
  justify-content: center;
}

body:not(.et-fb) .et-l--header .bimedi-header-nav ul {
  flex-wrap: nowrap !important;
  gap: clamp(18px, 2.2vw, 30px);
}

body:not(.et-fb) .et-l--header .bimedi-header-nav li {
  margin: 0 !important;
  padding: 0 !important;
  white-space: nowrap;
}

body:not(.et-fb) .et-l--header .bimedi-header-nav a {
  padding: 0 !important;
  color: rgba(43, 37, 40, 0.72) !important;
  font-family: var(--bimedi-font-sans, "Manrope", system-ui, sans-serif) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
}

body:not(.et-fb) .et-l--header .bimedi-header-nav a:hover,
body:not(.et-fb) .et-l--header .bimedi-header-nav .current-menu-item > a {
  color: var(--bimedi-peach) !important;
  opacity: 1 !important;
}

/* Header actions. Do not let separate Divi presets create different buttons. */
body:not(.et-fb) .et-l--header :is(.bimedi-nav-doctoralia, .bimedi-nav-whatsapp) {
  width: auto !important;
  margin: 0 !important;
  line-height: 1;
  white-space: nowrap;
  translate: none !important;
  transform: none !important;
}

body:not(.et-fb) .et-l--header :is(.bimedi-nav-doctoralia, .bimedi-nav-whatsapp) .et_pb_button,
body:not(.et-fb) .et-l--header a:is(.bimedi-nav-doctoralia, .bimedi-nav-whatsapp) {
  display: inline-flex !important;
  min-width: 120px;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 14px 22px !important;
  border: 1px solid transparent !important;
  border-radius: var(--bimedi-radius-small) !important;
  background-image: none !important;
  box-shadow: none;
  font-family: var(--bimedi-font-sans, "Manrope", system-ui, sans-serif) !important;
  font-size: 14px !important;
  font-style: normal !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  line-height: 1.2 !important;
  text-align: center;
  text-decoration: none !important;
  text-shadow: none !important;
  opacity: 1 !important;
}

body:not(.et-fb) .et-l--header :is(.bimedi-nav-doctoralia, .bimedi-nav-whatsapp) .et_pb_button::before,
body:not(.et-fb) .et-l--header :is(.bimedi-nav-doctoralia, .bimedi-nav-whatsapp) .et_pb_button::after,
body:not(.et-fb) .et-l--header a:is(.bimedi-nav-doctoralia, .bimedi-nav-whatsapp)::before,
body:not(.et-fb) .et-l--header a:is(.bimedi-nav-doctoralia, .bimedi-nav-whatsapp)::after {
  display: none !important;
  content: none !important;
}

body:not(.et-fb) .et-l--header .bimedi-nav-doctoralia .et_pb_button,
body:not(.et-fb) .et-l--header a.bimedi-nav-doctoralia {
  border-color: rgba(33, 1, 36, 0.28) !important;
  background: var(--bimedi-bone) !important;
  color: var(--bimedi-violet) !important;
}

body:not(.et-fb) .et-l--header .bimedi-nav-doctoralia .et_pb_button:hover,
body:not(.et-fb) .et-l--header a.bimedi-nav-doctoralia:hover {
  border-color: var(--bimedi-violet) !important;
  background: var(--bimedi-violet) !important;
  color: var(--bimedi-bone) !important;
  transform: translateY(-2px) !important;
}

body:not(.et-fb) .et-l--header .bimedi-nav-whatsapp .et_pb_button,
body:not(.et-fb) .et-l--header a.bimedi-nav-whatsapp {
  border-color: var(--bimedi-peach) !important;
  background: var(--bimedi-peach) !important;
  box-shadow: 0 18px 38px rgba(219, 127, 103, 0.20) !important;
  color: #fff !important;
}

body:not(.et-fb) .et-l--header .bimedi-nav-whatsapp:hover,
body:not(.et-fb) .et-l--header .bimedi-nav-whatsapp .et_pb_button:hover,
body:not(.et-fb) .et-l--header a.bimedi-nav-whatsapp:hover {
  border-color: var(--bimedi-peach-hover) !important;
  background: var(--bimedi-peach-hover) !important;
  box-shadow: 0 22px 42px rgba(219, 127, 103, 0.28) !important;
  color: #fff !important;
  translate: none !important;
  transform: translateY(-2px) !important;
}

body:not(.et-fb) .et-l--header :is(.bimedi-nav-doctoralia, .bimedi-nav-whatsapp) .et_pb_button:focus-visible {
  outline: 3px solid var(--bimedi-aqua) !important;
  outline-offset: 3px;
}

/* ==========================================================
   3. Theme Builder footer: shared across landing, thanks and legal
   ========================================================== */
body:not(.et-fb) .et-l--footer .bimedi-site-footer.et_pb_section {
  padding: 58px 0 34px !important;
  background: var(--bimedi-violet-deep) !important;
  color: rgba(251, 247, 241, 0.72) !important;
}

body:not(.et-fb) .et-l--footer .bimedi-footer-grid.et_pb_row,
body:not(.et-fb) .et-l--footer .bimedi-footer-bottom.et_pb_row {
  width: min(var(--bimedi-container), calc(100% - 44px)) !important;
  max-width: var(--bimedi-container) !important;
  margin-right: auto !important;
  margin-left: auto !important;
}

body:not(.et-fb) .et-l--footer .bimedi-footer-grid.et_pb_row {
  display: grid !important;
  grid-template-columns: 1.2fr repeat(3, minmax(0, 1fr));
  gap: 44px;
  padding: 0 0 46px !important;
  border-bottom: 1px solid rgba(251, 247, 241, 0.14);
}

body:not(.et-fb) .et-l--footer .bimedi-footer-grid > .et_pb_column,
body:not(.et-fb) .et-l--footer .bimedi-footer-bottom > .et_pb_column {
  width: auto !important;
  min-width: 0;
  float: none !important;
  margin: 0 !important;
}

body:not(.et-fb) .et-l--footer .bimedi-footer-logo img {
  width: auto !important;
  max-width: 190px !important;
  max-height: 54px !important;
  margin-bottom: 18px;
  filter: brightness(0) invert(1);
}

body:not(.et-fb) .et-l--footer .bimedi-site-footer h4 {
  margin: 0 0 18px !important;
  padding: 0 !important;
  color: var(--bimedi-bone) !important;
  font-family: var(--bimedi-font-sans, "Manrope", system-ui, sans-serif) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.14em !important;
  line-height: 1.4 !important;
  text-transform: uppercase;
}

body:not(.et-fb) .et-l--footer .bimedi-site-footer :is(p, a, li, span) {
  color: rgba(251, 247, 241, 0.68) !important;
  font-family: var(--bimedi-font-sans, "Manrope", system-ui, sans-serif) !important;
  font-size: 14px !important;
  line-height: 1.85 !important;
}

body:not(.et-fb) .et-l--footer .bimedi-site-footer a:hover {
  color: var(--bimedi-peach) !important;
}

body:not(.et-fb) .et-l--footer .bimedi-site-footer ul {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
}

body:not(.et-fb) .et-l--footer .bimedi-footer-bottom.et_pb_row {
  display: flex !important;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0 0 !important;
}

body:not(.et-fb) .et-l--footer .bimedi-footer-bottom :is(p, span, a) {
  color: rgba(251, 247, 241, 0.46) !important;
  font-size: 12px !important;
  line-height: 1.6 !important;
}

/* ==========================================================
   4. Landing typography and layout corrections
   ========================================================== */
body.bimedi-landing .et-l--body h1,
body.bimedi-landing .et-l--body h2,
body.bimedi-landing .bimedi-h1 h1,
body.bimedi-landing h1.bimedi-h1,
body.bimedi-landing .bimedi-h2 h2,
body.bimedi-landing h2.bimedi-h2 {
  font-family: var(--bimedi-font-serif, "Lora", Georgia, serif) !important;
  font-synthesis: none;
  overflow-wrap: normal !important;
  word-break: normal !important;
  hyphens: none !important;
  text-wrap: balance;
}

/* Keep the eyebrow aligned with the text column, regardless of Divi alignment. */
body.bimedi-landing .bimedi-eyebrow.et_pb_text {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-right: auto !important;
  margin-left: 0 !important;
  text-align: left !important;
}

body.bimedi-landing .bimedi-eyebrow .et_pb_text_inner {
  display: inline-flex !important;
  max-width: 100%;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin: 0 !important;
  text-align: left !important;
}

body.bimedi-landing .bimedi-eyebrow .et_pb_text_inner::before {
  display: inline-block !important;
  width: 38px !important;
  height: 1px !important;
  flex: 0 0 38px !important;
  margin: 0 !important;
  background: currentColor !important;
  content: "" !important;
}

/* Divi Groups add an inner wrapper; make both possible structures horizontal. */
body.bimedi-landing .bimedi-actions,
body.bimedi-landing .bimedi-actions > .et_pb_group__inner-container,
body.bimedi-landing .bimedi-actions > .et_pb_module_inner {
  display: flex !important;
  width: 100% !important;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
}

body.bimedi-landing .bimedi-actions > .et_pb_column,
body.bimedi-landing .bimedi-actions > .et_pb_module,
body.bimedi-landing .bimedi-actions > .et_pb_button_module_wrapper,
body.bimedi-landing .bimedi-actions > .et_pb_group__inner-container > .et_pb_module,
body.bimedi-landing .bimedi-actions > .et_pb_module_inner > .et_pb_module {
  width: auto !important;
  flex: 0 0 auto !important;
  float: none !important;
  margin: 0 !important;
}

body.bimedi-landing .bimedi-actions .bimedi-btn,
body.bimedi-landing .bimedi-actions .bimedi-btn .et_pb_button {
  width: auto !important;
  margin: 0 !important;
  white-space: nowrap;
}

@media (min-width: 981px) {
  body.bimedi-landing .bimedi-actions,
  body.bimedi-landing .bimedi-actions > .et_pb_group__inner-container,
  body.bimedi-landing .bimedi-actions > .et_pb_module_inner {
    flex-wrap: nowrap !important;
  }

  body.bimedi-landing .bimedi-final .bimedi-actions {
    width: min(100%, 920px) !important;
    max-width: 920px !important;
    justify-content: center;
    margin-right: auto !important;
    margin-left: auto !important;
  }
}

/* Give the editorial process heading enough measure to avoid letter splitting. */
@media (min-width: 1081px) {
  body.bimedi-landing .bimedi-process-row.et_pb_row {
    grid-template-columns: minmax(470px, 0.9fr) minmax(0, 1.35fr) !important;
    gap: 84px !important;
  }

  body.bimedi-landing .bimedi-process-row .bimedi-h2 h2,
  body.bimedi-landing .bimedi-process-row h2.bimedi-h2 {
    max-width: 500px;
    font-size: clamp(48px, 4.6vw, 70px) !important;
  }
}

/* Secondary CTA must remain legible on the dark final section. */
body.bimedi-landing .bimedi-final .bimedi-btn--secondary .et_pb_button,
body.bimedi-landing .bimedi-final .bimedi-btn--light .et_pb_button {
  border-color: rgba(251, 247, 241, 0.48) !important;
  background: rgba(251, 247, 241, 0.04) !important;
  color: var(--bimedi-bone) !important;
}

body.bimedi-landing .bimedi-final .bimedi-btn--secondary .et_pb_button:hover,
body.bimedi-landing .bimedi-final .bimedi-btn--light .et_pb_button:hover {
  border-color: var(--bimedi-bone) !important;
  background: var(--bimedi-bone) !important;
  color: var(--bimedi-violet) !important;
}

/* ==========================================================
   6. Responsive shell
   ========================================================== */
@media (max-width: 1080px) {
  body:not(.et-fb) .et-l--header .bimedi-navbar__row.et_pb_row {
    width: min(var(--bimedi-container), calc(100% - 32px)) !important;
    grid-template-columns: auto minmax(44px, 1fr) auto;
    gap: 18px;
  }

  /* The previous landing rule hid the complete menu module. Keep its mobile UI. */
  body:not(.et-fb) .et-l--header .bimedi-header-nav-col,
  body:not(.et-fb) .et-l--header .bimedi-header-nav {
    display: block !important;
  }

  body:not(.et-fb) .et-l--header .bimedi-header-nav-col {
    justify-self: end;
  }

  body:not(.et-fb) .et-l--header .bimedi-header-nav .et_pb_menu__menu {
    display: none !important;
  }

  body:not(.et-fb) .et-l--header .bimedi-header-nav .et_mobile_nav_menu {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    margin: 0 !important;
  }

  body:not(.et-fb) .et-l--header .bimedi-header-nav .mobile_menu_bar {
    padding: 0 !important;
  }

  body:not(.et-fb) .et-l--header .bimedi-header-nav .mobile_menu_bar::before {
    color: var(--bimedi-violet) !important;
    font-size: 30px;
  }

  body:not(.et-fb) .et-l--footer .bimedi-footer-grid.et_pb_row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  body:not(.et-fb) .et-l--header .bimedi-navbar__row.et_pb_row,
  body:not(.et-fb) .et-l--footer .bimedi-footer-grid.et_pb_row,
  body:not(.et-fb) .et-l--footer .bimedi-footer-bottom.et_pb_row {
    width: min(var(--bimedi-container), calc(100% - 28px)) !important;
  }

  body:not(.et-fb) .et-l--header .bimedi-navbar__row.et_pb_row {
    min-height: 68px;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
  }

  body:not(.et-fb) .et-l--header .bimedi-header-logo img {
    max-width: 128px !important;
    max-height: 38px !important;
  }

  body:not(.et-fb) .et-l--header .bimedi-nav-doctoralia {
    display: none !important;
  }

  body:not(.et-fb) .et-l--header .bimedi-nav-whatsapp .et_pb_button,
  body:not(.et-fb) .et-l--header a.bimedi-nav-whatsapp {
    min-width: 0;
    min-height: 42px;
    padding: 10px 14px !important;
    font-size: 13px !important;
  }

  body:not(.et-fb) .et-l--footer .bimedi-footer-grid.et_pb_row {
    grid-template-columns: minmax(0, 1fr);
  }

  body:not(.et-fb) .et-l--footer .bimedi-footer-bottom.et_pb_row {
    display: grid !important;
    justify-content: start;
    gap: 8px;
  }

  body.bimedi-landing .bimedi-actions,
  body.bimedi-landing .bimedi-actions > .et_pb_group__inner-container,
  body.bimedi-landing .bimedi-actions > .et_pb_module_inner {
    flex-direction: column;
    align-items: stretch;
  }

  body.bimedi-landing .bimedi-actions .bimedi-btn,
  body.bimedi-landing .bimedi-actions .bimedi-btn .et_pb_button {
    width: 100% !important;
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  body:not(.et-fb) .et-l--header :is(.bimedi-nav-doctoralia, .bimedi-nav-whatsapp),
  body:not(.et-fb) .et-l--header :is(.bimedi-nav-doctoralia, .bimedi-nav-whatsapp) .et_pb_button {
    transition: none !important;
    translate: none !important;
    transform: none !important;
  }
}

/* ==========================================================
   7. UX corrections: CTA consistency, thanks page and mobile UI
   ========================================================== */

/* Hero CTAs: both actions share the same measure, regardless of copy length. */
body.bimedi-landing .bimedi-hero .bimedi-actions,
body.bimedi-landing .bimedi-hero .bimedi-actions > .et_pb_group__inner-container,
body.bimedi-landing .bimedi-hero .bimedi-actions > .et_pb_module_inner {
  width: min(100%, 440px) !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  margin-right: auto !important;
  margin-left: auto !important;
}

body.bimedi-landing .bimedi-hero .bimedi-actions .bimedi-btn,
body.bimedi-landing .bimedi-hero .bimedi-actions .bimedi-btn.et_pb_button_module_wrapper,
body.bimedi-landing .bimedi-hero .bimedi-actions .bimedi-btn .et_pb_button {
  width: 100% !important;
  max-width: none !important;
  white-space: normal !important;
}

/* Final CTA: equal width and a high-contrast Doctoralia state. */
body.bimedi-landing .bimedi-final .bimedi-actions,
body.bimedi-landing .bimedi-final .bimedi-actions > .et_pb_group__inner-container,
body.bimedi-landing .bimedi-final .bimedi-actions > .et_pb_module_inner {
  width: min(100%, 440px) !important;
  max-width: 440px !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: center !important;
  margin-right: auto !important;
  margin-left: auto !important;
}

body.bimedi-landing .bimedi-final .bimedi-actions .bimedi-btn,
body.bimedi-landing .bimedi-final .bimedi-actions .bimedi-btn.et_pb_button_module_wrapper,
body.bimedi-landing .bimedi-final .bimedi-actions .bimedi-btn .et_pb_button {
  width: 100% !important;
  max-width: none !important;
  white-space: normal !important;
}

body.bimedi-landing .bimedi-final .bimedi-btn--secondary .et_pb_button,
body.bimedi-landing .bimedi-final .bimedi-btn--light .et_pb_button {
  border-color: rgba(33, 1, 36, 0.20) !important;
  background: #fbf7f1 !important;
  color: #210124 !important;
}

body.bimedi-landing .bimedi-final .bimedi-btn--secondary .et_pb_button:hover,
body.bimedi-landing .bimedi-final .bimedi-btn--light .et_pb_button:hover {
  border-color: #db7f67 !important;
  background: #db7f67 !important;
  color: #fbf7f1 !important;
}

/* Header WhatsApp hover: use the brand's recognizable green only here. */
body:not(.et-fb) .et-l--header .bimedi-nav-whatsapp:hover,
body:not(.et-fb) .et-l--header .bimedi-nav-whatsapp:hover .et_pb_button,
body:not(.et-fb) .et-l--header .bimedi-nav-whatsapp .et_pb_button:hover,
body:not(.et-fb) .et-l--header a.bimedi-nav-whatsapp:hover {
  border-color: #25d366 !important;
  background: #25d366 !important;
  box-shadow: 0 18px 38px rgba(37, 211, 102, 0.25) !important;
  color: #075e54 !important;
}

/* The semantic dock below replaces the old transparent Divi sticky section. */
body:not(.et-fb) .bimedi-mobile-sticky.et_pb_section {
  display: none !important;
}

.bimedi-mobile-dock {
  display: none;
}

/* ==========================================================
   8. Full-screen mobile navigation
   ========================================================== */
@media (max-width: 980px) {
  html.bimedi-mobile-menu-open,
  body.bimedi-mobile-menu-open {
    overflow: hidden !important;
    overscroll-behavior: none;
  }

  body:not(.et-fb) .et-l--header {
    --bimedi-topbar-height: 0px;
    --bimedi-nav-height: 72px;
    --bimedi-nav-height-compact: 72px;
  }

  body:not(.et-fb) .et-l--header .bimedi-contact-bar {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
  }

  body:not(.et-fb) .et-l--header .bimedi-navbar__row.et_pb_row {
    position: relative;
    z-index: 100001;
    display: grid !important;
    width: calc(100% - 32px) !important;
    min-height: 72px;
    grid-template-columns: auto 1fr !important;
    gap: 14px !important;
    padding: 0 !important;
  }

  body:not(.et-fb) .et-l--header .bimedi-header-brand-col {
    position: relative;
    z-index: 100003;
    grid-column: 1 !important;
  }

  body:not(.et-fb) .et-l--header .bimedi-header-nav-col {
    position: relative;
    z-index: 100004;
    display: block !important;
    grid-column: 2 !important;
    justify-self: end !important;
  }

  body:not(.et-fb) .et-l--header .bimedi-header-actions-col,
  body:not(.et-fb) .et-l--header .bimedi-nav-doctoralia,
  body:not(.et-fb) .et-l--header .bimedi-nav-whatsapp {
    display: none !important;
  }

  body:not(.et-fb) .et-l--header .bimedi-header-nav,
  body:not(.et-fb) .et-l--header .bimedi-header-nav .et_pb_menu_inner_container,
  body:not(.et-fb) .et-l--header .bimedi-header-nav .et_pb_menu__wrap {
    position: static !important;
    width: auto !important;
  }

  body:not(.et-fb) .et-l--header .bimedi-header-nav .et_pb_menu__menu {
    display: none !important;
  }

  body:not(.et-fb) .et-l--header .bimedi-header-nav .et_mobile_nav_menu {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    margin: 0 !important;
  }

  body:not(.et-fb) .et-l--header .bimedi-header-nav .mobile_menu_bar {
    position: relative !important;
    z-index: 100006;
    display: block !important;
    width: 44px;
    height: 44px;
    padding: 0 !important;
    border: 0;
    border-radius: 50%;
    background-color: transparent;
    background-image: linear-gradient(#210124, #210124);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 24px 2px;
    color: #210124 !important;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: background-size 180ms ease, background-color 180ms ease;
  }

  body:not(.et-fb) .et-l--header .bimedi-header-nav .mobile_menu_bar::before,
  body:not(.et-fb) .et-l--header .bimedi-header-nav .mobile_menu_bar::after {
    position: absolute !important;
    left: 10px !important;
    display: block !important;
    width: 24px !important;
    height: 2px !important;
    margin: 0 !important;
    background: #210124 !important;
    color: transparent !important;
    content: "" !important;
    opacity: 1 !important;
    transform-origin: center;
    transition: top 220ms ease, transform 220ms ease;
  }

  body:not(.et-fb) .et-l--header .bimedi-header-nav .mobile_menu_bar::before {
    top: 14px !important;
  }

  body:not(.et-fb) .et-l--header .bimedi-header-nav .mobile_menu_bar::after {
    top: 28px !important;
  }

  html.bimedi-mobile-menu-open body:not(.et-fb) .et-l--header .bimedi-header-nav .mobile_menu_bar,
  body.bimedi-mobile-menu-open:not(.et-fb) .et-l--header .bimedi-header-nav .mobile_menu_bar {
    background-size: 0 2px;
  }

  html.bimedi-mobile-menu-open body:not(.et-fb) .et-l--header .bimedi-header-nav .mobile_menu_bar::before,
  html.bimedi-mobile-menu-open body:not(.et-fb) .et-l--header .bimedi-header-nav .mobile_menu_bar::after,
  body.bimedi-mobile-menu-open:not(.et-fb) .et-l--header .bimedi-header-nav .mobile_menu_bar::before,
  body.bimedi-mobile-menu-open:not(.et-fb) .et-l--header .bimedi-header-nav .mobile_menu_bar::after {
    top: 21px !important;
  }

  html.bimedi-mobile-menu-open body:not(.et-fb) .et-l--header .bimedi-header-nav .mobile_menu_bar::before,
  body.bimedi-mobile-menu-open:not(.et-fb) .et-l--header .bimedi-header-nav .mobile_menu_bar::before {
    transform: rotate(45deg) !important;
  }

  html.bimedi-mobile-menu-open body:not(.et-fb) .et-l--header .bimedi-header-nav .mobile_menu_bar::after,
  body.bimedi-mobile-menu-open:not(.et-fb) .et-l--header .bimedi-header-nav .mobile_menu_bar::after {
    transform: rotate(-45deg) !important;
  }

  body:not(.et-fb) .et-l--header .bimedi-header-nav .et_mobile_menu {
    position: fixed !important;
    z-index: 100000 !important;
    inset: 0 !important;
    width: 100vw !important;
    max-width: none !important;
    height: 100dvh !important;
    max-height: none !important;
    flex-direction: column;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 0;
    margin: 0 !important;
    padding: clamp(108px, 15vh, 148px) 28px calc(104px + env(safe-area-inset-bottom)) !important;
    overflow-y: auto;
    border: 0 !important;
    background: #fbf7f1 !important;
    box-shadow: none !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-18px);
    transition: opacity 240ms ease, visibility 0s linear 240ms, transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  html.bimedi-mobile-menu-open body:not(.et-fb) .et-l--header .bimedi-header-nav .et_mobile_menu,
  body.bimedi-mobile-menu-open:not(.et-fb) .et-l--header .bimedi-header-nav .et_mobile_menu {
    display: flex !important;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition: opacity 240ms ease, visibility 0s linear 0s, transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  body:not(.et-fb) .et-l--header .bimedi-header-nav .et_mobile_menu > li {
    width: min(100%, 520px);
    margin: 0 auto !important;
    padding: 0 !important;
    border-bottom: 1px solid rgba(33, 1, 36, 0.10);
    text-align: left;
  }

  body:not(.et-fb) .et-l--header .bimedi-header-nav .et_mobile_menu > li > a {
    display: flex !important;
    min-height: 60px;
    align-items: center;
    padding: 12px 2px !important;
    border: 0 !important;
    background: transparent !important;
    color: #210124 !important;
    font-family: var(--bimedi-font-serif, "Lora", Georgia, serif) !important;
    font-size: clamp(28px, 8vw, 42px) !important;
    font-weight: 500 !important;
    letter-spacing: -0.035em !important;
    line-height: 1.05 !important;
    opacity: 1 !important;
  }

  body:not(.et-fb) .et-l--header .bimedi-header-nav .et_mobile_menu > li > a:hover,
  body:not(.et-fb) .et-l--header .bimedi-header-nav .et_mobile_menu > li.current-menu-item > a {
    color: #db7f67 !important;
  }

  body:not(.et-fb) .et-l--header .bimedi-header-nav .et_mobile_menu > .bimedi-mobile-menu-cta {
    border-bottom: 0;
  }

  body:not(.et-fb) .et-l--header .bimedi-header-nav .et_mobile_menu > .bimedi-mobile-menu-cta--doctoralia {
    margin-top: 30px !important;
  }

  body:not(.et-fb) .et-l--header .bimedi-header-nav .et_mobile_menu > .bimedi-mobile-menu-cta > a {
    min-height: 52px;
    justify-content: center;
    margin-top: 10px;
    padding: 13px 20px !important;
    border: 1px solid rgba(33, 1, 36, 0.24) !important;
    border-radius: 4px;
    font-family: var(--bimedi-font-sans, "Manrope", system-ui, sans-serif) !important;
    font-size: 14px !important;
    font-weight: 750 !important;
    letter-spacing: 0 !important;
    line-height: 1.2 !important;
    text-align: center;
  }

  body:not(.et-fb) .et-l--header .bimedi-header-nav .et_mobile_menu > .bimedi-mobile-menu-cta--whatsapp > a {
    border-color: #db7f67 !important;
    background: #db7f67 !important;
    color: #fbf7f1 !important;
  }
}

/* JS-assigned fallback classes keep the panel functional if a Divi save
 * removes the custom bimedi-header-nav class from the menu module. */
@media (max-width: 980px) {
  html.bimedi-mobile-menu-open body:not(.et-fb) .et-l--header .bimedi-mobile-panel,
  body.bimedi-mobile-menu-open:not(.et-fb) .et-l--header .bimedi-mobile-panel {
    position: fixed !important;
    z-index: 100000 !important;
    inset: 0 !important;
    display: flex !important;
    width: 100vw !important;
    max-width: none !important;
    height: 100dvh !important;
    max-height: none !important;
    flex-direction: column !important;
    align-items: stretch !important;
    margin: 0 !important;
    padding: clamp(108px, 15vh, 148px) 28px calc(104px + env(safe-area-inset-bottom)) !important;
    overflow-y: auto !important;
    border: 0 !important;
    background: #fbf7f1 !important;
    box-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
  }
}

/* ==========================================================
   9. Mobile action dock
   ========================================================== */
@media (max-width: 767px) {
  body:not(.et-fb) {
    padding-bottom: calc(82px + env(safe-area-inset-bottom));
  }

  .bimedi-mobile-dock {
    position: fixed;
    z-index: 99980;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    left: 10px;
    display: grid;
    min-height: 62px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid rgba(33, 1, 36, 0.10);
    border-radius: 14px;
    background: #fbf7f1;
    box-shadow: 0 12px 30px rgba(33, 1, 36, 0.13);
    transition: opacity 180ms ease, transform 220ms ease, visibility 0s linear 0s;
  }

  .bimedi-mobile-dock__item {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 3px;
    padding: 8px 4px;
    border-right: 1px solid rgba(33, 1, 36, 0.08);
    color: #210124 !important;
    font-family: var(--bimedi-font-sans, "Manrope", system-ui, sans-serif);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.15;
    text-align: center;
    text-decoration: none !important;
    -webkit-tap-highlight-color: transparent;
  }

  .bimedi-mobile-dock__item:last-child {
    border-right: 0;
  }

  .bimedi-mobile-dock__item svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .bimedi-mobile-dock__item--whatsapp svg path:nth-child(2) {
    fill: currentColor;
    stroke: none;
  }

  .bimedi-mobile-dock__item:active {
    background: rgba(219, 127, 103, 0.10);
  }

  .bimedi-mobile-dock__item:focus-visible {
    position: relative;
    z-index: 2;
    outline: 2px solid #7bcfe0;
    outline-offset: -3px;
  }

  html.bimedi-mobile-menu-open .bimedi-mobile-dock,
  body.bimedi-mobile-menu-open .bimedi-mobile-dock {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(14px);
    transition: opacity 160ms ease, transform 180ms ease, visibility 0s linear 180ms;
  }
}

@media (max-width: 420px) {
  body:not(.et-fb) .et-l--header .bimedi-navbar__row.et_pb_row {
    width: calc(100% - 24px) !important;
  }

  body:not(.et-fb) .et-l--header .bimedi-header-logo img {
    max-width: 138px !important;
  }

  body:not(.et-fb) .et-l--header .bimedi-header-nav .et_mobile_menu {
    padding-right: 22px !important;
    padding-left: 22px !important;
  }

  .bimedi-mobile-dock__item {
    font-size: 9.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body:not(.et-fb) .et-l--header .bimedi-header-nav .mobile_menu_bar,
  body:not(.et-fb) .et-l--header .bimedi-header-nav .mobile_menu_bar::before,
  body:not(.et-fb) .et-l--header .bimedi-header-nav .mobile_menu_bar::after,
  body:not(.et-fb) .et-l--header .bimedi-header-nav .et_mobile_menu,
  .bimedi-mobile-dock {
    transition: none !important;
  }
}

/* ==========================================================
   8. CTA final hardening (v1.2.1)
   ========================================================== */
/*
 * Divi can place the custom class on either the module wrapper or the anchor.
 * The href fallback keeps the Doctoralia action visible even when the module
 * structure changes after a Visual Builder save or static-CSS regeneration.
 */
body.bimedi-landing .bimedi-final :is(
  .bimedi-btn--secondary,
  .bimedi-btn--light,
  .bimedi-final-doctoralia-wrap
) {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  opacity: 1 !important;
  visibility: visible !important;
}

body.bimedi-landing .bimedi-final :is(
  .bimedi-btn--secondary.et_pb_button,
  .bimedi-btn--light.et_pb_button,
  .bimedi-btn--secondary .et_pb_button,
  .bimedi-btn--light .et_pb_button,
  a.et_pb_button[href*="doctoralia.com.mx"],
  a.bimedi-final-doctoralia
) {
  position: relative !important;
  z-index: 3 !important;
  display: flex !important;
  width: 100% !important;
  min-height: 64px !important;
  max-width: none !important;
  padding: 18px 28px !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid rgba(33, 1, 36, 0.20) !important;
  border-radius: 4px !important;
  background-color: #fbf7f1 !important;
  background-image: none !important;
  box-shadow: none !important;
  color: #210124 !important;
  opacity: 1 !important;
  visibility: visible !important;
  filter: none !important;
  mix-blend-mode: normal !important;
  text-align: center !important;
  text-decoration: none !important;
  text-shadow: none !important;
  -webkit-text-fill-color: #210124 !important;
}

body.bimedi-landing .bimedi-final :is(
  .bimedi-btn--secondary.et_pb_button,
  .bimedi-btn--light.et_pb_button,
  .bimedi-btn--secondary .et_pb_button,
  .bimedi-btn--light .et_pb_button,
  a.et_pb_button[href*="doctoralia.com.mx"],
  a.bimedi-final-doctoralia
)::before,
body.bimedi-landing .bimedi-final :is(
  .bimedi-btn--secondary.et_pb_button,
  .bimedi-btn--light.et_pb_button,
  .bimedi-btn--secondary .et_pb_button,
  .bimedi-btn--light .et_pb_button,
  a.et_pb_button[href*="doctoralia.com.mx"],
  a.bimedi-final-doctoralia
)::after {
  display: none !important;
  content: none !important;
}

body.bimedi-landing .bimedi-final :is(
  .bimedi-btn--secondary.et_pb_button,
  .bimedi-btn--light.et_pb_button,
  .bimedi-btn--secondary .et_pb_button,
  .bimedi-btn--light .et_pb_button,
  a.et_pb_button[href*="doctoralia.com.mx"],
  a.bimedi-final-doctoralia
):is(:hover, :focus-visible) {
  border-color: #db7f67 !important;
  background-color: #db7f67 !important;
  color: #fbf7f1 !important;
  -webkit-text-fill-color: #fbf7f1 !important;
}

@media (max-width: 980px) {
  body.bimedi-landing .bimedi-final :is(
    .bimedi-btn--secondary.et_pb_button,
    .bimedi-btn--light.et_pb_button,
    .bimedi-btn--secondary .et_pb_button,
    .bimedi-btn--light .et_pb_button,
    a.et_pb_button[href*="doctoralia.com.mx"],
    a.bimedi-final-doctoralia
  ) {
    min-height: 58px !important;
    padding: 16px 20px !important;
  }
}


/* JS fallback when the final Divi section lost its bimedi-final class. */
body.bimedi-landing .bimedi-final-doctoralia-wrap {
  display: block !important;
  width: min(100%, 440px) !important;
  max-width: 440px !important;
  margin-right: auto !important;
  margin-left: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
}

body.bimedi-landing a.et_pb_button.bimedi-final-doctoralia {
  position: relative !important;
  z-index: 3 !important;
  display: flex !important;
  width: 100% !important;
  min-height: 64px !important;
  max-width: none !important;
  padding: 18px 28px !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid rgba(33, 1, 36, 0.20) !important;
  border-radius: 4px !important;
  background: #fbf7f1 !important;
  box-shadow: none !important;
  color: #210124 !important;
  opacity: 1 !important;
  visibility: visible !important;
  filter: none !important;
  text-align: center !important;
  text-shadow: none !important;
  -webkit-text-fill-color: #210124 !important;
}

body.bimedi-landing a.et_pb_button.bimedi-final-doctoralia::before,
body.bimedi-landing a.et_pb_button.bimedi-final-doctoralia::after {
  display: none !important;
  content: none !important;
}

body.bimedi-landing a.et_pb_button.bimedi-final-doctoralia:hover,
body.bimedi-landing a.et_pb_button.bimedi-final-doctoralia:focus-visible {
  border-color: #db7f67 !important;
  background: #db7f67 !important;
  color: #fbf7f1 !important;
  -webkit-text-fill-color: #fbf7f1 !important;
}
