/* ───────────── BOTÓN FLOTANTE WHATSAPP ───────────── */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 9999;
  transition: all 0.3s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: white;
}

/* Tooltip al pasar el ratón */
.whatsapp-float::after {
  content: '¿Hablamos?';
  position: absolute;
  right: 70px;
  background: #333;
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.whatsapp-float:hover::after {
  opacity: 1;
}

/* ───────────── RESPONSIVE: MÓVIL VERTICAL ───────────── */
@media screen and (max-width: 767px) and (orientation: portrait) {
  .whatsapp-float {
    bottom: 100px;
    right: 16px;
    width: 52px;
    height: 52px;
  }

  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }

  .whatsapp-float::after {
    display: none;
  }
}

/* ───────────── RESPONSIVE: MÓVIL HORIZONTAL ───────────── */
@media screen and (max-width: 900px) and (orientation: landscape) {
  .whatsapp-float {
    bottom: 18px;
    right: 18px;
    width: 52px;
    height: 52px;
  }

  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }

  .whatsapp-float::after {
    display: none;
  }
}

/* ───────────── SERVICIOS: WhatsApp no tapa tarjetas ───────────── */
@media screen and (max-width: 767px) and (orientation: portrait) {
  body.servicios .whatsapp-float {
    bottom: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    opacity: 0.85;
  }

  body.servicios .whatsapp-float svg {
    width: 24px;
    height: 24px;
  }
}
