/* Menú Flotante - Estilos básicos */
.fm-floating-container{
  position: fixed;
  right: var(--fm-offset-x, 24px);
  bottom: var(--fm-offset-y, 24px);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.fm-fab{
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: none;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.fm-fab:hover{ transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,0.25); }
.fm-fab:focus{ outline: 2px solid #2c2a5f; outline-offset: 2px; }
.fm-fab img{
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

/* Panel */
.fm-panel{
  width: min(88vw, 320px);
  max-height: min(70vh, 520px);
  overflow: auto;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.25);
  padding: 10px 8px;
  transform-origin: bottom right;
  transform: scale(0.98);
  opacity: 0;
  transition: transform .15s ease, opacity .15s ease;
}

/* Estado abierto */
.fm-floating-container.fm-open .fm-panel{
  opacity: 1;
  transform: scale(1);
}
.fm-floating-container.fm-open .fm-panel[hidden]{ display: block; }

.fm-menu{
  width: 100%;
}
.fm-menu-list,
.fm-menu-list ul{
  list-style: none;
  margin: 0;
  padding: 0;
}
.fm-menu-list > li{
  margin: 0;
}
.fm-menu a{
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 10px;
  color: #111827;
}
.fm-menu a:hover{
  background: #f3f4f6;
}

/* Submenús (nivel 2) */
.fm-menu .sub-menu{
  margin-left: 12px;
  border-left: 2px solid #f3f4f6;
  padding-left: 8px;
}

@media (prefers-reduced-motion: reduce){
  .fm-fab, .fm-panel{ transition: none; }
}
