/* Asegúrate de incluir los íconos Font Awesome en tu HTML */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

/* ESTILOS PARA EL FOOTER FIJADO AL FINAL */

.footer {
  background: linear-gradient(
    to bottom,
    rgba(51, 51, 51, 0.9),
    rgba(0, 0, 0, 0.8)
  );
  color: #eee;
  padding: 40px 5px;
  text-align: center;
  margin-top: auto;
  flex-shrink: 0;
}

#footer-container,
footer.footer {
  position: relative;
  z-index: 1000;
  width: 100%;
  left: 0;
  right: 0;
  margin: 0;
  padding: 40px 20px;
  box-sizing: border-box;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #222;
  color: #fff;
}

footer, #footer-container footer {
  width: 100%;
  max-width: 100%;
  position: relative;
  overflow: visible;
}

.footer-content {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.footer-logo img {
  width: 180px;
  height: auto;
}

.footer-contact p {
  margin: 5px 0;
  font-size: 16px;
}

.footer-social a {
  color: #eee;
  margin: 0 10px;
  font-size: 20px;
  transition: color 0.3s;
}

.footer-social a:hover {
  color: #00acee;
}

.footer-form {
  width: 100%;
  max-width: 600px;
  margin: 0 auto 30px auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center; /* ✅ mantiene centrado el formulario */
}

.footer-form h3 {
  margin-bottom: 20px;
  color: #fff;
}

.footer-form form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
  align-items: center; /* ✅ asegura centrado de inputs y botón */
}

.footer-form input,
.footer-form textarea {
  padding: 10px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  width: 100%;
}

.footer-form button {
  background-color: #b18e00;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.footer-form button:hover {
  background-color: #f1cd02;
}

.webmaster {
  margin-top: 20px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.8rem;
  color: #798386;
}

.social {
  margin-top: 40px;
  display: flex;
  gap: 20px;
  justify-content: center;
}

.social a {
  font-size: 2rem;
  color: rgb(235, 205, 10);
  text-decoration: none;
  transition: color 0.3s ease;
}

.social a:hover {
  color: rgb(216, 215, 206);
}

/* ========================= */
/* RESPONSIVE DESIGN */
/* ========================= */

/* Tablets */
@media (max-width: 989px) {
  .seccion {
    font-size: 3rem;
  }
  .mantenimiento p {
    font-size: 1.4rem;
  }
  .social a {
    font-size: 1.6rem;
  }
}

/* Móviles */
@media (max-width: 650px) {
  .seccion {
    font-size: 2rem;
  }
  .mantenimiento img {
    max-width: 220px;
  }
  .mantenimiento p {
    font-size: 1.1rem;
    line-height: 1.3;
  }
  .social {
    margin-top: 25px;
    gap: 15px;
  }
  .social a {
    font-size: 1.4rem;
  }
  .mantenimiento p a {
    word-break: break-all;
    display: inline-block;
  }
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    text-align: left;
  }

  .footer-logo,
  .footer-contact,
  .footer-social {
    flex: 1;
  }

  .footer-logo {
    display: flex;
    justify-content: center;
  }

  .footer-social {
    display: flex;
    justify-content: flex-end;
  }
}

/* ✅ Corrección precisa para centrado a 1100px */
@media (max-width: 1100px) {
  #footer-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    margin: 0 auto;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
  }

  .footer-logo,
  .footer-contact,
  .footer-social {
    flex: none;
    width: 100%;
    justify-content: center;
    margin: 10px 0;
  }

  .footer-social {
    display: flex;
    gap: 15px;
  }

  .footer-form {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    align-items: center;
  }
}
