#floating-menu {
    position: fixed;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    background-color: transparent;
    border-radius: 0 4px 4px 0;
    z-index: 9999;
  }

  #floating-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  #floating-menu ul li {
    display: flex;
    align-items: center;
    background-color: #4E4996;
    border-radius: 0 4px 4px 0;
    overflow: hidden;
    width: 50px;
    transition: width 0.3s ease;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    white-space: nowrap;
  }

  #floating-menu ul li:last-child {
    border-bottom: none;
  }

  #floating-menu ul li:hover {
    width: auto; /* se ajustará al contenido del texto */
    max-width: 320px; /* límite máximo para que no se desborde */
  }

  #floating-menu ul li a {
    display: flex;
    align-items: center;
    color: #fff;
    text-decoration: none;
    padding: 10px;
    width: 100%;
  }

  .menu-icon {
    width: 30px;
    font-size: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
  }

  .menu-text {
    margin-left: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  #floating-menu ul li:hover .menu-text {
    opacity: 1;
  }

  /* Botón flotante del menú */
#main-menu-toggle {
    position: fixed;
    top: 50%;
    left: 10px;
    /* transform: translateY(-50%); */
    background: #4e4996;
    color: white;
    padding: 11px 10px 5px 10px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    z-index: 90;
    display: none; /* solo visible en móviles */
}

/* Menú a pantalla completa */
.main-fullscreen-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: white;
    box-shadow: 5px 0px 10px rgba(0, 0, 0, 0.2);
    transition: left 0.3s ease-in-out;
    z-index: 1500;
    display: flex;
    flex-direction: column;
}

/* Mostrar el menú cuando está activo */
.main-fullscreen-menu.active {
    left: 0;
}

/* Panel de encabezado similar al de accesibilidad */
.main-fullscreen-menu .panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #4e4996;
    color: white;
}

.main-fullscreen-menu .panel-content {
    padding: 20px;
    overflow-y: auto;
    flex-grow: 1;
}

.main-fullscreen-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-fullscreen-menu ul li {
    margin-bottom: 15px;
}

.main-fullscreen-menu ul li a {
    display: flex;
    align-items: center;
    font-size: 18px;
    color: #4e4996;
    text-decoration: none;
    gap: 10px;
    font-weight: bold;
}





@media (max-width: 768px) {
    #main-menu-toggle {
        display: block;
    }

    .menu-text {
        opacity: 100;
    }
    #floating-menu {
        display: none;
    }
}


/* ----------------------------- */
/* Menú flotante DERECHO (solo iconos, con efecto botón) */
/* ----------------------------- */
#floating-menu-right{
    position:fixed;
    top:50%;
    right:0;
    transform:translateY(-50%);
    background:transparent;
    z-index:9999;
}

#floating-menu-right ul{
    list-style:none;
    margin:0;
    padding:0;
}

#floating-menu-right ul li{
    display:flex;
    align-items:center;
    justify-content:center;
    width:50px;
    height:50px;
    background:#4E4996;
    border-radius:4px 0 0 4px;
    border-bottom:1px solid rgba(255,255,255,.2);

    /* --- Efecto relieve -------------------------------------- */
    box-shadow:0 3px 6px rgba(0,0,0,.25);      /* sombra exterior */
    transition:
        transform .1s ease,                   /* hundimiento     */
        box-shadow .1s ease,                  /* cambio relieve  */
        background-color .1s ease;            /* toque de color  */
    cursor:pointer;
}

#floating-menu-right ul li:last-child{
    border-bottom:none;
}

/* Hover: aclaramos un poco el fondo */
#floating-menu-right ul li:hover{
    background:#5b56ab;                       /* tono + claro */
}

/* Active (mousedown): hundido */
#floating-menu-right ul li:active{
    transform:translateX(-2px) translateY(2px); /* se hunde 2 px   */
    box-shadow:inset 0 2px 4px rgba(0,0,0,.35);  /* sombra interior */
}

/* -------- Contenido ---------------------------------------- */
#floating-menu-right ul li a{
    display:flex;
    align-items:center;
    justify-content:center;
    width:100%;
    height:100%;
    color:#fff;
    text-decoration:none;
}

#floating-menu-right .menu-icon{
    width:30px;
    font-size:20px;
    display:flex;
    align-items:center;
    justify-content:center;
}

#floating-menu-right .menu-text{ display:none; }

@media (max-width: 768px) {
    #floating-menu-right {
        display: none;
    }
}

@media (max-width: 768px) {
    #main-menu-toggle.right {
      left: auto !important;
      right: 10px !important;
    }
  }


/* ── PANEL IZQUIERDO ── */
/* Seleccionamos sólo los que NO tienen .right */
.main-fullscreen-menu:not(.right) {
    /* anula left:-100% si lo tienes todavía */
    left: 0 !important;
    right: auto !important;

    /* empieza desplazado 100% fuera a la izquierda */
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
  }

  /* Cuando esté activo, desaparece la traslación */
  .main-fullscreen-menu:not(.right).active {
    transform: translateX(0);
  }

  /* ── PANEL DERECHO (tu CSS existente) ── */
  /* no hace falta repetirlo, pero como recordatorio: */
  /*
  .main-fullscreen-menu.right {
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
  }
  .main-fullscreen-menu.right.active {
    transform: translateX(0);
  }
  */


