/* =========================================================
   FOOTER ABASTIBLE (footer.css)
   ─ Prefijo exclusivo .footer- para no colisionar con Bootstrap
   ─ Layout responsive: Grid de 4 columnas ≥768 px; stack 1‑columna ≤767 px
   ─ Usa variables ya definidas en :root (paleta Abastible)
   ========================================================= */

/* ---------- Wrapper principal ---------- */

.footer-abastible {
  background: var(--ab-blue-dark);
  color: var(--ab-white);
  padding: 3rem 1rem 2rem;
  /* top · sides · bottom */
  font-size: 1rem;
}

/* ---------- Contenedor GRID ---------- */
.footer-grid {
  max-width: 1200px;
  /* centra el contenido y restringe ancho */
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 2rem 3rem;
  /* filas · columnas */
  align-items: start;
}

/* --- Responsive ≤767px: columnas se apilan y se centra el texto --- */
@media(max-width:767.98px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-grid>* {
    margin: 0 auto;
    /* centra cada bloque */
  }

  .footer-social {
    justify-content: center;
  }

  .footer-logo {
    max-width: 100px;
  }

  /* logo aún más pequeño en móviles */
}

/* ---------- Marca ---------- */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.footer-logo {
  max-width: 120px;
  /* antes 160px → logo más compacto */
  height: auto;
}

.footer-tagline {
  font-size: .875rem;
}

/* ---------- Navegación ---------- */
.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav li+li {
  margin-top: .5rem;
}

.footer-nav a {
  color: var(--ab-orange-soft);
  text-decoration: none;
  transition: color .2s;
}

.footer-nav a:hover {
  color: var(--ab-orange);
}

/* ---------- Redes Sociales ---------- */
.footer-social {
  display: flex;
  gap: 1rem;
  font-size: 1.5rem;
}

.footer-social-link {
  color: var(--ab-orange-soft);
  transition: color .2s;
}

.footer-social-link:hover {
  color: var(--ab-orange);
}

/* ---------- Contacto ---------- */
.footer-contact {
  font-style: normal;
  line-height: 1.4;
}

.footer-contact a {
  color: var(--ab-orange-soft);
  text-decoration: none;
}

.footer-contact a:hover {
  color: var(--ab-orange);
}

/* ---------- Línea legal ---------- */
.footer-legal {
  grid-column: 1/-1;
  /* ocupa todo el ancho del grid */
  border-top: 2px solid var(--ab-orange);
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  font-size: .875rem;
  text-align: center;
}


    /* Botón flotante de WhatsApp - Versión mejorada */
    .whatsapp-float {
        position: fixed;
        width: 60px;
        height: 60px;
        bottom: 40px;
        right: 40px;
        background-color: #25d366;
        color: #FFF;
        border-radius: 50%;
        text-align: center;
        font-size: 30px;
        box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        animation: pulse 2s infinite;
    }
    
    .whatsapp-float:hover {
        background-color: #128C7E;
        transform: scale(1.1);
        text-decoration: none;
        color: #FFF;
    }
    
    /* Eliminé el margen top que tenía antes y mejoré el centrado */
    .whatsapp-float i {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
    }
    
    @keyframes pulse {
        0% {
            box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
        }
        70% {
            box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
        }
        100% {
            box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
        }
    }
    
    /* Para pantallas pequeñas */
    @media (max-width: 768px) {
        .whatsapp-float {
            width: 50px;
            height: 50px;
            bottom: 20px;
            right: 20px;
            font-size: 25px;
        }
    }