/* MaxLife site-wide usability fixes. */

/*
 * TranslatePress floating language switcher: it was fixed to the top of the viewport (162x55 px on phones),
 * covering the logo and every heading while scrolling. It now sits at the top of the page, compact, and
 * scrolls away with the header; the language choice stays one tap away at the top.
 */
body .trp-floating-switcher {
  position: absolute;
  z-index: 1000;
  box-shadow: 0 4px 14px rgb(10 40 50 / 0.12);
}

@media (max-width: 767px) {
  /* TranslatePress positions the switcher from inline custom properties (top 0, right 10vw); !important is the
     only way to override inline-derived offsets, and it is limited to these two properties on phones. */
  body .trp-floating-switcher.trp-switcher-position-top {
    --switcher-padding: 4px 0;
    --font-size: 13px;
    --flag-size: 16px;
    top: 8px !important;
    right: 8px !important;
    border-radius: 999px;
    overflow: hidden;
  }

  body .trp-floating-switcher .trp-language-item {
    padding: 4px 8px;
  }
}

/* Phone links created from plain text keep the surrounding look but read as tappable. */
a.mse-tel {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a.mse-tel:hover {
  text-decoration-thickness: 2px;
}

a.mse-tel:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
  border-radius: 2px;
}

/*
 * Footer (Elementor template 6739, shared by ES/EN through TranslatePress).
 * The agency credit was removed from the template; the copyright now spans the bottom bar.
 */
.elementor-6739 .elementor-element.elementor-element-496287f6,
.elementor-6739 .elementor-element.elementor-element-76823e4e {
  --justify-content: center;
  --align-items: center;
  justify-content: center;
  align-items: center;
}

.elementor-6739 .elementor-element.elementor-element-76823e4e {
  --width: 100%;
  width: 100%;
  max-width: none;
}

/* The copyright is an HTML widget with its own alignment; centre it and keep the sentence on balanced lines. */
.elementor-6739 .elementor-element.elementor-element-890da2a {
  width: 100%;
  max-width: none;
}

.elementor-6739 .elementor-element.elementor-element-890da2a,
.elementor-6739 .elementor-element.elementor-element-890da2a * {
  text-align: center !important;
  text-wrap: balance;
}

/* Contact rows: icon beside the text instead of above it (shorter, easier to scan). */
.elementor-6739 .elementor-element-1632feac .elementor-icon-box-wrapper,
.elementor-6739 .elementor-element-617beeed .elementor-icon-box-wrapper,
.elementor-6739 .elementor-element-1edfdebe .elementor-icon-box-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  text-align: left;
}

.elementor-6739 .elementor-element-1632feac .elementor-icon-box-icon,
.elementor-6739 .elementor-element-617beeed .elementor-icon-box-icon,
.elementor-6739 .elementor-element-1edfdebe .elementor-icon-box-icon {
  margin: 0;
}

.elementor-6739 .elementor-icon-list-item a,
.elementor-6739 .elementor-icon-box-wrapper a {
  transition: color 0.2s ease, opacity 0.2s ease;
}

.elementor-6739 .elementor-icon-list-item a:hover {
  opacity: 0.8;
}

@media (max-width: 767px) {
  /* Comfortable touch targets for the footer link lists (WCAG 2.5.8 minimum 24 px; 32 px used). */
  .elementor-6739 .elementor-element-53a9c5f2 .elementor-icon-list-item > a,
  .elementor-6739 .elementor-element-1d5b4c8b .elementor-icon-list-item > a {
    display: flex;
    align-items: center;
    min-height: 32px;
    font-size: 15px;
  }

  .elementor-6739 .elementor-element-1d84499 img {
    width: 200px;
  }

  .elementor-6739 .elementor-element.elementor-element-4ff0583e {
    --gap: 28px;
    gap: 28px;
  }
}

/*
 * Header (Elementor template 6641) on phones: the logo band sits on the page's white background, so the
 * white "MAX" and "YUCATÁN" of the logo disappeared. Paint the band in the top bar's dark teal and keep its
 * last 100px (the header's -100px overlap with the first section) transparent so the hero still shows there.
 */
@media (max-width: 767px) {
  .elementor-location-header .elementor-element.elementor-element-5ba62b2f {
    background: linear-gradient(
      to bottom,
      rgb(11, 57, 68) 0,
      rgb(11, 57, 68) calc(100% - 100px),
      transparent calc(100% - 100px)
    ) !important;
  }
}
