.page-root {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

:root {
  --footer-cloud-w: min(645px, 100vw);
  --footer-cloud-h: calc(var(--footer-cloud-w) * 2056 / 2344);
}

#footer {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  width: 100%;
  margin-top: auto;
  flex-shrink: 0;
  background: transparent;
  z-index: 10;
  pointer-events: auto;
  transition: background-color 240ms ease;
  overflow-x: clip;
  align-items: flex-end !important;
  align-content: flex-end;
  padding-bottom: clamp(10px, 1.2vw, 18px) !important;
}

@supports not (overflow: clip) {
  #footer {
    overflow-x: hidden;
  }
}

.wrapper {
  flex: 1 0 auto;
  min-height: 0;
  padding-bottom: 0 !important;
}

.footer-link {
  width: auto;
  min-width: 0;
  /* mix-blend-mode: difference; */
}

.footer-link,
.copyright {
  mix-blend-mode: difference;
  color: white;
}

#footer .copyright {
  margin-top: auto;
  padding-bottom: 0 !important;
  padding-left: 1rem;
  padding-right: 1rem;
}

#footer .nubes-bg {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: -1;
  width: min(645px, 100vw);
  max-width: 100%;
  height: auto;
  pointer-events: none;
}

#footer .footer-logo-wrap,
#footer .footer-logo {
  position: relative;
  z-index: 2;
}

#footer {
  border-top: 0 !important;
}

#footer hr,
#footer .footer__divider {
  display: none !important;
}

#footer.no-trans {
  transition: none !important;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: auto auto;
  column-gap: clamp(20px, 3vw, 48px);
  row-gap: 18px;
  width: 100%;
  align-items: start;
}

.footer-links-grid--socials-only {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: auto;
}

.footer-links-grid--socials-only .footer-social-label,
.footer-links-grid--socials-only .footer-social-1,
.footer-links-grid--socials-only .footer-social-2,
.footer-links-grid--socials-only .footer-social-3 {
  grid-row: 1;
}

/* columnas fila 1 */
.footer-col-1 {
  grid-column: 1;
}

.footer-col-2 {
  grid-column: 2;
}

.footer-col-3 {
  grid-column: 3;
}

.footer-col-4 {
  grid-column: 4;
}

.footer-col-5 {
  grid-column: 5;
}

.footer-col-6 {
  grid-column: 6;
}

/* aseguramos filas */
.footer-links-grid>.footer-link:nth-child(-n+6) {
  grid-row: 1;
}

.footer-social-label,
.footer-social-1,
.footer-social-2,
.footer-social-3 {
  grid-row: 2;
}

/* alineación de texto */
.footer-links-grid .footer-link {
  justify-self: start;
  white-space: nowrap;
}

body[data-current-slug="careers"] #footer .footer-link,
body[data-current-slug="careers"] #footer .copyright,
body[data-current-slug="careers"] #footer .copyright p {
  mix-blend-mode: normal !important;
  color: #000 !important;
}

body[data-current-slug="careers"] #footer .copyright {
  border-color: #000 !important;
  padding-left: 0;
  padding-right: 0;
}

body[data-current-slug="careers"] #footer .copyright p {
  margin-left: 0;
  margin-right: 0;
}

body[data-current-slug="platform"] #footer .copyright {
  padding-left: 0;
  padding-right: 0;
}

body[data-current-slug="platform"] #footer .copyright p {
  margin-left: 0;
  margin-right: 0;
}

body[data-current-slug="home"] #footer .copyright {
  padding-left: 0;
  padding-right: 0;
}

body[data-current-slug="home"] #footer .copyright p {
  margin-left: 0;
  margin-right: 0;
}

body[data-current-slug="services"] #footer {
  padding-bottom: 0 !important;
}

body[data-current-slug="services"] #footer .copyright {
  margin-bottom: 1.5rem;
  padding-left: 0;
  padding-right: 0;
}

body[data-current-slug="services"] #footer .copyright p {
  margin-left: 0;
  margin-right: 0;
}

/* ================================
   MOBILE
   ================================ */
@media (max-width: 768px) {
  #footer>div>div>p.footer-link {
    display: none !important;
  }

  #footer .footer-link {
    width: auto !important;
    max-width: none !important;
    white-space: nowrap;
    font-size: 13px !important;
  }

  #footer .footer-links-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 16px;
    row-gap: 10px;
    width: 100%;
  }

  #footer .footer-links-grid>* {
    grid-column: auto !important;
    grid-row: auto !important;
    width: auto !important;
    min-width: 0;
  }

  #footer .footer-link {
    white-space: nowrap;
    font-size: 13px !important;
    line-height: 1.25;
  }

  #footer .footer-social-label {
    grid-column: 1 / -1 !important;
    margin-top: 6px;
  }

}

@media (min-width: 769px) {
  #footer {
    min-height: var(--footer-cloud-h);
  }

  .footer-links-grid:not(.footer-links-grid--socials-only) {
    position: relative;
    top: 78px;
  }

  .footer-links-grid--socials-only {
    position: relative;
    top: 0;
    align-items: center;
    padding-top: clamp(28px, 4vw, 56px);
  }

}
