/**
 * Marítima Andina - Floating Actions (WhatsApp & Back to Top)
 */

.mta-floating-actions {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 99990;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  pointer-events: none;
}

.mta-floating-btn {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 22px rgba(6, 26, 47, 0.25);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  position: relative;
}

.mta-floating-btn:hover {
  transform: translateY(-4px) scale(1.05);
}

/* WhatsApp */
.mta-floating-whatsapp {
  background: #25d366;
  color: #fff;
}

.mta-floating-whatsapp svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

@keyframes mtaWaPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.mta-floating-whatsapp {
  animation: mtaWaPulse 2.4s infinite;
}

/* Tooltip WhatsApp */
.mta-wa-tooltip {
  position: absolute;
  right: 66px;
  background: #fff;
  color: var(--mta-navy, #061a2f);
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  pointer-events: none;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mta-wa-tooltip::after {
  content: "";
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 6px 0 6px 6px;
  border-style: solid;
  border-color: transparent transparent transparent #fff;
}

.mta-floating-whatsapp:hover .mta-wa-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* Back to Top */
.mta-floating-backtotop {
  background: var(--mta-navy, #061a2f);
  color: #fff;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
}

.mta-floating-backtotop.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mta-floating-backtotop:hover {
  background: var(--mta-blue, #0879d9);
}

.mta-floating-backtotop svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 560px) {
  .mta-floating-actions {
    bottom: 20px;
    right: 20px;
    gap: 10px;
  }
  .mta-floating-btn {
    width: 48px;
    height: 48px;
  }
  .mta-floating-whatsapp svg {
    width: 24px;
    height: 24px;
  }
  .mta-wa-tooltip {
    display: none;
  }
}
