

.floating-tools {
  position: fixed;
  left: 24px;
  top: 50%;
  transform: translateY(-50%); /* 🔹 centra vertical REAL */
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.fab-btn {
  background-color: #000;           /* 🔹 SIEMPRE negro */
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 6px 16px rgba(0,0,0,.25);

  transition: 
    background-color .25s ease,
    transform .25s ease;

  -webkit-tap-highlight-color: transparent;
}


.fab-btn:hover {
  background-color: #000;           /* 🔹 evita transparencia */
  transform: scale(1.05);
}


.fab-btn:active {
  background-color: #000;           /* 🔹 CLAVE */
  transform: scale(0.97);
}


.fab-btn:focus {
  background-color: #000;           /* 🔹 CLAVE */
  outline: none;
}


.fab-btn.active {
  background-color: #000;
  transform: rotate(45deg);
}



.fab-icon-img {
  width: 35px;
  height: 40px;
  pointer-events: none;
}

.fab-btn.active .fab-icon-img {
  transform: rotate(45deg);
}



.fab-menu {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: fabFade .25s ease;
}

.fab-link {
  background: var(--color-accent);
  color: #fff;
  font-size: 13px;
  font-weight: 500px;
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
  transition: transform .25s ease, filter .25s ease;
}

.fab-link:hover {
  
  transform: translateX(6px);
  filter: brightness(1.15);
}



.oculto {
  display: none;
}



@keyframes fabFade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}



@media (max-width: 768px) {
  .fab-btn {
    width: 60px;
    height: 60px;
  }

  .fab-icon-img {
    width: 35px;
  height: 40px;
  }
  .floating-tools {
    top: 16px;
    right: 16px;
    left: auto;
    transform: none;
    align-items: flex-end;
  }

  .fab-menu {
    align-items: flex-end;
  }
}


.btn-volver {
  background: none;
  border: none;
  padding: 0;
  margin-bottom: 10px;

  font-size: 16px;
  color: #555;
  cursor: pointer;

  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-volver:hover {
  text-decoration: underline;
}

.btn-volver:focus {
  outline: none;
}
