/* Estilo del footer */
footer {
  background: #000000f1;
  color: #fff;
  padding: 40px 20px;
  text-align: center;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  
}
footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, rgba(255, 251, 249, 0.4), rgba(0, 0, 0, 0.4));
  opacity: 0.5;
  animation: backgroundAnimation 15s linear infinite;
  z-index: 1;
  background-size: 100% 0%; /* Ajusta el tamaño del fondo para crear el efecto de movimiento */
}


@keyframes backgroundAnimation {
  0% { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  z-index: 2;
}

/* Sección de contacto dentro del footer */
.contact {
  background: #222;
  color: #fff;
  padding: 50px 20px;
  text-align: center;
  box-sizing: border-box;
  border-radius: 12px;
  position: relative;
  scroll-margin-top: 100px; /* Ajusta el valor según la altura de tu navbar */
}

.contact h2 {
  font-size: 36px;
  margin-bottom: 20px;
  color: #f39c12;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  animation: textGlow 1.5s ease-in-out infinite alternate;
}

@keyframes textGlow {
  from {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  }
  to {
    text-shadow: 1px 1px 10px rgba(255, 193, 7, 0.7);
  }
}

.call-to-action {
  max-width: 800px;
  margin: 0 auto;
}

.call-to-action p {
  font-size: 18px;
  margin-bottom: 20px;
  line-height: 1.5;
}

/* Ajusta el estilo del botón de WhatsApp */
.call-button {
  display: inline-block;
  background-color: #25D366; /* Verde característico de WhatsApp */
  color: #fff;
  padding: 15px 30px;
  border-radius: 12px;
  font-weight: bold;
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.call-button:hover {
  transform: scale(1.05) rotate(-1deg);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.5);
}


/* Información del footer */
.footer-info, .footer-social, .footer-legal {
  flex: 1;
  min-width: 300px;
  margin: 10px;
}

.footer-info h2, .footer-social h2 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #f39c12;
}

.footer-info p, .footer-legal p {
  font-size: 14px;
  margin: 5px 0;
}

.footer-info address p {
  margin: 5px 0;
}

.footer-social .social-media {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.footer-social .social-media a {
  display: inline-block;
  margin: 0; /* Elimina el margen adicional */
  border-radius: 0; /* Cambia el borde a cuadrado */
  overflow: hidden;
  position: relative;
  width: 40px; /* Asegúrate de que el ancho sea igual al alto */
  height: 40px; /* Ajusta el alto para que sea igual al ancho */
  transition: transform 0.3s ease; /* Suaviza la transición de la escala */
}

.footer-social .social-media a:hover {
  transform: scale(1.1); /* Escala el ícono ligeramente al pasar el cursor */
  box-shadow: none; /* Elimina el brillo en el hover */
}

.footer-social .social-media a img {
  width: 100%; /* Asegura que la imagen ocupe todo el contenedor */
  height: 100%; /* Asegura que la imagen ocupe todo el contenedor */
  object-fit: cover; /* Asegura que la imagen se ajuste al contenedor sin distorsión */
}

.footer-legal p {
  font-size: 12px;
}

.footer-legal a {
  color: #f39c12;
  text-decoration: none;
}

.footer-legal a:hover {
  text-decoration: underline;
}


/* Sección de Contacto */
/* Contacto */
#contact {
  background: linear-gradient(90deg, #f39c12, #000000); /* Degradado rojo y negro invertido */
  color: #fff;
  padding: 50px 20px;
  text-align: center;
  box-sizing: border-box; /* Asegura que el padding se incluya en el tamaño total */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.517); /* Sombra para mayor profundidad */
}

.contact a {
  color: #fff;
  text-decoration: none;
  display: block;
  margin-bottom: 10px;
}
