/* ---------------------------
   FOOTER
----------------------------*/
.footer {
  background: var(--brand);
  color: var(--white);
  padding: 60px 20px 30px;
  margin-top: 80px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--white);
  position: relative;
  padding-bottom: 10px;
}

.footer h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 3px;
  background: var(--dodger-blue);
  border-radius: 2px;
}

/* Sección de Contacto */

.footer-contact p {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  line-height: 1.6;
  font-size: 0.95rem;
}

.footer-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  filter: brightness(0) invert(1);
}

.footer-contact strong {
  color: var(--dodger-blue);
  font-weight: 600;
}

.footer-contact a {
  color: var(--white);
  text-decoration: none;
  transition: var(--transition);
}

.footer-contact a:hover {
  color: var(--dodger-blue);
  text-decoration: underline;
}

/* Sección de Enlaces */
.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition);
  display: inline-block;
  position: relative;
}

.footer-links a::before {
  content: '→';
  margin-right: 8px;
  color: var(--dodger-blue);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--dodger-blue);
  transform: translateX(5px);
}

/* Sección de Redes Sociales */
.social-icons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.social-icons a {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  border: 2px solid transparent;
}

.social-icons a:hover {
  background: var(--dodger-blue);
  border-color: var(--dodger-blue);
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(14, 151, 255, 0.4);
}

.social-icons img {
  width: 22px;
  height: 22px;
  filter: brightness(0) invert(1);
}

/* Pie inferior */
.footer-bottom {
  text-align: center;
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

/* ---------------------------
   BOTÓN FLOTANTE WHATSAPP
----------------------------*/
.whatsapp-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
  z-index: 9999;
  cursor: pointer;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-btn img {
  width: 32px;
  height: 32px;
  filter: brightness(0) invert(1);
}

/* Animación de pulso */
.whatsapp-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #25D366;
  animation: pulse 2s infinite;
  z-index: -1;
}

/* ---------------------------
   RESPONSIVE
----------------------------*/

/* Tablets */
@media (max-width: 768px) {
  .footer {
    padding: 50px 20px 30px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .footer h3 {
    font-size: 1.3rem;
  }

  .footer h3::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-contact p {
    font-size: 0.9rem;
    justify-content: center;
  }

  .footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-links ul {
    display: flex;
    justify-content: center;
    gap: 15px;
    list-style: none;
    padding-left: 0;
    margin: 0;
    flex-wrap: wrap;
  }

  .social-icons {
    justify-content: center;
  }

  .whatsapp-btn {
    width: 55px;
    height: 55px;
    bottom: 20px;
    right: 20px;
  }

  .whatsapp-btn img {
    width: 28px;
    height: 28px;
  }
}

/* Móviles pequeños */
@media (max-width: 480px) {
  .footer {
    padding: 40px 15px 25px;
    margin-top: 60px;
  }

  .footer-container {
    gap: 35px;
    text-align: center;
  }

  .footer h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
  }

  .footer h3::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-contact p {
    font-size: 0.85rem;
    gap: 10px;
    justify-content: center;
  }

  .footer-icon {
    width: 18px;
    height: 18px;
  }

  .footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .footer-links ul {
    display: flex;
    justify-content: center;
    gap: 15px;
    list-style: none;
    padding-left: 0;
    margin: 0;
    flex-wrap: wrap;
  }
   
  .footer-links a {
    font-size: 0.9rem;
  }

  .social-icons {
    justify-content: center;
  }

  .social-icons a {
    width: 40px;
    height: 40px;
  }

  .social-icons img {
    width: 20px;
    height: 20px;
  }

  .footer-bottom {
    margin-top: 35px;
    padding-top: 25px;
  }

  .footer-bottom p {
    font-size: 0.85rem;
  }

  .whatsapp-btn {
    width: 50px;
    height: 50px;
    bottom: 15px;
    right: 15px;
  }

  .whatsapp-btn img {
    width: 26px;
    height: 26px;
  }
}

/* Pantallas muy pequeñas */
@media (max-width: 360px) {
  .footer-contact p {
    flex-direction: column;
    gap: 5px;
    align-items: center;
  }

  .footer-icon {
    margin-top: 0;
  }
}