/* footer.css - COMPLETO con Iconos y Estilos Mejorados */

/* ===== FOOTER PRINCIPAL ===== */
.footer {
  background: linear-gradient(135deg, #334155 0%, #000000 100%);
  color: #ffffff;
  padding: 3rem 0;
  overflow: hidden;
  position: relative;
  margin-top: auto;
  flex-shrink: 0;
  width: 100%;
}

/* Efectos de fondo animados */
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 25% 25%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(118, 75, 162, 0.1) 0%, transparent 50%);
  z-index: 0;
  pointer-events: none;
}

/* Contenedor principal */
.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
  position: relative;
  z-index: 1;
}

/* ===== SECCIONES DEL FOOTER ===== */
.footer-section {
  position: relative;
}

.footer-section h3 {
  color: #ffffff;
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 4px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 2px;
}

.footer-section h3 span {
  color: #a855f7;
}

.footer-section h3 i {
  color: #a855f7;
  font-size: 18px;
  width: 20px;
  text-align: center;
}

/* ===== SECCIÓN ABOUT ESPECIAL ===== */
.footer-section.about {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.footer-section.about:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.footer-section.about h3 {
  font-size: 24px;
  margin-bottom: 1rem;
  justify-content: center;
}

.footer-section.about p {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  text-align: center;
}

/* ===== INFORMACIÓN DE CONTACTO ===== */
.contact {
  margin: 1.5rem 0;
}

.contact p {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  justify-content: center;
  transition: all 0.3s ease;
}

.contact p:hover {
  color: #ffffff;
  transform: translateX(5px);
}

.contact i {
  width: 20px;
  color: #a855f7;
  font-size: 16px;
  text-align: center;
}

/* ===== LISTAS DE ENLACES ===== */
.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 14px;
}

.footer-section ul li a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  padding: 8px 0;
  position: relative;
}

.footer-section ul li a:hover {
  color: #ffffff;
  transform: translateX(12px);
}

.footer-section ul li a i {
  width: 20px;
  text-align: center;
  color: #a855f7;
  font-size: 14px;
  transition: all 0.3s ease;
}

.footer-section ul li a:hover i {
  color: #ffffff;
  transform: scale(1.1);
}

.footer-section ul li a::before {
  content: '→';
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 700;
  color: #a855f7;
  position: absolute;
  left: -15px;
}

.footer-section ul li a:hover::before {
  opacity: 1;
}

/* ===== REDES SOCIALES ===== */
.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.social-link {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 18px;
  position: relative;
  overflow: hidden;
}

.social-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  transition: all 0.3s ease;
  z-index: -1;
}

.social-link:hover::before {
  left: 0;
}

.social-link:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  border-color: transparent;
  color: #ffffff;
}

.social-link i {
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.social-link:hover i {
  transform: rotate(15deg) scale(1.1);
}

/* Colores específicos para redes sociales */
.social-link:nth-child(1):hover { /* Facebook */
  box-shadow: 0 10px 15px -3px rgba(59, 89, 152, 0.3);
}

.social-link:nth-child(2):hover { /* Twitter */
  box-shadow: 0 10px 15px -3px rgba(29, 161, 242, 0.3);
}

.social-link:nth-child(3):hover { /* Instagram */
  box-shadow: 0 10px 15px -3px rgba(225, 48, 108, 0.3);
}

.social-link:nth-child(4):hover { /* Discord */
  box-shadow: 0 10px 15px -3px rgba(114, 137, 218, 0.3);
}

.social-link:nth-child(5):hover { /* Telegram */
  box-shadow: 0 10px 15px -3px rgba(0, 136, 204, 0.3);
}

/* ===== FOOTER BOTTOM ===== */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  position: relative;
  z-index: 1;
}

.footer-bottom p {
  margin: 0;
  font-weight: 500;
}

.footer-bottom .social-links {
  justify-content: center;
  margin-bottom: 1.5rem;
}

.footer-bottom .social-link {
  width: 44px;
  height: 44px;
  font-size: 16px;
}

/* ===== WHATSAPP FLOTANTE ===== */
.whatsapp-popup {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 8px;
}

.whatsapp-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.whatsapp-link:hover {
  transform: scale(1.1);
}

.whatsapp-tooltip {
  background: white;
  color: #333;
  padding: 10px 15px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  font-size: 14px;
  white-space: nowrap;
  font-weight: 600;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.3s ease;
  position: relative;
}

.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: white;
}

.whatsapp-link:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

.whatsapp-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

.whatsapp-link:hover .whatsapp-icon {
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
  animation: none;
  transform: scale(1.1);
}

@keyframes pulse {
  0%, 100% { 
    transform: scale(1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  }
  50% { 
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.3);
  }
}

/* ===== ANIMACIONES DE ENTRADA ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer-section {
  animation: fadeInUp 0.6s ease-out;
  animation-fill-mode: both;
}

.footer-section:nth-child(1) { animation-delay: 0.1s; }
.footer-section:nth-child(2) { animation-delay: 0.2s; }
.footer-section:nth-child(3) { animation-delay: 0.3s; }
.footer-section:nth-child(4) { animation-delay: 0.4s; }

/* ===== EFECTOS ESPECIALES ===== */
.footer-section:hover {
  transform: translateY(-2px);
  transition: transform 0.3s ease;
}

.footer-section:not(.about):hover {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 15px;
  padding: 1rem;
  margin: -1rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
  .footer-content {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
  }
  
  .footer-section h3 {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .footer {
    padding: 2rem 0;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-section h3 {
    font-size: 16px;
    justify-content: center;
  }

  .footer-section.about {
    padding: 1.5rem;
    text-align: center;
  }

  .footer-section.about h3 {
    font-size: 22px;
  }

  .footer-section ul li a {
    justify-content: center;
  }

  .social-links {
    justify-content: center;
  }

  .whatsapp-popup {
    bottom: 15px;
    right: 15px;
  }

  .whatsapp-icon {
    width: 50px;
    height: 50px;
  }

  .whatsapp-tooltip {
    display: none;
  }
}

@media (max-width: 480px) {
  .footer-content {
    gap: 1.5rem;
  }

  .footer-section h3 {
    font-size: 14px;
    margin-bottom: 1rem;
  }

  .footer-section.about {
    padding: 1rem;
  }

  .footer-section.about h3 {
    font-size: 20px;
  }

  .contact p {
    font-size: 14px;
  }

  .footer-bottom {
    font-size: 13px;
    padding-top: 1.5rem;
  }

  .social-link {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .footer-bottom .social-link {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }
}

/* ===== UTILITY CLASSES ===== */
.footer .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== LOADING ANIMATION ===== */
.footer-section.loading {
  opacity: 0.7;
  pointer-events: none;
}

.footer-section.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #a855f7;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}