/* ===== FOOTER & SPONSORS ===== */

.site-footer {
  padding: 3.5rem 3rem 3rem;
  background-color: var(--primary-color) !important;
  color: var(--white-color);
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.footer-column {
  flex: 1 1 0;
  min-width: 140px;
}

.footer-column:first-child {
  flex: 0 0 120px;
  display: flex;
  align-items: flex-start;
}

.footer-column:last-child {
  flex: 0 0 100px;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
}

.footer-column img {
  max-width: 100%;
  height: auto;
}

.footer-widget-title {
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: 0.01em;
}

.site-footer p,
.site-footer .textwidget,
.site-footer .textwidget p {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--white-color);
  margin-bottom: 0;
}

.site-footer .textwidget p,
.site-footer .textwidget a,
.site-footer .textwidget span {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}

.site-footer .textwidget p {
  display: flex;
  align-items: center;
  gap: 0.4em;
  margin-bottom: 0.25rem;
}

.site-footer .textwidget svg,
.site-footer .textwidget img:not(.footer-logo) {
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
  vertical-align: middle;
}

.site-footer a {
  color: var(--white-color);
  text-decoration: none;
  transition: opacity var(--transition-base);
}

.site-footer a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.footer-credits {
  text-align: center;
  padding: 1rem 1.5rem;
  background-color: var(--primary-color);
}

.footer-credits p {
  margin: 0;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-credits a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
}

.footer-credits a:hover {
  color: var(--white-color);
  text-decoration: underline;
}

.footer-nav ul {
  list-style: none !important;
  padding: 0;
  margin: 0;
}

.footer-menu li {
  margin-bottom: 0.375rem;
}

.footer-menu a {
  color: var(--white-color);
  text-decoration: none;
  font-size: 0.875rem;
  line-height: 1.7;
}

.footer-menu a:hover {
  text-decoration: underline;
  opacity: 0.85;
}

/* Sponsor Section */
.sponsor {
  display: block;
  justify-content: left;
  align-items: start;
  padding-left: 2rem !important;
}

.sponsor p {
  font-size: 1rem;
  font-weight: bold;
}

.section-sponsores {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 4rem;
  margin-top: 20px;
}

.section-sponsores img {
  height: 80px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  display: block;
}

/* Footer responsive */
@media (max-width: 992px) {
  .footer-container {
    gap: 1.5rem;
  }

  .site-footer {
    padding: 2.5rem 1.5rem 2rem;
  }

  .footer-column {
    flex: 1 1 calc(33% - 1.5rem);
    min-width: 160px;
  }

  .footer-column:first-child,
  .footer-column:last-child {
    flex: 1 1 calc(33% - 1.5rem);
  }
}

@media (max-width: 640px) {
  .footer-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1.5rem;
  }

  .site-footer {
    padding: 2.5rem 1.5rem 2rem;
  }

  .footer-column:first-child {
    flex: none;
    grid-column: 1 / 2;
  }

  .footer-column:first-child img {
    max-width: 80px;
  }

  .footer-column:last-child {
    flex: none;
    grid-column: 2 / 3;
    grid-row: 1;
    justify-content: flex-end;
    align-items: flex-start;
  }

  .footer-column:last-child img {
    max-width: 60px;
  }

  .footer-column {
    flex: none;
    min-width: 0;
  }

  .site-footer p,
  .site-footer .textwidget,
  .site-footer .textwidget p,
  .footer-menu a {
    font-size: 0.8125rem;
    line-height: 1.6;
  }

  .footer-widget-title {
    font-size: 0.8125rem;
    margin-bottom: 0.5rem;
  }

  .footer-menu li {
    margin-bottom: 0.25rem;
  }
}
