/* WhatsApp Widget Profesional */
.whatsapp-widget {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 9999;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.whatsapp-button {
  width: 65px;
  height: 65px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.whatsapp-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.3s ease;
}

.whatsapp-button:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 35px rgba(37, 211, 102, 0.4);
}

.whatsapp-button:hover::before {
  transform: scale(1);
}

.whatsapp-button svg {
  width: 28px;
  height: 28px;
  z-index: 1;
}

.whatsapp-menu {
  position: absolute;
  bottom: 80px;
  right: 0;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  width: 320px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.whatsapp-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.menu-header {
  padding: 24px 24px 16px;
  background: #25d366;
  color: white;
  border-radius: 16px 16px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.menu-header::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #25d366;
}

.menu-header h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.close-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.menu-options {
  padding: 8px;
}

.menu-option {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  text-decoration: none;
  color: #2d3748;
  border-radius: 12px;
  margin-bottom: 4px;
  transition: all 0.2s ease;
  font-weight: 500;
  font-size: 15px;
  position: relative;
  overflow: hidden;
}

.menu-option::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #f7fafc;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.menu-option:hover {
  text-decoration: none;
  color: #25d366;
  transform: translateX(4px);
}

.menu-option:hover::before {
  opacity: 1;
}

.option-icon {
  margin-right: 16px;
  font-size: 22px;
  width: 24px;
  text-align: center;
  z-index: 1;
  position: relative;
}

.menu-option span:last-child {
  z-index: 1;
  position: relative;
}

/* Animación de pulso para el botón */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.whatsapp-button.pulse {
  animation: pulse 2s infinite;
}

/* Responsive */
@media (max-width: 768px) {
  .whatsapp-widget {
    bottom: 20px;
    right: 20px;
  }
  
  .whatsapp-button {
    width: 60px;
    height: 60px;
  }
  
  .whatsapp-button svg {
    width: 26px;
    height: 26px;
  }
  
  .whatsapp-menu {
    width: 280px;
    right: -10px;
  }
  
  .menu-header h4 {
    font-size: 16px;
  }
  
  .menu-option {
    padding: 14px 16px;
    font-size: 14px;
  }
}

/* Ocultar botón anterior */
.container-boton {
  display: none !important;
}