footer {
  position: relative;
  text-align: center;
  padding: 0;
  margin-top: 0;
  background-color: #2E4975;
  color: white !important;
  overflow: visible;
  height: auto; /* let content determine height */
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  align-items: stretch; /* 👈 Hace que todas las columnas crezcan a la misma altura */
}

h1, h2, h3 {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

p {
  text-shadow: none !important;
}

/* 🔽 Arrow image (remains floating at the top) */
footer img.borde {
  position: absolute;
  top: 0;
  left: 7%;
  transform: translate(-50%, -50%) rotate(90deg);
  width: 60px;
  height: 60px;
}

/* 🔽 Footer columns */
.footer-col {
  flex: 1 1 30%;
  min-width: 250px;
  padding: 1rem;
  text-align: center;
}

.contact {
  list-style: none;
  font-size: 18px;
}

/* 🔽 Redes logos */
.logos {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  flex-wrap: wrap;
  justify-content: space-evenly;
  margin-top: 10px;
}

.logos li {
  display: inline-block;
}

/* 🔽 Bottom text and arrow */
.footer-bottom {
  width: 100%;
  text-align: center;
  margin-top: 0;
  padding-bottom: 10px;
}

#baq {
  display: block;
  margin: auto;
  margin-left: 1.5rem;
}

#atl {
  display: block;
  margin: auto;
  margin-right: 1.5rem;
}

.footer-col:first-child {
  display: flex;
  align-items: center;
  justify-content: center; 
}

/* Phones (≤480px) */
@media (max-width: 480px) {
  footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-col {
    min-width: 100%;
    padding: 0.75rem;
  }

  footer img.borde {
    left: 10%;
    width: 40px;
    height: 40px;
  }

  .contact {
    font-size: 16px;
  }

  .logos {
    justify-content: center;
    gap: 6px;
  }

  .logos li {
    flex: 0 0 auto;
  }

  .footer-bottom {
    font-size: 14px;
  }
}

/* Tablets (481px–768px) */
@media (max-width: 768px) {
  footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-col {
    width: 100%;
    min-width: 100%;
    padding: 1rem 0.5rem;
  }

  .logos {
    justify-content: center;
    gap: 8px;
  }

  footer img.borde {
    left: 10%;
    width: 50px;
    height: 50px;
  }
}

/* Laptops (769px–1024px) */
@media (max-width: 1024px) {
  .footer-col {
    flex: 1 1 45%;
    min-width: 280px;
  }

  .logos {
    justify-content: space-around;
  }

  footer img.borde {
    left: 8%;
    width: 55px;
    height: 55px;
  }
}

/* Large screens (≥1200px) */
@media (min-width: 1200px) {
  .footer-col {
    flex: 1 1 30%;
    max-width: 33%;
  }

  .logos {
    justify-content: space-evenly;
  }

  footer img.borde {
    left: 7%;
    width: 60px;
    height: 60px;
  }
}

/* Hidden by default - only shows when you reach bottom */
.hide-ads {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 15px;
    background-color: #2E4975;
    z-index: 9999;
    display: none;  /* Hidden by default */
}

/* Shows when user reaches bottom */
.hide-ads.show-at-bottom {
    display: block;
}