:root {
  --primary-color: #19456a; /* Color del logo */
  --secondary-color: #0a1f32; /* Tono más oscuro del color del logo */
  --complementary-color: #4a90e2; /* Azul más claro */
  --accent-color: #e63946; /* Rojo vibrante */
  --success-color: #4caf50; /* Verde brillante */
  --background-color: #fafafa; /* Blanco suave */
  --text-color: #333333; /* Negro suave */
  --hover-text-color: #222222; /* Negro más oscuro */
  --light-gray: #e0e0e0; /* Gris claro */
}

/* Footer Main */
.footer {
  background-color: var(--secondary-color);
  color: var(--background-color);
  padding: 2rem;
  position: relative;
}

.footer__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3rem 0;
}

.footer__logo-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  margin-bottom: 1rem;
}

.footer__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--background-color);
}

.footer__logo-image {
  width: 150px;
  margin-right: 0.5rem;
}

.footer__logo-text {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--background-color);
  text-transform: uppercase;
  letter-spacing: 5px;
}

.footer__about-us {
  font-size: 0.7rem;
  width: 90%;
}

.footer__social {
  margin-top: 0.5rem;
}

.footer__social-link {
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background-color: var(--background-color);
  width: 32px;
  height: 30px;
}

.footer__social-link:hover {
  border: 3px solid var(--background-color);
}

.footer__social-icon--circle {
  transition: background-color 0.3s ease;
  filter: invert(1);
  width: auto;
  height: 20px;
}

.footer__social-icon--circle img {
  width: 24px;
  height: 24px;
  filter: invert(1);
}

.footer__webpay {
  margin-top: 1rem;
}

.footer__webpay-image {
  width: 160px;
}

.footer__title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.footer__links,
.footer__info,
.footer__contact {
  margin-bottom: 2rem;
}

.footer__social-list {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.footer__links-list,
.footer__contact-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer__links-link,
.footer__contact-email,
.footer__contact-whatsapp {
  color: var(--background-color);
  text-decoration: none;
  transition: color 0.3s;
  font-size: 0.9rem;
}

.footer__links-link:hover,
.footer__contact-email:hover,
.footer__contact-whatsapp:hover {
  color: var(--complementary-color);
}

.footer__contact-copy-button {
  background-color: transparent;
  border: none;
  color: var(--background-color);
  cursor: pointer;
  height: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer__contact-icon--copy {
  width: 12px;
  height: auto;
}

.footer__contact-whatsapp {
  color: var(--background-color);
  text-decoration: none;
  display: flex;
  align-items: center;
}

.footer__contact-whatsapp img {
  margin-right: 0.5rem;
}

.footer__contact-icon {
  width: 20px;
  height: 20px;
}

.footer__social-icon {
  width: 20px;
  height: 20px;
  margin-right: 0.5rem;
}

.footer__secondary {
  background-color: var(--hover-text-color);
  padding: 1rem;
  text-align: center;
  color: var(--light-gray);
  font-family: "Nunito", sans-serif;
}

.footer__secondary p {
  margin: 0;
  font-size: 0.9rem;
}

.footer__secondary-links {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.footer__secondary-link-item {
  display: inline;
}

.footer__secondary-link {
  color: var(--light-gray);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer__secondary-link:hover {
  text-decoration: underline;
}

.footer__notification {
  position: fixed;
  bottom: 20px;
  left: 50%;
  width: max-content;
  transform: translateX(-50%);
  background-color: var(--background-color);
  color: var(--text-color);
  padding: 1rem 2rem;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgb(226 226 226 / 19%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.footer__notification.show {
  opacity: 1;
  visibility: visible;
}

/* WhatsApp Button */
.whatsapp-button {
  position: fixed;
  bottom: 95px;
  right: 30px;
  background-color: #25d366;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 7;
}

.whatsapp-button img {
  width: 35px;
  height: 35px;
}

.chat-popup {
  display: none;
  position: fixed;
  bottom: 145px;
  right: 30px;
  width: 300px;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  background-color: #e9e9e9;
  z-index: 1000;
}

.chat-header {
  padding: 10px;
  background-color: #25d366;
  color: #fff;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

button#closeChat {
  cursor: pointer;
  border: none;
  background-color: #22a322;
  height: 20px;
  width: 20px;
  border-radius: 50%;
  color: white;
  font-family: "Poppins";
}

.chat-body {
  padding: 10px 10px 0;
}

.chat-body textarea {
  width: 100%;
  height: 100px;
  border: none;
  border-radius: 10px;
  padding: 16px;
  resize: none;
  background-color: white;
  transition: all 400ms linear;
}

.chat-footer {
  padding: 10px;
  text-align: right;
}

.chat-footer a {
  background-color: #25d366;
  color: #fff;
  border: none;
  padding: 5px 15px;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
}

@media (min-width: 769px) {
  .footer__container {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    text-align: left;
    gap: 1rem;
    padding: 2rem 10%;
  }

  .footer__logo-section,
  .footer__links,
  .footer__info,
  .footer__contact {
    flex: 1;
    margin-bottom: 0;
  }

  .footer__logo-section {
    align-items: flex-start;
    align-self: center;
  }

  .footer__links-list,
  .footer__contact-list {
    align-items: flex-start;
  }

  .whatsapp-button {
    width: 70px;
    height: 70px;
  }

  .whatsapp-button img {
    width: 40px;
    height: 40px;
  }

  .chat-popup {
    bottom: 175px;
  }
}

@media (max-width: 768px) {
  .footer__secondary-links {
    flex-direction: column;
    align-items: center;
  }

  .footer__secondary-link-item {
    margin-bottom: 10px;
  }
}
