/* ============================= */
/* 8. FOOTER                      */
/* ============================= */

.footer {
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  color: var(--bg-white);
  position: relative;
  overflow: hidden;
  box-shadow: 0 -3px 18px var(--shadow);
  padding: 30px 0 0;
}

.footer::before {
  content: "";
  position: absolute;
  top: -80px;
  left: -50px;
  width: 130%;
  height: 160%;
  background: rgba(255, 255, 255, 0.05);
  transform: rotate(5deg);
  z-index: 0;
}

/* === Layout principal del footer === */
.footer>.container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-bottom: 10px;
}

/* === Logotipo === */
.footer-logo {
  height: 65px;
  filter: drop-shadow(0 4px 5px rgba(0, 0, 0, 0.25));
  transition: transform var(--transition-fast), filter var(--transition-fast);
  z-index: 2;
}

.footer-logo:hover {
  transform: scale(1.08);
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.3));
}

/* === Texto central === */
.footer-contact {
  color: var(--bg-white);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.95rem;
}

.footer-slogan {
  font-weight: 600;
  color: var(--bg-white);
}

.footer-phone {
  font-weight: 600;
  color: var(--bg-white);
}

.footer-contact .separator {
  opacity: 0.5;
}

.footer-contact i {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
}

/* === Redes sociales elegantes === */
.footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
  margin-bottom: 4px;
  z-index: 2;
}

.footer-social-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
}

.footer-social a:hover {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.25);
  transform: translateY(-3px) scale(1.08);
}

/* === Iconos === */
.footer-social i {
  font-size: 1.5rem;
  position: relative;
  z-index: 2;
  transition: all var(--transition-fast);
  color: #fff;
}

/* Colores específicos por red social */
.facebook-icon i {
  color: #90c0ff;
}

.tiktok-icon i {
  color: #e8e8e8;
}

.instagram-icon i {
  color: #f7c2a3;
}

.linkedin-icon i {
  color: #a8d4f5;
}

.youtube-icon i {
  color: #ff9090;
}

.whatsapp-icon i {
  color: #7fefb2;
}

/* Hover refinado */
.facebook-icon:hover i {
  color: #4facfe;
}

.tiktok-icon:hover i {
  color: #ffffff;
}

.instagram-icon:hover i {
  color: #ffb347;
}

.linkedin-icon:hover i {
  color: #56b4e9;
}

.youtube-icon:hover i {
  color: #ff4d4d;
}

.whatsapp-icon:hover i {
  color: #25d366;
}

/* === Divider === */
.divider {
  width: 90%;
  height: 1px;
  background: rgba(255, 255, 255, 0.25);
  margin: 12px auto;
  border-radius: 2px;
}

/* === Copyright === */
.copyright {
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  padding-bottom: 14px;
}

/* === Responsive === */
@media (max-width: 768px) {
  .footer {
    padding: 24px 16px 0;
    text-align: center;
  }

  .footer-logo {
    height: 55px;
    margin-bottom: 8px;
  }

  .footer-contact {
    flex-direction: column;
    gap: 6px;
  }

  .footer-contact .separator {
    display: none;
  }

  .footer-social {
    gap: 10px;
  }

  .footer-social a {
    width: 44px;
    height: 44px;
  }

  .footer-social i {
    font-size: 1.3rem;
  }

  .footer-social-title {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .footer-social a {
    width: 40px;
    height: 40px;
  }

  .footer-social i {
    font-size: 1.2rem;
  }
}