/* style.css - Control definitivo del menú móvil */
@media (max-width: 1024px) {
  /* Forzamos que el menú se oculte de forma absoluta */
  .sidebar, aside {
    position: fixed !important;
    left: -300px !important;
    top: 0 !important;
    width: 260px !important;
    height: 100vh !important;
    background-color: #ffffff !important;
    z-index: 1000 !important;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 10px 0 30px rgba(0,0,0,0.2) !important;
    overflow-y: auto !important;
  }

  /* Se despliega por completo al activarse */
  .sidebar.active, aside.active {
    left: 0 !important;
  }

  /* Capa oscura de fondo */
  .sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(11, 34, 57, 0.6);
    z-index: 999;
  }

  .sidebar-overlay.active {
    display: block !important;
  }

  /* Botón hamburguesa visible y flotante */
  .menu-toggle-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 15px;
    left: 15px;
    width: 44px;
    height: 44px;
    background: #0B2239;
    color: #E6FF00;
    border: 1px solid #0B2239;
    font-size: 20px;
    cursor: pointer;
    z-index: 1001;
    border-radius: 0;
    box-shadow: 2px 2px 0px rgba(0,0,0,0.2);
  }

  .main {
    margin-left: 0 !important;
    width: 100% !important;
    padding: 20px !important;
    padding-top: 75px !important;
  }
}

@media (min-width: 1025px) {
  .menu-toggle-btn {
    display: none !important;
  }
  .sidebar-overlay {
    display: none !important;
  }
}