/* ---------- Footer (réplica fluid.glass: 100svh, fondo, reveal) ---------- */
.footer {
  position: relative;
  height: 100svh;
  overflow: hidden;
  color: var(--white);
}

.footer__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.footer__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

/* velo oscuro para legibilidad */
.footer__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    color-mix(in srgb, var(--black) 45%, transparent),
    color-mix(in srgb, var(--black) 60%, transparent)
  );
}

.footer__container {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* logo arriba-centro: aparece al final del scroll (GSAP) */
.footer__logo {
  height: 34px;
  width: auto;
  margin-top: 2rem;
}

/* wordmark gigante semitransparente pegado abajo */
/* wordmark en dos líneas, centrado en medio del footer */
.footer__topper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  font-family: var(--font-display);
  font-size: 12vw;
  line-height: 0.95;
  text-align: center;
  white-space: nowrap;
  color: color-mix(in srgb, var(--white) 25%, transparent);
  user-select: none;
  pointer-events: none;
}

.footer__topper span {
  display: block;
}

/* barra inferior: © + sociales / legales */
.footer__bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md);
  font-size: var(--text-small);
  color: color-mix(in srgb, var(--white) 80%, transparent);
}

.footer__social,
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer__bar a {
  display: inline-block;
  padding-block: 2px;
  transition: color var(--dur-ui) var(--ease-out);
}

@media (hover: hover) {
  .footer__bar a:hover {
    color: var(--white);
  }
}

@media (max-width: 768px) {
  .footer__bar {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }
  .footer__social,
  .footer__legal {
    gap: var(--space-sm) var(--space-md);
  }
}
