/* ==========================================================================
   09 · FOOTER
   ========================================================================== */

.site-footer {
  padding: 44px clamp(16px, 2.2vw, 44px) 28px;
  background:
    radial-gradient(
      circle at 74% 15%,
      rgba(40, 100, 255, 0.2),
      transparent 26%
    ),
    var(--ink);
}
.footer-cta {
  display: flex;
  justify-content: space-between;
  gap: 50px;
  align-items: end;
  margin: 48px 0 400px;
}
.footer-cta p {
  max-width: 850px;
  margin: 0;
  font-size: clamp(2.7rem, 6vw, 6.5rem);
  font-weight: 700;
  letter-spacing: -0.065em;
  line-height: 0.98;
}
.footer-cta a {
  min-width: max-content;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--cyan);
  font-size: 0.8rem;
  font-weight: 700;
}
.footer-cta a span {
  margin-left: 30px;
  color: var(--cyan);
}
.footer-bottom {
  display: flex;
  gap: 35px;
  align-items: center;
  padding-top: 25px;
  color: rgba(255, 255, 255, 0.4);
  border-top: 1px solid var(--line);
  font-size: 0.68rem;
}
.footer-bottom p {
  margin: 0 auto 0 0;
}
.footer-bottom a:hover {
  color: var(--white);
}
.footer-bottom > span {
  max-width: 300px;
  color: rgba(255, 255, 255, 0.28);
  line-height: 1.45;
  text-align: right;
}
@media (max-width: 820px) {
  .footer-cta {
    display: block;
  }
  .footer-cta a {
    display: inline-block;
    margin-top: 42px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-bottom p {
    margin: 0 0 10px;
  }
  .footer-bottom > span {
    max-width: 100%;
    text-align: left;
  }
}
.site-footer {
  color: #ffffff;
  border-top: 1px solid #ffffff;
  background: #0a0a0a;
}
.footer-cta {
  border-color: #555555;
}
.footer-cta a,
.footer-cta a span,
.footer-bottom a:hover {
  color: #ffffff;
}
.footer-brand {
  width: clamp(270px, 34vw, 520px);
  height: auto;
}
.footer-brand img {
  max-height: none;
}
.footer-bottom .footer-credit {
  max-width: 390px;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.45;
  text-align: right;
}
.footer-bottom .footer-credit:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
@media (max-width: 640px) {
  .footer-brand {
    width: min(100%, 360px);
    height: auto;
  }
  .footer-bottom .footer-credit {
    max-width: 100%;
    font-size: 0.78rem;
    text-align: left;
  }
}
.footer-brand {
  width: clamp(132px, 13vw, 185px);
  height: 60px;
}
.footer-bottom {
  font-size: 0.82rem;
}
.footer-bottom .footer-credit {
  font-size: inherit;
}
.footer-bottom > p,
.footer-bottom > a:not(.footer-credit) {
  color: rgba(255, 255, 255, 0.4);
  font-size: inherit;
}
.footer-bottom > a:not(.footer-credit):hover {
  color: rgba(255, 255, 255, 0.4);
}
@media (max-width: 640px) {
  .footer-brand {
    width: 118px;
    height: 52px;
  }
  .footer-bottom .footer-credit {
    font-size: inherit;
  }
}
.footer-brand {
  width: clamp(132px, 13vw, 185px);
  min-width: 0;
  max-width: 185px;
  height: auto;
  max-height: 48px;
  overflow: hidden;
  flex: 0 0 auto;
}
.footer-brand img {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 48px;
  object-fit: contain;
  object-position: left center;
}
.footer-bottom > p,
.footer-bottom > a:not(.footer-credit) {
  font-family: var(--font-futura);
  font-weight: 400;
}
@media (max-width: 640px) {
  .footer-brand {
    width: 118px;
    max-width: 118px;
    height: auto;
    max-height: 34px;
  }
  .footer-brand img {
    max-height: 34px;
  }
}
.footer-bottom > p,
.footer-bottom > a,
.footer-bottom > a.footer-credit {
  font-family: var(--font-futura) !important;
  font-size: 13px !important;
  font-weight: 400 !important;
}
.site-footer {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background-color: #000000 !important;
  background-image:
    linear-gradient(90deg, rgba(1, 8, 12, 0.82), rgba(1, 8, 12, 0.9)),
    var(--ta-footer-bg) !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
}
.site-footer::before {
  display: none !important;
  content: none !important;
  background: none !important;
}
.site-footer > * {
  position: relative;
  z-index: 1;
}
@media (max-width: 640px) {
  .site-footer {
    background-position: 26% center !important;
  }
}
.site-footer .footer-cta {
  margin-bottom: 120px;
}
.footer-line-graphic {
  position: absolute;
  z-index: 0; /* detrás del contenido del footer (que va en z-index 1) */
  left: clamp(-118px, -7vw, -24px);
  right: clamp(-118px, -7vw, -24px);
  top: 166px;
  bottom: auto;
  height: clamp(150px, 18vw, 280px);
  pointer-events: none;
  opacity: 1;
  background-image: var(--ta-ribbon) !important;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  filter: saturate(1.2) brightness(1.15)
    drop-shadow(0 0 9px rgba(0, 225, 164, 0.3)) !important;
  transform: scaleY(-1);
  animation: ta-footer-ribbon-drift 18s ease-in-out infinite alternate;
}
@media (max-width: 640px) {
  .footer-line-graphic {
    height: 92px;
    margin-top: 4px;
    margin-bottom: 0;
    opacity: 1;
    background-size: auto 125%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .footer-line-graphic {
    animation: none !important;
  }
}

@keyframes ta-footer-ribbon-drift {
  from {
    transform: translate3d(-1.5%, 6px, 0) scale(1.015, -1.015);
  }
  to {
    transform: translate3d(1.5%, -4px, 0) scale(1.035, -1.035);
  }
}

/* --- Botón del footer = mismo primary del head (cliente) --- */
.footer-cta .button-primary {
  min-height: 62px;
  padding: 0 34px;
  border-bottom: none !important;
  font-size: var(--fs-caption) !important;
}
.footer-cta .button-primary span {
  margin-left: 26px;
}

/* --- Cinta del footer: difuminar bordes (sin corte) y movimiento más fluido (cliente) --- */
.footer-line-graphic {
  -webkit-mask-image:
    linear-gradient(
      to bottom,
      transparent 0%,
      #000 30%,
      #000 80%,
      transparent 100%
    ),
    linear-gradient(
      to right,
      transparent 0%,
      #000 14%,
      #000 86%,
      transparent 100%
    );
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(
      to bottom,
      transparent 0%,
      #000 30%,
      #000 80%,
      transparent 100%
    ),
    linear-gradient(
      to right,
      transparent 0%,
      #000 14%,
      #000 86%,
      transparent 100%
    );
  mask-composite: intersect;
  animation-duration: 20s !important;
  animation-timing-function: ease-in-out !important;
}

/* --- Footer en móvil: centrado y botón compacto (cliente) --- */
@media (max-width: 640px) {
  .footer-cta {
    text-align: center;
  }
  .footer-cta .button-primary {
    display: inline-flex !important;
    width: auto !important;
    padding: 0 26px !important;
    margin: 18px auto 0 !important;
  }
  .footer-bottom {
    align-items: center !important;
    text-align: center;
  }
  .footer-bottom > p,
  .footer-bottom > a {
    width: 100%;
    text-align: center !important;
    margin-left: 0;
  }
}

/* --- Tamaños footer (guía PDF) --- */
.footer-cta p {
  font-size: var(--fs-titulo) !important;
  line-height: 1.06 !important;
}
.footer-bottom > p,
.footer-bottom > a {
  font-size: var(--fs-cuerpo) !important;
} /* pie de página más grande (cliente) */
.footer-bottom .footer-bases {
  color: var(--ta-green) !important;
} /* "Descarga bases" en verde */

/* --- Hover cyan en "Descarga bases de participación" --- */
.footer-bottom .footer-bases {
  transition: color 0.18s ease;
}
.footer-bottom .footer-bases:hover {
  color: var(--ta-cyan) !important;
}
