.footer {
  background: linear-gradient(180deg, rgba(10, 0, 26, 0.8) 0%, rgba(25, 0, 40, 0.95) 100%);
  border-top: 2px solid rgba(181, 23, 255, 0.3);
  padding: 60px 20px 30px;
  margin-top: 80px;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Efecto de resplandor en el borde superior */
.footer::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #b517ff, transparent);
  animation: borderGlow 3s ease-in-out infinite;
}

@keyframes borderGlow {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

/* ===================================
   CONTENEDOR PRINCIPAL
   =================================== */

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section {
  animation: fadeIn 0.8s ease-out both;
}

.footer-section:nth-child(1) { animation-delay: 0.2s; }
.footer-section:nth-child(2) { animation-delay: 0.3s; }
.footer-section:nth-child(3) { animation-delay: 0.4s; }
.footer-section:nth-child(4) { animation-delay: 0.5s; }

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ===================================
   LOGO Y DESCRIPCIÓN
   =================================== */

.footer-logo {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.footer-logo img {
  width: 150px;
  filter: drop-shadow(0 0 15px rgba(181, 23, 255, 0.6));
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-5px);
  }
}

.footer-section h3 {
  color: #fff;
  font-size: 20px;
  margin-bottom: 20px;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(181, 23, 255, 0.5);
  position: relative;
  display: inline-block;
}

.footer-section h3::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, #b517ff, transparent);
}

.footer-section p {
  color: #cfaaff;
  line-height: 1.8;
  margin-bottom: 15px;
}

/* ===================================
   REDES SOCIALES
   =================================== */

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-link {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(181, 23, 255, 0.1);
  border: 2px solid rgba(181, 23, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b517ff;
  text-decoration: none;
  transition: all 0.3s;
  font-size: 20px;
}

.social-link:hover {
  background: rgba(181, 23, 255, 0.3);
  border-color: #b517ff;
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 5px 20px rgba(181, 23, 255, 0.5);
}

.social-link i {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* ===================================
   ENLACES
   =================================== */

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #cfaaff;
  text-decoration: none;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-links a:hover {
  color: #b517ff;
  text-shadow: 0 0 10px rgba(181, 23, 255, 0.8);
  transform: translateX(5px);
}

.footer-links a i {
  font-size: 14px;
}

/* ===================================
   INFO DE CONTACTO
   =================================== */

.contact-info {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-info li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 15px;
  color: #cfaaff;
}

.contact-info i {
  color: #b517ff;
  font-size: 18px;
  text-shadow: 0 0 10px rgba(181, 23, 255, 0.9);
  margin-top: 2px;
}

/* ===================================
   FOOTER BOTTOM
   =================================== */

.footer-bottom {
  border-top: 1px solid rgba(181, 23, 255, 0.2);
  padding-top: 25px;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
  animation: fadeIn 1s ease-out 0.6s both;
}

.footer-bottom p {
  color: #cfaaff;
  margin: 0;
  font-size: 14px;
}

.footer-bottom a {
  color: #b517ff;
  text-decoration: none;
  transition: all 0.3s;
}

.footer-bottom a:hover {
  color: #fff;
  text-shadow: 0 0 10px rgba(181, 23, 255, 0.8);
}

/* ===================================
   RESPONSIVE
   =================================== */

@media (max-width: 768px) {
  .footer {
    padding: 40px 15px 20px;
    margin-top: 60px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-section {
    text-align: center;
  }

  .footer-section h3::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-logo {
    justify-content: center;
  }

  .social-links {
    justify-content: center;
  }

  .footer-links a:hover {
    transform: translateX(0) scale(1.05);
  }

  .contact-info li {
    justify-content: center;
    text-align: left;
  }
}