html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
  width: 100%;
}

body:is(.inicio-page, .pricing-page, .fundadores-page, .contacto-page) main > .inicio-section:last-of-type,
body.fundadores-pro-page main > .fundadores-pro-section:last-of-type {
  --public-footer-transition-height: clamp(34px, 4.8vw, 74px);
  position: relative;
  z-index: 2;
}

body:is(.inicio-page, .pricing-page, .fundadores-page, .fundadores-pro-page, .contacto-page) main {
  flex: 0 0 auto;
}

body:is(.inicio-page, .pricing-page, .fundadores-page, .contacto-page) main > .inicio-section:last-of-type::after,
body.fundadores-pro-page main > .fundadores-pro-section:last-of-type::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(-1 * var(--public-footer-transition-height));
  z-index: 0;
  height: var(--public-footer-transition-height);
  clip-path: ellipse(108% 100% at 50% 0%);
  background: var(
    --public-footer-transition-bg,
    var(--public-section-curve-bg, var(--inicio-bg, #f5f6fb))
  );
  pointer-events: none;
}

.site-footer {
  /* margin: 20px 0 0; */
  padding: 56px 20px 34px;
  background: var(--footer-bg);
  border-top: 1px solid var(--footer-border);
  color: var(--footer-text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  width: 100%;
}

body:is(.inicio-page, .pricing-page, .fundadores-page, .fundadores-pro-page, .contacto-page) .site-footer {
  position: relative;
  z-index: 0;
  isolation: isolate;
  overflow: hidden;
  padding: 132px 20px 44px;
  background: transparent;
  border-top: 0;
  color: var(--inicio-hero-text, #ffffff);
}

body:is(.inicio-page, .pricing-page, .fundadores-page, .fundadores-pro-page, .contacto-page) .site-footer::before,
body:is(.inicio-page, .pricing-page, .fundadores-page, .fundadores-pro-page, .contacto-page) .site-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
}

body:is(.inicio-page, .pricing-page, .fundadores-page, .fundadores-pro-page, .contacto-page) .site-footer::before {
  background:
    #050812
    url("/images/pantallazos/hero-web-ars-magik-astro-app-astrologia-en-la-nube-gerwin-regten.jpg")
    center calc(68% + 150px) / cover no-repeat;
  filter: saturate(1.02) contrast(1.08);
}

body:is(.inicio-page, .pricing-page, .fundadores-page, .fundadores-pro-page, .contacto-page) .site-footer::after {
  z-index: -1;
  background: rgba(0, 0, 0, 0.74);
}

.site-footer__inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 36px;
  text-align: left;
}

.site-footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: clamp(32px, 6vw, 96px);
  margin-bottom: 18px;
}

body:is(.inicio-page, .pricing-page, .fundadores-page, .fundadores-pro-page, .contacto-page) .site-footer__brand,
body:is(.inicio-page, .pricing-page, .fundadores-page, .fundadores-pro-page, .contacto-page) .site-footer__links {
  color: rgba(255, 255, 255, 0.9);
}

body:is(.inicio-page, .pricing-page, .fundadores-page, .fundadores-pro-page, .contacto-page) .site-footer__link {
  color: rgba(255, 255, 255, 0.8);
}

body:is(.inicio-page, .pricing-page, .fundadores-page, .fundadores-pro-page, .contacto-page) .site-footer__link:hover,
body:is(.inicio-page, .pricing-page, .fundadores-page, .fundadores-pro-page, .contacto-page) .site-footer__link:focus-visible {
  color: #ffffff;
}

body:is(.inicio-page, .pricing-page, .fundadores-page, .fundadores-pro-page, .contacto-page) .site-footer__brand-icon--light {
  display: none;
}

body:is(.inicio-page, .pricing-page, .fundadores-page, .fundadores-pro-page, .contacto-page) .site-footer__brand-icon--dark {
  display: block;
}

body:is(.inicio-page, .pricing-page, .fundadores-page, .fundadores-pro-page, .contacto-page) .site-footer__inner {
  transform: translateY(8px);
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  flex: 0 1 400px;
  max-width: 400px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--footer-text);
  text-align: left;
}

.site-footer__brand-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.site-footer__brand-name {
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.2;
}

.site-footer__brand-icon {
  width: 40px;
  height: 40px;
  display: block;
}

.site-footer__description {
  margin: 0;
  color: var(--footer-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

body:is(.inicio-page, .pricing-page, .fundadores-page, .fundadores-pro-page, .contacto-page) .site-footer__description {
  color: rgba(255, 255, 255, 0.68);
}

.site-footer__brand-icon--dark {
  display: none;
}

html[data-theme="dark"] .site-footer__brand-icon--dark,
html[data-theme="night"] .site-footer__brand-icon--dark {
  display: block;
}

html[data-theme="dark"] .site-footer__brand-icon--light,
html[data-theme="night"] .site-footer__brand-icon--light {
  display: none;
}

.site-footer__nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, auto));
  gap: 28px clamp(28px, 4vw, 64px);
  margin-left: auto;
  text-align: left;
}

.site-footer__col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
}

.site-footer__col-title {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--footer-muted);
  margin-bottom: 3px;
}

a.site-footer__col-title {
  text-decoration: none;
  transition: color 0.2s ease;
}

a.site-footer__col-title:hover,
a.site-footer__col-title:focus-visible {
  color: var(--footer-link-hover);
}

.site-footer__col .site-footer__link {
  font-size: 0.92rem;
  line-height: 1.4;
}

body:is(.inicio-page, .pricing-page, .fundadores-page, .fundadores-pro-page, .contacto-page) .site-footer__col-title {
  color: rgba(255, 255, 255, 0.55);
}

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px 32px;
  flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid var(--footer-border);
}

body:is(.inicio-page, .pricing-page, .fundadores-page, .fundadores-pro-page, .contacto-page) .site-footer__bottom {
  border-top-color: rgba(255, 255, 255, 0.16);
}

.site-footer__copyright {
  margin: 0;
  color: var(--footer-muted);
  font-size: 0.88rem;
}

body:is(.inicio-page, .pricing-page, .fundadores-page, .fundadores-pro-page, .contacto-page) .site-footer__copyright {
  color: rgba(255, 255, 255, 0.68);
}

.site-footer__links {
  display: inline-flex;
  align-items: center;
  gap: 10px 20px;
  flex-wrap: wrap;
  color: var(--footer-text);
  justify-content: flex-end;
  text-align: right;
}

.site-footer__links .site-footer__link {
  font-size: 0.88rem;
}

.site-footer__link {
  color: var(--footer-link);
  text-decoration: none;
  font-weight: 400;
  font-size: 0.95rem;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.site-footer__link:hover,
.site-footer__link:focus-visible {
  color: var(--footer-link-hover);
}

@media (max-width: 900px) {
  .site-footer {
    padding: 48px 16px 50px;
  }

  body:is(.inicio-page, .pricing-page, .fundadores-page, .fundadores-pro-page, .contacto-page) .site-footer {
    padding: 118px 16px 72px;
  }

  .site-footer__inner {
    gap: 28px;
  }

  .site-footer__top {
    flex-direction: column;
    gap: 28px;
    margin-bottom: 8px;
  }

  .site-footer__brand {
    flex: 0 1 auto;
  }

  .site-footer__nav {
    margin-left: 0;
  }

  .site-footer__nav {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .site-footer__links {
    justify-content: flex-start;
    text-align: left;
    gap: 8px 16px;
  }
}

body.dark-theme .site-footer__link:hover,
body.dark-theme .site-footer__link:focus-visible {
  color: rgba(255, 255, 255, 0.92);
}
