footer,
.footer-link {
  background-color: var(--accent-bg);
  color: var(--active-color-2);
}

.footer-logo {
  filter: var(--brightness);
}

.footer-link img {
  filter: var(--brightness);
  display: inline-block;
  vertical-align: middle;
  margin-top: -2px;
  margin-left: -6px;
  width: 25px;
  height: 25px;
}

.footer-wrapper {
  max-width: 1536px;
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
  flex-direction: column;
}

.footer-info {
  padding: 32px 0 32px;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.footer-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  gap: 2rem;
}

.footer-links,
.ft-group,
.ft-group-contact {
  list-style-type: none;
}

.footer-links {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.footer-links li > h2 {
  margin-left: 20px;
}

.ft-group li {
  margin-left: 15px;
  font-weight: 300;
}

.ft-group {
  width: 140px;
  line-height: 1.5rem;
}

.ft-group-contact {
  line-height: 2rem;
}

.derechos {
  background-color: var(--accent-bg-2);
  height: 58px;
  display: grid;
  place-items: center;
}

.derechos > p {
  margin-bottom: 0;
}

.derechos-br {
  display: none;
}

#ft-uno,
#ft-tres {
  margin-top: 40px;
}

@media (min-width: 900px) {
  .footer-wrapper {
    width: 80vw;
  }
}

@media (max-width: 899px) {
  footer {
    margin-bottom: calc(58px + calc(env(safe-area-inset-bottom) - 10px));
  }
  .footer-wrapper {
    width: 90vw;
  }
  .footer-info {
    flex-direction: column;
    text-align: center;
    gap: 3rem;
  }
  .ft-group li {
    margin-left: 0;
  }
  .footer-links {
    justify-content: space-around;
    gap: 0;
  }
  .footer-link img {
    display: none;
  }
  #ft-uno {
    order: 2;
    margin-top: 0;
  }
  #ft-dos {
    order: 1;
  }
  #ft-tres {
    order: 3;
    margin-top: 0;
  }

  .derechos {
    height: 84px;
    text-align: center;
  }

  .derechos-br {
    display: inline;
  }
}
