
/* --- ESTILOS MEJORADOS DEL MENÚ FLOTANTE --- */

.floating-menu {
  position: fixed;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  z-index: 9999;
  display: flex;
  align-items: center;
}

.floating-menu-button {
  background: linear-gradient(135deg, #0a1f44, #1a3a6e); /* Mejora 3 */
  border: 1px solid #ffffff;
  cursor: pointer;
  padding: 12px 6px;
  display: flex;
  align-items: center;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); /* Mejora 1 */
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out; /* Mejora 1 */
}

.floating-menu-button:hover {
  transform: scale(1.15) translateY(-2px); /* Mejora 1 */
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3); /* Mejora 1 */
}

.menu-dots {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 48px;
  width: 12px;
  position: relative; /* Mejora 2 */
  transition: transform 0.3s ease-in-out;
}

.dot {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #ffffff;
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out, background-color 0.2s; /* Mejora 2 */
  position: absolute; /* Mejora 2 */
  left: 0;
}
.dot:nth-child(1) { top: 0; }
.dot:nth-child(2) { top: 50%; transform: translateY(-50%); }
.dot:nth-child(3) { bottom: 0; }

.floating-menu-button:hover .dot {
  background-color: #0000FE;
}

/* Transformación del botón a "X" */
.floating-menu.open .dot:nth-child(2) { opacity: 0; }
.floating-menu.open .dot:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.floating-menu.open .dot:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }


.floating-menu-content {
  position: relative;
  background: linear-gradient(to right, #0a1f44, #142b58); /* Mejora 3 */
  color: #fff;
  border: 1px solid #ffffff;
  border-left: none;
  border-radius: 0 8px 8px 0;
  overflow: hidden;
  max-height: 0;
  width: 400px;
  opacity: 0;
  transition: max-height 0.4s ease-in-out, opacity 0.4s ease-in-out, width 0.3s ease-in-out;
  margin-left: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3); /* Mejora 1 */
}

.floating-menu.open .floating-menu-content {
  max-height: 500px;
  opacity: 1;
  overflow-y: auto;
}

.floating-menu-content::-webkit-scrollbar { width: 6px; }
.floating-menu-content::-webkit-scrollbar-thumb { background-color: rgba(255, 255, 255, 0.3); border-radius: 3px; }
.floating-menu-content::-webkit-scrollbar-track { background-color: rgba(10, 31, 68, 0.95); }

.fm-section {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 16px;
}

.fm-section-title {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
  padding: 8px 0;
  background: linear-gradient(to right, #0a1f44, #142b58); /* Mejora 3 */
  position: sticky;
  top: 0;
  z-index: 1;
  color: #ffffff;
}

.fm-link {
  display: block;
  font-size: 16px;
  color: #ffffff;
  text-decoration: none;
  padding: 8px 4px;
  border-radius: 4px;
  transition: color 0.2s, background-color 0.2s, transform 0.2s ease-out; /* Mejora 4 */
}

.fm-link:hover {
  color: #0a1f44;
  background-color: #ffffff;
  transform: translateX(8px); /* Mejora 4 */
}

/* --- ESTILOS RESPONSIVOS PARA MÓVILES --- */
@media screen and (max-width: 768px) {
  .floating-menu { left: 8px; }
  .floating-menu-content {
    width: 85vw;
    max-width: 320px;
    margin-left: 8px;
  }
  .floating-menu.open .floating-menu-content {
    max-height: 80vh;
  }
  .fm-section { padding: 8px 12px; }
  .fm-section-title { font-size: 14px; }
  .fm-link { font-size: 15px; }
}
    