.mto_footer {
  margin-top: auto;
  color: #071226;
  background: #49f333;
}

.mto_footer__principal {
  background: #05070a;
  color: #ffffff;
}

.mto_footer__contenedor {
  width: min(1180px, calc(100% - 32px));
  min-height: 86px;
  margin-inline: auto;
  padding: 20px 0;
}

.mto_footer__principal .mto_footer__contenedor {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 24px;
}

.mto_footer__marca,
.mto_footer__links {
  display: flex;
  align-items: center;
}

.mto_footer__logo_link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.mto_footer .footer-logo-img,
.mto_footer__logo {
  width: 138px;
  height: auto;
  max-height: 42px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.mto_footer__legal {
  display: inline-grid;
  gap: 3px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.25;
  text-align: right;
  text-decoration: none;
}

.mto_footer__legal:hover,
.mto_footer__legal:focus {
  color: #49f333;
  text-decoration: none;
}

.mto_footer__legal:focus-visible,
.mto_footer__social a:focus-visible {
  outline: 3px solid rgba(73, 243, 51, .35);
  outline-offset: 4px;
}

.mto_footer__base {
  background: #49f333;
  color: #071226;
}

.mto_footer__contenedor--base {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 18px;
  min-height: 54px;
  padding: 10px 0;
}

.mto_footer__copy,
.mto_footer .footer-text {
  color: #071226;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
}

.mto_footer__social {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.mto_footer__social span {
  color: #071226;
  font-size: 12px;
  font-weight: 900;
}

.mto_footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .34);
  box-shadow: inset 0 0 0 1px rgba(7, 18, 38, .08);
  transition: background-color 140ms ease, transform 140ms ease;
}

.mto_footer__social a:hover {
  background: rgba(255, 255, 255, .58);
  transform: translateY(-1px);
}

.mto_footer__social img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

#terminosModal {
  background: rgba(7, 18, 38, 0.58);
  display: none;
  inset: 0;
  overflow: hidden;
  padding: 24px;
  position: fixed;
  z-index: 1200;
}

#terminosModal.modal {
  left: 0;
  right: 0;
  top: 0;
}

#terminosModal.mto-modal--open {
  align-items: center;
  display: flex !important;
  justify-content: center;
}

#terminosModal.show {
  align-items: center;
  display: flex !important;
  justify-content: center;
}

#terminosModal .modal-dialog {
  flex: 0 1 min(920px, 100%);
  margin: 0 auto;
  max-height: min(720px, calc(100vh - 48px));
  max-width: min(920px, 100%);
  width: 100%;
}

#terminosModal .modal-content {
  background: #ffffff;
  border: 1px solid rgba(16, 24, 40, 0.12);
  border-radius: 8px;
  box-shadow: 0 28px 90px rgba(7, 18, 38, .28);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  max-height: min(720px, calc(100vh - 48px));
  overflow: hidden;
}

#terminosModal .modal-header {
  align-items: center;
  background: linear-gradient(110deg, #f1fff0 0%, #ffffff 58%);
  border-bottom: 1px solid #dfe5ec;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 18px 22px;
}

#terminosModal .modal-title {
  color: #071226;
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1.2;
  margin: 0;
}

#terminosModal .btn-close {
  align-items: center;
  appearance: none;
  background: #ffffff;
  border: 1px solid rgba(16, 24, 40, 0.12);
  border-radius: 999px;
  color: #071226;
  cursor: pointer;
  display: inline-flex;
  height: 38px;
  justify-content: center;
  padding: 0;
  position: relative;
  width: 38px;
}

#terminosModal .btn-close::before {
  content: "x";
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1;
}

#terminosModal .btn-close:hover,
#terminosModal .btn-close:focus-visible {
  border-color: rgba(73, 243, 51, 0.85);
  box-shadow: 0 0 0 4px rgba(73, 243, 51, 0.2);
  outline: 0;
}

#terminosModal .modal-body {
  color: #1f2b40;
  font-size: 0.95rem;
  line-height: 1.55;
  min-width: 0;
  overflow: auto;
  padding: 22px;
}

#terminosModal .modal-body * {
  max-width: 100%;
}

#terminosModal .modal-body p,
#terminosModal .modal-body li {
  overflow-wrap: anywhere;
}

body.mto-modal-open {
  overflow: hidden;
}

@media (max-width: 760px) {
  .mto_footer__contenedor {
    width: min(100% - 24px, 560px);
  }

  .mto_footer__principal .mto_footer__contenedor,
  .mto_footer__contenedor--base {
    flex-direction: column !important;
    justify-content: center !important;
    text-align: center;
  }

  .mto_footer__principal .mto_footer__contenedor {
    min-height: 118px;
    gap: 14px;
  }

  .mto_footer__contenedor--base {
    min-height: 92px;
    gap: 10px;
  }

  .mto_footer__legal {
    text-align: center;
  }

  .mto_footer__social {
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 420px) {
  .mto_footer .footer-logo-img,
  .mto_footer__logo {
    width: 124px;
  }

  .mto_footer__copy,
  .mto_footer .footer-text {
    max-width: 280px;
  }
}

@media (max-width: 520px) {
  #terminosModal {
    padding: 12px;
  }

  #terminosModal .modal-dialog,
  #terminosModal .modal-content {
    max-height: calc(100vh - 24px);
  }

  #terminosModal .modal-header {
    padding: 14px 16px;
  }

  #terminosModal .modal-title {
    font-size: 1rem;
  }

  #terminosModal .modal-body {
    font-size: 0.88rem;
    padding: 16px;
  }
}

@media (max-width: 991.98px) and (orientation: landscape) {
  .mto_footer__principal .mto_footer__contenedor {
    min-height: 72px;
    padding: 12px 0;
  }

  .mto_footer__contenedor--base {
    min-height: 48px;
    padding: 8px 0;
  }
}
