
/* Footer principal - Compatible con tu estructura existente */
.main-footer {
  background-color: var(--color-terciario) !important;
  color: var(--color-texto-secundario);
  padding: 40px 0 0;
  margin: 0;
  width: 100vw;
}

/* Secciones del footer - Compatible con tu .footer-section */
.footer-section h5,
.footer-section h6 {
  color: var(--color-primario) !important;
  font-size: 1.2em;
  margin-bottom: 15px;
  position: relative;
}

.footer-section h5::after,
.footer-section h6::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--color-secundario);
}

.footer-section p {
  color: var(--color-texto-secundario);
  font-size: 1em;
  line-height: 1.6;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin: 8px 0;
}

.footer-section ul li a {
  color: var(--color-texto-secundario) !important;
  text-decoration: none;
  font-size: 1em;
  transition: all 0.3s ease;
  padding: 5px 0;
  display: inline-block;
  position: relative;
}

.footer-section ul li a::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-secundario);
  transition: width 0.3s ease;
}

.footer-section ul li a:hover {
  color: var(--color-secundario) !important;
  transform: translateX(5px);
}

.footer-section ul li a:hover::before {
  width: 100%;
}

/* Iconos sociales - Compatible con tu .social-icons */
.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, var(--color-fondo-botones) 0%, var(--color-secundario) 100%);
  color: var(--color-texto-secundario) !important;
  border-radius: 50%;
  text-decoration: none;
  font-size: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.social-icon::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.3s;
}

.social-icon:hover::before {
  left: 100%;
}

.social-icon:hover {
  background: linear-gradient(135deg, var(--color-secundario) 0%, var(--color-fondo-botones) 100%);
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  color: var(--color-texto-secundario) !important;
}

/* Línea divisoria - Compatible con tu .footer-bottom hr */
.footer-divider {
  border: none;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-secundario), transparent);
  margin: 30px 0 20px;
  opacity: 0.7;
  width: 100%;
}

/* Copyright - Compatible con tu .footer-bottom */
.footer-copyright {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 20px 0;
  margin-top: 20px;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.footer-copyright p {
  margin: 0;
  font-size: 0.9em;
  color: var(--color-texto-secundario);
  opacity: 0.8;
}

/* Responsive - Compatible con tus media queries */
@media (max-width: 768px) {
  .footer-section {
    margin-bottom: 30px;
    text-align: center;
  }

  .footer-section h5::after,
  .footer-section h6::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .social-icons {
    justify-content: center;
  }

  .footer-section ul li a:hover {
    transform: none;
  }
}

@media (max-width: 480px) {
  .main-footer {
    padding: 30px 0 0;
  }

  .footer-section h5,
  .footer-section h6 {
    font-size: 1.1em;
  }

  .footer-section p,
  .footer-section ul li a {
    font-size: 0.9em;
  }

  .social-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}
