/* Footer */
.footer {
  background: var(--gradient-dark);
  color: white;
  margin-top: 5rem;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.5), transparent);
}

.footer::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.footer-content {
  padding: 4rem 0 2rem;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-section {
  position: relative;
}

.footer-section h5 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-section h5::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 1px;
}

.footer-section p,
.footer-section li {
  color: #cbd5e1;
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: 0.75rem;
  font-weight: 400;
  transition: var(--transition);
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

.footer-section li:hover {
  padding-left: 0.5rem;
  border-color: rgba(59, 130, 246, 0.3);
}

.footer-section li:last-child {
  border-bottom: none;
}

.footer-section a {
  color: #cbd5e1;
  text-decoration: none;
  transition: var(--transition);
  font-weight: 500;
  position: relative;
}

.footer-section a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary-color);
  transition: var(--transition);
}

.footer-section a:hover {
  color: white;
  transform: translateX(4px);
}

.footer-section a:hover::after {
  width: 100%;
}

.footer-section i {
  margin-right: 0.75rem;
  color: var(--primary-color);
  font-size: 1rem;
  width: 20px;
  text-align: center;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #cbd5e1;
  font-size: 1.25rem;
  transition: var(--transition);
  border: 2px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.social-link::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.5s;
}

.social-link:hover::before {
  left: 100%;
}

.social-link:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-4px) scale(1.1);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.social-link:nth-child(2):hover {
  background: #1da1f2; /* Twitter blue */
}

.social-link:nth-child(3):hover {
  background: #e4405f; /* Instagram pink */
}

.social-link:nth-child(4):hover {
  background: #0077b5; /* LinkedIn blue */
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem 0;
  text-align: center;
  position: relative;
  backdrop-filter: blur(10px);
}

.footer-bottom::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 1px;
  background: var(--gradient-primary);
}

.footer-bottom p {
  color: #94a3b8;
  font-size: 0.875rem;
  margin: 0;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.footer-bottom p::before {
  content: "©";
  font-size: 1rem;
  color: var(--primary-color);
}

/* Responsive footer mejorado */
@media (max-width: 768px) {
  .footer-content {
    padding: 3rem 0 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .footer-section h5::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .social-links {
    justify-content: center;
  }

  .footer-section li:hover {
    padding-left: 0;
  }
}

/* Animaciones de entrada */
.footer-section {
  animation: fadeInUp 0.6s ease-out;
}

.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 adicionales */
.footer-section:hover h5 {
  color: var(--primary-color);
}

.footer-section:hover h5::after {
  width: 60px;
}

/* Newsletter section si existe */
.newsletter-section {
  background: rgba(59, 130, 246, 0.1);
  padding: 2rem;
  border-radius: var(--border-radius);
  border: 1px solid rgba(59, 130, 246, 0.2);
  backdrop-filter: blur(10px);
}

.newsletter-section h5 {
  color: var(--primary-color);
}

.newsletter-form {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.newsletter-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  backdrop-filter: blur(10px);
}

.newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.newsletter-btn {
  padding: 0.75rem 1.5rem;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.newsletter-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
  .newsletter-form {
    flex-direction: column;
  }
}
