/* ===== FOOTER ===== */
.footer {
  background: linear-gradient(
    135deg,
    var(--color-verde-oliva-oscuro) 0%,
    var(--color-verde-oliva-oscuro) 100%
  );
  color: var(--color-white);
  padding: var(--space-xl) 0 var(--space-md);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.8s ease 0.3s;
}

.footer.visible {
  opacity: 1;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--color-accent),
    var(--color-secondary),
    var(--color-accent)
  );
}

.footer::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(212, 175, 55, 0.05) 0%,
    transparent 70%
  );
  animation: rotate 30s linear infinite;
  pointer-events: none;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* ===== CONTENIDO DEL FOOTER ===== */
.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  position: relative;
  z-index: 10;
}

/* ===== REDES SOCIALES ===== */
.social-links {
  text-align: center;
}

.social-title {
  font-family: "Nefelibata Script", sans-serif;
  font-size: 3rem;
  color: var(--color-white);
  margin-bottom: var(--space-md);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.social-icons {
  display: flex;
  gap: var(--space-lg);
  justify-content: center;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.05)
  );
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  color: var(--color-white);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  width: 250px;
  justify-content: center;
}

.social-link:hover {
  background: linear-gradient(
    135deg,
    var(--color-verde-oliva),
    var(--color-verde-oliva-claro)
  );
  border-color: var(--color-accent);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px var(--color-verde-oliva-claro);
}

.social-link .fab {
  font-size: 1.2rem;
  color: #e4405f; /* Color oficial de Instagram */
  transition: color 0.3s ease;
}

.social-link:hover .fab {
  color: var(--color-white);
}

.social-link span {
  font-weight: 400;
  letter-spacing: 0.5px;
}

/* ===== DIVISOR ===== */
.footer-divider {
  width: 200px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-accent),
    transparent
  );
  position: relative;
}

.footer-divider::before {
  content: "♥";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--color-text-dark);
  color: var(--color-accent);
  font-size: 1rem;
  padding: 0 var(--space-xs);
}

/* ===== CRÉDITOS ===== */
.footer-credits {
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.footer-credits a {
  color: var(--color-white);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-credits p {
  font-family: var(--font-body);
  font-size: 0.9rem;
  margin-bottom: var(--space-xs);
  line-height: 1.5;
}

.footer-credits strong {
  color: var(--color-accent);
  font-weight: 600;
}

.footer-credits .fas {
  color: #e74c3c;
  font-size: 0.8rem;
  margin: 0 var(--space-xs);
  animation: heartBeat 1.5s ease-in-out infinite;
}

@keyframes heartBeat {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.footer-year {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
  margin: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .footer {
    padding: var(--space-lg) 0 var(--space-sm);
  }

  .footer-content {
    gap: var(--space-md);
  }

  .social-title {
    font-size: 2.5rem;
  }

  .social-icons {
    gap: var(--space-md);
  }

  .social-link {
    padding: var(--space-xs) var(--space-sm);
    font-size: 0.9rem;
  }

  .social-link .fab {
    font-size: 1.1rem;
  }

  .footer-divider {
    width: 150px;
  }

  .footer-credits p {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .footer {
    padding: var(--space-md) 0 var(--space-sm);
  }

  .social-title {
    font-size: 1.3rem;
    margin-bottom: var(--space-sm);
  }

  .social-icons {
    flex-direction: column;
    gap: var(--space-sm);
    align-items: center;
  }

  .social-link {
    padding: var(--space-xs) var(--space-md);
    font-size: 0.85rem;
    min-width: 200px;
    justify-content: center;
  }

  .footer-divider {
    width: 120px;
  }

  .footer-credits p {
    font-size: 0.8rem;
    padding: 0 var(--space-sm);
  }

  .footer-year {
    font-size: 0.75rem;
  }
}

/* ===== ANIMACIÓN DE ENTRADA ===== */
.footer {
  animation: slideInUp 1s ease;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== EFECTO HOVER EN TODO EL FOOTER ===== */
.footer:hover::after {
  animation-duration: 15s;
}

/* ===== SEPARACIÓN VISUAL ===== */
.footer .container {
  position: relative;
  z-index: 10;
}
