/* =========================
   FOOTER BASE
========================= */

.footer {
  background: var(--bg-alt);
  color: var(--text-main);
  padding: 60px 0 20px;
  border-top: 1px solid var(--border-color);
}

.footer .container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

/* =========================
   GRID
========================= */

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

/* =========================
   COLUMNAS
========================= */

.footer-col h4 {
  font-size: 16px;
  margin-bottom: 12px;
  color: #ffffff;
}

.footer-col p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 6px;
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--primary);
}

/* =========================
   FOOTER BOTTOM (MEJORADO)
========================= */

.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

/* COPYRIGHT */
.footer-bottom span {
  font-size: 12px;
  color: var(--text-muted);
}

/* LINKS LEGALES */
.footer-links {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary);
}

/* =========================
   FLOATING BUTTONS (NUEVO SISTEMA)
========================= */

.floating-buttons {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: none; /* 👈 oculto en desktop */
  flex-direction: column;
  gap: 10px;
  z-index: 999;
}

.float-btn {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  transition: var(--transition);
}

.float-btn:hover {
  transform: scale(1.1);
}

/* COLORES */
.float-btn.whatsapp {
  background: var(--success);
}

.float-btn.share {
  background: var(--primary);
  color: #000;
}

/* =========================
   RESPONSIVE
========================= */

/* TABLET */
@media (max-width: 1024px) {

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Mostrar botones flotantes */
  .floating-buttons {
    display: flex;
  }

}

/* MOBILE */
@media (max-width: 768px) {

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 25px;
  }

  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }

}

/* MOBILE XS */
@media (max-width: 400px) {

  .footer-col h4 {
    font-size: 14px;
  }

  .footer-col a,
  .footer-col p {
    font-size: 12px;
  }

  .float-btn {
    width: 50px;
    height: 50px;
    font-size: 18px;
  }

}