footer {
  font-family: 'Roboto', sans-serif;
  color: #1c1b2b;
  background-color: #fbf4f8cc;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 5%;
  flex-wrap: wrap;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-logo img {
  height: 70px;
}

.footer-logo p {
  font-size: 1rem;
  color: #1c1b2b;
  font-weight: 300;
  margin: 0;
  white-space: nowrap;
}

.footer-contact {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.icon {
  font-size: 1.6rem;
}

.label {
  font-weight: 600;
  margin-bottom: 0.2rem;
  color: #3d3b4f;
}

hr {
  border: none;
  border-top: 1px solid #e5e4ea;
  margin: 0;
}

.footer-links {
  position: relative;
  display: flex;
  justify-content: space-evenly;
  gap: 4rem;
  padding: 2rem 5%;
  text-align: left;
  flex-wrap: wrap;
  background-image: url('../imgs/fondolineas.png');
  background-repeat: repeat;
  background-size: 20%;
  background-position: center;
  z-index: 0;
}

.footer-links::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(248, 247, 250, 0.8);
  z-index: 0;
}

.footer-links * {
  position: relative;
  z-index: 1;
}

.footer-links .column {
  min-width: 150px;
}

.footer-links h4 {
  color: #150c2d;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  text-align: center;
}

.footer-links a {
  display: block;
  color: #555;
  text-decoration: none;
  margin-bottom: 0.6rem;
  font-size: 1rem;
  text-align: center;
}

.footer-links a:hover {
  color: #000;
}

.footer-bottom {
  background-color: #1d1d1d;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 5%;
  flex-wrap: wrap;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.95rem;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-bottom-links a {
  color: white;
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-bottom-links a:hover {
  text-decoration: underline;
}

@media (max-width: 1024px) {
  .footer-links {
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .footer-top {
    flex-direction: column;
    gap: 1.5rem;
  }

  .footer-logo {
    flex-direction: column;
    gap: 0.5rem;
  }

  .footer-contact {
    flex-direction: column;
    gap: 1rem;
  }

  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .footer-links h4,
  .footer-links a {
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.8rem;
    text-align: center;
  }
}

.icon {
  font-size: 1.6rem;
  color: #1c1b2b;
}

.footer-links a i {
  margin-right: 0.5rem;
}


@media screen and (min-width: 768px) and (max-width: 991px) and (orientation: portrait) {
  div.footer-logo>p {
    display: none;
  }
}

a {
  text-decoration: none;
  color: #1c1b2b;
}

a:hover {
  color: var(--color);
  transition: all 1,5s ease-in;
}

:root {
  --ws-green: #25d365cf;
  --ws-dark: #128c7ec3;
}

.whatsapp-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 2000;
  display: flex;
  align-items: center;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.whatsapp-button {
  background-color: var(--ws-green);
  color: white;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.whatsapp-button i {
  font-size: 1.8rem;
}

.whatsapp-text {
  font-size: 0.9rem;
}

.whatsapp-close {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #ff4d4d;
  color: white;
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  transition: opacity 0.3s ease;
  z-index: 2001;
}

.whatsapp-container:hover .whatsapp-close {
  opacity: 1;
  pointer-events: auto;
}

.whatsapp-button:hover {
  background-color: var(--ws-dark);
  transform: scale(1.05);
  color: white;
}

.dark-mode .whatsapp-button {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.dark-mode .mapa-container:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  filter: grayscale(0.2) invert(0.9) hue-rotate(180deg);
}

@media (max-width: 768px) {
  .whatsapp-text {
    display: none;
  }
  
  .whatsapp-button {
    padding: 12px;
    border-radius: 50%;
  }

  .whatsapp-container {
    bottom: 15px;
    right: 15px;
  }

  .whatsapp-container:active .whatsapp-close {
    opacity: 1;
    pointer-events: auto;
  }
}