
html, body {
  min-height: 100vh;
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}
body {
  background: var(--color-bg);
  color: var(--color-text);
  position: relative;
}

main, .main-container, .container.content-wrapper {
  flex: 1 0 auto; 
}

.footer {
  background-color: var(--color-bg-alt) !important;
  color: var(--color-text) !important;
  padding: 40px 20px;
  font-size: 0.95rem;
  width: 100%;
  position: static; /* Quita absolute */
  bottom: 0;        /* Ya no necesario */
  left: 0;
  right: 0;
  box-sizing: border-box;
}

/* ============
   Columnas
   ============ */
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
.footer-column {
  flex: 1 1 250px;
  margin: 15px;
  min-width: 180px;
}
.footer-column h4 {
  margin-bottom: 15px;
  font-size: 1.1rem;
  color: var(--color-secondary);
}
.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-column ul li {
  margin-bottom: 8px;
}
.footer-column ul li a {
  color: var(--color-primary);
  text-decoration: none;
  transition: opacity 0.3s ease;
}
.footer-column ul li a:hover {
  opacity: 0.7;
}
.footer-column p {
  margin: 8px 0;
}

/* ===============
   Social Icons
   =============== */
.social-icons a {
  display: inline-block;
  margin-right: 8px;
}
.social-icons img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
  transition: opacity 0.3s ease;
}
.social-icons img:hover {
  opacity: 0.7;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid var(--color-border);
  margin-top: 20px;
  padding-top: 10px;
  color: var(--color-text-light) !important;
}
.footer-bottom a {
  color: var(--color-primary);
  text-decoration: underline;
  transition: opacity 0.3s;
}
.footer-bottom a:hover {
  opacity: 0.8;
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
  }
  .footer-column {
    margin: 12px 0;
    min-width: 100px;
  }
}
