/* ===== FOOTER PROFESIONAL CON FONDO NEGRO ===== */

.footer-wrapper {
  background-color: #000000 !important;
  width: 100%;
  margin-top: 4rem;
}

.main-footer {
  background-color: #000000 !important;
  padding: 0 0 0 0;
}

#main-footer {
  background-color: #000000 !important;
}

/* ===== CONTENIDO PRINCIPAL DEL FOOTER ===== */
.footer-content {
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding: calc(var(--spacing-unit) * 3) calc(var(--spacing-unit) * 2);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: calc(var(--spacing-unit) * 3);
  text-align: center;
  background-color: #000000 !important;
}

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

/* ===== TÍTULOS H3 EN BLANCO ===== */
.footer-column h3 {
  text-align: center;
  margin: 0 0 calc(var(--spacing-unit) * 1.5) 0;
  padding: 0;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.2;
}

/* ===== LISTAS DEL FOOTER ===== */
.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(var(--spacing-unit) * 1);
}

.footer-column li {
  margin: 0;
  padding: 0;
}

/* ===== ENLACES DEL FOOTER (MANTIENEN ESTILO) ===== */
.footer-column a {
  color: var(--color-primary) !important;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease, opacity 0.3s ease;
}

.footer-column a:hover {
  color: var(--color-secondary) !important;
  text-decoration: underline;
}

.footer-column a:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 4px;
  border-radius: 3px;
}

/* ===== FOOTER BOTTOM (NEGRO CON GRIS CLARO) ===== */
.footer-bottom {
  background-color: #000000 !important;
  text-align: center;
  padding: calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 2);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: calc(var(--spacing-unit) * 1);
}

.footer-bottom p {
  color: #d0d0d0 !important;
  margin: 0 !important;
  padding: 0;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.4;
}

/* ===== SCROLL A INICIO ===== */
#scroll-to-top {
  position: fixed;
  bottom: calc(var(--spacing-unit) * 3);
  right: calc(var(--spacing-unit) * 3);
  width: 50px;
  height: 50px;
  background-color: var(--color-primary);
  color: black;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1000;
}

#scroll-to-top:hover {
  background-color: #003d99;
  transform: translateY(-2px);
}

/* ===== PARTNERS CAROUSEL ===== */
.partners-carousel {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: calc(var(--spacing-unit) * 3);
  width: 100%;
  max-width: var(--max-content-width);
  margin: 0 auto;
}

/* ===== RESPONSIVE TABLET ===== */
@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: calc(var(--spacing-unit) * 2);
    padding: calc(var(--spacing-unit) * 2);
  }

  .footer-column h3 {
    font-size: 1rem;
    margin-bottom: calc(var(--spacing-unit) * 1);
  }

  .footer-column a {
    font-size: 0.9rem;
  }

  .footer-bottom {
    padding: calc(var(--spacing-unit) * 1.5) calc(var(--spacing-unit) * 1);
  }

  .footer-bottom p {
    font-size: 0.85rem;
  }
}

/* ===== RESPONSIVE MOBILE ===== */
@media (max-width: 480px) {
  .footer-wrapper {
    margin-top: 2rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: calc(var(--spacing-unit) * 2);
    padding: calc(var(--spacing-unit) * 1.5);
  }

  .footer-column h3 {
    font-size: 0.95rem;
  }

  .footer-column a {
    font-size: 0.85rem;
  }

  #scroll-to-top {
    bottom: calc(var(--spacing-unit) * 2);
    right: calc(var(--spacing-unit) * 2);
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
  }
}
