/* MunicipalPost Footer V3 - Azul marino
   Reemplaza /assets/css/footer.css
*/

.mp-footer,
.mp-footer * {
  box-sizing: border-box;
}

.mp-footer {
  width: 100%;
  margin-top: 64px;
  padding: 0;
  border-top: 1px solid rgba(255,255,255,.06);
  background: #182433 !important;
  color: #fff !important;
  font-family: inherit;
  text-align: center;
}

.mp-footer__inner {
  width: min(100% - 32px, 1040px);
  margin: 0 auto;
  padding: 38px 0 30px;
}

.mp-footer a {
  color: rgba(255,255,255,.88) !important;
  text-decoration: none !important;
}

.mp-footer a:hover {
  color: #fff !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

.mp-footer__main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  margin: 0 auto;
  font-size: 15px;
  font-weight: 500;
}

.mp-footer__account-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

.mp-footer .mp-footer__account-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  background: rgba(255,255,255,.06) !important;
  color: rgba(255,255,255,.92) !important;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none !important;
  transition:
    background .18s ease,
    border-color .18s ease,
    transform .18s ease;
}

.mp-footer .mp-footer__account-link:hover {
  border-color: rgba(255,255,255,.24);
  background: rgba(255,255,255,.11) !important;
  color: #fff !important;
  text-decoration: none !important;
  transform: translateY(-1px);
}

.mp-footer__copyright {
  margin: 24px 0 0;
  color: rgba(255,255,255,.55) !important;
  font-size: 14px;
}

.mp-footer__tools {
  margin-top: 22px;
}

.mp-footer .mp-footer__qr-button {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: auto !important;
  min-width: 220px;
  min-height: 44px;
  margin: 0 !important;
  padding: 10px 18px !important;
  border: 1px solid rgba(255,255,255,.16) !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.08) !important;
  color: #fff !important;
  box-shadow: none !important;
  font: inherit !important;
  font-size: 14px !important;
  font-weight: 650 !important;
  line-height: 1.2 !important;
  cursor: pointer;
  transition:
    background .18s ease,
    border-color .18s ease,
    transform .18s ease;
}

.mp-footer .mp-footer__qr-button:hover {
  border-color: rgba(255,255,255,.25) !important;
  background: rgba(255,255,255,.14) !important;
  transform: translateY(-1px);
}

.mp-footer .mp-footer__qr-button:focus-visible,
.mp-footer a:focus-visible,
.mp-modal button:focus-visible,
.mp-modal a:focus-visible {
  outline: 3px solid rgba(255,255,255,.22);
  outline-offset: 3px;
}

.mp-footer__qr-icon {
  font-size: 18px;
  line-height: 1;
}

.mp-footer__legal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.12);
}

.mp-footer .mp-footer__legal a {
  max-width: 760px;
  color: rgba(255,255,255,.62) !important;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
}

.mp-footer .mp-footer__legal a:hover {
  color: rgba(255,255,255,.9) !important;
}

.mp-footer__affiliate {
  max-width: 820px;
  margin: 22px auto 0;
  color: rgba(255,255,255,.38) !important;
  font-size: 11px;
  line-height: 1.55;
}

/* Modales */
.mp-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 24px;
  overflow: auto;
  background: rgba(0,0,0,.52);
  backdrop-filter: blur(3px);
}

.mp-modal.is-open {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.mp-modal__content {
  position: relative;
  width: min(100%, 430px);
  margin-top: 9vh;
  padding: 28px;
  border: 1px solid #e6e6e6;
  border-radius: 18px;
  background: #fff;
  color: #1a1a1a;
  box-shadow: 0 24px 70px rgba(0,0,0,.22);
  text-align: left;
}

.mp-modal__content--qr {
  text-align: center;
}

.mp-modal__content h3 {
  margin: 0 36px 18px 0;
  color: #111;
  font-size: 20px;
  line-height: 1.25;
}

.mp-modal__content p {
  margin: 12px 0;
  color: #555;
  font-size: 14px;
  line-height: 1.55;
}

.mp-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f3f3f3;
  color: #333;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.mp-modal__close:hover {
  background: #e9e9e9;
}

.mp-modal__action,
.mp-modal__install {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 12px;
  padding: 9px 16px;
  border: 0;
  border-radius: 999px;
  background: #182433;
  color: #fff !important;
  font-weight: 650;
  text-decoration: none !important;
  cursor: pointer;
}

.mp-modal__content--qr canvas {
  display: block;
  margin: 16px auto;
}

/* Banner PWA lateral */
.mp-install-banner {
  display: none;
  position: fixed;
  top: 420px;
  left: 28px;
  z-index: 9999;
  transform: rotate(90deg);
  transform-origin: left top;
}

.mp-install-banner a {
  display: inline-block;
  padding: 7px 13px;
  border-radius: 7px 7px 0 0;
  background: #182433 !important;
  color: #fff !important;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
}

@media (max-width: 640px) {
  .mp-footer {
    margin-top: 44px;
  }

  .mp-footer__inner {
    width: min(100% - 28px, 1040px);
    padding: 30px 0 24px;
  }

  .mp-footer__main-nav {
    gap: 9px 16px;
    font-size: 14px;
  }

  .mp-footer__account-nav {
    margin-top: 18px;
  }

  .mp-footer .mp-footer__qr-button {
    width: 100% !important;
    max-width: 330px;
  }

  .mp-footer__legal {
    margin-top: 24px;
    padding-top: 20px;
  }

  .mp-modal {
    padding: 16px;
  }

  .mp-modal__content {
    margin-top: 6vh;
    padding: 24px;
    border-radius: 16px;
  }
}
