/* ===== footer.css — Footer oscuro ===== */

.footer {
  position: relative;
  background: #0d1820;
  /* espacio para que el botón flotante del chat (abajo a la derecha)
     no tape los íconos de redes sociales al final de la página */
  padding-bottom: 90px;
}

/* Acento superior: línea gradiente de marca */
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, #2271b2, #018a38);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--padding-x);
}

/* ===== Zona principal ===== */
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  padding: 3.5rem 0;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-logo-img {
  width: 200px;
  height: auto;
  max-width: 100%;
}

.footer-tagline {
  font-size: .72rem;
  color: rgba(255, 255, 255, .3);
  margin: 0;
}

/* Columnas de links */
.footer-cols {
  display: flex;
  gap: 2.5rem;
}

/* La 4ta columna (links de ayuda) tiene textos largos: le damos un ancho mínimo
   para que no se aprieten contra el resto */
.footer-col--ayuda {
  max-width: 220px;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-col-title {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 1rem;
}

.footer-link {
  font-size: .85rem;
  color: rgba(255, 255, 255, .55);
  text-decoration: none;
  margin-bottom: .6rem;
  transition: color .2s ease;
}

.footer-link:last-child {
  margin-bottom: 0;
}

.footer-link:hover {
  color: #fff;
}

/* ===== Franja de contacto ===== */
.footer-contact-strip {
  text-align: center;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, .08);
  margin-top: 1rem;
}

.footer-contact-strip p {
  margin: 0;
  font-size: .9rem;
  color: rgba(255, 255, 255, .7);
}

.footer-contact-strip a {
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}

.footer-contact-strip a:hover {
  text-decoration: underline;
}

/* ===== Zona inferior ===== */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  border-top: 1px solid rgba(255, 255, 255, .06);
  padding: 2rem 0;
}

.footer-copy {
  font-size: .72rem;
  color: rgba(255, 255, 255, .25);
  margin: 0;
}

.footer-brandbits {
  font-weight: 700;
  text-decoration: none;
  background: linear-gradient(90deg, #2271b2, #018a38, #2c8fd6, #018a38, #2271b2);
  background-size: 220% auto;
  background-position: 0% center;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.footer-brandbits:hover {
  animation: brandbitsShift 2s linear infinite;
}

@keyframes brandbitsShift {
  to { background-position: 220% center; }
}

/* Social icons */
.footer-socials {
  display: flex;
  align-items: center;
  gap: .6rem;
}

.footer-social {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .5);
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.footer-social:hover {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .footer-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 36px;
    padding: 2.8rem 0;
  }
  .footer-brand {
    align-items: center;
  }
  .footer-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px 40px;
    width: 100%;
    text-align: left;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 18px;
    padding: 1.8rem 0;
  }
}
