.site-footer {
  position: relative;
  background: var(--gradient-mesh);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(66, 165, 245, 0.12), transparent 18%, rgba(255, 179, 0, 0.1) 52%, transparent 84%);
  mix-blend-mode: screen;
  opacity: 0.7;
  pointer-events: none;
}

.site-footer__line {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(66, 165, 245, 0.85), rgba(255, 179, 0, 0.9), transparent);
  animation: footerLine 5s linear infinite;
}

.site-footer__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 2rem;
  width: var(--container);
  margin-inline: auto;
  padding: 4rem 0 2rem;
}

.footer-brand {
  display: grid;
  gap: 1.1rem;
}

.footer-brand__top {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

.footer-brand__mark {
  width: 60px;
  height: 76px;
  display: block;
  flex-shrink: 0;
  background: url("../assets/images/logo/mark-only.png") center / contain no-repeat;
  filter: drop-shadow(0 10px 24px rgba(66, 165, 245, 0.22));
}

.footer-brand__mark > * {
  display: none;
}

.footer-brand__title {
  font-family: var(--font-display);
  font-size: 2rem;
}

.footer-brand__tag {
  color: rgba(227, 234, 244, 0.78);
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.social-icon {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  position: relative;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0;
  font-weight: 700;
  color: var(--color-text-light);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.social-icon::before {
  content: "";
  width: 18px;
  height: 18px;
  display: block;
  background: currentColor;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
  transition: transform var(--transition-fast);
}

.social-icon[data-platform="facebook"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M13.5 3C10.46 3 9 4.76 9 8.02V10H6.5v3H9v8h3v-8h3.08l.42-3H12V8.32c0-1 .28-2.32 1.92-2.32H16V3.24c-.4-.06-1.23-.24-2.5-.24Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M13.5 3C10.46 3 9 4.76 9 8.02V10H6.5v3H9v8h3v-8h3.08l.42-3H12V8.32c0-1 .28-2.32 1.92-2.32H16V3.24c-.4-.06-1.23-.24-2.5-.24Z'/%3E%3C/svg%3E");
}

.social-icon[data-platform="instagram"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7 2h10a5 5 0 0 1 5 5v10a5 5 0 0 1-5 5H7a5 5 0 0 1-5-5V7a5 5 0 0 1 5-5Zm0 2a3 3 0 0 0-3 3v10a3 3 0 0 0 3 3h10a3 3 0 0 0 3-3V7a3 3 0 0 0-3-3H7Zm5 3.5A5.5 5.5 0 1 1 6.5 13 5.5 5.5 0 0 1 12 7.5Zm0 2A3.5 3.5 0 1 0 15.5 13 3.5 3.5 0 0 0 12 9.5Zm6.25-3.5A1.25 1.25 0 1 1 17 7.25 1.25 1.25 0 0 1 18.25 6Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7 2h10a5 5 0 0 1 5 5v10a5 5 0 0 1-5 5H7a5 5 0 0 1-5-5V7a5 5 0 0 1 5-5Zm0 2a3 3 0 0 0-3 3v10a3 3 0 0 0 3 3h10a3 3 0 0 0 3-3V7a3 3 0 0 0-3-3H7Zm5 3.5A5.5 5.5 0 1 1 6.5 13 5.5 5.5 0 0 1 12 7.5Zm0 2A3.5 3.5 0 1 0 15.5 13 3.5 3.5 0 0 0 12 9.5Zm6.25-3.5A1.25 1.25 0 1 1 17 7.25 1.25 1.25 0 0 1 18.25 6Z'/%3E%3C/svg%3E");
}

.social-icon[data-platform="linkedin"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M6.75 8.5H3.9V20h2.85V8.5Zm-1.43-4.9a1.67 1.67 0 1 0 0 3.34 1.67 1.67 0 0 0 0-3.34ZM9.2 8.5V20h2.73v-5.68c0-1.5.28-2.95 2.14-2.95 1.84 0 1.87 1.72 1.87 3.05V20h2.74v-6.14c0-3.01-.65-5.32-4.17-5.32-1.69 0-2.82.92-3.28 1.8h-.04V8.5H9.2Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M6.75 8.5H3.9V20h2.85V8.5Zm-1.43-4.9a1.67 1.67 0 1 0 0 3.34 1.67 1.67 0 0 0 0-3.34ZM9.2 8.5V20h2.73v-5.68c0-1.5.28-2.95 2.14-2.95 1.84 0 1.87 1.72 1.87 3.05V20h2.74v-6.14c0-3.01-.65-5.32-4.17-5.32-1.69 0-2.82.92-3.28 1.8h-.04V8.5H9.2Z'/%3E%3C/svg%3E");
}

.social-icon[data-platform="youtube"]::before {
  width: 20px;
  height: 20px;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M21.58 7.18a3 3 0 0 0-2.1-2.12C17.63 4.5 12 4.5 12 4.5s-5.63 0-7.48.56A3 3 0 0 0 2.42 7.18 31.13 31.13 0 0 0 2 12a31.13 31.13 0 0 0 .42 4.82 3 3 0 0 0 2.1 2.12c1.85.56 7.48.56 7.48.56s5.63 0 7.48-.56a3 3 0 0 0 2.1-2.12A31.13 31.13 0 0 0 22 12a31.13 31.13 0 0 0-.42-4.82ZM10 15.5V8.5l6 3.5-6 3.5Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M21.58 7.18a3 3 0 0 0-2.1-2.12C17.63 4.5 12 4.5 12 4.5s-5.63 0-7.48.56A3 3 0 0 0 2.42 7.18 31.13 31.13 0 0 0 2 12a31.13 31.13 0 0 0 .42 4.82 3 3 0 0 0 2.1 2.12c1.85.56 7.48.56 7.48.56s5.63 0 7.48-.56a3 3 0 0 0 2.1-2.12A31.13 31.13 0 0 0 22 12a31.13 31.13 0 0 0-.42-4.82ZM10 15.5V8.5l6 3.5-6 3.5Z'/%3E%3C/svg%3E");
}

.social-icon[data-platform="whatsapp"]::before {
  width: 19px;
  height: 19px;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12.04 2A9.93 9.93 0 0 0 3.5 17.06L2 22l5.06-1.46A9.99 9.99 0 1 0 12.04 2Zm0 18.13a8.13 8.13 0 0 1-4.14-1.13l-.29-.17-3.01.87.9-2.94-.19-.3a8.12 8.12 0 1 1 6.73 3.67Zm4.47-6.02c-.24-.12-1.44-.71-1.66-.79-.22-.08-.38-.12-.54.12-.16.24-.63.79-.77.95-.14.16-.29.18-.53.06-.24-.12-1.03-.38-1.96-1.2-.72-.64-1.21-1.44-1.35-1.68-.14-.24-.01-.37.1-.49.11-.11.24-.28.36-.42.12-.14.16-.24.24-.4.08-.16.04-.3-.02-.42-.06-.12-.54-1.3-.74-1.79-.2-.47-.4-.4-.54-.4h-.46c-.16 0-.42.06-.64.3-.22.24-.84.82-.84 2s.86 2.33.98 2.49c.12.16 1.69 2.58 4.1 3.61.57.25 1.02.4 1.37.51.58.18 1.11.15 1.53.09.47-.07 1.4-.57 1.6-1.12.2-.55.2-1.02.14-1.12-.06-.11-.22-.17-.46-.29Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12.04 2A9.93 9.93 0 0 0 3.5 17.06L2 22l5.06-1.46A9.99 9.99 0 1 0 12.04 2Zm0 18.13a8.13 8.13 0 0 1-4.14-1.13l-.29-.17-3.01.87.9-2.94-.19-.3a8.12 8.12 0 1 1 6.73 3.67Zm4.47-6.02c-.24-.12-1.44-.71-1.66-.79-.22-.08-.38-.12-.54.12-.16.24-.63.79-.77.95-.14.16-.29.18-.53.06-.24-.12-1.03-.38-1.96-1.2-.72-.64-1.21-1.44-1.35-1.68-.14-.24-.01-.37.1-.49.11-.11.24-.28.36-.42.12-.14.16-.24.24-.4.08-.16.04-.3-.02-.42-.06-.12-.54-1.3-.74-1.79-.2-.47-.4-.4-.54-.4h-.46c-.16 0-.42.06-.64.3-.22.24-.84.82-.84 2s.86 2.33.98 2.49c.12.16 1.69 2.58 4.1 3.61.57.25 1.02.4 1.37.51.58.18 1.11.15 1.53.09.47-.07 1.4-.57 1.6-1.12.2-.55.2-1.02.14-1.12-.06-.11-.22-.17-.46-.29Z'/%3E%3C/svg%3E");
}

.social-icon.is-disabled,
.social-icon[aria-disabled="true"] {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}

.social-icon:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow-blue);
}

.social-icon:hover::before {
  transform: scale(1.08);
}

.social-icon[data-platform="facebook"]:hover {
  background: rgba(24, 119, 242, 0.18);
}

.social-icon[data-platform="instagram"]:hover {
  background: rgba(225, 48, 108, 0.18);
}

.social-icon[data-platform="linkedin"]:hover {
  background: rgba(10, 102, 194, 0.18);
}

.social-icon[data-platform="youtube"]:hover {
  background: rgba(255, 0, 0, 0.18);
}

.social-icon[data-platform="whatsapp"]:hover {
  background: rgba(37, 211, 102, 0.18);
}

.footer-title {
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.footer-links,
.footer-programs,
.footer-contact {
  display: grid;
  gap: 0.85rem;
}

.footer-links a,
.footer-programs a,
.footer-contact a {
  color: rgba(227, 234, 244, 0.74);
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.footer-links a:hover,
.footer-programs a:hover,
.footer-contact a:hover {
  color: var(--color-white);
  transform: translateX(4px);
}

.cert-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cert-badge {
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(227, 234, 244, 0.78);
  font-size: 0.82rem;
}

.site-footer__bottom {
  position: relative;
  z-index: 1;
  width: var(--container);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.4rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(227, 234, 244, 0.66);
}

.site-footer__bottom a {
  color: rgba(227, 234, 244, 0.82);
  border-bottom: 1px solid transparent;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.site-footer__bottom a:hover {
  color: var(--color-white);
  border-bottom-color: rgba(255, 179, 0, 0.55);
}

@media (max-width: 1180px) {
  .site-footer__inner {
    grid-template-columns: 1.2fr 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
    max-width: 36rem;
  }
}

@media (max-width: 900px) {
  .site-footer__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .site-footer__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
    padding-top: 3rem;
  }

  .site-footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}
