/* 1. Contenedor principal del widget */
.mab-floating-widget {
  position: fixed;
  /* Ajustado a 100px para quedar por encima del botón 'Scroll Top' azul */
  bottom: 100px; 
  right: 30px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-family: 'Open Sans', sans-serif; /* Usando la fuente de MiAbotgado */
}

/* 2. Menú de opciones (WhatsApp e IA) */
.mab-floating-menu {
  list-style: none;
  padding: 0;
  margin: 0 0 15px 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 15px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Estado activo: se muestra el menú */
.mab-floating-widget.is-active .mab-floating-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* 3. Estilo de los botones individuales */
.mab-btn-item {
  display: flex;
  align-items: center;
  background: transparent;
  border: none;
  cursor: pointer;
  text-decoration: none;
  color: #fff;
  transition: transform 0.2s ease;
}

.mab-btn-item:hover {
  transform: scale(1.05);
}

/* 4. Etiquetas de texto (Labels) */
.mab-label {
  background: #1B1E32; /* Azul oscuro del diseño de MiAbotgado */
  color: #fff;
  padding: 8px 18px;
  border-radius: 20px;
  margin-right: 15px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  
  /* AJUSTE PARA TEXTO LARGO: Evita saltos de línea */
  white-space: nowrap;
  display: inline-block;
}

/* 5. Círculos de los iconos */
.mab-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  color: #fff;
}

.mab-btn-item.whatsapp .mab-icon {
  background-color: #25D366; /* Verde oficial WhatsApp */
}

.mab-btn-item.tawkto .mab-icon {
  background-color: #F7931E; /* Color naranja Tawk.to */
}

/* 6. Botón Flotante Principal (El que abre el menú) */
.mab-floating-main {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background-color: #53F3CD; /* Turquesa de MiAbotgado */
  color: #0E1224;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 15px rgba(83, 243, 205, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

/* Rotación y cambio de color al abrir */
.mab-floating-widget.is-active .mab-floating-main {
  transform: rotate(90deg);
  background-color: #FF4757; /* Rojo para indicar 'Cerrar' */
  color: white;
}